Variables
DataSource_Input_name, DataSource_Input_value
var (
DataSource_Input_name = map[int32]string{
0: "INPUT_UNSPECIFIED",
1: "API",
2: "FILE",
3: "UI",
4: "AUTOFEED",
}
DataSource_Input_value = map[string]int32{
"INPUT_UNSPECIFIED": 0,
"API": 1,
"FILE": 2,
"UI": 3,
"AUTOFEED": 4,
}
)
Enum value maps for DataSource_Input.
PrimaryProductDataSource_Channel_name, PrimaryProductDataSource_Channel_value
var (
PrimaryProductDataSource_Channel_name = map[int32]string{
0: "CHANNEL_UNSPECIFIED",
1: "ONLINE_PRODUCTS",
2: "LOCAL_PRODUCTS",
3: "PRODUCTS",
}
PrimaryProductDataSource_Channel_value = map[string]int32{
"CHANNEL_UNSPECIFIED": 0,
"ONLINE_PRODUCTS": 1,
"LOCAL_PRODUCTS": 2,
"PRODUCTS": 3,
}
)
Enum value maps for PrimaryProductDataSource_Channel.
FileInput_FileInputType_name, FileInput_FileInputType_value
var (
FileInput_FileInputType_name = map[int32]string{
0: "FILE_INPUT_TYPE_UNSPECIFIED",
1: "UPLOAD",
2: "FETCH",
3: "GOOGLE_SHEETS",
}
FileInput_FileInputType_value = map[string]int32{
"FILE_INPUT_TYPE_UNSPECIFIED": 0,
"UPLOAD": 1,
"FETCH": 2,
"GOOGLE_SHEETS": 3,
}
)
Enum value maps for FileInput_FileInputType.
FileInput_FetchSettings_Frequency_name, FileInput_FetchSettings_Frequency_value
var (
FileInput_FetchSettings_Frequency_name = map[int32]string{
0: "FREQUENCY_UNSPECIFIED",
1: "FREQUENCY_DAILY",
2: "FREQUENCY_WEEKLY",
3: "FREQUENCY_MONTHLY",
}
FileInput_FetchSettings_Frequency_value = map[string]int32{
"FREQUENCY_UNSPECIFIED": 0,
"FREQUENCY_DAILY": 1,
"FREQUENCY_WEEKLY": 2,
"FREQUENCY_MONTHLY": 3,
}
)
Enum value maps for FileInput_FetchSettings_Frequency.
File_google_shopping_merchant_datasources_v1beta_datasources_proto
var File_google_shopping_merchant_datasources_v1beta_datasources_proto protoreflect.FileDescriptor
File_google_shopping_merchant_datasources_v1beta_datasourcetypes_proto
var File_google_shopping_merchant_datasources_v1beta_datasourcetypes_proto protoreflect.FileDescriptor
File_google_shopping_merchant_datasources_v1beta_fileinputs_proto
var File_google_shopping_merchant_datasources_v1beta_fileinputs_proto protoreflect.FileDescriptor
Functions
func RegisterDataSourcesServiceServer
func RegisterDataSourcesServiceServer(s *grpc.Server, srv DataSourcesServiceServer)
CreateDataSourceRequest
type CreateDataSourceRequest struct {
// Required. The account where this data source will be created.
// Format: `accounts/{account}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The data source to create.
DataSource *DataSource `protobuf:"bytes,2,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
// contains filtered or unexported fields
}
Request message for the CreateDataSource method.
func (*CreateDataSourceRequest) Descriptor
func (*CreateDataSourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDataSourceRequest.ProtoReflect.Descriptor instead.
func (*CreateDataSourceRequest) GetDataSource
func (x *CreateDataSourceRequest) GetDataSource() *DataSource
func (*CreateDataSourceRequest) GetParent
func (x *CreateDataSourceRequest) GetParent() string
func (*CreateDataSourceRequest) ProtoMessage
func (*CreateDataSourceRequest) ProtoMessage()
func (*CreateDataSourceRequest) ProtoReflect
func (x *CreateDataSourceRequest) ProtoReflect() protoreflect.Message
func (*CreateDataSourceRequest) Reset
func (x *CreateDataSourceRequest) Reset()
func (*CreateDataSourceRequest) String
func (x *CreateDataSourceRequest) String() string
DataSource
type DataSource struct {
Type isDataSource_Type `protobuf_oneof:"Type"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
DataSourceId int64 `protobuf:"varint,2,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
Input DataSource_Input "" /* 131 byte string literal not displayed */
FileInput *FileInput `protobuf:"bytes,11,opt,name=file_input,json=fileInput,proto3" json:"file_input,omitempty"`
}
The data source for the Merchant Center account.
func (*DataSource) Descriptor
func (*DataSource) Descriptor() ([]byte, []int)
Deprecated: Use DataSource.ProtoReflect.Descriptor instead.
func (*DataSource) GetDataSourceId
func (x *DataSource) GetDataSourceId() int64
func (*DataSource) GetDisplayName
func (x *DataSource) GetDisplayName() string
func (*DataSource) GetFileInput
func (x *DataSource) GetFileInput() *FileInput
func (*DataSource) GetInput
func (x *DataSource) GetInput() DataSource_Input
func (*DataSource) GetLocalInventoryDataSource
func (x *DataSource) GetLocalInventoryDataSource() *LocalInventoryDataSource
func (*DataSource) GetName
func (x *DataSource) GetName() string
func (*DataSource) GetPrimaryProductDataSource
func (x *DataSource) GetPrimaryProductDataSource() *PrimaryProductDataSource
func (*DataSource) GetPromotionDataSource
func (x *DataSource) GetPromotionDataSource() *PromotionDataSource
func (*DataSource) GetRegionalInventoryDataSource
func (x *DataSource) GetRegionalInventoryDataSource() *RegionalInventoryDataSource
func (*DataSource) GetSupplementalProductDataSource
func (x *DataSource) GetSupplementalProductDataSource() *SupplementalProductDataSource
func (*DataSource) GetType
func (m *DataSource) GetType() isDataSource_Type
func (*DataSource) ProtoMessage
func (*DataSource) ProtoMessage()
func (*DataSource) ProtoReflect
func (x *DataSource) ProtoReflect() protoreflect.Message
func (*DataSource) Reset
func (x *DataSource) Reset()
func (*DataSource) String
func (x *DataSource) String() string
DataSource_Input
type DataSource_Input int32
Determines the type of input to the data source. Based on the input some settings might not be supported.
DataSource_INPUT_UNSPECIFIED, DataSource_API, DataSource_FILE, DataSource_UI, DataSource_AUTOFEED
const (
// Input unspecified.
DataSource_INPUT_UNSPECIFIED DataSource_Input = 0
// Represents data sources for which the data is primarily provided through
// the API.
DataSource_API DataSource_Input = 1
// Represents data sources for which the data is primarily provided through
// file input. Data can still be provided through the API.
DataSource_FILE DataSource_Input = 2
// The data source for products added directly in Merchant Center.
//
// This type of data source can not be created or updated through this API,
// only by Merchant Center UI.
//
// This type of data source is read only.
DataSource_UI DataSource_Input = 3
// This is also known as
// [Automated feeds](https://support.google.com/merchants/answer/12158480)
// used to automatically build your product data. This type of data source
// can be enabled or disabled through the Accounts bundle.
DataSource_AUTOFEED DataSource_Input = 4
)
func (DataSource_Input) Descriptor
func (DataSource_Input) Descriptor() protoreflect.EnumDescriptor
func (DataSource_Input) Enum
func (x DataSource_Input) Enum() *DataSource_Input
func (DataSource_Input) EnumDescriptor
func (DataSource_Input) EnumDescriptor() ([]byte, []int)
Deprecated: Use DataSource_Input.Descriptor instead.
func (DataSource_Input) Number
func (x DataSource_Input) Number() protoreflect.EnumNumber
func (DataSource_Input) String
func (x DataSource_Input) String() string
func (DataSource_Input) Type
func (DataSource_Input) Type() protoreflect.EnumType
DataSource_LocalInventoryDataSource
type DataSource_LocalInventoryDataSource struct {
// Required. The [local
// inventory](https://support.google.com/merchants/answer/7023001) data
// source.
LocalInventoryDataSource *LocalInventoryDataSource `protobuf:"bytes,6,opt,name=local_inventory_data_source,json=localInventoryDataSource,proto3,oneof"`
}
DataSource_PrimaryProductDataSource
type DataSource_PrimaryProductDataSource struct {
// Required. The [primary data
// source](https://support.google.com/merchants/answer/7439058) for local
// and online products.
PrimaryProductDataSource *PrimaryProductDataSource `protobuf:"bytes,4,opt,name=primary_product_data_source,json=primaryProductDataSource,proto3,oneof"`
}
DataSource_PromotionDataSource
type DataSource_PromotionDataSource struct {
// Required. The
// [promotion](https://support.google.com/merchants/answer/2906014) data
// source.
PromotionDataSource *PromotionDataSource `protobuf:"bytes,8,opt,name=promotion_data_source,json=promotionDataSource,proto3,oneof"`
}
DataSource_RegionalInventoryDataSource
type DataSource_RegionalInventoryDataSource struct {
// Required. The [regional
// inventory](https://support.google.com/merchants/answer/7439058) data
// source.
RegionalInventoryDataSource *RegionalInventoryDataSource `protobuf:"bytes,7,opt,name=regional_inventory_data_source,json=regionalInventoryDataSource,proto3,oneof"`
}
DataSource_SupplementalProductDataSource
type DataSource_SupplementalProductDataSource struct {
// Required. The [supplemental data
// source](https://support.google.com/merchants/answer/7439058) for local
// and online products.
SupplementalProductDataSource *SupplementalProductDataSource `protobuf:"bytes,5,opt,name=supplemental_product_data_source,json=supplementalProductDataSource,proto3,oneof"`
}
DataSourcesServiceClient
type DataSourcesServiceClient interface {
// Retrieves the data source configuration for the given account.
GetDataSource(ctx context.Context, in *GetDataSourceRequest, opts ...grpc.CallOption) (*DataSource, error)
// Lists the configurations for data sources for the given account.
ListDataSources(ctx context.Context, in *ListDataSourcesRequest, opts ...grpc.CallOption) (*ListDataSourcesResponse, error)
// Creates the new data source configuration for the given account.
CreateDataSource(ctx context.Context, in *CreateDataSourceRequest, opts ...grpc.CallOption) (*DataSource, error)
// Updates the existing data source configuration. The fields that are
// set in the update mask but not provided in the resource will be deleted.
UpdateDataSource(ctx context.Context, in *UpdateDataSourceRequest, opts ...grpc.CallOption) (*DataSource, error)
// Deletes a data source from your Merchant Center account.
DeleteDataSource(ctx context.Context, in *DeleteDataSourceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Performs the data fetch immediately (even outside fetch schedule) on a
// data source from your Merchant Center Account. If you need to call
// this method more than once per day, you should use the Products service to
// update your product data instead.
// This method only works on data sources with a file input set.
FetchDataSource(ctx context.Context, in *FetchDataSourceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
DataSourcesServiceClient is the client API for DataSourcesService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDataSourcesServiceClient
func NewDataSourcesServiceClient(cc grpc.ClientConnInterface) DataSourcesServiceClient
DataSourcesServiceServer
type DataSourcesServiceServer interface {
// Retrieves the data source configuration for the given account.
GetDataSource(context.Context, *GetDataSourceRequest) (*DataSource, error)
// Lists the configurations for data sources for the given account.
ListDataSources(context.Context, *ListDataSourcesRequest) (*ListDataSourcesResponse, error)
// Creates the new data source configuration for the given account.
CreateDataSource(context.Context, *CreateDataSourceRequest) (*DataSource, error)
// Updates the existing data source configuration. The fields that are
// set in the update mask but not provided in the resource will be deleted.
UpdateDataSource(context.Context, *UpdateDataSourceRequest) (*DataSource, error)
// Deletes a data source from your Merchant Center account.
DeleteDataSource(context.Context, *DeleteDataSourceRequest) (*emptypb.Empty, error)
// Performs the data fetch immediately (even outside fetch schedule) on a
// data source from your Merchant Center Account. If you need to call
// this method more than once per day, you should use the Products service to
// update your product data instead.
// This method only works on data sources with a file input set.
FetchDataSource(context.Context, *FetchDataSourceRequest) (*emptypb.Empty, error)
}
DataSourcesServiceServer is the server API for DataSourcesService service.
DeleteDataSourceRequest
type DeleteDataSourceRequest struct {
// Required. The name of the data source to delete.
// Format: `accounts/{account}/dataSources/{datasource}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the DeleteDataSource method.
func (*DeleteDataSourceRequest) Descriptor
func (*DeleteDataSourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDataSourceRequest.ProtoReflect.Descriptor instead.
func (*DeleteDataSourceRequest) GetName
func (x *DeleteDataSourceRequest) GetName() string
func (*DeleteDataSourceRequest) ProtoMessage
func (*DeleteDataSourceRequest) ProtoMessage()
func (*DeleteDataSourceRequest) ProtoReflect
func (x *DeleteDataSourceRequest) ProtoReflect() protoreflect.Message
func (*DeleteDataSourceRequest) Reset
func (x *DeleteDataSourceRequest) Reset()
func (*DeleteDataSourceRequest) String
func (x *DeleteDataSourceRequest) String() string
FetchDataSourceRequest
type FetchDataSourceRequest struct {
// Required. The name of the data source resource to fetch.
// Format: `accounts/{account}/dataSources/{datasource}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the FetchDataSource method.
func (*FetchDataSourceRequest) Descriptor
func (*FetchDataSourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchDataSourceRequest.ProtoReflect.Descriptor instead.
func (*FetchDataSourceRequest) GetName
func (x *FetchDataSourceRequest) GetName() string
func (*FetchDataSourceRequest) ProtoMessage
func (*FetchDataSourceRequest) ProtoMessage()
func (*FetchDataSourceRequest) ProtoReflect
func (x *FetchDataSourceRequest) ProtoReflect() protoreflect.Message
func (*FetchDataSourceRequest) Reset
func (x *FetchDataSourceRequest) Reset()
func (*FetchDataSourceRequest) String
func (x *FetchDataSourceRequest) String() string
FileInput
type FileInput struct {
FetchSettings *FileInput_FetchSettings `protobuf:"bytes,1,opt,name=fetch_settings,json=fetchSettings,proto3" json:"fetch_settings,omitempty"`
FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
FileInputType FileInput_FileInputType "" /* 176 byte string literal not displayed */
}
The data specific for file data sources. This field is empty for other data source inputs.
func (*FileInput) Descriptor
Deprecated: Use FileInput.ProtoReflect.Descriptor instead.
func (*FileInput) GetFetchSettings
func (x *FileInput) GetFetchSettings() *FileInput_FetchSettings
func (*FileInput) GetFileInputType
func (x *FileInput) GetFileInputType() FileInput_FileInputType
func (*FileInput) GetFileName
func (*FileInput) ProtoMessage
func (*FileInput) ProtoMessage()
func (*FileInput) ProtoReflect
func (x *FileInput) ProtoReflect() protoreflect.Message
func (*FileInput) Reset
func (x *FileInput) Reset()
func (*FileInput) String
FileInput_FetchSettings
type FileInput_FetchSettings struct {
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
DayOfMonth int32 `protobuf:"varint,2,opt,name=day_of_month,json=dayOfMonth,proto3" json:"day_of_month,omitempty"`
TimeOfDay *timeofday.TimeOfDay `protobuf:"bytes,3,opt,name=time_of_day,json=timeOfDay,proto3" json:"time_of_day,omitempty"`
DayOfWeek dayofweek.DayOfWeek `protobuf:"varint,4,opt,name=day_of_week,json=dayOfWeek,proto3,enum=google.type.DayOfWeek" json:"day_of_week,omitempty"`
TimeZone string `protobuf:"bytes,5,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
Frequency FileInput_FetchSettings_Frequency "" /* 155 byte string literal not displayed */
FetchUri string `protobuf:"bytes,7,opt,name=fetch_uri,json=fetchUri,proto3" json:"fetch_uri,omitempty"`
Username string `protobuf:"bytes,8,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,9,opt,name=password,proto3" json:"password,omitempty"`
}
Fetch details to deliver the data source.
func (*FileInput_FetchSettings) Descriptor
func (*FileInput_FetchSettings) Descriptor() ([]byte, []int)
Deprecated: Use FileInput_FetchSettings.ProtoReflect.Descriptor instead.
func (*FileInput_FetchSettings) GetDayOfMonth
func (x *FileInput_FetchSettings) GetDayOfMonth() int32
func (*FileInput_FetchSettings) GetDayOfWeek
func (x *FileInput_FetchSettings) GetDayOfWeek() dayofweek.DayOfWeek
func (*FileInput_FetchSettings) GetEnabled
func (x *FileInput_FetchSettings) GetEnabled() bool
func (*FileInput_FetchSettings) GetFetchUri
func (x *FileInput_FetchSettings) GetFetchUri() string
func (*FileInput_FetchSettings) GetFrequency
func (x *FileInput_FetchSettings) GetFrequency() FileInput_FetchSettings_Frequency
func (*FileInput_FetchSettings) GetPassword
func (x *FileInput_FetchSettings) GetPassword() string
func (*FileInput_FetchSettings) GetTimeOfDay
func (x *FileInput_FetchSettings) GetTimeOfDay() *timeofday.TimeOfDay
func (*FileInput_FetchSettings) GetTimeZone
func (x *FileInput_FetchSettings) GetTimeZone() string
func (*FileInput_FetchSettings) GetUsername
func (x *FileInput_FetchSettings) GetUsername() string
func (*FileInput_FetchSettings) ProtoMessage
func (*FileInput_FetchSettings) ProtoMessage()
func (*FileInput_FetchSettings) ProtoReflect
func (x *FileInput_FetchSettings) ProtoReflect() protoreflect.Message
func (*FileInput_FetchSettings) Reset
func (x *FileInput_FetchSettings) Reset()
func (*FileInput_FetchSettings) String
func (x *FileInput_FetchSettings) String() string
FileInput_FetchSettings_Frequency
type FileInput_FetchSettings_Frequency int32
The required fields vary based on the frequency of fetching. For a monthly fetch schedule, [day of month][google.shopping.content.bundles.DataSources.FileInput.FetchSchedule.day_of_month] and [hour of day][google.shopping.content.bundles.DataSources.FileInput.FetchSchedule.time_of_day] are required. For a weekly fetch schedule, [day of week][google.shopping.content.bundles.DataSources.FileInput.FetchSchedule.day_of_week] and [hour of day][google.shopping.content.bundles.DataSources.FileInput.FetchSchedule.time_of_day] are required. For a daily fetch schedule, only an [hour of day][google.shopping.content.bundles.DataSources.FileInput.FetchSchedule.time_of_day] is required.
FileInput_FetchSettings_FREQUENCY_UNSPECIFIED, FileInput_FetchSettings_FREQUENCY_DAILY, FileInput_FetchSettings_FREQUENCY_WEEKLY, FileInput_FetchSettings_FREQUENCY_MONTHLY
const (
// Frequency unspecified.
FileInput_FetchSettings_FREQUENCY_UNSPECIFIED FileInput_FetchSettings_Frequency = 0
// The fetch happens every day.
FileInput_FetchSettings_FREQUENCY_DAILY FileInput_FetchSettings_Frequency = 1
// The fetch happens every week.
FileInput_FetchSettings_FREQUENCY_WEEKLY FileInput_FetchSettings_Frequency = 2
// The fetch happens every month.
FileInput_FetchSettings_FREQUENCY_MONTHLY FileInput_FetchSettings_Frequency = 3
)
func (FileInput_FetchSettings_Frequency) Descriptor
func (FileInput_FetchSettings_Frequency) Descriptor() protoreflect.EnumDescriptor
func (FileInput_FetchSettings_Frequency) Enum
func (x FileInput_FetchSettings_Frequency) Enum() *FileInput_FetchSettings_Frequency
func (FileInput_FetchSettings_Frequency) EnumDescriptor
func (FileInput_FetchSettings_Frequency) EnumDescriptor() ([]byte, []int)
Deprecated: Use FileInput_FetchSettings_Frequency.Descriptor instead.
func (FileInput_FetchSettings_Frequency) Number
func (x FileInput_FetchSettings_Frequency) Number() protoreflect.EnumNumber
func (FileInput_FetchSettings_Frequency) String
func (x FileInput_FetchSettings_Frequency) String() string
func (FileInput_FetchSettings_Frequency) Type
func (FileInput_FetchSettings_Frequency) Type() protoreflect.EnumType
FileInput_FileInputType
type FileInput_FileInputType int32
The method of file delivery.
FileInput_FILE_INPUT_TYPE_UNSPECIFIED, FileInput_UPLOAD, FileInput_FETCH, FileInput_GOOGLE_SHEETS
const (
// File input type unspecified.
FileInput_FILE_INPUT_TYPE_UNSPECIFIED FileInput_FileInputType = 0
// The file is uploaded through SFTP, Google Cloud Storage or manually in
// the Merchant Center.
FileInput_UPLOAD FileInput_FileInputType = 1
// The file is fetched from the configured
// [fetch_uri][google.shopping.content.bundles.DataSources.FileInput.FetchSettings.fetch_uri].
FileInput_FETCH FileInput_FileInputType = 2
// The file is fetched from Google Sheets specified in the
// [fetch_uri][google.shopping.content.bundles.DataSources.FileInput.FetchSettings.fetch_uri].
FileInput_GOOGLE_SHEETS FileInput_FileInputType = 3
)
func (FileInput_FileInputType) Descriptor
func (FileInput_FileInputType) Descriptor() protoreflect.EnumDescriptor
func (FileInput_FileInputType) Enum
func (x FileInput_FileInputType) Enum() *FileInput_FileInputType
func (FileInput_FileInputType) EnumDescriptor
func (FileInput_FileInputType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FileInput_FileInputType.Descriptor instead.
func (FileInput_FileInputType) Number
func (x FileInput_FileInputType) Number() protoreflect.EnumNumber
func (FileInput_FileInputType) String
func (x FileInput_FileInputType) String() string
func (FileInput_FileInputType) Type
func (FileInput_FileInputType) Type() protoreflect.EnumType
GetDataSourceRequest
type GetDataSourceRequest struct {
// Required. The name of the data source to retrieve.
// Format: `accounts/{account}/dataSources/{datasource}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for the GetDataSource method.
func (*GetDataSourceRequest) Descriptor
func (*GetDataSourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDataSourceRequest.ProtoReflect.Descriptor instead.
func (*GetDataSourceRequest) GetName
func (x *GetDataSourceRequest) GetName() string
func (*GetDataSourceRequest) ProtoMessage
func (*GetDataSourceRequest) ProtoMessage()
func (*GetDataSourceRequest) ProtoReflect
func (x *GetDataSourceRequest) ProtoReflect() protoreflect.Message
func (*GetDataSourceRequest) Reset
func (x *GetDataSourceRequest) Reset()
func (*GetDataSourceRequest) String
func (x *GetDataSourceRequest) String() string
ListDataSourcesRequest
type ListDataSourcesRequest struct {
// Required. The account to list data sources for.
// Format: `accounts/{account}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of data sources to return. The service may
// return fewer than this value. The maximum value is 1000; values above 1000
// will be coerced to 1000. If unspecified, the maximum number of data sources
// will be returned.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListDataSources` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListDataSources`
// must match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
Request message for the ListDataSources method.
func (*ListDataSourcesRequest) Descriptor
func (*ListDataSourcesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDataSourcesRequest.ProtoReflect.Descriptor instead.
func (*ListDataSourcesRequest) GetPageSize
func (x *ListDataSourcesRequest) GetPageSize() int32
func (*ListDataSourcesRequest) GetPageToken
func (x *ListDataSourcesRequest) GetPageToken() string
func (*ListDataSourcesRequest) GetParent
func (x *ListDataSourcesRequest) GetParent() string
func (*ListDataSourcesRequest) ProtoMessage
func (*ListDataSourcesRequest) ProtoMessage()
func (*ListDataSourcesRequest) ProtoReflect
func (x *ListDataSourcesRequest) ProtoReflect() protoreflect.Message
func (*ListDataSourcesRequest) Reset
func (x *ListDataSourcesRequest) Reset()
func (*ListDataSourcesRequest) String
func (x *ListDataSourcesRequest) String() string
ListDataSourcesResponse
type ListDataSourcesResponse struct {
// The data sources from the specified account.
DataSources []*DataSource `protobuf:"bytes,1,rep,name=data_sources,json=dataSources,proto3" json:"data_sources,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response message for the ListDataSources method.
func (*ListDataSourcesResponse) Descriptor
func (*ListDataSourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDataSourcesResponse.ProtoReflect.Descriptor instead.
func (*ListDataSourcesResponse) GetDataSources
func (x *ListDataSourcesResponse) GetDataSources() []*DataSource
func (*ListDataSourcesResponse) GetNextPageToken
func (x *ListDataSourcesResponse) GetNextPageToken() string
func (*ListDataSourcesResponse) ProtoMessage
func (*ListDataSourcesResponse) ProtoMessage()
func (*ListDataSourcesResponse) ProtoReflect
func (x *ListDataSourcesResponse) ProtoReflect() protoreflect.Message
func (*ListDataSourcesResponse) Reset
func (x *ListDataSourcesResponse) Reset()
func (*ListDataSourcesResponse) String
func (x *ListDataSourcesResponse) String() string
LocalInventoryDataSource
type LocalInventoryDataSource struct {
// Required. Immutable. The feed label of the offers to which the local
// inventory is provided.
//
// Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9),
// and dashes (-).
//
// See also [migration to feed
// labels](https://developers.google.com/shopping-content/guides/products/feed-labels).
FeedLabel string `protobuf:"bytes,4,opt,name=feed_label,json=feedLabel,proto3" json:"feed_label,omitempty"`
// Required. Immutable. The two-letter ISO 639-1 language of the items to
// which the local inventory is provided.
ContentLanguage string `protobuf:"bytes,5,opt,name=content_language,json=contentLanguage,proto3" json:"content_language,omitempty"`
// contains filtered or unexported fields
}
The local inventory data source.
func (*LocalInventoryDataSource) Descriptor
func (*LocalInventoryDataSource) Descriptor() ([]byte, []int)
Deprecated: Use LocalInventoryDataSource.ProtoReflect.Descriptor instead.
func (*LocalInventoryDataSource) GetContentLanguage
func (x *LocalInventoryDataSource) GetContentLanguage() string
func (*LocalInventoryDataSource) GetFeedLabel
func (x *LocalInventoryDataSource) GetFeedLabel() string
func (*LocalInventoryDataSource) ProtoMessage
func (*LocalInventoryDataSource) ProtoMessage()
func (*LocalInventoryDataSource) ProtoReflect
func (x *LocalInventoryDataSource) ProtoReflect() protoreflect.Message
func (*LocalInventoryDataSource) Reset
func (x *LocalInventoryDataSource) Reset()
func (*LocalInventoryDataSource) String
func (x *LocalInventoryDataSource) String() string
PrimaryProductDataSource
type PrimaryProductDataSource struct {
Channel PrimaryProductDataSource_Channel "" /* 150 byte string literal not displayed */
FeedLabel *string `protobuf:"bytes,4,opt,name=feed_label,json=feedLabel,proto3,oneof" json:"feed_label,omitempty"`
ContentLanguage *string `protobuf:"bytes,5,opt,name=content_language,json=contentLanguage,proto3,oneof" json:"content_language,omitempty"`
Countries []string `protobuf:"bytes,6,rep,name=countries,proto3" json:"countries,omitempty"`
}
The primary data source for local and online products.
func (*PrimaryProductDataSource) Descriptor
func (*PrimaryProductDataSource) Descriptor() ([]byte, []int)
Deprecated: Use PrimaryProductDataSource.ProtoReflect.Descriptor instead.
func (*PrimaryProductDataSource) GetChannel
func (x *PrimaryProductDataSource) GetChannel() PrimaryProductDataSource_Channel
func (*PrimaryProductDataSource) GetContentLanguage
func (x *PrimaryProductDataSource) GetContentLanguage() string
func (*PrimaryProductDataSource) GetCountries
func (x *PrimaryProductDataSource) GetCountries() []string
func (*PrimaryProductDataSource) GetFeedLabel
func (x *PrimaryProductDataSource) GetFeedLabel() string
func (*PrimaryProductDataSource) ProtoMessage
func (*PrimaryProductDataSource) ProtoMessage()
func (*PrimaryProductDataSource) ProtoReflect
func (x *PrimaryProductDataSource) ProtoReflect() protoreflect.Message
func (*PrimaryProductDataSource) Reset
func (x *PrimaryProductDataSource) Reset()
func (*PrimaryProductDataSource) String
func (x *PrimaryProductDataSource) String() string
PrimaryProductDataSource_Channel
type PrimaryProductDataSource_Channel int32
Data Source Channel.
Channel is used to distinguish between data sources for different product verticals.
PrimaryProductDataSource_CHANNEL_UNSPECIFIED, PrimaryProductDataSource_ONLINE_PRODUCTS, PrimaryProductDataSource_LOCAL_PRODUCTS, PrimaryProductDataSource_PRODUCTS
const (
// Not specified.
PrimaryProductDataSource_CHANNEL_UNSPECIFIED PrimaryProductDataSource_Channel = 0
// Online product.
PrimaryProductDataSource_ONLINE_PRODUCTS PrimaryProductDataSource_Channel = 1
// Local product.
PrimaryProductDataSource_LOCAL_PRODUCTS PrimaryProductDataSource_Channel = 2
// Unified data source for both local and online products.
PrimaryProductDataSource_PRODUCTS PrimaryProductDataSource_Channel = 3
)
func (PrimaryProductDataSource_Channel) Descriptor
func (PrimaryProductDataSource_Channel) Descriptor() protoreflect.EnumDescriptor
func (PrimaryProductDataSource_Channel) Enum
func (x PrimaryProductDataSource_Channel) Enum() *PrimaryProductDataSource_Channel
func (PrimaryProductDataSource_Channel) EnumDescriptor
func (PrimaryProductDataSource_Channel) EnumDescriptor() ([]byte, []int)
Deprecated: Use PrimaryProductDataSource_Channel.Descriptor instead.
func (PrimaryProductDataSource_Channel) Number
func (x PrimaryProductDataSource_Channel) Number() protoreflect.EnumNumber
func (PrimaryProductDataSource_Channel) String
func (x PrimaryProductDataSource_Channel) String() string
func (PrimaryProductDataSource_Channel) Type
func (PrimaryProductDataSource_Channel) Type() protoreflect.EnumType
PromotionDataSource
type PromotionDataSource struct {
// Required. Immutable. The target country used as part of the unique
// identifier. Represented as a [CLDR territory
// code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml).
//
// Promotions are only available in selected
// [countries](https://support.google.com/merchants/answer/4588460).
TargetCountry string `protobuf:"bytes,1,opt,name=target_country,json=targetCountry,proto3" json:"target_country,omitempty"`
// Required. Immutable. The two-letter ISO 639-1 language of the items in the
// data source.
ContentLanguage string `protobuf:"bytes,2,opt,name=content_language,json=contentLanguage,proto3" json:"content_language,omitempty"`
// contains filtered or unexported fields
}
The promotion data source.
func (*PromotionDataSource) Descriptor
func (*PromotionDataSource) Descriptor() ([]byte, []int)
Deprecated: Use PromotionDataSource.ProtoReflect.Descriptor instead.
func (*PromotionDataSource) GetContentLanguage
func (x *PromotionDataSource) GetContentLanguage() string
func (*PromotionDataSource) GetTargetCountry
func (x *PromotionDataSource) GetTargetCountry() string
func (*PromotionDataSource) ProtoMessage
func (*PromotionDataSource) ProtoMessage()
func (*PromotionDataSource) ProtoReflect
func (x *PromotionDataSource) ProtoReflect() protoreflect.Message
func (*PromotionDataSource) Reset
func (x *PromotionDataSource) Reset()
func (*PromotionDataSource) String
func (x *PromotionDataSource) String() string
RegionalInventoryDataSource
type RegionalInventoryDataSource struct {
// Required. Immutable. The feed label of the offers to which the regional
// inventory is provided.
//
// Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9),
// and dashes (-).
//
// See also [migration to feed
// labels](https://developers.google.com/shopping-content/guides/products/feed-labels).
FeedLabel string `protobuf:"bytes,4,opt,name=feed_label,json=feedLabel,proto3" json:"feed_label,omitempty"`
// Required. Immutable. The two-letter ISO 639-1 language of the items to
// which the regional inventory is provided.
ContentLanguage string `protobuf:"bytes,5,opt,name=content_language,json=contentLanguage,proto3" json:"content_language,omitempty"`
// contains filtered or unexported fields
}
The regional inventory data source.
func (*RegionalInventoryDataSource) Descriptor
func (*RegionalInventoryDataSource) Descriptor() ([]byte, []int)
Deprecated: Use RegionalInventoryDataSource.ProtoReflect.Descriptor instead.
func (*RegionalInventoryDataSource) GetContentLanguage
func (x *RegionalInventoryDataSource) GetContentLanguage() string
func (*RegionalInventoryDataSource) GetFeedLabel
func (x *RegionalInventoryDataSource) GetFeedLabel() string
func (*RegionalInventoryDataSource) ProtoMessage
func (*RegionalInventoryDataSource) ProtoMessage()
func (*RegionalInventoryDataSource) ProtoReflect
func (x *RegionalInventoryDataSource) ProtoReflect() protoreflect.Message
func (*RegionalInventoryDataSource) Reset
func (x *RegionalInventoryDataSource) Reset()
func (*RegionalInventoryDataSource) String
func (x *RegionalInventoryDataSource) String() string
SupplementalProductDataSource
type SupplementalProductDataSource struct {
// Optional. Immutable. The feed label that is specified on the data source
// level.
//
// Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9),
// and dashes (-).
//
// See also [migration to feed
// labels](https://developers.google.com/shopping-content/guides/products/feed-labels).
//
// `feedLabel` and `contentLanguage` must be either both set or unset for data
// sources with product content type.
// They must be set for data sources with a file input.
//
// If set, the data source will only accept products matching this
// combination. If unset, the data source will accept produts without that
// restriction.
FeedLabel *string `protobuf:"bytes,4,opt,name=feed_label,json=feedLabel,proto3,oneof" json:"feed_label,omitempty"`
// Optional. Immutable. The two-letter ISO 639-1 language of the items in the
// data source.
//
// `feedLabel` and `contentLanguage` must be either both set or unset.
// The fields can only be unset for data sources without file input.
//
// If set, the data source will only accept products matching this
// combination. If unset, the data source will accept produts without that
// restriction.
ContentLanguage *string `protobuf:"bytes,5,opt,name=content_language,json=contentLanguage,proto3,oneof" json:"content_language,omitempty"`
// contains filtered or unexported fields
}
The supplemental data source for local and online products.
func (*SupplementalProductDataSource) Descriptor
func (*SupplementalProductDataSource) Descriptor() ([]byte, []int)
Deprecated: Use SupplementalProductDataSource.ProtoReflect.Descriptor instead.
func (*SupplementalProductDataSource) GetContentLanguage
func (x *SupplementalProductDataSource) GetContentLanguage() string
func (*SupplementalProductDataSource) GetFeedLabel
func (x *SupplementalProductDataSource) GetFeedLabel() string
func (*SupplementalProductDataSource) ProtoMessage
func (*SupplementalProductDataSource) ProtoMessage()
func (*SupplementalProductDataSource) ProtoReflect
func (x *SupplementalProductDataSource) ProtoReflect() protoreflect.Message
func (*SupplementalProductDataSource) Reset
func (x *SupplementalProductDataSource) Reset()
func (*SupplementalProductDataSource) String
func (x *SupplementalProductDataSource) String() string
UnimplementedDataSourcesServiceServer
type UnimplementedDataSourcesServiceServer struct {
}
UnimplementedDataSourcesServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedDataSourcesServiceServer) CreateDataSource
func (*UnimplementedDataSourcesServiceServer) CreateDataSource(context.Context, *CreateDataSourceRequest) (*DataSource, error)
func (*UnimplementedDataSourcesServiceServer) DeleteDataSource
func (*UnimplementedDataSourcesServiceServer) DeleteDataSource(context.Context, *DeleteDataSourceRequest) (*emptypb.Empty, error)
func (*UnimplementedDataSourcesServiceServer) FetchDataSource
func (*UnimplementedDataSourcesServiceServer) FetchDataSource(context.Context, *FetchDataSourceRequest) (*emptypb.Empty, error)
func (*UnimplementedDataSourcesServiceServer) GetDataSource
func (*UnimplementedDataSourcesServiceServer) GetDataSource(context.Context, *GetDataSourceRequest) (*DataSource, error)
func (*UnimplementedDataSourcesServiceServer) ListDataSources
func (*UnimplementedDataSourcesServiceServer) ListDataSources(context.Context, *ListDataSourcesRequest) (*ListDataSourcesResponse, error)
func (*UnimplementedDataSourcesServiceServer) UpdateDataSource
func (*UnimplementedDataSourcesServiceServer) UpdateDataSource(context.Context, *UpdateDataSourceRequest) (*DataSource, error)
UpdateDataSourceRequest
type UpdateDataSourceRequest struct {
// Required. The data source resource to update.
DataSource *DataSource `protobuf:"bytes,1,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
// Required. The list of data source fields to be updated.
//
// Fields specified in the update mask without a value specified in the
// body will be deleted from the data source.
//
// Providing special "*" value for full data source replacement is not
// supported.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
Request message for the UpdateDataSource method.
func (*UpdateDataSourceRequest) Descriptor
func (*UpdateDataSourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDataSourceRequest.ProtoReflect.Descriptor instead.
func (*UpdateDataSourceRequest) GetDataSource
func (x *UpdateDataSourceRequest) GetDataSource() *DataSource
func (*UpdateDataSourceRequest) GetUpdateMask
func (x *UpdateDataSourceRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateDataSourceRequest) ProtoMessage
func (*UpdateDataSourceRequest) ProtoMessage()
func (*UpdateDataSourceRequest) ProtoReflect
func (x *UpdateDataSourceRequest) ProtoReflect() protoreflect.Message
func (*UpdateDataSourceRequest) Reset
func (x *UpdateDataSourceRequest) Reset()
func (*UpdateDataSourceRequest) String
func (x *UpdateDataSourceRequest) String() string