api: google.golang.org/api/cloudsearch/v1 Index | Files

package cloudsearch

import "google.golang.org/api/cloudsearch/v1"

Package cloudsearch provides access to the Cloud Search API.

For product documentation, see: https://developers.google.com/cloud-search/docs/guides/

Creating a client

Usage example:

import "google.golang.org/api/cloudsearch/v1"
...
ctx := context.Background()
cloudsearchService, err := cloudsearch.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:

cloudsearchService, err := cloudsearch.NewService(ctx, option.WithScopes(cloudsearch.CloudSearchStatsIndexingScope))

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

cloudsearchService, err := cloudsearch.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
cloudsearchService, err := cloudsearch.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See https://godoc.org/google.golang.org/api/option/ for details on options.

Index

Package Files

cloudsearch-gen.go

Constants

const (
    // Index and serve your organization's data with Cloud Search
    CloudSearchScope = "https://www.googleapis.com/auth/cloud_search"

    // New Service: https://www.googleapis.com/auth/cloud_search.debug
    CloudSearchDebugScope = "https://www.googleapis.com/auth/cloud_search.debug"

    // New Service: https://www.googleapis.com/auth/cloud_search.indexing
    CloudSearchIndexingScope = "https://www.googleapis.com/auth/cloud_search.indexing"

    // Search your organization's data in the Cloud Search index
    CloudSearchQueryScope = "https://www.googleapis.com/auth/cloud_search.query"

    // New Service: https://www.googleapis.com/auth/cloud_search.settings
    CloudSearchSettingsScope = "https://www.googleapis.com/auth/cloud_search.settings"

    // New Service:
    // https://www.googleapis.com/auth/cloud_search.settings.indexing
    CloudSearchSettingsIndexingScope = "https://www.googleapis.com/auth/cloud_search.settings.indexing"

    // New Service:
    // https://www.googleapis.com/auth/cloud_search.settings.query
    CloudSearchSettingsQueryScope = "https://www.googleapis.com/auth/cloud_search.settings.query"

    // New Service: https://www.googleapis.com/auth/cloud_search.stats
    CloudSearchStatsScope = "https://www.googleapis.com/auth/cloud_search.stats"

    // New Service:
    // https://www.googleapis.com/auth/cloud_search.stats.indexing
    CloudSearchStatsIndexingScope = "https://www.googleapis.com/auth/cloud_search.stats.indexing"
)

OAuth2 scopes used by this API.

type BooleanOperatorOptions Uses

type BooleanOperatorOptions struct {
    // OperatorName: Indicates the operator name required in the query in
    // order to isolate the
    // boolean property. For example, if operatorName is *closed* and
    // the
    // property's name is *isClosed*, then queries
    // like
    // *closed:<value>* will show results only where the value of
    // the
    // property named *isClosed* matches *<value>*. By contrast,
    // a
    // search that uses the same *<value>* without an operator will
    // return
    // all items where *<value>* matches the value of any
    // String properties or text within the content field for the item.
    // The operator name can only contain lowercase letters (a-z).
    // The maximum length is 32 characters.
    OperatorName string `json:"operatorName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "OperatorName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "OperatorName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

BooleanOperatorOptions: Used to provide a search operator for boolean properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.

func (*BooleanOperatorOptions) MarshalJSON Uses

func (s *BooleanOperatorOptions) MarshalJSON() ([]byte, error)

type BooleanPropertyOptions Uses

type BooleanPropertyOptions struct {
    // OperatorOptions: If set, describes how the boolean should be used as
    // a search operator.
    OperatorOptions *BooleanOperatorOptions `json:"operatorOptions,omitempty"`

    // ForceSendFields is a list of field names (e.g. "OperatorOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "OperatorOptions") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

BooleanPropertyOptions: Options for boolean properties.

func (*BooleanPropertyOptions) MarshalJSON Uses

func (s *BooleanPropertyOptions) MarshalJSON() ([]byte, error)

type CheckAccessResponse Uses

type CheckAccessResponse struct {
    // HasAccess: Returns true if principal has access.  Returns false
    // otherwise.
    HasAccess bool `json:"hasAccess,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "HasAccess") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "HasAccess") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*CheckAccessResponse) MarshalJSON Uses

func (s *CheckAccessResponse) MarshalJSON() ([]byte, error)

type CompositeFilter Uses

type CompositeFilter struct {
    // LogicOperator: The logic operator of the sub filter.
    //
    // Possible values:
    //   "AND" - Logical operators, which can only be applied to sub
    // filters.
    //   "OR"
    //   "NOT" - NOT can only be applied on a single sub filter.
    LogicOperator string `json:"logicOperator,omitempty"`

    // SubFilters: Sub filters.
    SubFilters []*Filter `json:"subFilters,omitempty"`

    // ForceSendFields is a list of field names (e.g. "LogicOperator") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "LogicOperator") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*CompositeFilter) MarshalJSON Uses

func (s *CompositeFilter) MarshalJSON() ([]byte, error)

type CustomerIndexStats Uses

type CustomerIndexStats struct {
    // Date: Date for which statistics were calculated.
    Date *Date `json:"date,omitempty"`

    // ItemCountByStatus: Number of items aggregrated by status code.
    ItemCountByStatus []*ItemCountByStatus `json:"itemCountByStatus,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Date") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Date") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

CustomerIndexStats: Aggregation of items by status code as of the specified date.

func (*CustomerIndexStats) MarshalJSON Uses

func (s *CustomerIndexStats) MarshalJSON() ([]byte, error)

type DataSource Uses

type DataSource struct {
    // DisableModifications: If true, Indexing API rejects any modification
    // calls to this datasource
    // such as create, update, and delete.
    // Disabling this does not imply halting process of previously
    // accepted data.
    DisableModifications bool `json:"disableModifications,omitempty"`

    // DisableServing: Disable serving any search or assist results.
    DisableServing bool `json:"disableServing,omitempty"`

    // DisplayName: Required. Display name of the datasource
    // The maximum length is 300 characters.
    DisplayName string `json:"displayName,omitempty"`

    // IndexingServiceAccounts: List of service accounts that have indexing
    // access.
    IndexingServiceAccounts []string `json:"indexingServiceAccounts,omitempty"`

    // ItemsVisibility: This field restricts visibility to items at the
    // datasource level. Items
    // within the datasource are restricted to the union of users and
    // groups
    // included in this field. Note that, this does not ensure access to
    // a
    // specific item, as users need to have ACL permissions on the
    // contained
    // items. This ensures a high level access on the entire datasource,
    // and
    // that the individual items are not shared outside this visibility.
    ItemsVisibility []*GSuitePrincipal `json:"itemsVisibility,omitempty"`

    // Name: Name of the datasource resource.
    // Format: datasources/{source_id}.
    // <br />The name is ignored when creating a datasource.
    Name string `json:"name,omitempty"`

    // OperationIds: IDs of the Long Running Operations (LROs) currently
    // running for this
    // schema.
    OperationIds []string `json:"operationIds,omitempty"`

    // ShortName: A short name or alias for the source.  This value will be
    // used to match the
    // 'source' operator. For example, if the short name is *&lt;value&gt;*
    // then
    // queries like *source:&lt;value&gt;* will only return results for
    // this
    // source. The value must be unique across all datasources. The value
    // must
    // only contain alphanumeric characters (a-zA-Z0-9). The value cannot
    // start
    // with 'google' and cannot be one of the following: mail, gmail, docs,
    // drive,
    // groups, sites, calendar, hangouts, gplus, keep, people, teams.
    // Its maximum length is 32 characters.
    ShortName string `json:"shortName,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g.
    // "DisableModifications") to unconditionally include in API requests.
    // By default, fields with empty values are omitted from API requests.
    // However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DisableModifications") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

DataSource: Datasource is a logical namespace for items to be indexed. All items must belong to a datasource. This is the prerequisite before items can be indexed into Cloud Search.

func (*DataSource) MarshalJSON Uses

func (s *DataSource) MarshalJSON() ([]byte, error)

type DataSourceIndexStats Uses

type DataSourceIndexStats struct {
    // Date: Date for which index stats were calculated. If the date of
    // request is not
    // the current date then stats calculated on the next day are returned.
    // Stats
    // are calculated close to mid night in this case. If date of request
    // is
    // current date, then real time stats are returned.
    Date *Date `json:"date,omitempty"`

    // ItemCountByStatus: Number of items aggregrated by status code.
    ItemCountByStatus []*ItemCountByStatus `json:"itemCountByStatus,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Date") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Date") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

DataSourceIndexStats: Aggregation of items by status code as of the specified date.

func (*DataSourceIndexStats) MarshalJSON Uses

func (s *DataSourceIndexStats) MarshalJSON() ([]byte, error)

type DataSourceRestriction Uses

type DataSourceRestriction struct {
    // FilterOptions: Filter options restricting the results. If multiple
    // filters
    // are present, they are grouped by object type before joining.
    // Filters with the same object type are joined conjunctively, then
    // the resulting expressions are joined disjunctively.
    //
    // The maximum number of elements is 20.
    //
    // NOTE: Suggest API supports only few filters at the moment:
    //   "objecttype", "type" and "mimetype".
    // For now, schema specific filters cannot be used to filter
    // suggestions.
    FilterOptions []*FilterOptions `json:"filterOptions,omitempty"`

    // Source: The source of restriction.
    Source *Source `json:"source,omitempty"`

    // ForceSendFields is a list of field names (e.g. "FilterOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "FilterOptions") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

DataSourceRestriction: Restriction on Datasource.

func (*DataSourceRestriction) MarshalJSON Uses

func (s *DataSourceRestriction) MarshalJSON() ([]byte, error)

type Date Uses

type Date struct {
    // Day: Day of month. Must be from 1 to 31 and valid for the year and
    // month.
    Day int64 `json:"day,omitempty"`

    // Month: Month of date. Must be from 1 to 12.
    Month int64 `json:"month,omitempty"`

    // Year: Year of date. Must be from 1 to 9999.
    Year int64 `json:"year,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Day") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Day") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Date: Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar).

The date must be a valid calendar date between the year 1 and 9999.

func (*Date) MarshalJSON Uses

func (s *Date) MarshalJSON() ([]byte, error)

type DateOperatorOptions Uses

type DateOperatorOptions struct {
    // GreaterThanOperatorName: Indicates the operator name required in the
    // query in order to isolate the
    // date property using the greater-than operator. For example,
    // if
    // greaterThanOperatorName is *closedafter* and the property's name
    // is
    // *closeDate*, then queries like *closedafter:&lt;value&gt;* will
    // show results only where the value of the property named *closeDate*
    // is
    // later than *&lt;value&gt;*.
    // The operator name can only contain lowercase letters (a-z).
    // The maximum length is 32 characters.
    GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"`

    // LessThanOperatorName: Indicates the operator name required in the
    // query in order to isolate the
    // date property using the less-than operator. For example,
    // if
    // lessThanOperatorName is *closedbefore* and the property's name
    // is
    // *closeDate*, then queries like *closedbefore:&lt;value&gt;* will
    // show results only where the value of the property named *closeDate*
    // is
    // earlier than *&lt;value&gt;*.
    // The operator name can only contain lowercase letters (a-z).
    // The maximum length is 32 characters.
    LessThanOperatorName string `json:"lessThanOperatorName,omitempty"`

    // OperatorName: Indicates the actual string required in the query in
    // order to isolate the
    // date property. For example, suppose an issue tracking schema
    // object
    // has a property named *closeDate* that specifies an operator with
    // an
    // operatorName of *closedon*. For searches on that data, queries
    // like
    // *closedon:&lt;value&gt;* will show results only where the value of
    // the
    // *closeDate* property matches *&lt;value&gt;*. By contrast, a
    // search that uses the same *&lt;value&gt;* without an operator will
    // return
    // all items where *&lt;value&gt;* matches the value of any
    // String
    // properties or text within the content field for the indexed
    // datasource.
    // The operator name can only contain lowercase letters (a-z).
    // The maximum length is 32 characters.
    OperatorName string `json:"operatorName,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "GreaterThanOperatorName") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "GreaterThanOperatorName")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

DateOperatorOptions: Optional. Provides a search operator for date properties. Search operators let users restrict the query to specific fields relevant to the type of item being searched.

func (*DateOperatorOptions) MarshalJSON Uses

func (s *DateOperatorOptions) MarshalJSON() ([]byte, error)

type DatePropertyOptions Uses

type DatePropertyOptions struct {
    // OperatorOptions: If set, describes how the date should be used as a
    // search operator.
    OperatorOptions *DateOperatorOptions `json:"operatorOptions,omitempty"`

    // ForceSendFields is a list of field names (e.g. "OperatorOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "OperatorOptions") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

DatePropertyOptions: Options for date properties.

func (*DatePropertyOptions) MarshalJSON Uses

func (s *DatePropertyOptions) MarshalJSON() ([]byte, error)

type DateValues Uses

type DateValues struct {
    Values []*Date `json:"values,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Values") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Values") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

DateValues: List of date values.

func (*DateValues) MarshalJSON Uses

func (s *DateValues) MarshalJSON() ([]byte, error)

type DebugDatasourcesItemsCheckAccessCall Uses

type DebugDatasourcesItemsCheckAccessCall struct {
    // contains filtered or unexported fields
}

func (*DebugDatasourcesItemsCheckAccessCall) Context Uses

func (c *DebugDatasourcesItemsCheckAccessCall) Context(ctx context.Context) *DebugDatasourcesItemsCheckAccessCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DebugDatasourcesItemsCheckAccessCall) DebugOptionsEnableDebugging Uses

func (c *DebugDatasourcesItemsCheckAccessCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *DebugDatasourcesItemsCheckAccessCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*DebugDatasourcesItemsCheckAccessCall) Do Uses

func (c *DebugDatasourcesItemsCheckAccessCall) Do(opts ...googleapi.CallOption) (*CheckAccessResponse, error)

Do executes the "cloudsearch.debug.datasources.items.checkAccess" call. Exactly one of *CheckAccessResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CheckAccessResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DebugDatasourcesItemsCheckAccessCall) Fields Uses

func (c *DebugDatasourcesItemsCheckAccessCall) Fields(s ...googleapi.Field) *DebugDatasourcesItemsCheckAccessCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DebugDatasourcesItemsCheckAccessCall) Header Uses

func (c *DebugDatasourcesItemsCheckAccessCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DebugDatasourcesItemsSearchByViewUrlCall Uses

type DebugDatasourcesItemsSearchByViewUrlCall struct {
    // contains filtered or unexported fields
}

func (*DebugDatasourcesItemsSearchByViewUrlCall) Context Uses

func (c *DebugDatasourcesItemsSearchByViewUrlCall) Context(ctx context.Context) *DebugDatasourcesItemsSearchByViewUrlCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DebugDatasourcesItemsSearchByViewUrlCall) Do Uses

func (c *DebugDatasourcesItemsSearchByViewUrlCall) Do(opts ...googleapi.CallOption) (*SearchItemsByViewUrlResponse, error)

Do executes the "cloudsearch.debug.datasources.items.searchByViewUrl" call. Exactly one of *SearchItemsByViewUrlResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SearchItemsByViewUrlResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DebugDatasourcesItemsSearchByViewUrlCall) Fields Uses

func (c *DebugDatasourcesItemsSearchByViewUrlCall) Fields(s ...googleapi.Field) *DebugDatasourcesItemsSearchByViewUrlCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DebugDatasourcesItemsSearchByViewUrlCall) Header Uses

func (c *DebugDatasourcesItemsSearchByViewUrlCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DebugDatasourcesItemsSearchByViewUrlCall) Pages Uses

func (c *DebugDatasourcesItemsSearchByViewUrlCall) Pages(ctx context.Context, f func(*SearchItemsByViewUrlResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type DebugDatasourcesItemsService Uses

type DebugDatasourcesItemsService struct {
    Unmappedids *DebugDatasourcesItemsUnmappedidsService
    // contains filtered or unexported fields
}

func NewDebugDatasourcesItemsService Uses

func NewDebugDatasourcesItemsService(s *Service) *DebugDatasourcesItemsService

func (*DebugDatasourcesItemsService) CheckAccess Uses

func (r *DebugDatasourcesItemsService) CheckAccess(name string, principal *Principal) *DebugDatasourcesItemsCheckAccessCall

CheckAccess: Checks whether an item is accessible by specified principal.

func (*DebugDatasourcesItemsService) SearchByViewUrl Uses

func (r *DebugDatasourcesItemsService) SearchByViewUrl(name string, searchitemsbyviewurlrequest *SearchItemsByViewUrlRequest) *DebugDatasourcesItemsSearchByViewUrlCall

SearchByViewUrl: Fetches the item whose viewUrl exactly matches that of the URL provided in the request.

type DebugDatasourcesItemsUnmappedidsListCall Uses

type DebugDatasourcesItemsUnmappedidsListCall struct {
    // contains filtered or unexported fields
}

func (*DebugDatasourcesItemsUnmappedidsListCall) Context Uses

func (c *DebugDatasourcesItemsUnmappedidsListCall) Context(ctx context.Context) *DebugDatasourcesItemsUnmappedidsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DebugDatasourcesItemsUnmappedidsListCall) DebugOptionsEnableDebugging Uses

func (c *DebugDatasourcesItemsUnmappedidsListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *DebugDatasourcesItemsUnmappedidsListCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*DebugDatasourcesItemsUnmappedidsListCall) Do Uses

func (c *DebugDatasourcesItemsUnmappedidsListCall) Do(opts ...googleapi.CallOption) (*ListUnmappedIdentitiesResponse, error)

Do executes the "cloudsearch.debug.datasources.items.unmappedids.list" call. Exactly one of *ListUnmappedIdentitiesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListUnmappedIdentitiesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DebugDatasourcesItemsUnmappedidsListCall) Fields Uses

func (c *DebugDatasourcesItemsUnmappedidsListCall) Fields(s ...googleapi.Field) *DebugDatasourcesItemsUnmappedidsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DebugDatasourcesItemsUnmappedidsListCall) Header Uses

func (c *DebugDatasourcesItemsUnmappedidsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DebugDatasourcesItemsUnmappedidsListCall) IfNoneMatch Uses

func (c *DebugDatasourcesItemsUnmappedidsListCall) IfNoneMatch(entityTag string) *DebugDatasourcesItemsUnmappedidsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*DebugDatasourcesItemsUnmappedidsListCall) PageSize Uses

func (c *DebugDatasourcesItemsUnmappedidsListCall) PageSize(pageSize int64) *DebugDatasourcesItemsUnmappedidsListCall

PageSize sets the optional parameter "pageSize": Maximum number of items to fetch in a request. Defaults to 100.

func (*DebugDatasourcesItemsUnmappedidsListCall) PageToken Uses

func (c *DebugDatasourcesItemsUnmappedidsListCall) PageToken(pageToken string) *DebugDatasourcesItemsUnmappedidsListCall

PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.

func (*DebugDatasourcesItemsUnmappedidsListCall) Pages Uses

func (c *DebugDatasourcesItemsUnmappedidsListCall) Pages(ctx context.Context, f func(*ListUnmappedIdentitiesResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type DebugDatasourcesItemsUnmappedidsService Uses

type DebugDatasourcesItemsUnmappedidsService struct {
    // contains filtered or unexported fields
}

func NewDebugDatasourcesItemsUnmappedidsService Uses

func NewDebugDatasourcesItemsUnmappedidsService(s *Service) *DebugDatasourcesItemsUnmappedidsService

func (*DebugDatasourcesItemsUnmappedidsService) List Uses

func (r *DebugDatasourcesItemsUnmappedidsService) List(parent string) *DebugDatasourcesItemsUnmappedidsListCall

List: List all unmapped identities for a specific item.

type DebugDatasourcesService Uses

type DebugDatasourcesService struct {
    Items *DebugDatasourcesItemsService
    // contains filtered or unexported fields
}

func NewDebugDatasourcesService Uses

func NewDebugDatasourcesService(s *Service) *DebugDatasourcesService

type DebugIdentitysourcesItemsListForunmappedidentityCall Uses

type DebugIdentitysourcesItemsListForunmappedidentityCall struct {
    // contains filtered or unexported fields
}

func (*DebugIdentitysourcesItemsListForunmappedidentityCall) Context Uses

func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) Context(ctx context.Context) *DebugIdentitysourcesItemsListForunmappedidentityCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DebugIdentitysourcesItemsListForunmappedidentityCall) DebugOptionsEnableDebugging Uses

func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *DebugIdentitysourcesItemsListForunmappedidentityCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*DebugIdentitysourcesItemsListForunmappedidentityCall) Do Uses

func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) Do(opts ...googleapi.CallOption) (*ListItemNamesForUnmappedIdentityResponse, error)

Do executes the "cloudsearch.debug.identitysources.items.listForunmappedidentity" call. Exactly one of *ListItemNamesForUnmappedIdentityResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListItemNamesForUnmappedIdentityResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DebugIdentitysourcesItemsListForunmappedidentityCall) Fields Uses

func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) Fields(s ...googleapi.Field) *DebugIdentitysourcesItemsListForunmappedidentityCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DebugIdentitysourcesItemsListForunmappedidentityCall) GroupResourceName Uses

func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) GroupResourceName(groupResourceName string) *DebugIdentitysourcesItemsListForunmappedidentityCall

GroupResourceName sets the optional parameter "groupResourceName":

func (*DebugIdentitysourcesItemsListForunmappedidentityCall) Header Uses

func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DebugIdentitysourcesItemsListForunmappedidentityCall) IfNoneMatch Uses

func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) IfNoneMatch(entityTag string) *DebugIdentitysourcesItemsListForunmappedidentityCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*DebugIdentitysourcesItemsListForunmappedidentityCall) PageSize Uses

func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) PageSize(pageSize int64) *DebugIdentitysourcesItemsListForunmappedidentityCall

PageSize sets the optional parameter "pageSize": Maximum number of items to fetch in a request. Defaults to 100.

func (*DebugIdentitysourcesItemsListForunmappedidentityCall) PageToken Uses

func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) PageToken(pageToken string) *DebugIdentitysourcesItemsListForunmappedidentityCall

PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.

func (*DebugIdentitysourcesItemsListForunmappedidentityCall) Pages Uses

func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) Pages(ctx context.Context, f func(*ListItemNamesForUnmappedIdentityResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*DebugIdentitysourcesItemsListForunmappedidentityCall) UserResourceName Uses

func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) UserResourceName(userResourceName string) *DebugIdentitysourcesItemsListForunmappedidentityCall

UserResourceName sets the optional parameter "userResourceName":

type DebugIdentitysourcesItemsService Uses

type DebugIdentitysourcesItemsService struct {
    // contains filtered or unexported fields
}

func NewDebugIdentitysourcesItemsService Uses

func NewDebugIdentitysourcesItemsService(s *Service) *DebugIdentitysourcesItemsService

func (*DebugIdentitysourcesItemsService) ListForunmappedidentity Uses

func (r *DebugIdentitysourcesItemsService) ListForunmappedidentity(parent string) *DebugIdentitysourcesItemsListForunmappedidentityCall

ListForunmappedidentity: Lists names of items associated with an unmapped identity.

type DebugIdentitysourcesService Uses

type DebugIdentitysourcesService struct {
    Items *DebugIdentitysourcesItemsService

    Unmappedids *DebugIdentitysourcesUnmappedidsService
    // contains filtered or unexported fields
}

func NewDebugIdentitysourcesService Uses

func NewDebugIdentitysourcesService(s *Service) *DebugIdentitysourcesService

type DebugIdentitysourcesUnmappedidsListCall Uses

type DebugIdentitysourcesUnmappedidsListCall struct {
    // contains filtered or unexported fields
}

func (*DebugIdentitysourcesUnmappedidsListCall) Context Uses

func (c *DebugIdentitysourcesUnmappedidsListCall) Context(ctx context.Context) *DebugIdentitysourcesUnmappedidsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DebugIdentitysourcesUnmappedidsListCall) DebugOptionsEnableDebugging Uses

func (c *DebugIdentitysourcesUnmappedidsListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *DebugIdentitysourcesUnmappedidsListCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*DebugIdentitysourcesUnmappedidsListCall) Do Uses

func (c *DebugIdentitysourcesUnmappedidsListCall) Do(opts ...googleapi.CallOption) (*ListUnmappedIdentitiesResponse, error)

Do executes the "cloudsearch.debug.identitysources.unmappedids.list" call. Exactly one of *ListUnmappedIdentitiesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListUnmappedIdentitiesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DebugIdentitysourcesUnmappedidsListCall) Fields Uses

func (c *DebugIdentitysourcesUnmappedidsListCall) Fields(s ...googleapi.Field) *DebugIdentitysourcesUnmappedidsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DebugIdentitysourcesUnmappedidsListCall) Header Uses

func (c *DebugIdentitysourcesUnmappedidsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DebugIdentitysourcesUnmappedidsListCall) IfNoneMatch Uses

func (c *DebugIdentitysourcesUnmappedidsListCall) IfNoneMatch(entityTag string) *DebugIdentitysourcesUnmappedidsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*DebugIdentitysourcesUnmappedidsListCall) PageSize Uses

func (c *DebugIdentitysourcesUnmappedidsListCall) PageSize(pageSize int64) *DebugIdentitysourcesUnmappedidsListCall

PageSize sets the optional parameter "pageSize": Maximum number of items to fetch in a request. Defaults to 100.

func (*DebugIdentitysourcesUnmappedidsListCall) PageToken Uses

func (c *DebugIdentitysourcesUnmappedidsListCall) PageToken(pageToken string) *DebugIdentitysourcesUnmappedidsListCall

PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.

func (*DebugIdentitysourcesUnmappedidsListCall) Pages Uses

func (c *DebugIdentitysourcesUnmappedidsListCall) Pages(ctx context.Context, f func(*ListUnmappedIdentitiesResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*DebugIdentitysourcesUnmappedidsListCall) ResolutionStatusCode Uses

func (c *DebugIdentitysourcesUnmappedidsListCall) ResolutionStatusCode(resolutionStatusCode string) *DebugIdentitysourcesUnmappedidsListCall

ResolutionStatusCode sets the optional parameter "resolutionStatusCode": Limit users selection to this status.

Possible values:

"CODE_UNSPECIFIED"
"NOT_FOUND"
"IDENTITY_SOURCE_NOT_FOUND"
"IDENTITY_SOURCE_MISCONFIGURED"
"TOO_MANY_MAPPINGS_FOUND"
"INTERNAL_ERROR"

type DebugIdentitysourcesUnmappedidsService Uses

type DebugIdentitysourcesUnmappedidsService struct {
    // contains filtered or unexported fields
}

func NewDebugIdentitysourcesUnmappedidsService Uses

func NewDebugIdentitysourcesUnmappedidsService(s *Service) *DebugIdentitysourcesUnmappedidsService

func (*DebugIdentitysourcesUnmappedidsService) List Uses

func (r *DebugIdentitysourcesUnmappedidsService) List(parent string) *DebugIdentitysourcesUnmappedidsListCall

List: Lists unmapped user identities for an identity source.

type DebugOptions Uses

type DebugOptions struct {
    // EnableDebugging: If you are asked by Google to help with debugging,
    // set this field.
    // Otherwise, ignore this field.
    EnableDebugging bool `json:"enableDebugging,omitempty"`

    // ForceSendFields is a list of field names (e.g. "EnableDebugging") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "EnableDebugging") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

DebugOptions: Shared request debug options for all cloudsearch RPC methods.

func (*DebugOptions) MarshalJSON Uses

func (s *DebugOptions) MarshalJSON() ([]byte, error)

type DebugService Uses

type DebugService struct {
    Datasources *DebugDatasourcesService

    Identitysources *DebugIdentitysourcesService
    // contains filtered or unexported fields
}

func NewDebugService Uses

func NewDebugService(s *Service) *DebugService

type DeleteQueueItemsRequest Uses

type DeleteQueueItemsRequest struct {
    // ConnectorName: Name of connector making this call.
    // <br />Format: datasources/{source_id}/connectors/{ID}
    ConnectorName string `json:"connectorName,omitempty"`

    // DebugOptions: Common debug options.
    DebugOptions *DebugOptions `json:"debugOptions,omitempty"`

    // Queue: Name of a queue to delete items from.
    Queue string `json:"queue,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ConnectorName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ConnectorName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*DeleteQueueItemsRequest) MarshalJSON Uses

func (s *DeleteQueueItemsRequest) MarshalJSON() ([]byte, error)

type DisplayedProperty Uses

type DisplayedProperty struct {
    // PropertyName: The name of the top-level property as defined in a
    // property definition
    // for the object. If the name is not a defined property in the schema,
    // an
    // error will be given when attempting to update the schema.
    PropertyName string `json:"propertyName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "PropertyName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "PropertyName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

DisplayedProperty: A reference to a top-level property within the object that should be displayed in search results. The values of the chosen properties will be displayed in the search results along with the dislpay label for that property if one is specified. If a display label is not specified, only the values will be shown.

func (*DisplayedProperty) MarshalJSON Uses

func (s *DisplayedProperty) MarshalJSON() ([]byte, error)

type DoubleOperatorOptions Uses

type DoubleOperatorOptions struct {
    // OperatorName: Indicates the operator name required in the query in
    // order to use the
    // double property in sorting or as a facet.
    // The operator name can only contain lowercase letters (a-z).
    // The maximum length is 32 characters.
    OperatorName string `json:"operatorName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "OperatorName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "OperatorName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

DoubleOperatorOptions: Used to provide a search operator for double properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.

func (*DoubleOperatorOptions) MarshalJSON Uses

func (s *DoubleOperatorOptions) MarshalJSON() ([]byte, error)

type DoublePropertyOptions Uses

type DoublePropertyOptions struct {
    // OperatorOptions: If set, describes how the double should be used as a
    // search operator.
    OperatorOptions *DoubleOperatorOptions `json:"operatorOptions,omitempty"`

    // ForceSendFields is a list of field names (e.g. "OperatorOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "OperatorOptions") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

DoublePropertyOptions: Options for double properties.

func (*DoublePropertyOptions) MarshalJSON Uses

func (s *DoublePropertyOptions) MarshalJSON() ([]byte, error)

type DoubleValues Uses

type DoubleValues struct {
    Values []float64 `json:"values,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Values") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Values") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

DoubleValues: List of double values.

func (*DoubleValues) MarshalJSON Uses

func (s *DoubleValues) MarshalJSON() ([]byte, error)

type DriveFollowUpRestrict Uses

type DriveFollowUpRestrict struct {
    // Possible values:
    //   "UNSPECIFIED"
    //   "FOLLOWUP_SUGGESTIONS"
    //   "FOLLOWUP_ACTION_ITEMS"
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Type") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Type") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

DriveFollowUpRestrict: Drive follow-up search restricts (e.g. "followup:suggestions").

func (*DriveFollowUpRestrict) MarshalJSON Uses

func (s *DriveFollowUpRestrict) MarshalJSON() ([]byte, error)

type DriveLocationRestrict Uses

type DriveLocationRestrict struct {
    // Possible values:
    //   "UNSPECIFIED"
    //   "TRASHED"
    //   "STARRED"
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Type") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Type") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

DriveLocationRestrict: Drive location search restricts (e.g. "is:starred").

func (*DriveLocationRestrict) MarshalJSON Uses

func (s *DriveLocationRestrict) MarshalJSON() ([]byte, error)

type DriveMimeTypeRestrict Uses

type DriveMimeTypeRestrict struct {
    // Possible values:
    //   "UNSPECIFIED"
    //   "PDF"
    //   "DOCUMENT"
    //   "PRESENTATION"
    //   "SPREADSHEET"
    //   "FORM"
    //   "DRAWING"
    //   "SCRIPT"
    //   "MAP"
    //   "IMAGE"
    //   "AUDIO"
    //   "VIDEO"
    //   "FOLDER"
    //   "ARCHIVE"
    //   "SITE"
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Type") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Type") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

DriveMimeTypeRestrict: Drive mime-type search restricts (e.g. "type:pdf").

func (*DriveMimeTypeRestrict) MarshalJSON Uses

func (s *DriveMimeTypeRestrict) MarshalJSON() ([]byte, error)

type DriveTimeSpanRestrict Uses

type DriveTimeSpanRestrict struct {
    // Possible values:
    //   "UNSPECIFIED"
    //   "TODAY"
    //   "YESTERDAY"
    //   "LAST_7_DAYS"
    //   "LAST_30_DAYS" - Not Enabled
    //   "LAST_90_DAYS" - Not Enabled
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Type") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Type") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

DriveTimeSpanRestrict: The time span search restrict (e.g. "after:2017-09-11 before:2017-09-12").

func (*DriveTimeSpanRestrict) MarshalJSON Uses

func (s *DriveTimeSpanRestrict) MarshalJSON() ([]byte, error)

type EmailAddress Uses

type EmailAddress struct {
    // EmailAddress: The email address.
    EmailAddress string `json:"emailAddress,omitempty"`

    // ForceSendFields is a list of field names (e.g. "EmailAddress") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "EmailAddress") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

EmailAddress: A person's email address.

func (*EmailAddress) MarshalJSON Uses

func (s *EmailAddress) MarshalJSON() ([]byte, error)

type EnumOperatorOptions Uses

type EnumOperatorOptions struct {
    // OperatorName: Indicates the operator name required in the query in
    // order to isolate the
    // enum property. For example, if operatorName is *priority* and
    // the
    // property's name is *priorityVal*, then queries
    // like
    // *priority:&lt;value&gt;* will show results only where the value of
    // the
    // property named *priorityVal* matches *&lt;value&gt;*. By contrast,
    // a
    // search that uses the same *&lt;value&gt;* without an operator will
    // return
    // all items where *&lt;value&gt;* matches the value of any
    // String
    // properties or text within the content field for the item.
    // The operator name can only contain lowercase letters (a-z).
    // The maximum length is 32 characters.
    OperatorName string `json:"operatorName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "OperatorName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "OperatorName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

EnumOperatorOptions: Used to provide a search operator for enum properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched. For example, if you provide no operator for a *priority* enum property with possible values *p0* and *p1*, a query that contains the term *p0* will return items that have *p0* as the value of the *priority* property, as well as any items that contain the string *p0* in other fields. If you provide an operator name for the enum, such as *priority*, then search users can use that operator to refine results to only items that have *p0* as this property's value, with the query *priority:p0*.

func (*EnumOperatorOptions) MarshalJSON Uses

func (s *EnumOperatorOptions) MarshalJSON() ([]byte, error)

type EnumPropertyOptions Uses

type EnumPropertyOptions struct {
    // OperatorOptions: If set, describes how the enum should be used as a
    // search operator.
    OperatorOptions *EnumOperatorOptions `json:"operatorOptions,omitempty"`

    // OrderedRanking: Used to specify the ordered ranking for the
    // enumeration that determines how
    // the integer values provided in the possible EnumValuePairs are used
    // to rank
    // results. If specified, integer values must be provided for all
    // possible
    // EnumValuePair values given for this property. Can only be used
    // if
    // isRepeatable
    // is false.
    //
    // Possible values:
    //   "NO_ORDER" - There is no ranking order for the property. Results
    // will not be adjusted
    // by this property's value.
    //   "ASCENDING" - This property is ranked in ascending order. Lower
    // values indicate lower
    // ranking.
    //   "DESCENDING" - This property is ranked in descending order. Lower
    // values indicate
    // higher ranking.
    OrderedRanking string `json:"orderedRanking,omitempty"`

    // PossibleValues: The list of possible values for the enumeration
    // property. All
    // EnumValuePairs must provide a string value. If you specify an integer
    // value
    // for one EnumValuePair, then all possible EnumValuePairs must provide
    // an
    // integer value. Both the string value and integer value must be unique
    // over
    // all possible values. Once set, possible values cannot be removed
    // or
    // modified. If you supply an ordered ranking and think you might
    // insert
    // additional enum values in the future, leave gaps in the initial
    // integer
    // values to allow adding a value in between previously registered
    // values.
    // The maximum number of elements is 100.
    PossibleValues []*EnumValuePair `json:"possibleValues,omitempty"`

    // ForceSendFields is a list of field names (e.g. "OperatorOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "OperatorOptions") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

EnumPropertyOptions: Options for enum properties, which allow you to define a restricted set of strings to match user queries, set rankings for those string values, and define an operator name to be paired with those strings so that users can narrow results to only items with a specific value. For example, for items in a request tracking system with priority information, you could define *p0* as an allowable enum value and tie this enum to the operator name *priority* so that search users could add *priority:p0* to their query to restrict the set of results to only those items indexed with the value *p0*.

func (*EnumPropertyOptions) MarshalJSON Uses

func (s *EnumPropertyOptions) MarshalJSON() ([]byte, error)

type EnumValuePair Uses

type EnumValuePair struct {
    // IntegerValue: The integer value of the EnumValuePair which must be
    // non-negative.
    // Optional.
    IntegerValue int64 `json:"integerValue,omitempty"`

    // StringValue: The string value of the EnumValuePair.
    // The maximum length is 32 characters.
    StringValue string `json:"stringValue,omitempty"`

    // ForceSendFields is a list of field names (e.g. "IntegerValue") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "IntegerValue") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

EnumValuePair: The enumeration value pair defines two things: a required string value and an optional integer value. The string value defines the necessary query term required to retrieve that item, such as *p0* for a priority item. The integer value determines the ranking of that string value relative to other enumerated values for the same property. For example, you might associate *p0* with *0* and define another enum pair such as *p1* and *1*. You must use the integer value in combination with ordered ranking to set the ranking of a given value relative to other enumerated values for the same property name. Here, a ranking order of DESCENDING for *priority* properties results in a ranking boost for items indexed with a value of *p0* compared to items indexed with a value of *p1*. Without a specified ranking order, the integer value has no effect on item ranking.

func (*EnumValuePair) MarshalJSON Uses

func (s *EnumValuePair) MarshalJSON() ([]byte, error)

type EnumValues Uses

type EnumValues struct {
    // Values: The maximum allowable length for string values is 32
    // characters.
    Values []string `json:"values,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Values") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Values") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

EnumValues: List of enum values.

func (*EnumValues) MarshalJSON Uses

func (s *EnumValues) MarshalJSON() ([]byte, error)

type ErrorInfo Uses

type ErrorInfo struct {
    ErrorMessages []*ErrorMessage `json:"errorMessages,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ErrorMessages") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ErrorMessages") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ErrorInfo: Error information about the response.

func (*ErrorInfo) MarshalJSON Uses

func (s *ErrorInfo) MarshalJSON() ([]byte, error)

type ErrorMessage Uses

type ErrorMessage struct {
    ErrorMessage string `json:"errorMessage,omitempty"`

    Source *Source `json:"source,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ErrorMessage") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ErrorMessage") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ErrorMessage: Error message per source response.

func (*ErrorMessage) MarshalJSON Uses

func (s *ErrorMessage) MarshalJSON() ([]byte, error)

type FacetBucket Uses

type FacetBucket struct {
    // Count: Number of results that match the bucket value. Counts are only
    // returned
    // for searches when count accuracy is ensured. Can be empty.
    Count int64 `json:"count,omitempty"`

    // Percentage: Percent of results that match the bucket value. This
    // value is between
    // (0-100]. Percentages are returned for all searches, but are an
    // estimate.
    // Because percentages are always returned, you should render
    // percentages
    // instead of counts.
    Percentage int64 `json:"percentage,omitempty"`

    Value *Value `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Count") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Count") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

FacetBucket: A bucket in a facet is the basic unit of operation. A bucket can comprise either a single value OR a contiguous range of values, depending on the type of the field bucketed. FacetBucket is currently used only for returning the response object.

func (*FacetBucket) MarshalJSON Uses

func (s *FacetBucket) MarshalJSON() ([]byte, error)

type FacetOptions Uses

type FacetOptions struct {
    // NumFacetBuckets: Maximum number of facet buckets that should be
    // returned for this facet.
    // Defaults to 10.
    // Maximum value is 100.
    NumFacetBuckets int64 `json:"numFacetBuckets,omitempty"`

    // ObjectType: If object_type is set, only those objects of that type
    // will be used to
    // compute facets. If empty, then all objects will be used to compute
    // facets.
    ObjectType string `json:"objectType,omitempty"`

    // OperatorName: Name of the operator chosen for faceting.
    // @see
    // cloudsearch.SchemaPropertyOptions
    OperatorName string `json:"operatorName,omitempty"`

    // SourceName: Source name to facet on. Format:
    // datasources/{source_id}
    // If empty, all data sources will be used.
    SourceName string `json:"sourceName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "NumFacetBuckets") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "NumFacetBuckets") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

FacetOptions: Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.

func (*FacetOptions) MarshalJSON Uses

func (s *FacetOptions) MarshalJSON() ([]byte, error)

type FacetResult Uses

type FacetResult struct {
    // Buckets: FacetBuckets for values in response containing at least a
    // single result.
    Buckets []*FacetBucket `json:"buckets,omitempty"`

    // ObjectType: Object type for which facet results are returned. Can be
    // empty.
    ObjectType string `json:"objectType,omitempty"`

    // OperatorName: Name of the operator chosen for faceting.
    // @see
    // cloudsearch.SchemaPropertyOptions
    OperatorName string `json:"operatorName,omitempty"`

    // SourceName: Source name for which facet results are returned. Will
    // not be empty.
    SourceName string `json:"sourceName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Buckets") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Buckets") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

FacetResult: Source specific facet response

func (*FacetResult) MarshalJSON Uses

func (s *FacetResult) MarshalJSON() ([]byte, error)

type FieldViolation Uses

type FieldViolation struct {
    // Description: Description of the error.
    Description string `json:"description,omitempty"`

    // Field: Path of field with violation.
    Field string `json:"field,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Description") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Description") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*FieldViolation) MarshalJSON Uses

func (s *FieldViolation) MarshalJSON() ([]byte, error)

type Filter Uses

type Filter struct {
    CompositeFilter *CompositeFilter `json:"compositeFilter,omitempty"`

    ValueFilter *ValueFilter `json:"valueFilter,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CompositeFilter") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CompositeFilter") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

Filter: A generic way of expressing filters in a query, which supports two approaches: <br/><br/> **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. <br/> **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND.

func (*Filter) MarshalJSON Uses

func (s *Filter) MarshalJSON() ([]byte, error)

type FilterOptions Uses

type FilterOptions struct {
    // Filter: Generic filter to restrict the search, such as `lang:en`,
    // `site:xyz`.
    Filter *Filter `json:"filter,omitempty"`

    // ObjectType: If object_type is set, only objects of that type are
    // returned. This should
    // correspond to the name of the object that was registered within
    // the
    // definition of schema. The maximum length is 256 characters.
    ObjectType string `json:"objectType,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Filter") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Filter") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

FilterOptions: Filter options to be applied on query.

func (*FilterOptions) MarshalJSON Uses

func (s *FilterOptions) MarshalJSON() ([]byte, error)

type FreshnessOptions Uses

type FreshnessOptions struct {
    // FreshnessDuration: The duration after which an object should be
    // considered
    // stale. The default value is 180 days (in seconds).
    FreshnessDuration string `json:"freshnessDuration,omitempty"`

    // FreshnessProperty: This property indicates the freshness level of the
    // object in the index.
    // If set, this property must be a top-level property within
    // the
    // property definitions
    // and it must be a
    // timestamp type
    // or
    // date type.
    // Otherwise, the Indexing API uses
    // updateTime
    // as the freshness indicator.
    // The maximum length is 256 characters.
    //
    // When a property is used to calculate fresheness, the value
    // defaults
    // to 2 years from the current time.
    FreshnessProperty string `json:"freshnessProperty,omitempty"`

    // ForceSendFields is a list of field names (e.g. "FreshnessDuration")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "FreshnessDuration") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

FreshnessOptions: Indicates which freshness property to use when adjusting search ranking for an item. Fresher, more recent dates indicate higher quality. Use the freshness option property that best works with your data. For fileshare documents, last modified time is most relevant. For calendar event data, the time when the event occurs is a more relevant freshness indicator. In this way, calendar events that occur closer to the time of the search query are considered higher quality and ranked accordingly.

func (*FreshnessOptions) MarshalJSON Uses

func (s *FreshnessOptions) MarshalJSON() ([]byte, error)

type GSuitePrincipal Uses

type GSuitePrincipal struct {
    // GsuiteDomain: This principal represents all users of the G Suite
    // domain of the
    // customer.
    GsuiteDomain bool `json:"gsuiteDomain,omitempty"`

    // GsuiteGroupEmail: This principal references a G Suite group account
    GsuiteGroupEmail string `json:"gsuiteGroupEmail,omitempty"`

    // GsuiteUserEmail: This principal references a G Suite user account
    GsuiteUserEmail string `json:"gsuiteUserEmail,omitempty"`

    // ForceSendFields is a list of field names (e.g. "GsuiteDomain") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "GsuiteDomain") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*GSuitePrincipal) MarshalJSON Uses

func (s *GSuitePrincipal) MarshalJSON() ([]byte, error)

type GetCustomerIndexStatsResponse Uses

type GetCustomerIndexStatsResponse struct {
    // Stats: Summary of indexed item counts, one for each day in the
    // requested range.
    Stats []*CustomerIndexStats `json:"stats,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Stats") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Stats") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*GetCustomerIndexStatsResponse) MarshalJSON Uses

func (s *GetCustomerIndexStatsResponse) MarshalJSON() ([]byte, error)

type GetDataSourceIndexStatsResponse Uses

type GetDataSourceIndexStatsResponse struct {
    // Stats: Summary of indexed item counts, one for each day in the
    // requested range.
    Stats []*DataSourceIndexStats `json:"stats,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Stats") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Stats") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*GetDataSourceIndexStatsResponse) MarshalJSON Uses

func (s *GetDataSourceIndexStatsResponse) MarshalJSON() ([]byte, error)

type GmailActionRestrict Uses

type GmailActionRestrict struct {
    // Possible values:
    //   "UNSPECIFIED"
    //   "UNREAD" - is:unread
    //   "READ" - is:read
    //   "REPLIED_TO" - label:^io_re
    //   "MUTED" - label:mute
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Type") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Type") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

GmailActionRestrict: Gmail Action restricts (i.e. read/replied/snoozed).

func (*GmailActionRestrict) MarshalJSON Uses

func (s *GmailActionRestrict) MarshalJSON() ([]byte, error)

type GmailAttachmentRestrict Uses

type GmailAttachmentRestrict struct {
    // Possible values:
    //   "UNSPECIFIED"
    //   "HAS_ATTACHMENT" - has:attachment
    //   "HAS_PHOTO" - has photos (changes to filename:(jpg OR jpeg OR png)
    // when typed)
    //   "HAS_DRIVE" - has:drive
    //   "HAS_DOCUMENT" - has:document
    //   "HAS_SPREADSHEET" - has:spreadsheet
    //   "HAS_PRESENTATION" - has:presentation
    //   "HAS_YOUTUBE" - has:youtube
    //   "HAS_PDF" - filename:pdf
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Type") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Type") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

GmailAttachmentRestrict: Gmail Attachment restricts (i.e. has:attachment, has:drive, filename:pdf).

func (*GmailAttachmentRestrict) MarshalJSON Uses

func (s *GmailAttachmentRestrict) MarshalJSON() ([]byte, error)

type GmailFolderRestrict Uses

type GmailFolderRestrict struct {
    // Possible values:
    //   "UNSPECIFIED"
    //   "IN_SENT" - in:sent
    //   "IN_DRAFT" - in:draft
    //   "CHATS" - label:chats
    //   "IN_TRASH" - in:trash
    //   "USER_GENERATED_LABEL" - label:<user generated>
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Type") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Type") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

GmailFolderRestrict: Gmail Folder restricts (i.e. in Drafts/Sent/Chats/User Generated Labels).

func (*GmailFolderRestrict) MarshalJSON Uses

func (s *GmailFolderRestrict) MarshalJSON() ([]byte, error)

type GmailIntelligentRestrict Uses

type GmailIntelligentRestrict struct {
    // Possible values:
    //   "UNSPECIFIED"
    //   "SOCIAL" - category:social
    //   "UPDATES" - category:updates
    //   "FORUMS" - category:forums
    //   "PROMOTIONS" - category:promotions
    //   "IMPORTANT" - is:important
    //   "FLIGHT_RESERVATION" - label:^cob_sm_flightreservation
    //   "LODGING_RESERVATION" - label:^cob_sm_lodgingreservation
    //   "CAR_RESERVATION" - label:^cob_sm_rentalcarreservation
    //   "BUS_RESERVATION" - label:^cob_sm_busreservation
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Type") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Type") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

GmailIntelligentRestrict: Gmail Intelligent restricts (i.e. smartlabels, important).

func (*GmailIntelligentRestrict) MarshalJSON Uses

func (s *GmailIntelligentRestrict) MarshalJSON() ([]byte, error)

type GmailTimeRestrict Uses

type GmailTimeRestrict struct {
    // Possible values:
    //   "UNSPECIFIED"
    //   "FROM_THIS_WEEK" - newer_than:7d
    //   "OLDER_THAN_ONE_YEAR" - older_than:1y
    //   "FROM_TODAY" - newer_than:1d
    //   "FROM_YESTERDAY" - newer_than:2d older_than:1d
    //   "FROM_THIS_MONTH" - newer_than:30d
    //   "FROM_CERTAIN_MONTH" - This will read as something like "From
    // November" and will have operator
    // before:X after:Y
    //   "OLDER_THAN_TODAY" - older_than:1d
    //   "OLDER_THAN_YESTERDAY" - older_than:2d
    //   "OLDER_THAN_A_WEEK" - older_than:7d
    //   "OLDER_THAN_A_MONTH" - older_than:30d
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Type") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Type") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

GmailTimeRestrict: Gmail Time restricts (i.e. received today, this week).

func (*GmailTimeRestrict) MarshalJSON Uses

func (s *GmailTimeRestrict) MarshalJSON() ([]byte, error)

type HtmlOperatorOptions Uses

type HtmlOperatorOptions struct {
    // OperatorName: Indicates the operator name required in the query in
    // order to isolate the
    // html property. For example, if operatorName is *subject* and
    // the
    // property's name is *subjectLine*, then queries
    // like
    // *subject:&lt;value&gt;* will show results only where the value of
    // the
    // property named *subjectLine* matches *&lt;value&gt;*. By contrast,
    // a
    // search that uses the same *&lt;value&gt;* without an operator will
    // return
    // all items where *&lt;value&gt;* matches the value of any
    // html properties or text within the content field for the item.
    // The operator name can only contain lowercase letters (a-z).
    // The maximum length is 32 characters.
    OperatorName string `json:"operatorName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "OperatorName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "OperatorName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

HtmlOperatorOptions: Used to provide a search operator for html properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.

func (*HtmlOperatorOptions) MarshalJSON Uses

func (s *HtmlOperatorOptions) MarshalJSON() ([]byte, error)

type HtmlPropertyOptions Uses

type HtmlPropertyOptions struct {
    // OperatorOptions: If set, describes how the property should be used as
    // a search operator.
    OperatorOptions *HtmlOperatorOptions `json:"operatorOptions,omitempty"`

    // RetrievalImportance: Indicates the search quality importance of the
    // tokens within the
    // field when used for retrieval. Can only be set to DEFAULT or NONE.
    RetrievalImportance *RetrievalImportance `json:"retrievalImportance,omitempty"`

    // ForceSendFields is a list of field names (e.g. "OperatorOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "OperatorOptions") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

HtmlPropertyOptions: Options for html properties.

func (*HtmlPropertyOptions) MarshalJSON Uses

func (s *HtmlPropertyOptions) MarshalJSON() ([]byte, error)

type HtmlValues Uses

type HtmlValues struct {
    // Values: The maximum allowable length for html values is 2048
    // characters.
    Values []string `json:"values,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Values") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Values") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

HtmlValues: List of html values.

func (*HtmlValues) MarshalJSON Uses

func (s *HtmlValues) MarshalJSON() ([]byte, error)

type IndexItemOptions Uses

type IndexItemOptions struct {
    // AllowUnknownGsuitePrincipals: Specifies if the index request should
    // allow gsuite principals that do not
    // exist or are deleted in the index request.
    AllowUnknownGsuitePrincipals bool `json:"allowUnknownGsuitePrincipals,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "AllowUnknownGsuitePrincipals") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g.
    // "AllowUnknownGsuitePrincipals") to include in API requests with the
    // JSON null value. By default, fields with empty values are omitted
    // from API requests. However, any field with an empty value appearing
    // in NullFields will be sent to the server as null. It is an error if a
    // field in this list has a non-empty value. This may be used to include
    // null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*IndexItemOptions) MarshalJSON Uses

func (s *IndexItemOptions) MarshalJSON() ([]byte, error)

type IndexItemRequest Uses

type IndexItemRequest struct {
    // ConnectorName: Name of connector making this call.
    // <br />Format: datasources/{source_id}/connectors/{ID}
    ConnectorName string `json:"connectorName,omitempty"`

    // DebugOptions: Common debug options.
    DebugOptions *DebugOptions `json:"debugOptions,omitempty"`

    IndexItemOptions *IndexItemOptions `json:"indexItemOptions,omitempty"`

    // Item: Name of the item.
    // Format:
    // datasources/{source_id}/items/{item_id}
    Item *Item `json:"item,omitempty"`

    // Mode: Required. The RequestMode for this request.
    //
    // Possible values:
    //   "UNSPECIFIED" - Priority is not specified in the update
    // request.
    // Leaving priority unspecified results in an update failure.
    //   "SYNCHRONOUS" - For real-time updates.
    //   "ASYNCHRONOUS" - For changes that are executed after the response
    // is sent back to the
    // caller.
    Mode string `json:"mode,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ConnectorName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ConnectorName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*IndexItemRequest) MarshalJSON Uses

func (s *IndexItemRequest) MarshalJSON() ([]byte, error)

type IndexingDatasourcesDeleteSchemaCall Uses

type IndexingDatasourcesDeleteSchemaCall struct {
    // contains filtered or unexported fields
}

func (*IndexingDatasourcesDeleteSchemaCall) Context Uses

func (c *IndexingDatasourcesDeleteSchemaCall) Context(ctx context.Context) *IndexingDatasourcesDeleteSchemaCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IndexingDatasourcesDeleteSchemaCall) DebugOptionsEnableDebugging Uses

func (c *IndexingDatasourcesDeleteSchemaCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesDeleteSchemaCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*IndexingDatasourcesDeleteSchemaCall) Do Uses

func (c *IndexingDatasourcesDeleteSchemaCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.indexing.datasources.deleteSchema" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IndexingDatasourcesDeleteSchemaCall) Fields Uses

func (c *IndexingDatasourcesDeleteSchemaCall) Fields(s ...googleapi.Field) *IndexingDatasourcesDeleteSchemaCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IndexingDatasourcesDeleteSchemaCall) Header Uses

func (c *IndexingDatasourcesDeleteSchemaCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type IndexingDatasourcesGetSchemaCall Uses

type IndexingDatasourcesGetSchemaCall struct {
    // contains filtered or unexported fields
}

func (*IndexingDatasourcesGetSchemaCall) Context Uses

func (c *IndexingDatasourcesGetSchemaCall) Context(ctx context.Context) *IndexingDatasourcesGetSchemaCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IndexingDatasourcesGetSchemaCall) DebugOptionsEnableDebugging Uses

func (c *IndexingDatasourcesGetSchemaCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesGetSchemaCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*IndexingDatasourcesGetSchemaCall) Do Uses

func (c *IndexingDatasourcesGetSchemaCall) Do(opts ...googleapi.CallOption) (*Schema, error)

Do executes the "cloudsearch.indexing.datasources.getSchema" call. Exactly one of *Schema or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Schema.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IndexingDatasourcesGetSchemaCall) Fields Uses

func (c *IndexingDatasourcesGetSchemaCall) Fields(s ...googleapi.Field) *IndexingDatasourcesGetSchemaCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IndexingDatasourcesGetSchemaCall) Header Uses

func (c *IndexingDatasourcesGetSchemaCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*IndexingDatasourcesGetSchemaCall) IfNoneMatch Uses

func (c *IndexingDatasourcesGetSchemaCall) IfNoneMatch(entityTag string) *IndexingDatasourcesGetSchemaCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type IndexingDatasourcesItemsDeleteCall Uses

type IndexingDatasourcesItemsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*IndexingDatasourcesItemsDeleteCall) ConnectorName Uses

func (c *IndexingDatasourcesItemsDeleteCall) ConnectorName(connectorName string) *IndexingDatasourcesItemsDeleteCall

ConnectorName sets the optional parameter "connectorName": Name of connector making this call. <br />Format: datasources/{source_id}/connectors/{ID}

func (*IndexingDatasourcesItemsDeleteCall) Context Uses

func (c *IndexingDatasourcesItemsDeleteCall) Context(ctx context.Context) *IndexingDatasourcesItemsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IndexingDatasourcesItemsDeleteCall) DebugOptionsEnableDebugging Uses

func (c *IndexingDatasourcesItemsDeleteCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesItemsDeleteCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*IndexingDatasourcesItemsDeleteCall) Do Uses

func (c *IndexingDatasourcesItemsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.indexing.datasources.items.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IndexingDatasourcesItemsDeleteCall) Fields Uses

func (c *IndexingDatasourcesItemsDeleteCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IndexingDatasourcesItemsDeleteCall) Header Uses

func (c *IndexingDatasourcesItemsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*IndexingDatasourcesItemsDeleteCall) Mode Uses

func (c *IndexingDatasourcesItemsDeleteCall) Mode(mode string) *IndexingDatasourcesItemsDeleteCall

Mode sets the optional parameter "mode": Required. The RequestMode for this request.

Possible values:

"UNSPECIFIED"
"SYNCHRONOUS"
"ASYNCHRONOUS"

func (*IndexingDatasourcesItemsDeleteCall) Version Uses

func (c *IndexingDatasourcesItemsDeleteCall) Version(version string) *IndexingDatasourcesItemsDeleteCall

Version sets the optional parameter "version": Required. The incremented version of the item to delete from the index. The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. <br /><br /> Cloud Search Indexing won't delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes.

type IndexingDatasourcesItemsDeleteQueueItemsCall Uses

type IndexingDatasourcesItemsDeleteQueueItemsCall struct {
    // contains filtered or unexported fields
}

func (*IndexingDatasourcesItemsDeleteQueueItemsCall) Context Uses

func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) Context(ctx context.Context) *IndexingDatasourcesItemsDeleteQueueItemsCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IndexingDatasourcesItemsDeleteQueueItemsCall) Do Uses

func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.indexing.datasources.items.deleteQueueItems" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IndexingDatasourcesItemsDeleteQueueItemsCall) Fields Uses

func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsDeleteQueueItemsCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IndexingDatasourcesItemsDeleteQueueItemsCall) Header Uses

func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type IndexingDatasourcesItemsGetCall Uses

type IndexingDatasourcesItemsGetCall struct {
    // contains filtered or unexported fields
}

func (*IndexingDatasourcesItemsGetCall) ConnectorName Uses

func (c *IndexingDatasourcesItemsGetCall) ConnectorName(connectorName string) *IndexingDatasourcesItemsGetCall

ConnectorName sets the optional parameter "connectorName": Name of connector making this call. <br />Format: datasources/{source_id}/connectors/{ID}

func (*IndexingDatasourcesItemsGetCall) Context Uses

func (c *IndexingDatasourcesItemsGetCall) Context(ctx context.Context) *IndexingDatasourcesItemsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IndexingDatasourcesItemsGetCall) DebugOptionsEnableDebugging Uses

func (c *IndexingDatasourcesItemsGetCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesItemsGetCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*IndexingDatasourcesItemsGetCall) Do Uses

func (c *IndexingDatasourcesItemsGetCall) Do(opts ...googleapi.CallOption) (*Item, error)

Do executes the "cloudsearch.indexing.datasources.items.get" call. Exactly one of *Item or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Item.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IndexingDatasourcesItemsGetCall) Fields Uses

func (c *IndexingDatasourcesItemsGetCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IndexingDatasourcesItemsGetCall) Header Uses

func (c *IndexingDatasourcesItemsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*IndexingDatasourcesItemsGetCall) IfNoneMatch Uses

func (c *IndexingDatasourcesItemsGetCall) IfNoneMatch(entityTag string) *IndexingDatasourcesItemsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type IndexingDatasourcesItemsIndexCall Uses

type IndexingDatasourcesItemsIndexCall struct {
    // contains filtered or unexported fields
}

func (*IndexingDatasourcesItemsIndexCall) Context Uses

func (c *IndexingDatasourcesItemsIndexCall) Context(ctx context.Context) *IndexingDatasourcesItemsIndexCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IndexingDatasourcesItemsIndexCall) Do Uses

func (c *IndexingDatasourcesItemsIndexCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.indexing.datasources.items.index" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IndexingDatasourcesItemsIndexCall) Fields Uses

func (c *IndexingDatasourcesItemsIndexCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsIndexCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IndexingDatasourcesItemsIndexCall) Header Uses

func (c *IndexingDatasourcesItemsIndexCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type IndexingDatasourcesItemsListCall Uses

type IndexingDatasourcesItemsListCall struct {
    // contains filtered or unexported fields
}

func (*IndexingDatasourcesItemsListCall) Brief Uses

func (c *IndexingDatasourcesItemsListCall) Brief(brief bool) *IndexingDatasourcesItemsListCall

Brief sets the optional parameter "brief": When set to true, the indexing system only populates the following fields: name, version, metadata.hash, structured_data.hash, content.ha sh. <br />If this value is false, then all the fields are populated in Item.

func (*IndexingDatasourcesItemsListCall) ConnectorName Uses

func (c *IndexingDatasourcesItemsListCall) ConnectorName(connectorName string) *IndexingDatasourcesItemsListCall

ConnectorName sets the optional parameter "connectorName": Name of connector making this call. <br />Format: datasources/{source_id}/connectors/{ID}

func (*IndexingDatasourcesItemsListCall) Context Uses

func (c *IndexingDatasourcesItemsListCall) Context(ctx context.Context) *IndexingDatasourcesItemsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IndexingDatasourcesItemsListCall) DebugOptionsEnableDebugging Uses

func (c *IndexingDatasourcesItemsListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesItemsListCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*IndexingDatasourcesItemsListCall) Do Uses

func (c *IndexingDatasourcesItemsListCall) Do(opts ...googleapi.CallOption) (*ListItemsResponse, error)

Do executes the "cloudsearch.indexing.datasources.items.list" call. Exactly one of *ListItemsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListItemsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IndexingDatasourcesItemsListCall) Fields Uses

func (c *IndexingDatasourcesItemsListCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IndexingDatasourcesItemsListCall) Header Uses

func (c *IndexingDatasourcesItemsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*IndexingDatasourcesItemsListCall) IfNoneMatch Uses

func (c *IndexingDatasourcesItemsListCall) IfNoneMatch(entityTag string) *IndexingDatasourcesItemsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*IndexingDatasourcesItemsListCall) PageSize Uses

func (c *IndexingDatasourcesItemsListCall) PageSize(pageSize int64) *IndexingDatasourcesItemsListCall

PageSize sets the optional parameter "pageSize": Maximum number of items to fetch in a request. The max value is 1000 when brief is true. The max value is 10 if brief is false. <br />The default value is 10

func (*IndexingDatasourcesItemsListCall) PageToken Uses

func (c *IndexingDatasourcesItemsListCall) PageToken(pageToken string) *IndexingDatasourcesItemsListCall

PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.

func (*IndexingDatasourcesItemsListCall) Pages Uses

func (c *IndexingDatasourcesItemsListCall) Pages(ctx context.Context, f func(*ListItemsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type IndexingDatasourcesItemsPollCall Uses

type IndexingDatasourcesItemsPollCall struct {
    // contains filtered or unexported fields
}

func (*IndexingDatasourcesItemsPollCall) Context Uses

func (c *IndexingDatasourcesItemsPollCall) Context(ctx context.Context) *IndexingDatasourcesItemsPollCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IndexingDatasourcesItemsPollCall) Do Uses

func (c *IndexingDatasourcesItemsPollCall) Do(opts ...googleapi.CallOption) (*PollItemsResponse, error)

Do executes the "cloudsearch.indexing.datasources.items.poll" call. Exactly one of *PollItemsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PollItemsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IndexingDatasourcesItemsPollCall) Fields Uses

func (c *IndexingDatasourcesItemsPollCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsPollCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IndexingDatasourcesItemsPollCall) Header Uses

func (c *IndexingDatasourcesItemsPollCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type IndexingDatasourcesItemsPushCall Uses

type IndexingDatasourcesItemsPushCall struct {
    // contains filtered or unexported fields
}

func (*IndexingDatasourcesItemsPushCall) Context Uses

func (c *IndexingDatasourcesItemsPushCall) Context(ctx context.Context) *IndexingDatasourcesItemsPushCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IndexingDatasourcesItemsPushCall) Do Uses

func (c *IndexingDatasourcesItemsPushCall) Do(opts ...googleapi.CallOption) (*Item, error)

Do executes the "cloudsearch.indexing.datasources.items.push" call. Exactly one of *Item or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Item.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IndexingDatasourcesItemsPushCall) Fields Uses

func (c *IndexingDatasourcesItemsPushCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsPushCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IndexingDatasourcesItemsPushCall) Header Uses

func (c *IndexingDatasourcesItemsPushCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type IndexingDatasourcesItemsService Uses

type IndexingDatasourcesItemsService struct {
    // contains filtered or unexported fields
}

func NewIndexingDatasourcesItemsService Uses

func NewIndexingDatasourcesItemsService(s *Service) *IndexingDatasourcesItemsService

func (*IndexingDatasourcesItemsService) Delete Uses

func (r *IndexingDatasourcesItemsService) Delete(name string) *IndexingDatasourcesItemsDeleteCall

Delete: Deletes Item resource for the specified resource name.

func (*IndexingDatasourcesItemsService) DeleteQueueItems Uses

func (r *IndexingDatasourcesItemsService) DeleteQueueItems(name string, deletequeueitemsrequest *DeleteQueueItemsRequest) *IndexingDatasourcesItemsDeleteQueueItemsCall

DeleteQueueItems: Deletes all items in a queue. This method is useful for deleting stale items.

func (*IndexingDatasourcesItemsService) Get Uses

func (r *IndexingDatasourcesItemsService) Get(name string) *IndexingDatasourcesItemsGetCall

Get: Gets Item resource by item name.

func (*IndexingDatasourcesItemsService) Index Uses

func (r *IndexingDatasourcesItemsService) Index(name string, indexitemrequest *IndexItemRequest) *IndexingDatasourcesItemsIndexCall

Index: Updates Item ACL, metadata, and content. It will insert the Item if it does not exist. This method does not support partial updates. Fields with no provided values are cleared out in the Cloud Search index.

func (*IndexingDatasourcesItemsService) List Uses

func (r *IndexingDatasourcesItemsService) List(name string) *IndexingDatasourcesItemsListCall

List: Lists all or a subset of Item resources.

func (*IndexingDatasourcesItemsService) Poll Uses

func (r *IndexingDatasourcesItemsService) Poll(name string, pollitemsrequest *PollItemsRequest) *IndexingDatasourcesItemsPollCall

Poll: Polls for unreserved items from the indexing queue and marks a set as reserved, starting with items that have the oldest timestamp from the highest priority ItemStatus. The priority order is as follows: <br /> ERROR <br /> MODIFIED <br /> NEW_ITEM <br /> ACCEPTED <br /> Reserving items ensures that polling from other threads cannot create overlapping sets.

After handling the reserved items, the client should put items back into the unreserved state, either by calling index, or by calling push with the type REQUEUE.

Items automatically become available (unreserved) after 4 hours even if no update or push method is called.

func (*IndexingDatasourcesItemsService) Push Uses

func (r *IndexingDatasourcesItemsService) Push(name string, pushitemrequest *PushItemRequest) *IndexingDatasourcesItemsPushCall

Push: Pushes an item onto a queue for later polling and updating.

func (*IndexingDatasourcesItemsService) Unreserve Uses

func (r *IndexingDatasourcesItemsService) Unreserve(name string, unreserveitemsrequest *UnreserveItemsRequest) *IndexingDatasourcesItemsUnreserveCall

Unreserve: Unreserves all items from a queue, making them all eligible to be polled. This method is useful for resetting the indexing queue after a connector has been restarted.

func (*IndexingDatasourcesItemsService) Upload Uses

func (r *IndexingDatasourcesItemsService) Upload(name string, startuploaditemrequest *StartUploadItemRequest) *IndexingDatasourcesItemsUploadCall

Upload: Creates an upload session for uploading item content. For items smaller than 100 KB, it's easier to embed the content inline within an index request.

type IndexingDatasourcesItemsUnreserveCall Uses

type IndexingDatasourcesItemsUnreserveCall struct {
    // contains filtered or unexported fields
}

func (*IndexingDatasourcesItemsUnreserveCall) Context Uses

func (c *IndexingDatasourcesItemsUnreserveCall) Context(ctx context.Context) *IndexingDatasourcesItemsUnreserveCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IndexingDatasourcesItemsUnreserveCall) Do Uses

func (c *IndexingDatasourcesItemsUnreserveCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.indexing.datasources.items.unreserve" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IndexingDatasourcesItemsUnreserveCall) Fields Uses

func (c *IndexingDatasourcesItemsUnreserveCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsUnreserveCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IndexingDatasourcesItemsUnreserveCall) Header Uses

func (c *IndexingDatasourcesItemsUnreserveCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type IndexingDatasourcesItemsUploadCall Uses

type IndexingDatasourcesItemsUploadCall struct {
    // contains filtered or unexported fields
}

func (*IndexingDatasourcesItemsUploadCall) Context Uses

func (c *IndexingDatasourcesItemsUploadCall) Context(ctx context.Context) *IndexingDatasourcesItemsUploadCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IndexingDatasourcesItemsUploadCall) Do Uses

func (c *IndexingDatasourcesItemsUploadCall) Do(opts ...googleapi.CallOption) (*UploadItemRef, error)

Do executes the "cloudsearch.indexing.datasources.items.upload" call. Exactly one of *UploadItemRef or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UploadItemRef.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IndexingDatasourcesItemsUploadCall) Fields Uses

func (c *IndexingDatasourcesItemsUploadCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsUploadCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IndexingDatasourcesItemsUploadCall) Header Uses

func (c *IndexingDatasourcesItemsUploadCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type IndexingDatasourcesService Uses

type IndexingDatasourcesService struct {
    Items *IndexingDatasourcesItemsService
    // contains filtered or unexported fields
}

func NewIndexingDatasourcesService Uses

func NewIndexingDatasourcesService(s *Service) *IndexingDatasourcesService

func (*IndexingDatasourcesService) DeleteSchema Uses

func (r *IndexingDatasourcesService) DeleteSchema(name string) *IndexingDatasourcesDeleteSchemaCall

DeleteSchema: Deletes the schema of a data source.

func (*IndexingDatasourcesService) GetSchema Uses

func (r *IndexingDatasourcesService) GetSchema(name string) *IndexingDatasourcesGetSchemaCall

GetSchema: Gets the schema of a data source.

func (*IndexingDatasourcesService) UpdateSchema Uses

func (r *IndexingDatasourcesService) UpdateSchema(name string, updateschemarequest *UpdateSchemaRequest) *IndexingDatasourcesUpdateSchemaCall

UpdateSchema: Updates the schema of a data source.

type IndexingDatasourcesUpdateSchemaCall Uses

type IndexingDatasourcesUpdateSchemaCall struct {
    // contains filtered or unexported fields
}

func (*IndexingDatasourcesUpdateSchemaCall) Context Uses

func (c *IndexingDatasourcesUpdateSchemaCall) Context(ctx context.Context) *IndexingDatasourcesUpdateSchemaCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IndexingDatasourcesUpdateSchemaCall) Do Uses

func (c *IndexingDatasourcesUpdateSchemaCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.indexing.datasources.updateSchema" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IndexingDatasourcesUpdateSchemaCall) Fields Uses

func (c *IndexingDatasourcesUpdateSchemaCall) Fields(s ...googleapi.Field) *IndexingDatasourcesUpdateSchemaCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IndexingDatasourcesUpdateSchemaCall) Header Uses

func (c *IndexingDatasourcesUpdateSchemaCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type IndexingService Uses

type IndexingService struct {
    Datasources *IndexingDatasourcesService
    // contains filtered or unexported fields
}

func NewIndexingService Uses

func NewIndexingService(s *Service) *IndexingService

type IntegerOperatorOptions Uses

type IntegerOperatorOptions struct {
    // GreaterThanOperatorName: Indicates the operator name required in the
    // query in order to isolate the
    // integer property using the greater-than operator. For example,
    // if
    // greaterThanOperatorName is *priorityabove* and the property's name
    // is
    // *priorityVal*, then queries like *priorityabove:&lt;value&gt;*
    // will
    // show results only where the value of the property named *priorityVal*
    // is
    // greater than *&lt;value&gt;*.
    // The operator name can only contain lowercase letters (a-z).
    // The maximum length is 32 characters.
    GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"`

    // LessThanOperatorName: Indicates the operator name required in the
    // query in order to isolate the
    // integer property using the less-than operator. For example,
    // if
    // lessThanOperatorName is *prioritybelow* and the property's name
    // is
    // *priorityVal*, then queries like *prioritybelow:&lt;value&gt;*
    // will
    // show results only where the value of the property named *priorityVal*
    // is
    // less than *&lt;value&gt;*.
    // The operator name can only contain lowercase letters (a-z).
    // The maximum length is 32 characters.
    LessThanOperatorName string `json:"lessThanOperatorName,omitempty"`

    // OperatorName: Indicates the operator name required in the query in
    // order to isolate the
    // integer property. For example, if operatorName is *priority* and
    // the
    // property's name is *priorityVal*, then queries
    // like
    // *priority:&lt;value&gt;* will show results only where the value of
    // the
    // property named *priorityVal* matches *&lt;value&gt;*. By contrast,
    // a
    // search that uses the same *&lt;value&gt;* without an operator will
    // return
    // all items where *&lt;value&gt;* matches the value of any
    // String
    // properties or text within the content field for the item.
    // The operator name can only contain lowercase letters (a-z).
    // The maximum length is 32 characters.
    OperatorName string `json:"operatorName,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "GreaterThanOperatorName") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "GreaterThanOperatorName")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

IntegerOperatorOptions: Used to provide a search operator for integer properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.

func (*IntegerOperatorOptions) MarshalJSON Uses

func (s *IntegerOperatorOptions) MarshalJSON() ([]byte, error)

type IntegerPropertyOptions Uses

type IntegerPropertyOptions struct {
    // MaximumValue: The maximum value of the property. The minimum and
    // maximum values for the
    // property are used to rank results according to the
    // ordered ranking.
    // Indexing requests with values greater than the maximum are accepted
    // and
    // ranked with the same weight as items indexed with the maximum value.
    MaximumValue int64 `json:"maximumValue,omitempty,string"`

    // MinimumValue: The minimum value of the property. The minimum and
    // maximum values for the
    // property are used to rank results according to the
    // ordered ranking.
    // Indexing requests with values less than the minimum are accepted
    // and
    // ranked with the same weight as items indexed with the minimum value.
    MinimumValue int64 `json:"minimumValue,omitempty,string"`

    // OperatorOptions: If set, describes how the integer should be used as
    // a search operator.
    OperatorOptions *IntegerOperatorOptions `json:"operatorOptions,omitempty"`

    // OrderedRanking: Used to specify the ordered ranking for the integer.
    // Can only be used if
    // isRepeatable
    // is false.
    //
    // Possible values:
    //   "NO_ORDER" - There is no ranking order for the property. Results
    // will not be adjusted
    // by this property's value.
    //   "ASCENDING" - This property is ranked in ascending order. Lower
    // values indicate lower
    // ranking.
    //   "DESCENDING" - This property is ranked in descending order. Lower
    // values indicate
    // higher ranking.
    OrderedRanking string `json:"orderedRanking,omitempty"`

    // ForceSendFields is a list of field names (e.g. "MaximumValue") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "MaximumValue") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

IntegerPropertyOptions: Options for integer properties.

func (*IntegerPropertyOptions) MarshalJSON Uses

func (s *IntegerPropertyOptions) MarshalJSON() ([]byte, error)

type IntegerValues Uses

type IntegerValues struct {
    Values googleapi.Int64s `json:"values,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Values") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Values") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

IntegerValues: List of integer values.

func (*IntegerValues) MarshalJSON Uses

func (s *IntegerValues) MarshalJSON() ([]byte, error)

type Interaction Uses

type Interaction struct {
    // InteractionTime: The time when the user acted on the item.  If
    // multiple actions of the same
    // type exist for a single user, only the most recent action is
    // recorded.
    InteractionTime string `json:"interactionTime,omitempty"`

    // Principal: The user that acted on the item.
    Principal *Principal `json:"principal,omitempty"`

    // Possible values:
    //   "UNSPECIFIED" - Invalid value.
    //   "VIEW" - This interaction indicates the user viewed the item.
    //   "EDIT" - This interaction indicates the user edited the item.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "InteractionTime") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InteractionTime") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

Interaction: Represents an interaction between a user and an item.

func (*Interaction) MarshalJSON Uses

func (s *Interaction) MarshalJSON() ([]byte, error)

type Item Uses

type Item struct {
    // Acl: Access control list for this item.
    Acl *ItemAcl `json:"acl,omitempty"`

    // Content: Item content to be indexed and made text searchable.
    Content *ItemContent `json:"content,omitempty"`

    // ItemType: Type for this item.
    //
    // Possible values:
    //   "UNSPECIFIED"
    //   "CONTENT_ITEM" - An item that is indexed for the only purpose of
    // serving information.
    // These items cannot be referred in
    // containerName
    // or inheritAclFrom
    // fields.
    //   "CONTAINER_ITEM" - An item that gets indexed and whose purpose is
    // to supply other items
    // with ACLs and/or contain other items.
    //   "VIRTUAL_CONTAINER_ITEM" - An item that does not get indexed, but
    // otherwise has the same purpose
    // as CONTAINER_ITEM.
    ItemType string `json:"itemType,omitempty"`

    // Metadata: Metadata information.
    Metadata *ItemMetadata `json:"metadata,omitempty"`

    // Name: Name of the Item.
    // Format:
    // datasources/{source_id}/items/{item_id}
    // <br />This is a required field.
    // The maximum length is 1536 characters.
    Name string `json:"name,omitempty"`

    // Payload: Additional state connector can store for this item.
    // The maximum length is 10000 bytes.
    Payload string `json:"payload,omitempty"`

    // Queue: Queue this item belongs to.
    // The maximum length is 100 characters.
    Queue string `json:"queue,omitempty"`

    // Status: Status of the item.
    // Output only field.
    Status *ItemStatus `json:"status,omitempty"`

    // StructuredData: The structured data for the item that should conform
    // to a registered
    // object definition in the schema for the data source.
    StructuredData *ItemStructuredData `json:"structuredData,omitempty"`

    // Version: Required. The indexing system stores the version from the
    // datasource as a
    // byte string and compares the Item version in the index
    // to the version of the queued Item using lexical ordering.
    // <br /><br />
    // Cloud Search Indexing won't index or delete any queued item with
    // a version value that is less than or equal to the version of
    // the
    // currently indexed item.
    // The maximum length for this field is 1024 bytes.
    Version string `json:"version,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Acl") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Acl") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Item: Represents a single object that is an item in the search index, such as a file, folder, or a database record.

func (*Item) MarshalJSON Uses

func (s *Item) MarshalJSON() ([]byte, error)

type ItemAcl Uses

type ItemAcl struct {
    // AclInheritanceType: Sets the type of access rules to apply when an
    // item inherits its ACL from a
    // parent. This should always be set in tandem with
    // the
    // inheritAclFrom
    // field. Also, when the
    // inheritAclFrom field
    // is set, this field should be set to a valid AclInheritanceType.
    //
    // Possible values:
    //   "NOT_APPLICABLE" - The default value when this item does not
    // inherit an ACL.
    // Use NOT_APPLICABLE when
    // inheritAclFrom
    // is empty.  An item without ACL inheritance can still have ACLs
    // supplied
    // by its own readers and
    // deniedReaders fields.
    //   "CHILD_OVERRIDE" - During an authorization conflict, the ACL of the
    // child item determines
    // its read access.
    //   "PARENT_OVERRIDE" - During an authorization conflict, the ACL of
    // the parent item
    // specified in the
    // inheritAclFrom
    // field determines read access.
    //   "BOTH_PERMIT" - Access is granted only if this item and the parent
    // item specified in
    // the inheritAclFrom
    // field both permit read access.
    AclInheritanceType string `json:"aclInheritanceType,omitempty"`

    // DeniedReaders: List of principals who are explicitly denied access to
    // the item in search
    // results. While principals are denied access by default, use denied
    // readers
    // to handle exceptions and override the list allowed readers.
    // The maximum number of elements is 100.
    DeniedReaders []*Principal `json:"deniedReaders,omitempty"`

    // InheritAclFrom: Name of the item to inherit the Access Permission
    // List (ACL) from.
    // Note: ACL inheritance *only* provides access permissions
    // to child items and does not define structural relationships, nor does
    // it
    // provide convenient ways to delete large groups of items.
    // Deleting an ACL parent from the index only alters the access
    // permissions of
    // child items that reference the parent in the
    // inheritAclFrom
    // field. The item is still in the index, but may not
    // visible in search results. By contrast, deletion of a container
    // item
    // also deletes all items that reference the container via
    // the
    // containerName
    // field.
    // The maximum length for this field is 1536 characters.
    InheritAclFrom string `json:"inheritAclFrom,omitempty"`

    // Owners: Optional. List of owners for the item. This field has no
    // bearing on
    // document access permissions. It does, however, offer
    // a slight ranking boosts items where the querying user is an
    // owner.
    // The maximum number of elements is 5.
    Owners []*Principal `json:"owners,omitempty"`

    // Readers: List of principals who are allowed to see the item in search
    // results.
    // Optional if inheriting permissions from another item or if the
    // item
    // is not intended to be visible, such as
    // virtual
    // containers.
    // The maximum number of elements is 1000.
    Readers []*Principal `json:"readers,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AclInheritanceType")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AclInheritanceType") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ItemAcl: Access control list information for the item. For more information see https://developers.google.com/cloud-search/docs/guides/index-your- data#acls

func (*ItemAcl) MarshalJSON Uses

func (s *ItemAcl) MarshalJSON() ([]byte, error)

type ItemContent Uses

type ItemContent struct {
    // ContentDataRef: Upload reference ID of a previously uploaded content
    // via write method.
    ContentDataRef *UploadItemRef `json:"contentDataRef,omitempty"`

    // Possible values:
    //   "UNSPECIFIED" - Invalid value.
    //   "HTML" - contentFormat is HTML.
    //   "TEXT" - contentFormat is free text.
    //   "RAW" - contentFormat is raw bytes.
    ContentFormat string `json:"contentFormat,omitempty"`

    // Hash: Hashing info calculated and provided by the API client for
    // content.
    // Can be used with the items.push method to calculate modified
    // state.
    // The maximum length is 2048 characters.
    Hash string `json:"hash,omitempty"`

    // InlineContent: Content that is supplied inlined within the update
    // method.
    // The maximum length is 102400 bytes (100 KiB).
    InlineContent string `json:"inlineContent,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ContentDataRef") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ContentDataRef") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ItemContent: Content of an item to be indexed and surfaced by Cloud Search.

func (*ItemContent) MarshalJSON Uses

func (s *ItemContent) MarshalJSON() ([]byte, error)

type ItemCountByStatus Uses

type ItemCountByStatus struct {
    // Count: Number of items matching the status code.
    Count int64 `json:"count,omitempty,string"`

    // StatusCode: Status of the items.
    //
    // Possible values:
    //   "CODE_UNSPECIFIED" - Input-only value.  Used with
    // Items.list
    // to list all items in the queue, regardless of status.
    //   "ERROR" - Error encountered by Cloud Search while processing this
    // item.
    // Details of the error are in
    // repositoryError.
    //   "MODIFIED" - Item has been modified in the repository, and is out
    // of date with
    // the version previously accepted into Cloud Search.
    //   "NEW_ITEM" - Item is known to exist in the repository, but is not
    // yet accepted by
    // Cloud Search.
    // An item can be in this state when
    // Items.push
    // has been called for
    // an item of this name that did not exist previously.
    //   "ACCEPTED" - API has accepted the up-to-date data of this item.
    StatusCode string `json:"statusCode,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Count") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Count") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ItemCountByStatus) MarshalJSON Uses

func (s *ItemCountByStatus) MarshalJSON() ([]byte, error)

type ItemMetadata Uses

type ItemMetadata struct {
    // ContainerName: The name of the container for this item.
    // Deletion of the container item leads to automatic deletion of
    // this
    // item.  Note: ACLs are not inherited from a container item.
    // To provide ACL inheritance for an item, use the
    // inheritAclFrom
    // field. The maximum length is 1536 characters.
    ContainerName string `json:"containerName,omitempty"`

    // ContentLanguage: The BCP-47 language code for the item, such as
    // "en-US" or "sr-Latn". For
    // more information,
    // see
    // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
    // Th
    // e maximum length is 32 characters.
    ContentLanguage string `json:"contentLanguage,omitempty"`

    // CreateTime: The time when the item was created in the source
    // repository.
    CreateTime string `json:"createTime,omitempty"`

    // Hash: Hashing value provided by the API caller.
    // This can be used with the
    // items.push
    // method to calculate modified state.
    // The maximum length is 2048 characters.
    Hash string `json:"hash,omitempty"`

    // Interactions: A list of interactions for the item.  Interactions are
    // used to improve
    // Search quality, but are not exposed to end users.
    // The maximum number of elements is 1000.
    Interactions []*Interaction `json:"interactions,omitempty"`

    // Keywords: Additional keywords or phrases that should match the
    // item.
    // Used internally for user generated content.
    // The maximum number of elements is 100.
    // The maximum length is 8192 characters.
    Keywords []string `json:"keywords,omitempty"`

    // MimeType: The original mime-type of
    // ItemContent.content
    // in the source repository.
    // The maximum length is 256 characters.
    MimeType string `json:"mimeType,omitempty"`

    // ObjectType: The type of the item.  This should correspond to the name
    // of an object
    // definition in the schema registered for the data source.  For
    // example, if
    // the schema for the data source contains an object definition with
    // name
    // 'document', then item indexing requests for objects of that type
    // should set
    // objectType to 'document'.
    // The maximum length is 256 characters.
    ObjectType string `json:"objectType,omitempty"`

    // SearchQualityMetadata: Additional search quality metadata of the item
    SearchQualityMetadata *SearchQualityMetadata `json:"searchQualityMetadata,omitempty"`

    // SourceRepositoryUrl: Link to the source repository serving the data.
    // &#83;earch results apply
    // this link to the title.
    // The maximum length is 2048 characters.
    SourceRepositoryUrl string `json:"sourceRepositoryUrl,omitempty"`

    // Title: The title of the item.  If given, this will be the displayed
    // title of the
    // Search result.
    // The maximum length is 2048 characters.
    Title string `json:"title,omitempty"`

    // UpdateTime: The time when the item was last modified in the source
    // repository.
    UpdateTime string `json:"updateTime,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ContainerName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ContainerName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ItemMetadata: Available metadata fields for the item.

func (*ItemMetadata) MarshalJSON Uses

func (s *ItemMetadata) MarshalJSON() ([]byte, error)

type ItemStatus Uses

type ItemStatus struct {
    // Code: Status code.
    //
    // Possible values:
    //   "CODE_UNSPECIFIED" - Input-only value.  Used with
    // Items.list
    // to list all items in the queue, regardless of status.
    //   "ERROR" - Error encountered by Cloud Search while processing this
    // item.
    // Details of the error are in
    // repositoryError.
    //   "MODIFIED" - Item has been modified in the repository, and is out
    // of date with
    // the version previously accepted into Cloud Search.
    //   "NEW_ITEM" - Item is known to exist in the repository, but is not
    // yet accepted by
    // Cloud Search.
    // An item can be in this state when
    // Items.push
    // has been called for
    // an item of this name that did not exist previously.
    //   "ACCEPTED" - API has accepted the up-to-date data of this item.
    Code string `json:"code,omitempty"`

    // ProcessingErrors: Error details in case the item is in ERROR state.
    ProcessingErrors []*ProcessingError `json:"processingErrors,omitempty"`

    // RepositoryErrors: Repository error reported by connector.
    RepositoryErrors []*RepositoryError `json:"repositoryErrors,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Code") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ItemStatus: This contains item's status and any errors.

func (*ItemStatus) MarshalJSON Uses

func (s *ItemStatus) MarshalJSON() ([]byte, error)

type ItemStructuredData Uses

type ItemStructuredData struct {
    // Hash: Hashing value provided by the API caller.
    // This can be used with the
    // items.push
    // method to calculate modified state.
    // The maximum length is 2048 characters.
    Hash string `json:"hash,omitempty"`

    // Object: The structured data object that should conform to a
    // registered object
    // definition in the schema for the data source.
    Object *StructuredDataObject `json:"object,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Hash") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Hash") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ItemStructuredData: Available structured data fields for the item.

func (*ItemStructuredData) MarshalJSON Uses

func (s *ItemStructuredData) MarshalJSON() ([]byte, error)

type ListDataSourceResponse Uses

type ListDataSourceResponse struct {
    // NextPageToken: Token to retrieve the next page of results, or empty
    // if there are no
    // more results in the list.
    NextPageToken string `json:"nextPageToken,omitempty"`

    Sources []*DataSource `json:"sources,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "NextPageToken") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "NextPageToken") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListDataSourceResponse) MarshalJSON Uses

func (s *ListDataSourceResponse) MarshalJSON() ([]byte, error)

type ListItemNamesForUnmappedIdentityResponse Uses

type ListItemNamesForUnmappedIdentityResponse struct {
    ItemNames []string `json:"itemNames,omitempty"`

    // NextPageToken: Token to retrieve the next page of results, or empty
    // if there are no
    // more results in the list.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ItemNames") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ItemNames") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListItemNamesForUnmappedIdentityResponse) MarshalJSON Uses

func (s *ListItemNamesForUnmappedIdentityResponse) MarshalJSON() ([]byte, error)

type ListItemsResponse Uses

type ListItemsResponse struct {
    Items []*Item `json:"items,omitempty"`

    // NextPageToken: Token to retrieve the next page of results, or empty
    // if there are no
    // more results in the list.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Items") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Items") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListItemsResponse) MarshalJSON Uses

func (s *ListItemsResponse) MarshalJSON() ([]byte, error)

type ListQuerySourcesResponse Uses

type ListQuerySourcesResponse struct {
    NextPageToken string `json:"nextPageToken,omitempty"`

    Sources []*QuerySource `json:"sources,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "NextPageToken") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "NextPageToken") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ListQuerySourcesResponse: List sources response.

func (*ListQuerySourcesResponse) MarshalJSON Uses

func (s *ListQuerySourcesResponse) MarshalJSON() ([]byte, error)

type ListSearchApplicationsResponse Uses

type ListSearchApplicationsResponse struct {
    // NextPageToken: Token to retrieve the next page of results, or empty
    // if there are no
    // more results in the list.
    NextPageToken string `json:"nextPageToken,omitempty"`

    SearchApplications []*SearchApplication `json:"searchApplications,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "NextPageToken") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "NextPageToken") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListSearchApplicationsResponse) MarshalJSON Uses

func (s *ListSearchApplicationsResponse) MarshalJSON() ([]byte, error)

type ListUnmappedIdentitiesResponse Uses

type ListUnmappedIdentitiesResponse struct {
    // NextPageToken: Token to retrieve the next page of results, or empty
    // if there are no
    // more results in the list.
    NextPageToken string `json:"nextPageToken,omitempty"`

    UnmappedIdentities []*UnmappedIdentity `json:"unmappedIdentities,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "NextPageToken") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "NextPageToken") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListUnmappedIdentitiesResponse) MarshalJSON Uses

func (s *ListUnmappedIdentitiesResponse) MarshalJSON() ([]byte, error)

type MatchRange Uses

type MatchRange struct {
    // End: End of the match in the snippet.
    End int64 `json:"end,omitempty"`

    // Start: Starting position of the match in the snippet.
    Start int64 `json:"start,omitempty"`

    // ForceSendFields is a list of field names (e.g. "End") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "End") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

MatchRange: Matched range of a snippet [start, end).

func (*MatchRange) MarshalJSON Uses

func (s *MatchRange) MarshalJSON() ([]byte, error)

type Media Uses

type Media struct {
    // ResourceName: Name of the media resource.
    ResourceName string `json:"resourceName,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ResourceName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ResourceName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Media: Media resource.

func (*Media) MarshalJSON Uses

func (s *Media) MarshalJSON() ([]byte, error)

type MediaService Uses

type MediaService struct {
    // contains filtered or unexported fields
}

func NewMediaService Uses

func NewMediaService(s *Service) *MediaService

func (*MediaService) Upload Uses

func (r *MediaService) Upload(resourceName string, media *Media) *MediaUploadCall

Upload: Uploads media for indexing.

The upload endpoint supports direct and resumable upload protocols and is intended for large items that can not be [inlined during index requests](https://developers.google.com/cloud-search/docs/reference/re st/v1/indexing.datasources.items#itemcontent). To index large content:

1. Call

indexing.datasources.items.upload
with the resource name to begin an upload session and retrieve

the

UploadItemRef.

1. Call media.upload to upload the content using the same resource name from step 1. 1. Call indexing.datasources.items.index

to index the item. Populate the

[ItemContent](/cloud-search/docs/reference/rest/v1/indexing.datasource s.items#ItemContent)

with the UploadItemRef from step 1.

For additional information, see [Create a content connector using the REST API](https://developers.google.com/cloud-search/docs/guides/content-co nnector#rest).

type MediaUploadCall Uses

type MediaUploadCall struct {
    // contains filtered or unexported fields
}

func (*MediaUploadCall) Context Uses

func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.

func (*MediaUploadCall) Do Uses

func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*Media, error)

Do executes the "cloudsearch.media.upload" call. Exactly one of *Media or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Media.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MediaUploadCall) Fields Uses

func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MediaUploadCall) Header Uses

func (c *MediaUploadCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*MediaUploadCall) Media Uses

func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall

Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

func (*MediaUploadCall) ProgressUpdater Uses

func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*MediaUploadCall) ResumableMedia Uses

func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

Deprecated: use Media instead.

At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type Metadata Uses

type Metadata struct {
    // CreateTime: The creation time for this document or object in the
    // search result.
    CreateTime string `json:"createTime,omitempty"`

    // DisplayOptions: Options that specify how to display a structured data
    // search result.
    DisplayOptions *ResultDisplayMetadata `json:"displayOptions,omitempty"`

    // Fields: Indexed fields in structured data, returned as a generic
    // named property.
    Fields []*NamedProperty `json:"fields,omitempty"`

    // MimeType: Mime type of the search result.
    MimeType string `json:"mimeType,omitempty"`

    // ObjectType: Object type of the search result.
    ObjectType string `json:"objectType,omitempty"`

    // Owner: Owner (usually creator) of the document or object of the
    // search result.
    Owner *Person `json:"owner,omitempty"`

    // Source: The named source for the result, such as Gmail.
    Source *Source `json:"source,omitempty"`

    // UpdateTime: The last modified date for the object in the search
    // result. If not
    // set in the item, the value returned here is empty. When
    // `updateTime` is used for calculating freshness and is not set,
    // this
    // value defaults to 2 years from the current time.
    UpdateTime string `json:"updateTime,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CreateTime") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CreateTime") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Metadata: Metadata of a matched search result.

func (*Metadata) MarshalJSON Uses

func (s *Metadata) MarshalJSON() ([]byte, error)

type Metaline Uses

type Metaline struct {
    // Properties: The list of displayed properties for the metaline. The
    // maxiumum number of
    // properties is 5.
    Properties []*DisplayedProperty `json:"properties,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Properties") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Properties") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Metaline: A metaline is a list of properties that are displayed along with the search result to provide context.

func (*Metaline) MarshalJSON Uses

func (s *Metaline) MarshalJSON() ([]byte, error)

type Name Uses

type Name struct {
    // DisplayName: The read-only display name formatted according to the
    // locale specified by
    // the viewer's account or the <code>Accept-Language</code> HTTP header.
    DisplayName string `json:"displayName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DisplayName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DisplayName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Name: A person's name.

func (*Name) MarshalJSON Uses

func (s *Name) MarshalJSON() ([]byte, error)

type NamedProperty Uses

type NamedProperty struct {
    BooleanValue bool `json:"booleanValue,omitempty"`

    DateValues *DateValues `json:"dateValues,omitempty"`

    DoubleValues *DoubleValues `json:"doubleValues,omitempty"`

    EnumValues *EnumValues `json:"enumValues,omitempty"`

    HtmlValues *HtmlValues `json:"htmlValues,omitempty"`

    IntegerValues *IntegerValues `json:"integerValues,omitempty"`

    // Name: The name of the property.  This name should correspond to the
    // name of the
    // property that was registered for object definition in the schema.
    // The maximum allowable length for this property is 256 characters.
    Name string `json:"name,omitempty"`

    ObjectValues *ObjectValues `json:"objectValues,omitempty"`

    TextValues *TextValues `json:"textValues,omitempty"`

    TimestampValues *TimestampValues `json:"timestampValues,omitempty"`

    // ForceSendFields is a list of field names (e.g. "BooleanValue") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BooleanValue") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

NamedProperty: A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`.

func (*NamedProperty) MarshalJSON Uses

func (s *NamedProperty) MarshalJSON() ([]byte, error)

type ObjectDefinition Uses

type ObjectDefinition struct {
    // Name: Name for the object, which then defines its type. Item indexing
    // requests
    // should set the
    // objectType field
    // equal to this value. For example, if *name* is *Document*, then
    // indexing
    // requests for items of type Document should set
    // objectType equal to
    // *Document*. Each object definition must be uniquely named within a
    // schema.
    // The name must start with a letter and can only contain letters (A-Z,
    // a-z)
    // or numbers (0-9).
    // The maximum length is 256 characters.
    Name string `json:"name,omitempty"`

    // Options: The optional object-specific options.
    Options *ObjectOptions `json:"options,omitempty"`

    // PropertyDefinitions: The property definitions for the object.
    // The maximum number of elements is 1000.
    PropertyDefinitions []*PropertyDefinition `json:"propertyDefinitions,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Name") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Name") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ObjectDefinition: The definition for an object within a data source.

func (*ObjectDefinition) MarshalJSON Uses

func (s *ObjectDefinition) MarshalJSON() ([]byte, error)

type ObjectDisplayOptions Uses

type ObjectDisplayOptions struct {
    // Metalines: Defines the properties that will be displayed in the
    // metalines of the
    // search results. The property values will be displayed in the order
    // given
    // here. If a property holds multiple values, all of the values will
    // be
    // diplayed before the next properties. For this reason, it is a good
    // practice
    // to specify singular properties before repeated properties in this
    // list. All
    // of the properties must set
    // is_returnable
    // to true. The maximum number of metalines is 3.
    Metalines []*Metaline `json:"metalines,omitempty"`

    // ObjectDisplayLabel: The user friendly label to display in the search
    // result to inidicate the
    // type of the item. This is OPTIONAL; if not given, an object label
    // will not
    // be displayed on the context line of the search results. The maximum
    // length
    // is 32 characters.
    ObjectDisplayLabel string `json:"objectDisplayLabel,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Metalines") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Metalines") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ObjectDisplayOptions: The display options for an object.

func (*ObjectDisplayOptions) MarshalJSON Uses

func (s *ObjectDisplayOptions) MarshalJSON() ([]byte, error)

type ObjectOptions Uses

type ObjectOptions struct {
    // DisplayOptions: Options that determine how the object is displayed in
    // the Cloud Search
    // results page.
    DisplayOptions *ObjectDisplayOptions `json:"displayOptions,omitempty"`

    // FreshnessOptions: The freshness options for an object.
    FreshnessOptions *FreshnessOptions `json:"freshnessOptions,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DisplayOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DisplayOptions") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ObjectOptions: The options for an object.

func (*ObjectOptions) MarshalJSON Uses

func (s *ObjectOptions) MarshalJSON() ([]byte, error)

type ObjectPropertyOptions Uses

type ObjectPropertyOptions struct {
    // SubobjectProperties: The properties of the sub-object. These
    // properties represent a nested
    // object. For example, if this property represents a postal address,
    // the
    // subobjectProperties might be named *street*, *city*, and *state*.
    // The maximum number of elements is 1000.
    SubobjectProperties []*PropertyDefinition `json:"subobjectProperties,omitempty"`

    // ForceSendFields is a list of field names (e.g. "SubobjectProperties")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "SubobjectProperties") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ObjectPropertyOptions: Options for object properties.

func (*ObjectPropertyOptions) MarshalJSON Uses

func (s *ObjectPropertyOptions) MarshalJSON() ([]byte, error)

type ObjectValues Uses

type ObjectValues struct {
    Values []*StructuredDataObject `json:"values,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Values") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Values") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ObjectValues: List of object values.

func (*ObjectValues) MarshalJSON Uses

func (s *ObjectValues) MarshalJSON() ([]byte, error)

type Operation Uses

type Operation struct {
    // Done: If the value is `false`, it means the operation is still in
    // progress.
    // If `true`, the operation is completed, and either `error` or
    // `response` is
    // available.
    Done bool `json:"done,omitempty"`

    // Error: The error result of the operation in case of failure or
    // cancellation.
    Error *Status `json:"error,omitempty"`

    // Metadata: Service-specific metadata associated with the operation.
    // It typically
    // contains progress information and common metadata such as create
    // time.
    // Some services might not provide such metadata.  Any method that
    // returns a
    // long-running operation should document the metadata type, if any.
    Metadata googleapi.RawMessage `json:"metadata,omitempty"`

    // Name: The server-assigned name, which is only unique within the same
    // service that
    // originally returns it. If you use the default HTTP mapping,
    // the
    // `name` should be a resource name ending with
    // `operations/{unique_id}`.
    Name string `json:"name,omitempty"`

    // Response: The normal response of the operation in case of success.
    // If the original
    // method returns no data on success, such as `Delete`, the response
    // is
    // `google.protobuf.Empty`.  If the original method is
    // standard
    // `Get`/`Create`/`Update`, the response should be the resource.  For
    // other
    // methods, the response should have the type `XxxResponse`, where
    // `Xxx`
    // is the original method name.  For example, if the original method
    // name
    // is `TakeSnapshot()`, the inferred response type
    // is
    // `TakeSnapshotResponse`.
    Response googleapi.RawMessage `json:"response,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Done") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Done") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Operation: This resource represents a long-running operation that is the result of a network API call.

func (*Operation) MarshalJSON Uses

func (s *Operation) MarshalJSON() ([]byte, error)

type OperationsGetCall Uses

type OperationsGetCall struct {
    // contains filtered or unexported fields
}

func (*OperationsGetCall) Context Uses

func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OperationsGetCall) Do Uses

func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OperationsGetCall) Fields Uses

func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OperationsGetCall) Header Uses

func (c *OperationsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*OperationsGetCall) IfNoneMatch Uses

func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type OperationsService Uses

type OperationsService struct {
    // contains filtered or unexported fields
}

func NewOperationsService Uses

func NewOperationsService(s *Service) *OperationsService

func (*OperationsService) Get Uses

func (r *OperationsService) Get(name string) *OperationsGetCall

Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

type PeopleSuggestion Uses

type PeopleSuggestion struct {
    // Person: Suggested person. All fields of the person object might not
    // be populated.
    Person *Person `json:"person,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Person") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Person") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

PeopleSuggestion: This field contains information about the person being suggested.

func (*PeopleSuggestion) MarshalJSON Uses

func (s *PeopleSuggestion) MarshalJSON() ([]byte, error)

type Person Uses

type Person struct {
    // EmailAddresses: The person's email addresses
    EmailAddresses []*EmailAddress `json:"emailAddresses,omitempty"`

    // Name: The resource name of the person to provide information
    // about.
    // See <a
    // href="https://developers.google.com/people/api/rest/v1/people/get">
    // Pe
    // ople.get</a> from Google People API.
    Name string `json:"name,omitempty"`

    // ObfuscatedId: Obfuscated ID of a person.
    ObfuscatedId string `json:"obfuscatedId,omitempty"`

    // PersonNames: The person's name
    PersonNames []*Name `json:"personNames,omitempty"`

    // Photos: A person's read-only photo. A picture shown next to the
    // person's name to
    // help others recognize the person in search results.
    Photos []*Photo `json:"photos,omitempty"`

    // ForceSendFields is a list of field names (e.g. "EmailAddresses") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "EmailAddresses") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

Person: Object to represent a person.

func (*Person) MarshalJSON Uses

func (s *Person) MarshalJSON() ([]byte, error)

type Photo Uses

type Photo struct {
    // Url: The URL of the photo.
    Url string `json:"url,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Url") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Url") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Photo: A person's photo.

func (*Photo) MarshalJSON Uses

func (s *Photo) MarshalJSON() ([]byte, error)

type PollItemsRequest Uses

type PollItemsRequest struct {
    // ConnectorName: Name of connector making this call.
    // <br />Format: datasources/{source_id}/connectors/{ID}
    ConnectorName string `json:"connectorName,omitempty"`

    // DebugOptions: Common debug options.
    DebugOptions *DebugOptions `json:"debugOptions,omitempty"`

    // Limit: Maximum number of items to return.
    // <br />The maximum and the default value is 1000
    Limit int64 `json:"limit,omitempty"`

    // Queue: Queue name to fetch items from.  If unspecified, PollItems
    // will
    // fetch from 'default' queue.
    // The maximum length is 100 characters.
    Queue string `json:"queue,omitempty"`

    // StatusCodes: Limit the items polled to the ones with these statuses.
    //
    // Possible values:
    //   "CODE_UNSPECIFIED" - Input-only value.  Used with
    // Items.list
    // to list all items in the queue, regardless of status.
    //   "ERROR" - Error encountered by Cloud Search while processing this
    // item.
    // Details of the error are in
    // repositoryError.
    //   "MODIFIED" - Item has been modified in the repository, and is out
    // of date with
    // the version previously accepted into Cloud Search.
    //   "NEW_ITEM" - Item is known to exist in the repository, but is not
    // yet accepted by
    // Cloud Search.
    // An item can be in this state when
    // Items.push
    // has been called for
    // an item of this name that did not exist previously.
    //   "ACCEPTED" - API has accepted the up-to-date data of this item.
    StatusCodes []string `json:"statusCodes,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ConnectorName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ConnectorName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*PollItemsRequest) MarshalJSON Uses

func (s *PollItemsRequest) MarshalJSON() ([]byte, error)

type PollItemsResponse Uses

type PollItemsResponse struct {
    // Items: Set of items from the queue available for connector to
    // process.
    // <br />These items have the following subset of fields populated: <br
    // />
    // <br />version
    // <br />metadata.hash
    // <br />structured_data.hash
    // <br />content.hash
    // <br />payload
    // <br />status
    // <br />queue
    Items []*Item `json:"items,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Items") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Items") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*PollItemsResponse) MarshalJSON Uses

func (s *PollItemsResponse) MarshalJSON() ([]byte, error)

type Principal Uses

type Principal struct {
    // GroupResourceName: This principal is a group identified using an
    // external identity.
    // The name field must specify the group resource name with this
    // format:
    // identitysources/{source_id}/groups/{ID}
    GroupResourceName string `json:"groupResourceName,omitempty"`

    // GsuitePrincipal: This principal is a GSuite user, group or domain.
    GsuitePrincipal *GSuitePrincipal `json:"gsuitePrincipal,omitempty"`

    // UserResourceName: This principal is a user identified using an
    // external identity.
    // The name field must specify the user resource name with this
    // format:
    // identitysources/{source_id}/users/{ID}
    UserResourceName string `json:"userResourceName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "GroupResourceName")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "GroupResourceName") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

Principal: Reference to a user, group, or domain.

func (*Principal) MarshalJSON Uses

func (s *Principal) MarshalJSON() ([]byte, error)

type ProcessingError Uses

type ProcessingError struct {
    // Code: Error code indicating the nature of the error.
    //
    // Possible values:
    //   "PROCESSING_ERROR_CODE_UNSPECIFIED" - Input only value.  Use this
    // value in Items.
    //   "MALFORMED_REQUEST" - Item's ACL, metadata, or content is malformed
    // or in invalid state.
    // FieldViolations contains more details on where the problem is.
    //   "UNSUPPORTED_CONTENT_FORMAT" - Countent format is unsupported.
    //   "INDIRECT_BROKEN_ACL" - Items with incomplete ACL information due
    // to inheriting other
    // items with broken ACL or having groups with unmapped descendants.
    //   "ACL_CYCLE" - ACL inheritance graph formed a cycle.
    Code string `json:"code,omitempty"`

    // ErrorMessage: Description of the error.
    ErrorMessage string `json:"errorMessage,omitempty"`

    // FieldViolations: In case the item fields are invalid, this field
    // contains the details
    // about the validation errors.
    FieldViolations []*FieldViolation `json:"fieldViolations,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Code") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ProcessingError) MarshalJSON Uses

func (s *ProcessingError) MarshalJSON() ([]byte, error)

type PropertyDefinition Uses

type PropertyDefinition struct {
    BooleanPropertyOptions *BooleanPropertyOptions `json:"booleanPropertyOptions,omitempty"`

    DatePropertyOptions *DatePropertyOptions `json:"datePropertyOptions,omitempty"`

    // DisplayOptions: Options that determine how the property is displayed
    // in the Cloud Search
    // results page if it is specified to be displayed in the
    // object's
    // display options
    // .
    DisplayOptions *PropertyDisplayOptions `json:"displayOptions,omitempty"`

    DoublePropertyOptions *DoublePropertyOptions `json:"doublePropertyOptions,omitempty"`

    EnumPropertyOptions *EnumPropertyOptions `json:"enumPropertyOptions,omitempty"`

    HtmlPropertyOptions *HtmlPropertyOptions `json:"htmlPropertyOptions,omitempty"`

    IntegerPropertyOptions *IntegerPropertyOptions `json:"integerPropertyOptions,omitempty"`

    // IsFacetable: Indicates that the property can be used for generating
    // facets. Cannot be
    // true for properties whose type is object. IsReturnable must be true
    // to set
    // this option.
    // Only supported for Boolean, Enum, and Text properties.
    IsFacetable bool `json:"isFacetable,omitempty"`

    // IsRepeatable: Indicates that multiple values are allowed for the
    // property. For example, a
    // document only has one description but can have multiple comments.
    // Cannot be
    // true for properties whose type is a boolean.
    // If set to false, properties that contain more than one value will
    // cause the
    // indexing request for that item to be rejected.
    IsRepeatable bool `json:"isRepeatable,omitempty"`

    // IsReturnable: Indicates that the property identifies data that should
    // be returned in
    // search results via the Query API. If set to *true*, indicates that
    // Query
    // API users can use matching property fields in results. However,
    // storing
    // fields requires more space allocation and uses more bandwidth for
    // search
    // queries, which impacts performance over large datasets. Set to *true*
    // here
    // only if the field is needed for search results. Cannot be true
    // for
    // properties whose type is an object.
    IsReturnable bool `json:"isReturnable,omitempty"`

    // IsSortable: Indicates that the property can be used for sorting.
    // Cannot be true for
    // properties that are repeatable. Cannot be true for properties whose
    // type
    // is object or user identifier. IsReturnable must be true to set this
    // option.
    // Only supported for Boolean, Date, Double, Integer, and
    // Timestamp
    // properties.
    IsSortable bool `json:"isSortable,omitempty"`

    // IsSuggestable: Indicates that the property can be used for generating
    // query suggestions.
    IsSuggestable bool `json:"isSuggestable,omitempty"`

    // IsWildcardSearchable: Indicates that users can perform wildcard
    // search for this
    // property. Only supported for Text properties. IsReturnable must be
    // true to
    // set this option. In a given datasource maximum of 5 properties can
    // be
    // marked as is_wildcard_searchable.
    //
    // Note: This is an alpha feature and is enabled for whitelisted users
    // only.
    IsWildcardSearchable bool `json:"isWildcardSearchable,omitempty"`

    // Name: The name of the property. Item indexing requests sent to the
    // Indexing API
    // should set the property name
    // equal to this value. For example, if name is *subject_line*, then
    // indexing
    // requests for document items with subject fields should set the
    // name for that field equal to
    // *subject_line*. Use the name as the identifier for the object
    // property.
    // Once registered as a property for an object, you cannot re-use this
    // name
    // for another property within that object.
    // The name must start with a letter and can only contain letters (A-Z,
    // a-z)
    // or numbers (0-9).
    // The maximum length is 256 characters.
    Name string `json:"name,omitempty"`

    ObjectPropertyOptions *ObjectPropertyOptions `json:"objectPropertyOptions,omitempty"`

    TextPropertyOptions *TextPropertyOptions `json:"textPropertyOptions,omitempty"`

    TimestampPropertyOptions *TimestampPropertyOptions `json:"timestampPropertyOptions,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "BooleanPropertyOptions") to unconditionally include in API requests.
    // By default, fields with empty values are omitted from API requests.
    // However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BooleanPropertyOptions")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

PropertyDefinition: The definition of a property within an object.

func (*PropertyDefinition) MarshalJSON Uses

func (s *PropertyDefinition) MarshalJSON() ([]byte, error)

type PropertyDisplayOptions Uses

type PropertyDisplayOptions struct {
    // DisplayLabel: The user friendly label for the property that will be
    // used if the property
    // is specified to be displayed in ObjectDisplayOptions. If given, the
    // display
    // label will be shown in front of the property values when the property
    // is
    // part of the object display options. For example, if the property
    // value is
    // '1', the value by itself may not be useful context for the user. If
    // the
    // display name given was 'priority', then the user will see 'priority :
    // 1' in
    // the search results which provides clear conext to search users. This
    // is
    // OPTIONAL; if not given, only the property values will be
    // displayed.
    // The maximum length is 32 characters.
    DisplayLabel string `json:"displayLabel,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DisplayLabel") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DisplayLabel") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

PropertyDisplayOptions: The display options for a property.

func (*PropertyDisplayOptions) MarshalJSON Uses

func (s *PropertyDisplayOptions) MarshalJSON() ([]byte, error)

type PushItem Uses

type PushItem struct {
    // ContentHash: Content hash of the item according to the repository. If
    // specified, this is
    // used to determine how to modify this
    // item's status. Setting this field and the
    // type field results in argument
    // error.
    // The maximum length is 2048 characters.
    ContentHash string `json:"contentHash,omitempty"`

    // MetadataHash: Metadata hash of the item according to the repository.
    // If specified, this
    // is used to determine how to modify this
    // item's status. Setting this field and the
    // type field results in argument
    // error.
    // The maximum length is 2048 characters.
    MetadataHash string `json:"metadataHash,omitempty"`

    // Payload: Provides additional document state information for the
    // connector,
    // such as an alternate repository ID and other metadata.
    // The maximum length is 8192 bytes.
    Payload string `json:"payload,omitempty"`

    // Queue: Queue to which this item belongs to.  The <code>default</code>
    // queue is
    // chosen if this field is not specified. The maximum length is
    // 512 characters.
    Queue string `json:"queue,omitempty"`

    // RepositoryError: Populate this field to store Connector or repository
    // error details.
    // This information is displayed in the Admin Console.
    // This field may only be populated when the
    // Type is
    // REPOSITORY_ERROR.
    RepositoryError *RepositoryError `json:"repositoryError,omitempty"`

    // StructuredDataHash: Structured data hash of the item according to the
    // repository. If specified,
    // this is used to determine how to modify this item's status. Setting
    // this
    // field and the type field
    // results in argument error.
    // The maximum length is 2048 characters.
    StructuredDataHash string `json:"structuredDataHash,omitempty"`

    // Type: The type of the push operation that defines the push behavior.
    //
    // Possible values:
    //   "UNSPECIFIED" - Default UNSPECIFIED.  Specifies that the push
    // operation should not modify
    // ItemStatus
    //   "MODIFIED" - Indicates that the repository document has been
    // modified or updated since
    // the previous
    // update
    // call. This changes status to
    // MODIFIED state for
    // an existing item. If this is called on a non existing item, the
    // status is
    // changed to
    // NEW_ITEM.
    //   "NOT_MODIFIED" - Item in the repository has not been modified since
    // the last update
    // call.  This push operation will set status to
    // ACCEPTED state.
    //   "REPOSITORY_ERROR" - Connector is facing a repository error
    // regarding this item.  Change
    // status to
    // REPOSITORY_ERROR
    // state. Item is unreserved and rescheduled at a future time determined
    // by
    // exponential backoff.
    //   "REQUEUE" - Call push with REQUEUE only for items that have been
    // reserved.
    // This action unreserves the item and resets its available time to
    // the
    // wall clock time.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ContentHash") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ContentHash") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

PushItem: Represents an item to be pushed to the indexing queue.

func (*PushItem) MarshalJSON Uses

func (s *PushItem) MarshalJSON() ([]byte, error)

type PushItemRequest Uses

type PushItemRequest struct {
    // ConnectorName: Name of connector making this call.
    // <br />Format: datasources/{source_id}/connectors/{ID}
    ConnectorName string `json:"connectorName,omitempty"`

    // DebugOptions: Common debug options.
    DebugOptions *DebugOptions `json:"debugOptions,omitempty"`

    // Item: Item to push onto the queue.
    Item *PushItem `json:"item,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ConnectorName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ConnectorName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*PushItemRequest) MarshalJSON Uses

func (s *PushItemRequest) MarshalJSON() ([]byte, error)

type QueryInterpretation Uses

type QueryInterpretation struct {
    // Possible values:
    //   "NONE" - No natural language interpretation or the natural language
    // interpretation
    // is not used to fetch the search results.
    //   "BLEND" - The natural language results is mixed with results from
    // original query.
    //   "REPLACE" - The results from original query are replaced. The
    // reason for replacing
    // the results from original query is populated in the 'Reason' field
    // below.
    InterpretationType string `json:"interpretationType,omitempty"`

    // InterpretedQuery: The interpretation of the query used in search. For
    // example, queries with
    // natural language intent like "email from john" will be interpreted
    // as
    // "from:john source:mail". This field will not be filled when the
    // reason is
    // NO_RESULTS_FOUND_FOR_USER_QUERY.
    InterpretedQuery string `json:"interpretedQuery,omitempty"`

    // ForceSendFields is a list of field names (e.g. "InterpretationType")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InterpretationType") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*QueryInterpretation) MarshalJSON Uses

func (s *QueryInterpretation) MarshalJSON() ([]byte, error)

type QueryInterpretationOptions Uses

type QueryInterpretationOptions struct {
    // DisableNlInterpretation: Flag to disable natural language (NL)
    // interpretation of queries. Default is
    // false, Set to true to disable natural language interpretation.
    // NL
    // interpretation only applies to predefined datasources.
    DisableNlInterpretation bool `json:"disableNlInterpretation,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "DisableNlInterpretation") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DisableNlInterpretation")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

QueryInterpretationOptions: Options to interpret user query.

func (*QueryInterpretationOptions) MarshalJSON Uses

func (s *QueryInterpretationOptions) MarshalJSON() ([]byte, error)

type QueryItem Uses

type QueryItem struct {
    // IsSynthetic: True if the text was generated by means other than a
    // previous user search.
    IsSynthetic bool `json:"isSynthetic,omitempty"`

    // ForceSendFields is a list of field names (e.g. "IsSynthetic") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "IsSynthetic") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

QueryItem: Information relevant only to a query entry.

func (*QueryItem) MarshalJSON Uses

func (s *QueryItem) MarshalJSON() ([]byte, error)

type QueryOperator Uses

type QueryOperator struct {
    // DisplayName: Display name of the operator
    DisplayName string `json:"displayName,omitempty"`

    // EnumValues: Potential list of values for the opeatror field. This
    // field is only filled
    // when we can safely enumerate all the possible values of this
    // operator.
    EnumValues []string `json:"enumValues,omitempty"`

    // GreaterThanOperatorName: Indicates the operator name that can be used
    // to  isolate the property using
    // the greater-than operator.
    GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"`

    // IsFacetable: Can this operator be used to get facets.
    IsFacetable bool `json:"isFacetable,omitempty"`

    // IsRepeatable: Indicates if multiple values can be set for this
    // property.
    IsRepeatable bool `json:"isRepeatable,omitempty"`

    // IsReturnable: Will the property associated with this facet be
    // returned as part of search
    // results.
    IsReturnable bool `json:"isReturnable,omitempty"`

    // IsSortable: Can this operator be used to sort results.
    IsSortable bool `json:"isSortable,omitempty"`

    // IsSuggestable: Can get suggestions for this field.
    IsSuggestable bool `json:"isSuggestable,omitempty"`

    // LessThanOperatorName: Indicates the operator name that can be used to
    //  isolate the property using
    // the less-than operator.
    LessThanOperatorName string `json:"lessThanOperatorName,omitempty"`

    // OperatorName: The name of the operator.
    OperatorName string `json:"operatorName,omitempty"`

    // Type: Type of the operator.
    //
    // Possible values:
    //   "UNKNOWN" - Invalid value.
    //   "INTEGER"
    //   "DOUBLE"
    //   "TIMESTAMP"
    //   "BOOLEAN"
    //   "ENUM"
    //   "DATE"
    //   "TEXT"
    //   "HTML"
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DisplayName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DisplayName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

QueryOperator: The definition of a operator that can be used in a Search/Suggest request.

func (*QueryOperator) MarshalJSON Uses

func (s *QueryOperator) MarshalJSON() ([]byte, error)

type QuerySearchCall Uses

type QuerySearchCall struct {
    // contains filtered or unexported fields
}

func (*QuerySearchCall) Context Uses

func (c *QuerySearchCall) Context(ctx context.Context) *QuerySearchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*QuerySearchCall) Do Uses

func (c *QuerySearchCall) Do(opts ...googleapi.CallOption) (*SearchResponse, error)

Do executes the "cloudsearch.query.search" call. Exactly one of *SearchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SearchResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*QuerySearchCall) Fields Uses

func (c *QuerySearchCall) Fields(s ...googleapi.Field) *QuerySearchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*QuerySearchCall) Header Uses

func (c *QuerySearchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type QueryService Uses

type QueryService struct {
    Sources *QuerySourcesService
    // contains filtered or unexported fields
}

func NewQueryService Uses

func NewQueryService(s *Service) *QueryService

func (*QueryService) Search Uses

func (r *QueryService) Search(searchrequest *SearchRequest) *QuerySearchCall

Search: The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from G Suite Apps, such as Gmail or Google Drive, or they can come from data that you have indexed from a third party.

func (*QueryService) Suggest Uses

func (r *QueryService) Suggest(suggestrequest *SuggestRequest) *QuerySuggestCall

Suggest: Provides suggestions for autocompleting the query.

type QuerySource Uses

type QuerySource struct {
    // DisplayName: Display name of the data source.
    DisplayName string `json:"displayName,omitempty"`

    // Operators: List of all operators applicable for this source.
    Operators []*QueryOperator `json:"operators,omitempty"`

    // ShortName: A short name or alias for the source.  This value can be
    // used with the
    // 'source' operator.
    ShortName string `json:"shortName,omitempty"`

    // Source: Name of the source
    Source *Source `json:"source,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DisplayName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DisplayName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

QuerySource: List of sources that the user can search using the query API.

func (*QuerySource) MarshalJSON Uses

func (s *QuerySource) MarshalJSON() ([]byte, error)

type QuerySourcesListCall Uses

type QuerySourcesListCall struct {
    // contains filtered or unexported fields
}

func (*QuerySourcesListCall) Context Uses

func (c *QuerySourcesListCall) Context(ctx context.Context) *QuerySourcesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*QuerySourcesListCall) Do Uses

func (c *QuerySourcesListCall) Do(opts ...googleapi.CallOption) (*ListQuerySourcesResponse, error)

Do executes the "cloudsearch.query.sources.list" call. Exactly one of *ListQuerySourcesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListQuerySourcesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*QuerySourcesListCall) Fields Uses

func (c *QuerySourcesListCall) Fields(s ...googleapi.Field) *QuerySourcesListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*QuerySourcesListCall) Header Uses

func (c *QuerySourcesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*QuerySourcesListCall) IfNoneMatch Uses

func (c *QuerySourcesListCall) IfNoneMatch(entityTag string) *QuerySourcesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*QuerySourcesListCall) PageToken Uses

func (c *QuerySourcesListCall) PageToken(pageToken string) *QuerySourcesListCall

PageToken sets the optional parameter "pageToken": Number of sources to return in the response.

func (*QuerySourcesListCall) Pages Uses

func (c *QuerySourcesListCall) Pages(ctx context.Context, f func(*ListQuerySourcesResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*QuerySourcesListCall) RequestOptionsDebugOptionsEnableDebugging Uses

func (c *QuerySourcesListCall) RequestOptionsDebugOptionsEnableDebugging(requestOptionsDebugOptionsEnableDebugging bool) *QuerySourcesListCall

RequestOptionsDebugOptionsEnableDebugging sets the optional parameter "requestOptions.debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*QuerySourcesListCall) RequestOptionsLanguageCode Uses

func (c *QuerySourcesListCall) RequestOptionsLanguageCode(requestOptionsLanguageCode string) *QuerySourcesListCall

RequestOptionsLanguageCode sets the optional parameter "requestOptions.languageCode": The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Fo r translations.

When specified, the documents in search results are biased towards the specified language. Suggest API does not use this parameter. It autocompletes only based on characters in the query.

func (*QuerySourcesListCall) RequestOptionsSearchApplicationId Uses

func (c *QuerySourcesListCall) RequestOptionsSearchApplicationId(requestOptionsSearchApplicationId string) *QuerySourcesListCall

RequestOptionsSearchApplicationId sets the optional parameter "requestOptions.searchApplicationId": Id of the application created using SearchApplicationsService.

func (*QuerySourcesListCall) RequestOptionsTimeZone Uses

func (c *QuerySourcesListCall) RequestOptionsTimeZone(requestOptionsTimeZone string) *QuerySourcesListCall

RequestOptionsTimeZone sets the optional parameter "requestOptions.timeZone": Current user's time zone id, such as "America/Los_Angeles" or "Australia/Sydney". These IDs are defined by [Unicode Common Locale Data Repository (CLDR)](http://cldr.unicode.org/) project, and currently available in the file [timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/t imezone.xml). This field is used to correctly interpret date and time queries. If this field is not specified, the default time zone (UTC) is used.

type QuerySourcesService Uses

type QuerySourcesService struct {
    // contains filtered or unexported fields
}

func NewQuerySourcesService Uses

func NewQuerySourcesService(s *Service) *QuerySourcesService

func (*QuerySourcesService) List Uses

func (r *QuerySourcesService) List() *QuerySourcesListCall

List: Returns list of sources that user can use for Search and Suggest APIs.

type QuerySuggestCall Uses

type QuerySuggestCall struct {
    // contains filtered or unexported fields
}

func (*QuerySuggestCall) Context Uses

func (c *QuerySuggestCall) Context(ctx context.Context) *QuerySuggestCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*QuerySuggestCall) Do Uses

func (c *QuerySuggestCall) Do(opts ...googleapi.CallOption) (*SuggestResponse, error)

Do executes the "cloudsearch.query.suggest" call. Exactly one of *SuggestResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SuggestResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*QuerySuggestCall) Fields Uses

func (c *QuerySuggestCall) Fields(s ...googleapi.Field) *QuerySuggestCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*QuerySuggestCall) Header Uses

func (c *QuerySuggestCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type QuerySuggestion Uses

type QuerySuggestion struct {
}

QuerySuggestion: This field does not contain anything as of now and is just used as an indicator that the suggest result was a phrase completion.

type RepositoryError Uses

type RepositoryError struct {
    // ErrorMessage: Message that describes the error. The maximum allowable
    // length
    // of the message is 8192 characters.
    ErrorMessage string `json:"errorMessage,omitempty"`

    // HttpStatusCode: Error codes.  Matches the definition of HTTP status
    // codes.
    HttpStatusCode int64 `json:"httpStatusCode,omitempty"`

    // Type: Type of error.
    //
    // Possible values:
    //   "UNKNOWN" - Unknown error.
    //   "NETWORK_ERROR" - Unknown or unreachable host.
    //   "DNS_ERROR" - DNS problem, such as the DNS server is not
    // responding.
    //   "CONNECTION_ERROR" - Cannot connect to the repository server.
    //   "AUTHENTICATION_ERROR" - Failed authentication due to incorrect
    // credentials.
    //   "AUTHORIZATION_ERROR" - Service account is not authorized for the
    // repository.
    //   "SERVER_ERROR" - Repository server error.
    //   "QUOTA_EXCEEDED" - Quota exceeded.
    //   "SERVICE_UNAVAILABLE" - Server temporarily unavailable.
    //   "CLIENT_ERROR" - Client-related error, such as an invalid request
    // from the connector to
    // the repository server.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ErrorMessage") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ErrorMessage") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

RepositoryError: Errors when the connector is communicating to the source repository.

func (*RepositoryError) MarshalJSON Uses

func (s *RepositoryError) MarshalJSON() ([]byte, error)

type RequestOptions Uses

type RequestOptions struct {
    // DebugOptions: Debug options of the request
    DebugOptions *DebugOptions `json:"debugOptions,omitempty"`

    // LanguageCode: The BCP-47 language code, such as "en-US" or
    // "sr-Latn".
    // For more information,
    // see
    // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
    // Fo
    // r translations.
    //
    // When specified, the documents in search results are biased towards
    // the
    // specified language.
    // Suggest API does not use this parameter. It autocompletes only based
    // on
    // characters in the query.
    LanguageCode string `json:"languageCode,omitempty"`

    // SearchApplicationId: Id of the application created using
    // SearchApplicationsService.
    SearchApplicationId string `json:"searchApplicationId,omitempty"`

    // TimeZone: Current user's time zone id, such as "America/Los_Angeles"
    // or
    // "Australia/Sydney". These IDs are defined by
    // [Unicode Common Locale Data Repository
    // (CLDR)](http://cldr.unicode.org/)
    // project, and currently available in the
    // file
    // [timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/t
    // imezone.xml).
    // This field is used to correctly interpret date and time queries.
    // If this field is not specified, the default time zone (UTC) is used.
    TimeZone string `json:"timeZone,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DebugOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DebugOptions") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

RequestOptions: Shared request options for all RPC methods.

func (*RequestOptions) MarshalJSON Uses

func (s *RequestOptions) MarshalJSON() ([]byte, error)

type ResetSearchApplicationRequest Uses

type ResetSearchApplicationRequest struct {
    // DebugOptions: Common debug options.
    DebugOptions *DebugOptions `json:"debugOptions,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DebugOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DebugOptions") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ResetSearchApplicationRequest) MarshalJSON Uses

func (s *ResetSearchApplicationRequest) MarshalJSON() ([]byte, error)

type ResponseDebugInfo Uses

type ResponseDebugInfo struct {
    // FormattedDebugInfo: General debug info formatted for display.
    FormattedDebugInfo string `json:"formattedDebugInfo,omitempty"`

    // ForceSendFields is a list of field names (e.g. "FormattedDebugInfo")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "FormattedDebugInfo") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ResponseDebugInfo: Debugging information about the response.

func (*ResponseDebugInfo) MarshalJSON Uses

func (s *ResponseDebugInfo) MarshalJSON() ([]byte, error)

type RestrictItem Uses

type RestrictItem struct {
    // DriveFollowUpRestrict:
    // LINT.ThenChange(//depot/google3/java/com/google/apps/search/quality/it
    // emsuggest/utils/SubtypeRerankingUtils.java)
    DriveFollowUpRestrict *DriveFollowUpRestrict `json:"driveFollowUpRestrict,omitempty"`

    DriveLocationRestrict *DriveLocationRestrict `json:"driveLocationRestrict,omitempty"`

    // DriveMimeTypeRestrict: LINT.IfChange
    // Drive Types.
    DriveMimeTypeRestrict *DriveMimeTypeRestrict `json:"driveMimeTypeRestrict,omitempty"`

    DriveTimeSpanRestrict *DriveTimeSpanRestrict `json:"driveTimeSpanRestrict,omitempty"`

    GmailActionRestrict *GmailActionRestrict `json:"gmailActionRestrict,omitempty"`

    GmailAttachmentRestrict *GmailAttachmentRestrict `json:"gmailAttachmentRestrict,omitempty"`

    // GmailFolderRestrict: Gmail Types.
    GmailFolderRestrict *GmailFolderRestrict `json:"gmailFolderRestrict,omitempty"`

    GmailIntelligentRestrict *GmailIntelligentRestrict `json:"gmailIntelligentRestrict,omitempty"`

    GmailTimeRestrict *GmailTimeRestrict `json:"gmailTimeRestrict,omitempty"`

    // SearchOperator: The search restrict (e.g. "after:2017-09-11
    // before:2017-09-12").
    SearchOperator string `json:"searchOperator,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "DriveFollowUpRestrict") to unconditionally include in API requests.
    // By default, fields with empty values are omitted from API requests.
    // However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DriveFollowUpRestrict") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

RestrictItem: Information relevant only to a restrict entry. NextId: 12

func (*RestrictItem) MarshalJSON Uses

func (s *RestrictItem) MarshalJSON() ([]byte, error)

type ResultCounts Uses

type ResultCounts struct {
    // SourceResultCounts: Result count information for each source with
    // results.
    SourceResultCounts []*SourceResultCount `json:"sourceResultCounts,omitempty"`

    // ForceSendFields is a list of field names (e.g. "SourceResultCounts")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "SourceResultCounts") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ResultCounts: Result count information

func (*ResultCounts) MarshalJSON Uses

func (s *ResultCounts) MarshalJSON() ([]byte, error)

type ResultDebugInfo Uses

type ResultDebugInfo struct {
    // FormattedDebugInfo: General debug info formatted for display.
    FormattedDebugInfo string `json:"formattedDebugInfo,omitempty"`

    // ForceSendFields is a list of field names (e.g. "FormattedDebugInfo")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "FormattedDebugInfo") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ResultDebugInfo: Debugging information about the result.

func (*ResultDebugInfo) MarshalJSON Uses

func (s *ResultDebugInfo) MarshalJSON() ([]byte, error)

type ResultDisplayField Uses

type ResultDisplayField struct {
    // Label: The display label for the property.
    Label string `json:"label,omitempty"`

    // OperatorName: The operator name of the property.
    OperatorName string `json:"operatorName,omitempty"`

    // Property: The name value pair for the property.
    Property *NamedProperty `json:"property,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Label") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Label") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ResultDisplayField: Display Fields for Search Results

func (*ResultDisplayField) MarshalJSON Uses

func (s *ResultDisplayField) MarshalJSON() ([]byte, error)

type ResultDisplayLine Uses

type ResultDisplayLine struct {
    Fields []*ResultDisplayField `json:"fields,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Fields") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Fields") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ResultDisplayLine: The collection of fields that make up a displayed line

func (*ResultDisplayLine) MarshalJSON Uses

func (s *ResultDisplayLine) MarshalJSON() ([]byte, error)

type ResultDisplayMetadata Uses

type ResultDisplayMetadata struct {
    // Metalines: The metalines content to be displayed with the result.
    Metalines []*ResultDisplayLine `json:"metalines,omitempty"`

    // ObjectTypeLabel: The display label for the object.
    ObjectTypeLabel string `json:"objectTypeLabel,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Metalines") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Metalines") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ResultDisplayMetadata) MarshalJSON Uses

func (s *ResultDisplayMetadata) MarshalJSON() ([]byte, error)

type RetrievalImportance Uses

type RetrievalImportance struct {
    // Importance: Indicates the ranking importance given to property when
    // it is matched
    // during retrieval. Once set, the token importance of a property cannot
    // be
    // changed.
    //
    // Possible values:
    //   "DEFAULT" - Treat the match like a body text match.
    //   "HIGHEST" - Treat the match like a match against title of the item.
    //   "HIGH" - Treat the match with higher importance than body text.
    //   "LOW" - Treat the match with lower importance than body text.
    //   "NONE" - Do not match against this field during retrieval. The
    // property can still
    // be used for operator matching, faceting, and suggest if
    // desired.
    Importance string `json:"importance,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Importance") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Importance") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*RetrievalImportance) MarshalJSON Uses

func (s *RetrievalImportance) MarshalJSON() ([]byte, error)

type Schema Uses

type Schema struct {
    // ObjectDefinitions: The list of top-level objects for the data
    // source.
    // The maximum number of elements is 10.
    ObjectDefinitions []*ObjectDefinition `json:"objectDefinitions,omitempty"`

    // OperationIds: IDs of the Long Running Operations (LROs) currently
    // running for this
    // schema. After modifying the schema, wait for operations to
    // complete
    // before indexing additional content.
    OperationIds []string `json:"operationIds,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ObjectDefinitions")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ObjectDefinitions") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

Schema: The schema definition for a data source.

func (*Schema) MarshalJSON Uses

func (s *Schema) MarshalJSON() ([]byte, error)

type ScoringConfig Uses

type ScoringConfig struct {
    // DisableFreshness: Whether to use freshness as a ranking signal. By
    // default, freshness is used
    // as a ranking signal. Note that this setting is not available in the
    // Admin
    // UI.
    DisableFreshness bool `json:"disableFreshness,omitempty"`

    // DisablePersonalization: Whether to personalize the results. By
    // default, personal signals will
    // be used to boost results.
    DisablePersonalization bool `json:"disablePersonalization,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DisableFreshness") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DisableFreshness") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ScoringConfig: Scoring configurations for a source while processing a Search or Suggest request.

func (*ScoringConfig) MarshalJSON Uses

func (s *ScoringConfig) MarshalJSON() ([]byte, error)

type SearchApplication Uses

type SearchApplication struct {
    // DataSourceRestrictions: Retrictions applied to the
    // configurations.
    // The maximum number of elements is 10.
    DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"`

    // DefaultFacetOptions: The default fields for returning facet
    // results.
    // The sources specified here also have been included
    // in
    // data_source_restrictions
    // above.
    DefaultFacetOptions []*FacetOptions `json:"defaultFacetOptions,omitempty"`

    // DefaultSortOptions: The default options for sorting the search
    // results
    DefaultSortOptions *SortOptions `json:"defaultSortOptions,omitempty"`

    // DisplayName: Display name of the Search Application.
    // The maximum length is 300 characters.
    DisplayName string `json:"displayName,omitempty"`

    // Name: Name of the Search Application.
    // <br />Format: searchapplications/{application_id}.
    Name string `json:"name,omitempty"`

    // OperationIds: IDs of the Long Running Operations (LROs) currently
    // running for this
    // schema. Output only field.
    OperationIds []string `json:"operationIds,omitempty"`

    // ScoringConfig: Configuration for ranking results.
    ScoringConfig *ScoringConfig `json:"scoringConfig,omitempty"`

    // SourceConfig: Configuration for a sources specified in
    // data_source_restrictions.
    SourceConfig []*SourceConfig `json:"sourceConfig,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g.
    // "DataSourceRestrictions") to unconditionally include in API requests.
    // By default, fields with empty values are omitted from API requests.
    // However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DataSourceRestrictions")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SearchApplication: SearchApplication

func (*SearchApplication) MarshalJSON Uses

func (s *SearchApplication) MarshalJSON() ([]byte, error)

type SearchItemsByViewUrlRequest Uses

type SearchItemsByViewUrlRequest struct {
    // DebugOptions: Common debug options.
    DebugOptions *DebugOptions `json:"debugOptions,omitempty"`

    // PageToken: The next_page_token value returned from a previous
    // request, if any.
    PageToken string `json:"pageToken,omitempty"`

    // ViewUrl: Specify the full view URL to find the corresponding
    // item.
    // The maximum length is 2048 characters.
    ViewUrl string `json:"viewUrl,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DebugOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DebugOptions") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*SearchItemsByViewUrlRequest) MarshalJSON Uses

func (s *SearchItemsByViewUrlRequest) MarshalJSON() ([]byte, error)

type SearchItemsByViewUrlResponse Uses

type SearchItemsByViewUrlResponse struct {
    Items []*Item `json:"items,omitempty"`

    // NextPageToken: Token to retrieve the next page of results, or empty
    // if there are no
    // more results in the list.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Items") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Items") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*SearchItemsByViewUrlResponse) MarshalJSON Uses

func (s *SearchItemsByViewUrlResponse) MarshalJSON() ([]byte, error)

type SearchQualityMetadata Uses

type SearchQualityMetadata struct {
    // Quality: An indication of the quality of the item, used to influence
    // search quality.
    // Value should be between 0.0 (lowest quality) and 1.0 (highest
    // quality). The
    // default value is 0.0.
    Quality float64 `json:"quality,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Quality") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Quality") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SearchQualityMetadata: Additional search quality metadata of the item.

func (*SearchQualityMetadata) MarshalJSON Uses

func (s *SearchQualityMetadata) MarshalJSON() ([]byte, error)

func (*SearchQualityMetadata) UnmarshalJSON Uses

func (s *SearchQualityMetadata) UnmarshalJSON(data []byte) error

type SearchRequest Uses

type SearchRequest struct {
    // DataSourceRestrictions: The sources to use for querying. If not
    // specified, all data sources
    // from the current search application are used.
    DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"`

    FacetOptions []*FacetOptions `json:"facetOptions,omitempty"`

    // PageSize: Maximum number of search results to return in one
    // page.
    // Valid values are between 1 and 100, inclusive.
    // Default value is 10.
    PageSize int64 `json:"pageSize,omitempty"`

    // Query: The raw query string.
    // See supported search operators in the [Cloud
    // search
    // Cheat
    // Sheet](https://gsuite.google.com/learning-center/products
    // /cloudsearch/cheat-sheet/)
    Query string `json:"query,omitempty"`

    // QueryInterpretationOptions: Options to interpret the user query.
    QueryInterpretationOptions *QueryInterpretationOptions `json:"queryInterpretationOptions,omitempty"`

    // RequestOptions: Request options, such as the search application and
    // user timezone.
    RequestOptions *RequestOptions `json:"requestOptions,omitempty"`

    // SortOptions: The options for sorting the search results
    SortOptions *SortOptions `json:"sortOptions,omitempty"`

    // Start: Starting index of the results.
    Start int64 `json:"start,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "DataSourceRestrictions") to unconditionally include in API requests.
    // By default, fields with empty values are omitted from API requests.
    // However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DataSourceRestrictions")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SearchRequest: The search API request.

func (*SearchRequest) MarshalJSON Uses

func (s *SearchRequest) MarshalJSON() ([]byte, error)

type SearchResponse Uses

type SearchResponse struct {
    // DebugInfo: Debugging information about the response.
    DebugInfo *ResponseDebugInfo `json:"debugInfo,omitempty"`

    // ErrorInfo: Error information about the response.
    ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"`

    // FacetResults: Repeated facet results.
    FacetResults []*FacetResult `json:"facetResults,omitempty"`

    // HasMoreResults: Whether there are more search results matching the
    // query.
    HasMoreResults bool `json:"hasMoreResults,omitempty"`

    // QueryInterpretation: Query interpretation result for user query.
    // Empty if query interpretation
    // is disabled.
    QueryInterpretation *QueryInterpretation `json:"queryInterpretation,omitempty"`

    // ResultCountEstimate: The estimated result count for this query.
    ResultCountEstimate int64 `json:"resultCountEstimate,omitempty,string"`

    // ResultCountExact: The exact result count for this query.
    ResultCountExact int64 `json:"resultCountExact,omitempty,string"`

    // ResultCounts: Expanded result count information.
    ResultCounts *ResultCounts `json:"resultCounts,omitempty"`

    // Results: Results from a search query.
    Results []*SearchResult `json:"results,omitempty"`

    // SpellResults: Suggested spelling for the query.
    SpellResults []*SpellResult `json:"spellResults,omitempty"`

    // StructuredResults: Structured results for the user query. These
    // results are not counted
    // against the page_size.
    StructuredResults []*StructuredResult `json:"structuredResults,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "DebugInfo") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DebugInfo") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SearchResponse: The search API response.

func (*SearchResponse) MarshalJSON Uses

func (s *SearchResponse) MarshalJSON() ([]byte, error)

type SearchResult Uses

type SearchResult struct {
    // ClusteredResults: If source is clustered, provide list of clustered
    // results. There will only
    // be one level of clustered results. If current source is not enabled
    // for
    // clustering, this field will be empty.
    ClusteredResults []*SearchResult `json:"clusteredResults,omitempty"`

    // DebugInfo: Debugging information about this search result.
    DebugInfo *ResultDebugInfo `json:"debugInfo,omitempty"`

    // Metadata: Metadata of the search result.
    Metadata *Metadata `json:"metadata,omitempty"`

    // Snippet: The concatenation of all snippets (summaries) available for
    // this result.
    Snippet *Snippet `json:"snippet,omitempty"`

    // Title: Title of the search result.
    Title string `json:"title,omitempty"`

    // Url: The URL of the search result. The URL contains a Google redirect
    // to the
    // actual item. This URL is signed and shouldn't be changed.
    Url string `json:"url,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ClusteredResults") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ClusteredResults") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SearchResult: Results containing indexed information for a document.

func (*SearchResult) MarshalJSON Uses

func (s *SearchResult) MarshalJSON() ([]byte, error)

type Service Uses

type Service struct {
    BasePath  string // API endpoint base URL
    UserAgent string // optional additional User-Agent fragment

    Debug *DebugService

    Indexing *IndexingService

    Media *MediaService

    Operations *OperationsService

    Query *QueryService

    Settings *SettingsService

    Stats *StatsService
    // contains filtered or unexported fields
}

func New Uses

func New(client *http.Client) (*Service, error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService Uses

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type SettingsDatasourcesCreateCall Uses

type SettingsDatasourcesCreateCall struct {
    // contains filtered or unexported fields
}

func (*SettingsDatasourcesCreateCall) Context Uses

func (c *SettingsDatasourcesCreateCall) Context(ctx context.Context) *SettingsDatasourcesCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SettingsDatasourcesCreateCall) Do Uses

func (c *SettingsDatasourcesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.settings.datasources.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SettingsDatasourcesCreateCall) Fields Uses

func (c *SettingsDatasourcesCreateCall) Fields(s ...googleapi.Field) *SettingsDatasourcesCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SettingsDatasourcesCreateCall) Header Uses

func (c *SettingsDatasourcesCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type SettingsDatasourcesDeleteCall Uses

type SettingsDatasourcesDeleteCall struct {
    // contains filtered or unexported fields
}

func (*SettingsDatasourcesDeleteCall) Context Uses

func (c *SettingsDatasourcesDeleteCall) Context(ctx context.Context) *SettingsDatasourcesDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SettingsDatasourcesDeleteCall) DebugOptionsEnableDebugging Uses

func (c *SettingsDatasourcesDeleteCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsDatasourcesDeleteCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*SettingsDatasourcesDeleteCall) Do Uses

func (c *SettingsDatasourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.settings.datasources.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SettingsDatasourcesDeleteCall) Fields Uses

func (c *SettingsDatasourcesDeleteCall) Fields(s ...googleapi.Field) *SettingsDatasourcesDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SettingsDatasourcesDeleteCall) Header Uses

func (c *SettingsDatasourcesDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type SettingsDatasourcesGetCall Uses

type SettingsDatasourcesGetCall struct {
    // contains filtered or unexported fields
}

func (*SettingsDatasourcesGetCall) Context Uses

func (c *SettingsDatasourcesGetCall) Context(ctx context.Context) *SettingsDatasourcesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SettingsDatasourcesGetCall) DebugOptionsEnableDebugging Uses

func (c *SettingsDatasourcesGetCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsDatasourcesGetCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*SettingsDatasourcesGetCall) Do Uses

func (c *SettingsDatasourcesGetCall) Do(opts ...googleapi.CallOption) (*DataSource, error)

Do executes the "cloudsearch.settings.datasources.get" call. Exactly one of *DataSource or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DataSource.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SettingsDatasourcesGetCall) Fields Uses

func (c *SettingsDatasourcesGetCall) Fields(s ...googleapi.Field) *SettingsDatasourcesGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SettingsDatasourcesGetCall) Header Uses

func (c *SettingsDatasourcesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*SettingsDatasourcesGetCall) IfNoneMatch Uses

func (c *SettingsDatasourcesGetCall) IfNoneMatch(entityTag string) *SettingsDatasourcesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type SettingsDatasourcesListCall Uses

type SettingsDatasourcesListCall struct {
    // contains filtered or unexported fields
}

func (*SettingsDatasourcesListCall) Context Uses

func (c *SettingsDatasourcesListCall) Context(ctx context.Context) *SettingsDatasourcesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SettingsDatasourcesListCall) DebugOptionsEnableDebugging Uses

func (c *SettingsDatasourcesListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsDatasourcesListCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*SettingsDatasourcesListCall) Do Uses

func (c *SettingsDatasourcesListCall) Do(opts ...googleapi.CallOption) (*ListDataSourceResponse, error)

Do executes the "cloudsearch.settings.datasources.list" call. Exactly one of *ListDataSourceResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListDataSourceResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SettingsDatasourcesListCall) Fields Uses

func (c *SettingsDatasourcesListCall) Fields(s ...googleapi.Field) *SettingsDatasourcesListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SettingsDatasourcesListCall) Header Uses

func (c *SettingsDatasourcesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*SettingsDatasourcesListCall) IfNoneMatch Uses

func (c *SettingsDatasourcesListCall) IfNoneMatch(entityTag string) *SettingsDatasourcesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*SettingsDatasourcesListCall) PageSize Uses

func (c *SettingsDatasourcesListCall) PageSize(pageSize int64) *SettingsDatasourcesListCall

PageSize sets the optional parameter "pageSize": Maximum number of datasources to fetch in a request. The max value is 100. <br />The default value is 10

func (*SettingsDatasourcesListCall) PageToken Uses

func (c *SettingsDatasourcesListCall) PageToken(pageToken string) *SettingsDatasourcesListCall

PageToken sets the optional parameter "pageToken": Starting index of the results.

func (*SettingsDatasourcesListCall) Pages Uses

func (c *SettingsDatasourcesListCall) Pages(ctx context.Context, f func(*ListDataSourceResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type SettingsDatasourcesService Uses

type SettingsDatasourcesService struct {
    // contains filtered or unexported fields
}

func NewSettingsDatasourcesService Uses

func NewSettingsDatasourcesService(s *Service) *SettingsDatasourcesService

func (*SettingsDatasourcesService) Create Uses

func (r *SettingsDatasourcesService) Create(datasource *DataSource) *SettingsDatasourcesCreateCall

Create: Creates a datasource.

func (*SettingsDatasourcesService) Delete Uses

func (r *SettingsDatasourcesService) Delete(name string) *SettingsDatasourcesDeleteCall

Delete: Deletes a datasource.

func (*SettingsDatasourcesService) Get Uses

func (r *SettingsDatasourcesService) Get(name string) *SettingsDatasourcesGetCall

Get: Gets a datasource.

func (*SettingsDatasourcesService) List Uses

func (r *SettingsDatasourcesService) List() *SettingsDatasourcesListCall

List: Lists datasources.

func (*SettingsDatasourcesService) Update Uses

func (r *SettingsDatasourcesService) Update(name string, updatedatasourcerequest *UpdateDataSourceRequest) *SettingsDatasourcesUpdateCall

Update: Updates a datasource.

type SettingsDatasourcesUpdateCall Uses

type SettingsDatasourcesUpdateCall struct {
    // contains filtered or unexported fields
}

func (*SettingsDatasourcesUpdateCall) Context Uses

func (c *SettingsDatasourcesUpdateCall) Context(ctx context.Context) *SettingsDatasourcesUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SettingsDatasourcesUpdateCall) Do Uses

func (c *SettingsDatasourcesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.settings.datasources.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SettingsDatasourcesUpdateCall) Fields Uses

func (c *SettingsDatasourcesUpdateCall) Fields(s ...googleapi.Field) *SettingsDatasourcesUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SettingsDatasourcesUpdateCall) Header Uses

func (c *SettingsDatasourcesUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type SettingsSearchapplicationsCreateCall Uses

type SettingsSearchapplicationsCreateCall struct {
    // contains filtered or unexported fields
}

func (*SettingsSearchapplicationsCreateCall) Context Uses

func (c *SettingsSearchapplicationsCreateCall) Context(ctx context.Context) *SettingsSearchapplicationsCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SettingsSearchapplicationsCreateCall) Do Uses

func (c *SettingsSearchapplicationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.settings.searchapplications.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SettingsSearchapplicationsCreateCall) Fields Uses

func (c *SettingsSearchapplicationsCreateCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SettingsSearchapplicationsCreateCall) Header Uses

func (c *SettingsSearchapplicationsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type SettingsSearchapplicationsDeleteCall Uses

type SettingsSearchapplicationsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*SettingsSearchapplicationsDeleteCall) Context Uses

func (c *SettingsSearchapplicationsDeleteCall) Context(ctx context.Context) *SettingsSearchapplicationsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SettingsSearchapplicationsDeleteCall) DebugOptionsEnableDebugging Uses

func (c *SettingsSearchapplicationsDeleteCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsSearchapplicationsDeleteCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*SettingsSearchapplicationsDeleteCall) Do Uses

func (c *SettingsSearchapplicationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.settings.searchapplications.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SettingsSearchapplicationsDeleteCall) Fields Uses

func (c *SettingsSearchapplicationsDeleteCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SettingsSearchapplicationsDeleteCall) Header Uses

func (c *SettingsSearchapplicationsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type SettingsSearchapplicationsGetCall Uses

type SettingsSearchapplicationsGetCall struct {
    // contains filtered or unexported fields
}

func (*SettingsSearchapplicationsGetCall) Context Uses

func (c *SettingsSearchapplicationsGetCall) Context(ctx context.Context) *SettingsSearchapplicationsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SettingsSearchapplicationsGetCall) DebugOptionsEnableDebugging Uses

func (c *SettingsSearchapplicationsGetCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsSearchapplicationsGetCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*SettingsSearchapplicationsGetCall) Do Uses

func (c *SettingsSearchapplicationsGetCall) Do(opts ...googleapi.CallOption) (*SearchApplication, error)

Do executes the "cloudsearch.settings.searchapplications.get" call. Exactly one of *SearchApplication or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SearchApplication.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SettingsSearchapplicationsGetCall) Fields Uses

func (c *SettingsSearchapplicationsGetCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SettingsSearchapplicationsGetCall) Header Uses

func (c *SettingsSearchapplicationsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*SettingsSearchapplicationsGetCall) IfNoneMatch Uses

func (c *SettingsSearchapplicationsGetCall) IfNoneMatch(entityTag string) *SettingsSearchapplicationsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type SettingsSearchapplicationsListCall Uses

type SettingsSearchapplicationsListCall struct {
    // contains filtered or unexported fields
}

func (*SettingsSearchapplicationsListCall) Context Uses

func (c *SettingsSearchapplicationsListCall) Context(ctx context.Context) *SettingsSearchapplicationsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SettingsSearchapplicationsListCall) DebugOptionsEnableDebugging Uses

func (c *SettingsSearchapplicationsListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsSearchapplicationsListCall

DebugOptionsEnableDebugging sets the optional parameter "debugOptions.enableDebugging": If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

func (*SettingsSearchapplicationsListCall) Do Uses

func (c *SettingsSearchapplicationsListCall) Do(opts ...googleapi.CallOption) (*ListSearchApplicationsResponse, error)

Do executes the "cloudsearch.settings.searchapplications.list" call. Exactly one of *ListSearchApplicationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListSearchApplicationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SettingsSearchapplicationsListCall) Fields Uses

func (c *SettingsSearchapplicationsListCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SettingsSearchapplicationsListCall) Header Uses

func (c *SettingsSearchapplicationsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*SettingsSearchapplicationsListCall) IfNoneMatch Uses

func (c *SettingsSearchapplicationsListCall) IfNoneMatch(entityTag string) *SettingsSearchapplicationsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*SettingsSearchapplicationsListCall) PageSize Uses

func (c *SettingsSearchapplicationsListCall) PageSize(pageSize int64) *SettingsSearchapplicationsListCall

PageSize sets the optional parameter "pageSize": The maximum number of items to return.

func (*SettingsSearchapplicationsListCall) PageToken Uses

func (c *SettingsSearchapplicationsListCall) PageToken(pageToken string) *SettingsSearchapplicationsListCall

PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any. <br/> The default value is 10

func (*SettingsSearchapplicationsListCall) Pages Uses

func (c *SettingsSearchapplicationsListCall) Pages(ctx context.Context, f func(*ListSearchApplicationsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type SettingsSearchapplicationsResetCall Uses

type SettingsSearchapplicationsResetCall struct {
    // contains filtered or unexported fields
}

func (*SettingsSearchapplicationsResetCall) Context Uses

func (c *SettingsSearchapplicationsResetCall) Context(ctx context.Context) *SettingsSearchapplicationsResetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SettingsSearchapplicationsResetCall) Do Uses

func (c *SettingsSearchapplicationsResetCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.settings.searchapplications.reset" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SettingsSearchapplicationsResetCall) Fields Uses

func (c *SettingsSearchapplicationsResetCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsResetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SettingsSearchapplicationsResetCall) Header Uses

func (c *SettingsSearchapplicationsResetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type SettingsSearchapplicationsService Uses

type SettingsSearchapplicationsService struct {
    // contains filtered or unexported fields
}

func NewSettingsSearchapplicationsService Uses

func NewSettingsSearchapplicationsService(s *Service) *SettingsSearchapplicationsService

func (*SettingsSearchapplicationsService) Create Uses

func (r *SettingsSearchapplicationsService) Create(searchapplication *SearchApplication) *SettingsSearchapplicationsCreateCall

Create: Creates a search application.

func (*SettingsSearchapplicationsService) Delete Uses

func (r *SettingsSearchapplicationsService) Delete(name string) *SettingsSearchapplicationsDeleteCall

Delete: Deletes a search application.

func (*SettingsSearchapplicationsService) Get Uses

func (r *SettingsSearchapplicationsService) Get(name string) *SettingsSearchapplicationsGetCall

Get: Gets the specified search application.

func (*SettingsSearchapplicationsService) List Uses

func (r *SettingsSearchapplicationsService) List() *SettingsSearchapplicationsListCall

List: Lists all search applications.

func (*SettingsSearchapplicationsService) Reset Uses

func (r *SettingsSearchapplicationsService) Reset(name string, resetsearchapplicationrequest *ResetSearchApplicationRequest) *SettingsSearchapplicationsResetCall

Reset: Resets a search application to default settings. This will return an empty response.

func (*SettingsSearchapplicationsService) Update Uses

func (r *SettingsSearchapplicationsService) Update(name string, searchapplication *SearchApplication) *SettingsSearchapplicationsUpdateCall

Update: Updates a search application.

type SettingsSearchapplicationsUpdateCall Uses

type SettingsSearchapplicationsUpdateCall struct {
    // contains filtered or unexported fields
}

func (*SettingsSearchapplicationsUpdateCall) Context Uses

func (c *SettingsSearchapplicationsUpdateCall) Context(ctx context.Context) *SettingsSearchapplicationsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SettingsSearchapplicationsUpdateCall) Do Uses

func (c *SettingsSearchapplicationsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "cloudsearch.settings.searchapplications.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SettingsSearchapplicationsUpdateCall) Fields Uses

func (c *SettingsSearchapplicationsUpdateCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SettingsSearchapplicationsUpdateCall) Header Uses

func (c *SettingsSearchapplicationsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type SettingsService Uses

type SettingsService struct {
    Datasources *SettingsDatasourcesService

    Searchapplications *SettingsSearchapplicationsService
    // contains filtered or unexported fields
}

func NewSettingsService Uses

func NewSettingsService(s *Service) *SettingsService

type Snippet Uses

type Snippet struct {
    // MatchRanges: The matched ranges in the snippet.
    MatchRanges []*MatchRange `json:"matchRanges,omitempty"`

    // Snippet: The snippet of the document.
    // The snippet of the document. May contain escaped HTML character
    // that
    // should be unescaped prior to rendering.
    Snippet string `json:"snippet,omitempty"`

    // ForceSendFields is a list of field names (e.g. "MatchRanges") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "MatchRanges") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Snippet: Snippet of the search result, which summarizes the content of the resulting page.

func (*Snippet) MarshalJSON Uses

func (s *Snippet) MarshalJSON() ([]byte, error)

type SortOptions Uses

type SortOptions struct {
    // OperatorName: Name of the operator corresponding to the field to sort
    // on.
    // The corresponding property must be marked as
    // sortable.
    OperatorName string `json:"operatorName,omitempty"`

    // SortOrder: Ascending is the default sort order
    //
    // Possible values:
    //   "ASCENDING"
    //   "DESCENDING"
    SortOrder string `json:"sortOrder,omitempty"`

    // ForceSendFields is a list of field names (e.g. "OperatorName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "OperatorName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*SortOptions) MarshalJSON Uses

func (s *SortOptions) MarshalJSON() ([]byte, error)

type Source Uses

type Source struct {
    // Name: Source name for content indexed by the
    // Indexing API.
    Name string `json:"name,omitempty"`

    // PredefinedSource: Predefined content source for Google Apps.
    //
    // Possible values:
    //   "NONE"
    //   "QUERY_HISTORY" - Suggests queries issued by the user in the past.
    // Only valid when used
    // with the suggest API. Ignored when used in the query API.
    //   "PERSON" - Suggests people in the organization. Only valid when
    // used
    // with the suggest API. Results in an error when used in the query API.
    //   "GOOGLE_DRIVE"
    //   "GOOGLE_GMAIL"
    //   "GOOGLE_SITES"
    //   "GOOGLE_GROUPS"
    //   "GOOGLE_CALENDAR"
    //   "GOOGLE_KEEP"
    PredefinedSource string `json:"predefinedSource,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Name") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Name") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Source: Defines sources for the suggest/search APIs.

func (*Source) MarshalJSON Uses

func (s *Source) MarshalJSON() ([]byte, error)

type SourceConfig Uses

type SourceConfig struct {
    // CrowdingConfig: The crowding configuration for the source.
    CrowdingConfig *SourceCrowdingConfig `json:"crowdingConfig,omitempty"`

    // ScoringConfig: The scoring configuration for the source.
    ScoringConfig *SourceScoringConfig `json:"scoringConfig,omitempty"`

    // Source: The source for which this configuration is to be used.
    Source *Source `json:"source,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CrowdingConfig") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CrowdingConfig") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SourceConfig: Configurations for a source while processing a Search or Suggest request.

func (*SourceConfig) MarshalJSON Uses

func (s *SourceConfig) MarshalJSON() ([]byte, error)

type SourceCrowdingConfig Uses

type SourceCrowdingConfig struct {
    // NumResults: Maximum number of results allowed from a source.
    // No limits will be set on results if this value is less than or equal
    // to 0.
    NumResults int64 `json:"numResults,omitempty"`

    // NumSuggestions: Maximum number of suggestions allowed from a
    // source.
    // No limits will be set on results if this value is less than or equal
    // to 0.
    NumSuggestions int64 `json:"numSuggestions,omitempty"`

    // ForceSendFields is a list of field names (e.g. "NumResults") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "NumResults") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SourceCrowdingConfig: Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host "crowd out" other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source.

func (*SourceCrowdingConfig) MarshalJSON Uses

func (s *SourceCrowdingConfig) MarshalJSON() ([]byte, error)

type SourceResultCount Uses

type SourceResultCount struct {
    // HasMoreResults: Whether there are more search results for this
    // source.
    HasMoreResults bool `json:"hasMoreResults,omitempty"`

    // ResultCountEstimate: The estimated result count for this source.
    ResultCountEstimate int64 `json:"resultCountEstimate,omitempty,string"`

    // ResultCountExact: The exact result count for this source.
    ResultCountExact int64 `json:"resultCountExact,omitempty,string"`

    // Source: The source the result count information is associated with.
    Source *Source `json:"source,omitempty"`

    // ForceSendFields is a list of field names (e.g. "HasMoreResults") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "HasMoreResults") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SourceResultCount: Per source result count information.

func (*SourceResultCount) MarshalJSON Uses

func (s *SourceResultCount) MarshalJSON() ([]byte, error)

type SourceScoringConfig Uses

type SourceScoringConfig struct {
    // SourceImportance: Importance of the source.
    //
    // Possible values:
    //   "DEFAULT"
    //   "LOW"
    //   "HIGH"
    SourceImportance string `json:"sourceImportance,omitempty"`

    // ForceSendFields is a list of field names (e.g. "SourceImportance") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "SourceImportance") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SourceScoringConfig: Set the scoring configuration. This allows modifying the ranking of results for a source.

func (*SourceScoringConfig) MarshalJSON Uses

func (s *SourceScoringConfig) MarshalJSON() ([]byte, error)

type SpellResult Uses

type SpellResult struct {
    // SuggestedQuery: The suggested spelling of the query.
    SuggestedQuery string `json:"suggestedQuery,omitempty"`

    // ForceSendFields is a list of field names (e.g. "SuggestedQuery") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "SuggestedQuery") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*SpellResult) MarshalJSON Uses

func (s *SpellResult) MarshalJSON() ([]byte, error)

type StartUploadItemRequest Uses

type StartUploadItemRequest struct {
    // ConnectorName: Name of connector making this call.
    // <br />Format: datasources/{source_id}/connectors/{ID}
    ConnectorName string `json:"connectorName,omitempty"`

    // DebugOptions: Common debug options.
    DebugOptions *DebugOptions `json:"debugOptions,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ConnectorName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ConnectorName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

StartUploadItemRequest: Start upload file request.

func (*StartUploadItemRequest) MarshalJSON Uses

func (s *StartUploadItemRequest) MarshalJSON() ([]byte, error)

type StatsGetIndexCall Uses

type StatsGetIndexCall struct {
    // contains filtered or unexported fields
}

func (*StatsGetIndexCall) Context Uses

func (c *StatsGetIndexCall) Context(ctx context.Context) *StatsGetIndexCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*StatsGetIndexCall) Do Uses

func (c *StatsGetIndexCall) Do(opts ...googleapi.CallOption) (*GetCustomerIndexStatsResponse, error)

Do executes the "cloudsearch.stats.getIndex" call. Exactly one of *GetCustomerIndexStatsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GetCustomerIndexStatsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*StatsGetIndexCall) Fields Uses

func (c *StatsGetIndexCall) Fields(s ...googleapi.Field) *StatsGetIndexCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*StatsGetIndexCall) FromDateDay Uses

func (c *StatsGetIndexCall) FromDateDay(fromDateDay int64) *StatsGetIndexCall

FromDateDay sets the optional parameter "fromDate.day": Day of month. Must be from 1 to 31 and valid for the year and month.

func (*StatsGetIndexCall) FromDateMonth Uses

func (c *StatsGetIndexCall) FromDateMonth(fromDateMonth int64) *StatsGetIndexCall

FromDateMonth sets the optional parameter "fromDate.month": Month of date. Must be from 1 to 12.

func (*StatsGetIndexCall) FromDateYear Uses

func (c *StatsGetIndexCall) FromDateYear(fromDateYear int64) *StatsGetIndexCall

FromDateYear sets the optional parameter "fromDate.year": Year of date. Must be from 1 to 9999.

func (*StatsGetIndexCall) Header Uses

func (c *StatsGetIndexCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*StatsGetIndexCall) IfNoneMatch Uses

func (c *StatsGetIndexCall) IfNoneMatch(entityTag string) *StatsGetIndexCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*StatsGetIndexCall) ToDateDay Uses

func (c *StatsGetIndexCall) ToDateDay(toDateDay int64) *StatsGetIndexCall

ToDateDay sets the optional parameter "toDate.day": Day of month. Must be from 1 to 31 and valid for the year and month.

func (*StatsGetIndexCall) ToDateMonth Uses

func (c *StatsGetIndexCall) ToDateMonth(toDateMonth int64) *StatsGetIndexCall

ToDateMonth sets the optional parameter "toDate.month": Month of date. Must be from 1 to 12.

func (*StatsGetIndexCall) ToDateYear Uses

func (c *StatsGetIndexCall) ToDateYear(toDateYear int64) *StatsGetIndexCall

ToDateYear sets the optional parameter "toDate.year": Year of date. Must be from 1 to 9999.

type StatsIndexDatasourcesGetCall Uses

type StatsIndexDatasourcesGetCall struct {
    // contains filtered or unexported fields
}

func (*StatsIndexDatasourcesGetCall) Context Uses

func (c *StatsIndexDatasourcesGetCall) Context(ctx context.Context) *StatsIndexDatasourcesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*StatsIndexDatasourcesGetCall) Do Uses

func (c *StatsIndexDatasourcesGetCall) Do(opts ...googleapi.CallOption) (*GetDataSourceIndexStatsResponse, error)

Do executes the "cloudsearch.stats.index.datasources.get" call. Exactly one of *GetDataSourceIndexStatsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GetDataSourceIndexStatsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*StatsIndexDatasourcesGetCall) Fields Uses

func (c *StatsIndexDatasourcesGetCall) Fields(s ...googleapi.Field) *StatsIndexDatasourcesGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*StatsIndexDatasourcesGetCall) FromDateDay Uses

func (c *StatsIndexDatasourcesGetCall) FromDateDay(fromDateDay int64) *StatsIndexDatasourcesGetCall

FromDateDay sets the optional parameter "fromDate.day": Day of month. Must be from 1 to 31 and valid for the year and month.

func (*StatsIndexDatasourcesGetCall) FromDateMonth Uses

func (c *StatsIndexDatasourcesGetCall) FromDateMonth(fromDateMonth int64) *StatsIndexDatasourcesGetCall

FromDateMonth sets the optional parameter "fromDate.month": Month of date. Must be from 1 to 12.

func (*StatsIndexDatasourcesGetCall) FromDateYear Uses

func (c *StatsIndexDatasourcesGetCall) FromDateYear(fromDateYear int64) *StatsIndexDatasourcesGetCall

FromDateYear sets the optional parameter "fromDate.year": Year of date. Must be from 1 to 9999.

func (*StatsIndexDatasourcesGetCall) Header Uses

func (c *StatsIndexDatasourcesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*StatsIndexDatasourcesGetCall) IfNoneMatch Uses

func (c *StatsIndexDatasourcesGetCall) IfNoneMatch(entityTag string) *StatsIndexDatasourcesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*StatsIndexDatasourcesGetCall) ToDateDay Uses

func (c *StatsIndexDatasourcesGetCall) ToDateDay(toDateDay int64) *StatsIndexDatasourcesGetCall

ToDateDay sets the optional parameter "toDate.day": Day of month. Must be from 1 to 31 and valid for the year and month.

func (*StatsIndexDatasourcesGetCall) ToDateMonth Uses

func (c *StatsIndexDatasourcesGetCall) ToDateMonth(toDateMonth int64) *StatsIndexDatasourcesGetCall

ToDateMonth sets the optional parameter "toDate.month": Month of date. Must be from 1 to 12.

func (*StatsIndexDatasourcesGetCall) ToDateYear Uses

func (c *StatsIndexDatasourcesGetCall) ToDateYear(toDateYear int64) *StatsIndexDatasourcesGetCall

ToDateYear sets the optional parameter "toDate.year": Year of date. Must be from 1 to 9999.

type StatsIndexDatasourcesService Uses

type StatsIndexDatasourcesService struct {
    // contains filtered or unexported fields
}

func NewStatsIndexDatasourcesService Uses

func NewStatsIndexDatasourcesService(s *Service) *StatsIndexDatasourcesService

func (*StatsIndexDatasourcesService) Get Uses

func (r *StatsIndexDatasourcesService) Get(name string) *StatsIndexDatasourcesGetCall

Get: Gets indexed item statistics for a single data source.

type StatsIndexService Uses

type StatsIndexService struct {
    Datasources *StatsIndexDatasourcesService
    // contains filtered or unexported fields
}

func NewStatsIndexService Uses

func NewStatsIndexService(s *Service) *StatsIndexService

type StatsService Uses

type StatsService struct {
    Index *StatsIndexService
    // contains filtered or unexported fields
}

func NewStatsService Uses

func NewStatsService(s *Service) *StatsService

func (*StatsService) GetIndex Uses

func (r *StatsService) GetIndex() *StatsGetIndexCall

GetIndex: Gets indexed item statistics aggreggated across all data sources. This API only returns statistics for previous dates; it doesn't return statistics for the current day.

type Status Uses

type Status struct {
    // Code: The status code, which should be an enum value of
    // google.rpc.Code.
    Code int64 `json:"code,omitempty"`

    // Details: A list of messages that carry the error details.  There is a
    // common set of
    // message types for APIs to use.
    Details []googleapi.RawMessage `json:"details,omitempty"`

    // Message: A developer-facing error message, which should be in
    // English. Any
    // user-facing error message should be localized and sent in
    // the
    // google.rpc.Status.details field, or localized by the client.
    Message string `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Code") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details.

You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).

func (*Status) MarshalJSON Uses

func (s *Status) MarshalJSON() ([]byte, error)

type StructuredDataObject Uses

type StructuredDataObject struct {
    // Properties: The properties for the object.
    // The maximum number of elements is 1000.
    Properties []*NamedProperty `json:"properties,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Properties") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Properties") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

StructuredDataObject: A structured data object consisting of named properties.

func (*StructuredDataObject) MarshalJSON Uses

func (s *StructuredDataObject) MarshalJSON() ([]byte, error)

type StructuredResult Uses

type StructuredResult struct {
    // Person: Representation of a person
    Person *Person `json:"person,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Person") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Person") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

StructuredResult: Structured results that are returned as part of search request.

func (*StructuredResult) MarshalJSON Uses

func (s *StructuredResult) MarshalJSON() ([]byte, error)

type SuggestRequest Uses

type SuggestRequest struct {
    // DataSourceRestrictions: The sources to use for suggestions. If not
    // specified, all data sources
    // from the current search application are used.
    // Suggestions are based on Gmail titles. Suggestions from third party
    // sources
    // are not available.
    DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"`

    // Query: Partial query for which autocomplete suggestions will be
    // shown.
    // For example, if the query is "sea", then the server might
    // return
    // "season", "search", "seagull" and so on.
    Query string `json:"query,omitempty"`

    // RequestOptions: Request options, such as the search application and
    // user timezone.
    RequestOptions *RequestOptions `json:"requestOptions,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "DataSourceRestrictions") to unconditionally include in API requests.
    // By default, fields with empty values are omitted from API requests.
    // However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DataSourceRestrictions")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SuggestRequest: Request of suggest API.

func (*SuggestRequest) MarshalJSON Uses

func (s *SuggestRequest) MarshalJSON() ([]byte, error)

type SuggestResponse Uses

type SuggestResponse struct {
    // SuggestResults: List of suggestions.
    SuggestResults []*SuggestResult `json:"suggestResults,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "SuggestResults") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "SuggestResults") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SuggestResponse: Response of the suggest API.

func (*SuggestResponse) MarshalJSON Uses

func (s *SuggestResponse) MarshalJSON() ([]byte, error)

type SuggestResult Uses

type SuggestResult struct {
    // PeopleSuggestion: This is present when the suggestion indicates a
    // person. It
    // contains more information about the person - like their email
    // ID,
    // name etc.
    PeopleSuggestion *PeopleSuggestion `json:"peopleSuggestion,omitempty"`

    // QuerySuggestion: This field will be present if the suggested query is
    // a word/phrase
    // completion.
    QuerySuggestion *QuerySuggestion `json:"querySuggestion,omitempty"`

    // Source: The source of the suggestion.
    Source *Source `json:"source,omitempty"`

    // SuggestedQuery: The suggested query that will be used for search,
    // when the user
    // clicks on the suggestion
    SuggestedQuery string `json:"suggestedQuery,omitempty"`

    // ForceSendFields is a list of field names (e.g. "PeopleSuggestion") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "PeopleSuggestion") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SuggestResult: One suggestion result.

func (*SuggestResult) MarshalJSON Uses

func (s *SuggestResult) MarshalJSON() ([]byte, error)

type TextOperatorOptions Uses

type TextOperatorOptions struct {
    // ExactMatchWithOperator: If true, the text value will be tokenized as
    // one atomic value in
    // operator searches and facet matches. For example, if the operator
    // name is
    // "genre" and the value is "science-fiction" the query
    // restrictions
    // "genre:science" and "genre:fiction" will not match the
    // item;
    // "genre:science-fiction" will. Value matching is case-sensitive
    // and does not remove special characters.
    // If false, the text will be tokenized. For example, if the value
    // is
    // "science-fiction" the queries "genre:science" and "genre:fiction"
    // will
    // match the item.
    ExactMatchWithOperator bool `json:"exactMatchWithOperator,omitempty"`

    // OperatorName: Indicates the operator name required in the query in
    // order to isolate the
    // text property. For example, if operatorName is *subject* and
    // the
    // property's name is *subjectLine*, then queries
    // like
    // *subject:&lt;value&gt;* will show results only where the value of
    // the
    // property named *subjectLine* matches *&lt;value&gt;*. By contrast,
    // a
    // search that uses the same *&lt;value&gt;* without an operator will
    // return
    // all items where *&lt;value&gt;* matches the value of any
    // text properties or text within the content field for the item.
    // The operator name can only contain lowercase letters (a-z).
    // The maximum length is 32 characters.
    OperatorName string `json:"operatorName,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "ExactMatchWithOperator") to unconditionally include in API requests.
    // By default, fields with empty values are omitted from API requests.
    // However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExactMatchWithOperator")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

TextOperatorOptions: Used to provide a search operator for text properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.

func (*TextOperatorOptions) MarshalJSON Uses

func (s *TextOperatorOptions) MarshalJSON() ([]byte, error)

type TextPropertyOptions Uses

type TextPropertyOptions struct {
    // OperatorOptions: If set, describes how the property should be used as
    // a search operator.
    OperatorOptions *TextOperatorOptions `json:"operatorOptions,omitempty"`

    // RetrievalImportance: Indicates the search quality importance of the
    // tokens within the
    // field when used for retrieval.
    RetrievalImportance *RetrievalImportance `json:"retrievalImportance,omitempty"`

    // ForceSendFields is a list of field names (e.g. "OperatorOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "OperatorOptions") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

TextPropertyOptions: Options for text properties.

func (*TextPropertyOptions) MarshalJSON Uses

func (s *TextPropertyOptions) MarshalJSON() ([]byte, error)

type TextValues Uses

type TextValues struct {
    // Values: The maximum allowable length for text values is 2048
    // characters.
    Values []string `json:"values,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Values") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Values") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

TextValues: List of text values.

func (*TextValues) MarshalJSON Uses

func (s *TextValues) MarshalJSON() ([]byte, error)

type TimestampOperatorOptions Uses

type TimestampOperatorOptions struct {
    // GreaterThanOperatorName: Indicates the operator name required in the
    // query in order to isolate the
    // timestamp property using the greater-than operator. For example,
    // if
    // greaterThanOperatorName is *closedafter* and the property's name
    // is
    // *closeDate*, then queries like *closedafter:&lt;value&gt;* will
    // show results only where the value of the property named *closeDate*
    // is
    // later than *&lt;value&gt;*.
    // The operator name can only contain lowercase letters (a-z).
    // The maximum length is 32 characters.
    GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"`

    // LessThanOperatorName: Indicates the operator name required in the
    // query in order to isolate the
    // timestamp property using the less-than operator. For example,
    // if
    // lessThanOperatorName is *closedbefore* and the property's name
    // is
    // *closeDate*, then queries like *closedbefore:&lt;value&gt;* will
    // show results only where the value of the property named *closeDate*
    // is
    // earlier than *&lt;value&gt;*.
    // The operator name can only contain lowercase letters (a-z).
    // The maximum length is 32 characters.
    LessThanOperatorName string `json:"lessThanOperatorName,omitempty"`

    // OperatorName: Indicates the operator name required in the query in
    // order to isolate the
    // timestamp property. For example, if operatorName is *closedon* and
    // the
    // property's name is *closeDate*, then queries
    // like
    // *closedon:&lt;value&gt;* will show results only where the value of
    // the
    // property named *closeDate* matches *&lt;value&gt;*. By contrast,
    // a
    // search that uses the same *&lt;value&gt;* without an operator will
    // return
    // all items where *&lt;value&gt;* matches the value of any
    // String
    // properties or text within the content field for the item. The
    // operator
    // name can only contain lowercase letters (a-z). The maximum length is
    // 32
    // characters.
    OperatorName string `json:"operatorName,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "GreaterThanOperatorName") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "GreaterThanOperatorName")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

TimestampOperatorOptions: Used to provide a search operator for timestamp properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched.

func (*TimestampOperatorOptions) MarshalJSON Uses

func (s *TimestampOperatorOptions) MarshalJSON() ([]byte, error)

type TimestampPropertyOptions Uses

type TimestampPropertyOptions struct {
    // OperatorOptions: If set, describes how the timestamp should be used
    // as a search operator.
    OperatorOptions *TimestampOperatorOptions `json:"operatorOptions,omitempty"`

    // ForceSendFields is a list of field names (e.g. "OperatorOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "OperatorOptions") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

TimestampPropertyOptions: Options for timestamp properties.

func (*TimestampPropertyOptions) MarshalJSON Uses

func (s *TimestampPropertyOptions) MarshalJSON() ([]byte, error)

type TimestampValues Uses

type TimestampValues struct {
    Values []string `json:"values,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Values") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Values") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

TimestampValues: List of timestamp values.

func (*TimestampValues) MarshalJSON Uses

func (s *TimestampValues) MarshalJSON() ([]byte, error)

type UnmappedIdentity Uses

type UnmappedIdentity struct {
    // ExternalIdentity: The resource name for an external user.
    ExternalIdentity *Principal `json:"externalIdentity,omitempty"`

    // ResolutionStatusCode: The resolution status for the external
    // identity.
    //
    // Possible values:
    //   "CODE_UNSPECIFIED" - Input-only value.  Used to list all unmapped
    // identities regardless of
    // status.
    //   "NOT_FOUND" - The unmapped identity was not found in IDaaS, and
    // needs to be provided by
    // the user.
    //   "IDENTITY_SOURCE_NOT_FOUND" - The identity source associated with
    // the identity was either not found or
    // deleted.
    //   "IDENTITY_SOURCE_MISCONFIGURED" - IDaaS does not understand the
    // identity source, probably because the
    // schema was modified in a non compatible way.
    //   "TOO_MANY_MAPPINGS_FOUND" - The number of users associated with the
    // external identity is too large.
    //   "INTERNAL_ERROR" - Internal error.
    ResolutionStatusCode string `json:"resolutionStatusCode,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ExternalIdentity") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExternalIdentity") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*UnmappedIdentity) MarshalJSON Uses

func (s *UnmappedIdentity) MarshalJSON() ([]byte, error)

type UnreserveItemsRequest Uses

type UnreserveItemsRequest struct {
    // ConnectorName: Name of connector making this call.
    // <br />Format: datasources/{source_id}/connectors/{ID}
    ConnectorName string `json:"connectorName,omitempty"`

    // DebugOptions: Common debug options.
    DebugOptions *DebugOptions `json:"debugOptions,omitempty"`

    // Queue: Name of a queue to unreserve items from.
    Queue string `json:"queue,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ConnectorName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ConnectorName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*UnreserveItemsRequest) MarshalJSON Uses

func (s *UnreserveItemsRequest) MarshalJSON() ([]byte, error)

type UpdateDataSourceRequest Uses

type UpdateDataSourceRequest struct {
    // DebugOptions: Common debug options.
    DebugOptions *DebugOptions `json:"debugOptions,omitempty"`

    Source *DataSource `json:"source,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DebugOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DebugOptions") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*UpdateDataSourceRequest) MarshalJSON Uses

func (s *UpdateDataSourceRequest) MarshalJSON() ([]byte, error)

type UpdateSchemaRequest Uses

type UpdateSchemaRequest struct {
    // DebugOptions: Common debug options.
    DebugOptions *DebugOptions `json:"debugOptions,omitempty"`

    // Schema: The new schema for the source.
    Schema *Schema `json:"schema,omitempty"`

    // ValidateOnly: If true, the request will be validated without side
    // effects.
    ValidateOnly bool `json:"validateOnly,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DebugOptions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DebugOptions") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*UpdateSchemaRequest) MarshalJSON Uses

func (s *UpdateSchemaRequest) MarshalJSON() ([]byte, error)

type UploadItemRef Uses

type UploadItemRef struct {
    // Name: Name of the content reference.
    // The maximum length is 2048 characters.
    Name string `json:"name,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Name") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Name") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

UploadItemRef: Represents an upload session reference. This reference is created via upload method. Updating of item content may refer to this uploaded content via contentDataRef.

func (*UploadItemRef) MarshalJSON Uses

func (s *UploadItemRef) MarshalJSON() ([]byte, error)

type Value Uses

type Value struct {
    BooleanValue bool `json:"booleanValue,omitempty"`

    DateValue *Date `json:"dateValue,omitempty"`

    DoubleValue float64 `json:"doubleValue,omitempty"`

    IntegerValue int64 `json:"integerValue,omitempty,string"`

    StringValue string `json:"stringValue,omitempty"`

    TimestampValue string `json:"timestampValue,omitempty"`

    // ForceSendFields is a list of field names (e.g. "BooleanValue") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BooleanValue") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Value: Definition of a single value with generic type.

func (*Value) MarshalJSON Uses

func (s *Value) MarshalJSON() ([]byte, error)

func (*Value) UnmarshalJSON Uses

func (s *Value) UnmarshalJSON(data []byte) error

type ValueFilter Uses

type ValueFilter struct {
    // OperatorName: The `operator_name` applied to the query, such as
    // *price_greater_than*.
    // The filter can work against both types of filters defined in the
    // schema
    // for your data source:
    // <br/><br/>
    // 1. `operator_name`, where the query filters results by the
    // property
    // that matches the value.
    // <br/>
    // 2. `greater_than_operator_name` or `less_than_operator_name` in
    // your
    // schema. The query filters the results for the property values that
    // are
    // greate