Constants
DataSourcesService_GetDataSource_FullMethodName, DataSourcesService_ListDataSources_FullMethodName, DataSourcesService_CreateDataSource_FullMethodName, DataSourcesService_UpdateDataSource_FullMethodName, DataSourcesService_DeleteDataSource_FullMethodName, DataSourcesService_FetchDataSource_FullMethodName
const (
DataSourcesService_GetDataSource_FullMethodName = "/google.shopping.merchant.datasources.v1.DataSourcesService/GetDataSource"
DataSourcesService_ListDataSources_FullMethodName = "/google.shopping.merchant.datasources.v1.DataSourcesService/ListDataSources"
DataSourcesService_CreateDataSource_FullMethodName = "/google.shopping.merchant.datasources.v1.DataSourcesService/CreateDataSource"
DataSourcesService_UpdateDataSource_FullMethodName = "/google.shopping.merchant.datasources.v1.DataSourcesService/UpdateDataSource"
DataSourcesService_DeleteDataSource_FullMethodName = "/google.shopping.merchant.datasources.v1.DataSourcesService/DeleteDataSource"
DataSourcesService_FetchDataSource_FullMethodName = "/google.shopping.merchant.datasources.v1.DataSourcesService/FetchDataSource"
)FileUploadsService_GetFileUpload_FullMethodName
const (
FileUploadsService_GetFileUpload_FullMethodName = "/google.shopping.merchant.datasources.v1.FileUploadsService/GetFileUpload"
)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_Destination_State_name, PrimaryProductDataSource_Destination_State_value
var (
PrimaryProductDataSource_Destination_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "ENABLED",
2: "DISABLED",
}
PrimaryProductDataSource_Destination_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"ENABLED": 1,
"DISABLED": 2,
}
)Enum value maps for PrimaryProductDataSource_Destination_State.
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.
FileUpload_ProcessingState_name, FileUpload_ProcessingState_value
var (
FileUpload_ProcessingState_name = map[int32]string{
0: "PROCESSING_STATE_UNSPECIFIED",
1: "FAILED",
2: "IN_PROGRESS",
3: "SUCCEEDED",
}
FileUpload_ProcessingState_value = map[string]int32{
"PROCESSING_STATE_UNSPECIFIED": 0,
"FAILED": 1,
"IN_PROGRESS": 2,
"SUCCEEDED": 3,
}
)Enum value maps for FileUpload_ProcessingState.
FileUpload_Issue_Severity_name, FileUpload_Issue_Severity_value
var (
FileUpload_Issue_Severity_name = map[int32]string{
0: "SEVERITY_UNSPECIFIED",
1: "WARNING",
2: "ERROR",
}
FileUpload_Issue_Severity_value = map[string]int32{
"SEVERITY_UNSPECIFIED": 0,
"WARNING": 1,
"ERROR": 2,
}
)Enum value maps for FileUpload_Issue_Severity.
DataSourcesService_ServiceDesc
var DataSourcesService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.shopping.merchant.datasources.v1.DataSourcesService",
HandlerType: (*DataSourcesServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetDataSource",
Handler: _DataSourcesService_GetDataSource_Handler,
},
{
MethodName: "ListDataSources",
Handler: _DataSourcesService_ListDataSources_Handler,
},
{
MethodName: "CreateDataSource",
Handler: _DataSourcesService_CreateDataSource_Handler,
},
{
MethodName: "UpdateDataSource",
Handler: _DataSourcesService_UpdateDataSource_Handler,
},
{
MethodName: "DeleteDataSource",
Handler: _DataSourcesService_DeleteDataSource_Handler,
},
{
MethodName: "FetchDataSource",
Handler: _DataSourcesService_FetchDataSource_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/shopping/merchant/datasources/v1/datasources.proto",
}DataSourcesService_ServiceDesc is the grpc.ServiceDesc for DataSourcesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
FileUploadsService_ServiceDesc
var FileUploadsService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.shopping.merchant.datasources.v1.FileUploadsService",
HandlerType: (*FileUploadsServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetFileUpload",
Handler: _FileUploadsService_GetFileUpload_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/shopping/merchant/datasources/v1/fileuploads.proto",
}FileUploadsService_ServiceDesc is the grpc.ServiceDesc for FileUploadsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_shopping_merchant_datasources_v1_datasources_proto
var File_google_shopping_merchant_datasources_v1_datasources_proto protoreflect.FileDescriptorFile_google_shopping_merchant_datasources_v1_datasourcetypes_proto
var File_google_shopping_merchant_datasources_v1_datasourcetypes_proto protoreflect.FileDescriptorFile_google_shopping_merchant_datasources_v1_fileinputs_proto
var File_google_shopping_merchant_datasources_v1_fileinputs_proto protoreflect.FileDescriptorFile_google_shopping_merchant_datasources_v1_fileuploads_proto
var File_google_shopping_merchant_datasources_v1_fileuploads_proto protoreflect.FileDescriptorFunctions
func RegisterDataSourcesServiceServer
func RegisterDataSourcesServiceServer(s grpc.ServiceRegistrar, srv DataSourcesServiceServer)func RegisterFileUploadsServiceServer
func RegisterFileUploadsServiceServer(s grpc.ServiceRegistrar, srv FileUploadsServiceServer)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() *DataSourcefunc (*CreateDataSourceRequest) GetParent
func (x *CreateDataSourceRequest) GetParent() stringfunc (*CreateDataSourceRequest) ProtoMessage
func (*CreateDataSourceRequest) ProtoMessage()func (*CreateDataSourceRequest) ProtoReflect
func (x *CreateDataSourceRequest) ProtoReflect() protoreflect.Messagefunc (*CreateDataSourceRequest) Reset
func (x *CreateDataSourceRequest) Reset()func (*CreateDataSourceRequest) String
func (x *CreateDataSourceRequest) String() stringDataSource
type DataSource struct {
// Required. The data source type.
//
// Types that are assignable to Type:
//
// *DataSource_PrimaryProductDataSource
// *DataSource_SupplementalProductDataSource
// *DataSource_LocalInventoryDataSource
// *DataSource_RegionalInventoryDataSource
// *DataSource_PromotionDataSource
// *DataSource_ProductReviewDataSource
// *DataSource_MerchantReviewDataSource
Type isDataSource_Type `protobuf_oneof:"Type"`
// Required. Identifier. The name of the data source.
// Format:
// `accounts/{account}/dataSources/{datasource}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The data source id.
DataSourceId int64 `protobuf:"varint,2,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
// Required. The displayed data source name in the Merchant Center UI.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Output only. Determines the type of input to the data source. Based on the
// input some settings might not work. Only generic data sources can be
// created through the API.
Input DataSource_Input `protobuf:"varint,10,opt,name=input,proto3,enum=google.shopping.merchant.datasources.v1.DataSource_Input" json:"input,omitempty"`
// Optional. The field is used only when data is managed through a file.
FileInput *FileInput `protobuf:"bytes,11,opt,name=file_input,json=fileInput,proto3" json:"file_input,omitempty"`
// contains filtered or unexported fields
}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() int64func (*DataSource) GetDisplayName
func (x *DataSource) GetDisplayName() stringfunc (*DataSource) GetFileInput
func (x *DataSource) GetFileInput() *FileInputfunc (*DataSource) GetInput
func (x *DataSource) GetInput() DataSource_Inputfunc (*DataSource) GetLocalInventoryDataSource
func (x *DataSource) GetLocalInventoryDataSource() *LocalInventoryDataSourcefunc (*DataSource) GetMerchantReviewDataSource
func (x *DataSource) GetMerchantReviewDataSource() *MerchantReviewDataSourcefunc (*DataSource) GetName
func (x *DataSource) GetName() stringfunc (*DataSource) GetPrimaryProductDataSource
func (x *DataSource) GetPrimaryProductDataSource() *PrimaryProductDataSourcefunc (*DataSource) GetProductReviewDataSource
func (x *DataSource) GetProductReviewDataSource() *ProductReviewDataSourcefunc (*DataSource) GetPromotionDataSource
func (x *DataSource) GetPromotionDataSource() *PromotionDataSourcefunc (*DataSource) GetRegionalInventoryDataSource
func (x *DataSource) GetRegionalInventoryDataSource() *RegionalInventoryDataSourcefunc (*DataSource) GetSupplementalProductDataSource
func (x *DataSource) GetSupplementalProductDataSource() *SupplementalProductDataSourcefunc (*DataSource) GetType
func (m *DataSource) GetType() isDataSource_Typefunc (*DataSource) ProtoMessage
func (*DataSource) ProtoMessage()func (*DataSource) ProtoReflect
func (x *DataSource) ProtoReflect() protoreflect.Messagefunc (*DataSource) Reset
func (x *DataSource) Reset()func (*DataSource) String
func (x *DataSource) String() stringDataSourceReference
type DataSourceReference struct {
// Types that are assignable to DataSourceId:
//
// *DataSourceReference_Self
// *DataSourceReference_PrimaryDataSourceName
// *DataSourceReference_SupplementalDataSourceName
DataSourceId isDataSourceReference_DataSourceId `protobuf_oneof:"data_source_id"`
// contains filtered or unexported fields
}Data source reference can be used to manage related data sources within the data source service.
func (*DataSourceReference) Descriptor
func (*DataSourceReference) Descriptor() ([]byte, []int)Deprecated: Use DataSourceReference.ProtoReflect.Descriptor instead.
func (*DataSourceReference) GetDataSourceId
func (m *DataSourceReference) GetDataSourceId() isDataSourceReference_DataSourceIdfunc (*DataSourceReference) GetPrimaryDataSourceName
func (x *DataSourceReference) GetPrimaryDataSourceName() stringfunc (*DataSourceReference) GetSelf
func (x *DataSourceReference) GetSelf() boolfunc (*DataSourceReference) GetSupplementalDataSourceName
func (x *DataSourceReference) GetSupplementalDataSourceName() stringfunc (*DataSourceReference) ProtoMessage
func (*DataSourceReference) ProtoMessage()func (*DataSourceReference) ProtoReflect
func (x *DataSourceReference) ProtoReflect() protoreflect.Messagefunc (*DataSourceReference) Reset
func (x *DataSourceReference) Reset()func (*DataSourceReference) String
func (x *DataSourceReference) String() stringDataSourceReference_PrimaryDataSourceName
type DataSourceReference_PrimaryDataSourceName struct {
// Optional. The name of the primary data source.
// Format:
// `accounts/{account}/dataSources/{datasource}`
PrimaryDataSourceName string `protobuf:"bytes,3,opt,name=primary_data_source_name,json=primaryDataSourceName,proto3,oneof"`
}DataSourceReference_Self
type DataSourceReference_Self struct {
// Self should be used to reference the primary data source itself.
Self bool `protobuf:"varint,1,opt,name=self,proto3,oneof"`
}DataSourceReference_SupplementalDataSourceName
type DataSourceReference_SupplementalDataSourceName struct {
// Optional. The name of the supplemental data source.
// Format:
// `accounts/{account}/dataSources/{datasource}`
SupplementalDataSourceName string `protobuf:"bytes,2,opt,name=supplemental_data_source_name,json=supplementalDataSourceName,proto3,oneof"`
}DataSource_Input
type DataSource_Input int32Determines 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 sub-API.
DataSource_AUTOFEED DataSource_Input = 4
)func (DataSource_Input) Descriptor
func (DataSource_Input) Descriptor() protoreflect.EnumDescriptorfunc (DataSource_Input) Enum
func (x DataSource_Input) Enum() *DataSource_Inputfunc (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.EnumNumberfunc (DataSource_Input) String
func (x DataSource_Input) String() stringfunc (DataSource_Input) Type
func (DataSource_Input) Type() protoreflect.EnumTypeDataSource_LocalInventoryDataSource
type DataSource_LocalInventoryDataSource struct {
// 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_MerchantReviewDataSource
type DataSource_MerchantReviewDataSource struct {
// The [merchant
// review](https://support.google.com/merchants/answer/7045996)
// data source.
MerchantReviewDataSource *MerchantReviewDataSource `protobuf:"bytes,12,opt,name=merchant_review_data_source,json=merchantReviewDataSource,proto3,oneof"`
}DataSource_PrimaryProductDataSource
type DataSource_PrimaryProductDataSource struct {
// 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_ProductReviewDataSource
type DataSource_ProductReviewDataSource struct {
// The [product
// review](https://support.google.com/merchants/answer/7045996)
// data source.
ProductReviewDataSource *ProductReviewDataSource `protobuf:"bytes,9,opt,name=product_review_data_source,json=productReviewDataSource,proto3,oneof"`
}DataSource_PromotionDataSource
type DataSource_PromotionDataSource struct {
// 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 {
// 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 {
// 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.
// This method always creates a new data source.
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDataSourcesServiceClient
func NewDataSourcesServiceClient(cc grpc.ClientConnInterface) DataSourcesServiceClientDataSourcesServiceServer
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.
// This method always creates a new data source.
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. All implementations should embed UnimplementedDataSourcesServiceServer for forward compatibility
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() stringfunc (*DeleteDataSourceRequest) ProtoMessage
func (*DeleteDataSourceRequest) ProtoMessage()func (*DeleteDataSourceRequest) ProtoReflect
func (x *DeleteDataSourceRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteDataSourceRequest) Reset
func (x *DeleteDataSourceRequest) Reset()func (*DeleteDataSourceRequest) String
func (x *DeleteDataSourceRequest) String() stringFetchDataSourceRequest
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() stringfunc (*FetchDataSourceRequest) ProtoMessage
func (*FetchDataSourceRequest) ProtoMessage()func (*FetchDataSourceRequest) ProtoReflect
func (x *FetchDataSourceRequest) ProtoReflect() protoreflect.Messagefunc (*FetchDataSourceRequest) Reset
func (x *FetchDataSourceRequest) Reset()func (*FetchDataSourceRequest) String
func (x *FetchDataSourceRequest) String() stringFileInput
type FileInput struct {
// Optional. Fetch details to deliver the data source. It contains settings
// for `FETCH` and `GOOGLE_SHEETS` file input types. The required fields vary
// based on the frequency of fetching.
FetchSettings *FileInput_FetchSettings `protobuf:"bytes,1,opt,name=fetch_settings,json=fetchSettings,proto3" json:"fetch_settings,omitempty"`
// Optional. The file name of the data source. Required for `UPLOAD` file
// input type.
FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
// Output only. The type of file input.
FileInputType FileInput_FileInputType `protobuf:"varint,3,opt,name=file_input_type,json=fileInputType,proto3,enum=google.shopping.merchant.datasources.v1.FileInput_FileInputType" json:"file_input_type,omitempty"`
// contains filtered or unexported fields
}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_FetchSettingsfunc (*FileInput) GetFileInputType
func (x *FileInput) GetFileInputType() FileInput_FileInputTypefunc (*FileInput) GetFileName
func (*FileInput) ProtoMessage
func (*FileInput) ProtoMessage()func (*FileInput) ProtoReflect
func (x *FileInput) ProtoReflect() protoreflect.Messagefunc (*FileInput) Reset
func (x *FileInput) Reset()func (*FileInput) String
FileInput_FetchSettings
type FileInput_FetchSettings struct {
// Optional. Enables or pauses the fetch schedule.
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
// Optional. The day of the month when the data source file should be
// fetched (1-31). This field can only be set for monthly frequency.
DayOfMonth int32 `protobuf:"varint,2,opt,name=day_of_month,json=dayOfMonth,proto3" json:"day_of_month,omitempty"`
// Optional. The hour of the day when the data source file should be
// fetched. Minutes and seconds are not supported and will be ignored.
TimeOfDay *timeofday.TimeOfDay `protobuf:"bytes,3,opt,name=time_of_day,json=timeOfDay,proto3" json:"time_of_day,omitempty"`
// Optional. The day of the week when the data source file should be
// fetched. This field can only be set for weekly frequency.
DayOfWeek dayofweek.DayOfWeek `protobuf:"varint,4,opt,name=day_of_week,json=dayOfWeek,proto3,enum=google.type.DayOfWeek" json:"day_of_week,omitempty"`
// Optional. [Time zone](https://cldr.unicode.org) used for schedule. UTC by
// default. For example, "America/Los_Angeles".
TimeZone string `protobuf:"bytes,5,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
// Required. The frequency describing fetch schedule.
Frequency FileInput_FetchSettings_Frequency `protobuf:"varint,6,opt,name=frequency,proto3,enum=google.shopping.merchant.datasources.v1.FileInput_FetchSettings_Frequency" json:"frequency,omitempty"`
// Optional. The URL where the data source file can be fetched. Google
// Merchant Center supports automatic scheduled uploads using the HTTP,
// HTTPS or SFTP protocols, so the value will need to be a valid link using
// one of those three protocols. Immutable for Google Sheets files.
FetchUri string `protobuf:"bytes,7,opt,name=fetch_uri,json=fetchUri,proto3" json:"fetch_uri,omitempty"`
// Optional. An optional user name for
// [fetch_uri][google.shopping.merchant.datasources.v1.FileInput.FetchSettings.fetch_uri].
// Used for [submitting data sources through
// SFTP](https://support.google.com/merchants/answer/13813117).
Username string `protobuf:"bytes,8,opt,name=username,proto3" json:"username,omitempty"`
// Optional. An optional password for
// [fetch_uri][google.shopping.merchant.datasources.v1.FileInput.FetchSettings.fetch_uri].
// Used for [submitting data sources through
// SFTP](https://support.google.com/merchants/answer/13813117).
Password string `protobuf:"bytes,9,opt,name=password,proto3" json:"password,omitempty"`
// contains filtered or unexported fields
}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() int32func (*FileInput_FetchSettings) GetDayOfWeek
func (x *FileInput_FetchSettings) GetDayOfWeek() dayofweek.DayOfWeekfunc (*FileInput_FetchSettings) GetEnabled
func (x *FileInput_FetchSettings) GetEnabled() boolfunc (*FileInput_FetchSettings) GetFetchUri
func (x *FileInput_FetchSettings) GetFetchUri() stringfunc (*FileInput_FetchSettings) GetFrequency
func (x *FileInput_FetchSettings) GetFrequency() FileInput_FetchSettings_Frequencyfunc (*FileInput_FetchSettings) GetPassword
func (x *FileInput_FetchSettings) GetPassword() stringfunc (*FileInput_FetchSettings) GetTimeOfDay
func (x *FileInput_FetchSettings) GetTimeOfDay() *timeofday.TimeOfDayfunc (*FileInput_FetchSettings) GetTimeZone
func (x *FileInput_FetchSettings) GetTimeZone() stringfunc (*FileInput_FetchSettings) GetUsername
func (x *FileInput_FetchSettings) GetUsername() stringfunc (*FileInput_FetchSettings) ProtoMessage
func (*FileInput_FetchSettings) ProtoMessage()func (*FileInput_FetchSettings) ProtoReflect
func (x *FileInput_FetchSettings) ProtoReflect() protoreflect.Messagefunc (*FileInput_FetchSettings) Reset
func (x *FileInput_FetchSettings) Reset()func (*FileInput_FetchSettings) String
func (x *FileInput_FetchSettings) String() stringFileInput_FetchSettings_Frequency
type FileInput_FetchSettings_Frequency int32The required fields vary based on the frequency of fetching. For a
monthly
fetch schedule,
day of
month
and
[hour of
day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday]
are required. For a weekly fetch schedule,
[day of
week][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#dayofweek]
and [hour of
day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday]
are required. For a daily fetch schedule, only an [hour of
day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday]
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.EnumDescriptorfunc (FileInput_FetchSettings_Frequency) Enum
func (x FileInput_FetchSettings_Frequency) Enum() *FileInput_FetchSettings_Frequencyfunc (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.EnumNumberfunc (FileInput_FetchSettings_Frequency) String
func (x FileInput_FetchSettings_Frequency) String() stringfunc (FileInput_FetchSettings_Frequency) Type
func (FileInput_FetchSettings_Frequency) Type() protoreflect.EnumTypeFileInput_FileInputType
type FileInput_FileInputType int32The 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.merchant.datasources.v1.FileInput.FetchSettings.fetch_uri].
FileInput_FETCH FileInput_FileInputType = 2
// The file is fetched from Google Sheets specified in the
// [fetch_uri][google.shopping.merchant.datasources.v1.FileInput.FetchSettings.fetch_uri].
// However, you can't set up `GOOGLE_SHEETS` as a data source through the
// API. To add `GOOGLE_SHEETS` as a data source through the Merchant Center,
// see [Add products to Merchant
// Center](https://support.google.com/merchants/answer/12158053).
FileInput_GOOGLE_SHEETS FileInput_FileInputType = 3
)func (FileInput_FileInputType) Descriptor
func (FileInput_FileInputType) Descriptor() protoreflect.EnumDescriptorfunc (FileInput_FileInputType) Enum
func (x FileInput_FileInputType) Enum() *FileInput_FileInputTypefunc (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.EnumNumberfunc (FileInput_FileInputType) String
func (x FileInput_FileInputType) String() stringfunc (FileInput_FileInputType) Type
func (FileInput_FileInputType) Type() protoreflect.EnumTypeFileUpload
type FileUpload struct {
// Identifier. The name of the data source file upload.
// Format:
// `{datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The data source id.
DataSourceId int64 `protobuf:"varint,2,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
// Output only. The processing state of the data source.
ProcessingState FileUpload_ProcessingState `protobuf:"varint,3,opt,name=processing_state,json=processingState,proto3,enum=google.shopping.merchant.datasources.v1.FileUpload_ProcessingState" json:"processing_state,omitempty"`
// Output only. The list of issues occurring in the data source.
Issues []*FileUpload_Issue `protobuf:"bytes,4,rep,name=issues,proto3" json:"issues,omitempty"`
// Output only. The number of items in the data source that were processed.
ItemsTotal int64 `protobuf:"varint,5,opt,name=items_total,json=itemsTotal,proto3" json:"items_total,omitempty"`
// Output only. The number of items in the data source that were created.
ItemsCreated int64 `protobuf:"varint,6,opt,name=items_created,json=itemsCreated,proto3" json:"items_created,omitempty"`
// Output only. The number of items in the data source that were updated.
ItemsUpdated int64 `protobuf:"varint,7,opt,name=items_updated,json=itemsUpdated,proto3" json:"items_updated,omitempty"`
// Output only. The date at which the file of the data source was uploaded.
UploadTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=upload_time,json=uploadTime,proto3" json:"upload_time,omitempty"`
// contains filtered or unexported fields
}The file upload of a specific data source, that is, the result of the retrieval of the data source at a certain timestamp computed asynchronously when the data source processing is finished. Only applicable to file data sources.
func (*FileUpload) Descriptor
func (*FileUpload) Descriptor() ([]byte, []int)Deprecated: Use FileUpload.ProtoReflect.Descriptor instead.
func (*FileUpload) GetDataSourceId
func (x *FileUpload) GetDataSourceId() int64func (*FileUpload) GetIssues
func (x *FileUpload) GetIssues() []*FileUpload_Issuefunc (*FileUpload) GetItemsCreated
func (x *FileUpload) GetItemsCreated() int64func (*FileUpload) GetItemsTotal
func (x *FileUpload) GetItemsTotal() int64func (*FileUpload) GetItemsUpdated
func (x *FileUpload) GetItemsUpdated() int64func (*FileUpload) GetName
func (x *FileUpload) GetName() stringfunc (*FileUpload) GetProcessingState
func (x *FileUpload) GetProcessingState() FileUpload_ProcessingStatefunc (*FileUpload) GetUploadTime
func (x *FileUpload) GetUploadTime() *timestamppb.Timestampfunc (*FileUpload) ProtoMessage
func (*FileUpload) ProtoMessage()func (*FileUpload) ProtoReflect
func (x *FileUpload) ProtoReflect() protoreflect.Messagefunc (*FileUpload) Reset
func (x *FileUpload) Reset()func (*FileUpload) String
func (x *FileUpload) String() stringFileUpload_Issue
type FileUpload_Issue struct {
// Output only. The title of the issue, for example, "Item too big".
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// Output only. The error description, for example, "Your data source
// contains items which have too many attributes, or are too big. These
// items will be dropped".
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The code of the error, for example,
// "validation/invalid_value". Returns
// "?" if the code is unknown.
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
// Output only. The number of occurrences of the error in the file upload.
Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
// Output only. The severity of the issue.
Severity FileUpload_Issue_Severity `protobuf:"varint,5,opt,name=severity,proto3,enum=google.shopping.merchant.datasources.v1.FileUpload_Issue_Severity" json:"severity,omitempty"`
// Output only. Link to the documentation explaining the issue in more
// details, if available.
DocumentationUri string `protobuf:"bytes,6,opt,name=documentation_uri,json=documentationUri,proto3" json:"documentation_uri,omitempty"`
// contains filtered or unexported fields
}An error occurring in the data source, like "invalid price".
func (*FileUpload_Issue) Descriptor
func (*FileUpload_Issue) Descriptor() ([]byte, []int)Deprecated: Use FileUpload_Issue.ProtoReflect.Descriptor instead.
func (*FileUpload_Issue) GetCode
func (x *FileUpload_Issue) GetCode() stringfunc (*FileUpload_Issue) GetCount
func (x *FileUpload_Issue) GetCount() int64func (*FileUpload_Issue) GetDescription
func (x *FileUpload_Issue) GetDescription() stringfunc (*FileUpload_Issue) GetDocumentationUri
func (x *FileUpload_Issue) GetDocumentationUri() stringfunc (*FileUpload_Issue) GetSeverity
func (x *FileUpload_Issue) GetSeverity() FileUpload_Issue_Severityfunc (*FileUpload_Issue) GetTitle
func (x *FileUpload_Issue) GetTitle() stringfunc (*FileUpload_Issue) ProtoMessage
func (*FileUpload_Issue) ProtoMessage()func (*FileUpload_Issue) ProtoReflect
func (x *FileUpload_Issue) ProtoReflect() protoreflect.Messagefunc (*FileUpload_Issue) Reset
func (x *FileUpload_Issue) Reset()func (*FileUpload_Issue) String
func (x *FileUpload_Issue) String() stringFileUpload_Issue_Severity
type FileUpload_Issue_Severity int32The severity of the issue.
FileUpload_Issue_SEVERITY_UNSPECIFIED, FileUpload_Issue_WARNING, FileUpload_Issue_ERROR
const (
// Severity unspecified.
FileUpload_Issue_SEVERITY_UNSPECIFIED FileUpload_Issue_Severity = 0
// The issue is the warning.
FileUpload_Issue_WARNING FileUpload_Issue_Severity = 1
// The issue is an error.
FileUpload_Issue_ERROR FileUpload_Issue_Severity = 2
)func (FileUpload_Issue_Severity) Descriptor
func (FileUpload_Issue_Severity) Descriptor() protoreflect.EnumDescriptorfunc (FileUpload_Issue_Severity) Enum
func (x FileUpload_Issue_Severity) Enum() *FileUpload_Issue_Severityfunc (FileUpload_Issue_Severity) EnumDescriptor
func (FileUpload_Issue_Severity) EnumDescriptor() ([]byte, []int)Deprecated: Use FileUpload_Issue_Severity.Descriptor instead.
func (FileUpload_Issue_Severity) Number
func (x FileUpload_Issue_Severity) Number() protoreflect.EnumNumberfunc (FileUpload_Issue_Severity) String
func (x FileUpload_Issue_Severity) String() stringfunc (FileUpload_Issue_Severity) Type
func (FileUpload_Issue_Severity) Type() protoreflect.EnumTypeFileUpload_ProcessingState
type FileUpload_ProcessingState int32The processing state of the data source.
FileUpload_PROCESSING_STATE_UNSPECIFIED, FileUpload_FAILED, FileUpload_IN_PROGRESS, FileUpload_SUCCEEDED
const (
// Processing state unspecified.
FileUpload_PROCESSING_STATE_UNSPECIFIED FileUpload_ProcessingState = 0
// The data source could not be processed or all the items had errors.
FileUpload_FAILED FileUpload_ProcessingState = 1
// The data source is being processed.
FileUpload_IN_PROGRESS FileUpload_ProcessingState = 2
// The data source was processed successfully, though some items might have
// had errors.
FileUpload_SUCCEEDED FileUpload_ProcessingState = 3
)func (FileUpload_ProcessingState) Descriptor
func (FileUpload_ProcessingState) Descriptor() protoreflect.EnumDescriptorfunc (FileUpload_ProcessingState) Enum
func (x FileUpload_ProcessingState) Enum() *FileUpload_ProcessingStatefunc (FileUpload_ProcessingState) EnumDescriptor
func (FileUpload_ProcessingState) EnumDescriptor() ([]byte, []int)Deprecated: Use FileUpload_ProcessingState.Descriptor instead.
func (FileUpload_ProcessingState) Number
func (x FileUpload_ProcessingState) Number() protoreflect.EnumNumberfunc (FileUpload_ProcessingState) String
func (x FileUpload_ProcessingState) String() stringfunc (FileUpload_ProcessingState) Type
func (FileUpload_ProcessingState) Type() protoreflect.EnumTypeFileUploadsServiceClient
type FileUploadsServiceClient interface {
// Gets the latest data source file upload. Only the `latest` alias is
// accepted for a file upload.
GetFileUpload(ctx context.Context, in *GetFileUploadRequest, opts ...grpc.CallOption) (*FileUpload, error)
}FileUploadsServiceClient is the client API for FileUploadsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFileUploadsServiceClient
func NewFileUploadsServiceClient(cc grpc.ClientConnInterface) FileUploadsServiceClientFileUploadsServiceServer
type FileUploadsServiceServer interface {
// Gets the latest data source file upload. Only the `latest` alias is
// accepted for a file upload.
GetFileUpload(context.Context, *GetFileUploadRequest) (*FileUpload, error)
}FileUploadsServiceServer is the server API for FileUploadsService service. All implementations should embed UnimplementedFileUploadsServiceServer for forward compatibility
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() stringfunc (*GetDataSourceRequest) ProtoMessage
func (*GetDataSourceRequest) ProtoMessage()func (*GetDataSourceRequest) ProtoReflect
func (x *GetDataSourceRequest) ProtoReflect() protoreflect.Messagefunc (*GetDataSourceRequest) Reset
func (x *GetDataSourceRequest) Reset()func (*GetDataSourceRequest) String
func (x *GetDataSourceRequest) String() stringGetFileUploadRequest
type GetFileUploadRequest struct {
// Required. The name of the data source file upload to retrieve.
// Format:
// `accounts/{account}/dataSources/{datasource}/fileUploads/latest`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for the GetFileUploadRequest method.
func (*GetFileUploadRequest) Descriptor
func (*GetFileUploadRequest) Descriptor() ([]byte, []int)Deprecated: Use GetFileUploadRequest.ProtoReflect.Descriptor instead.
func (*GetFileUploadRequest) GetName
func (x *GetFileUploadRequest) GetName() stringfunc (*GetFileUploadRequest) ProtoMessage
func (*GetFileUploadRequest) ProtoMessage()func (*GetFileUploadRequest) ProtoReflect
func (x *GetFileUploadRequest) ProtoReflect() protoreflect.Messagefunc (*GetFileUploadRequest) Reset
func (x *GetFileUploadRequest) Reset()func (*GetFileUploadRequest) String
func (x *GetFileUploadRequest) String() stringListDataSourcesRequest
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() int32func (*ListDataSourcesRequest) GetPageToken
func (x *ListDataSourcesRequest) GetPageToken() stringfunc (*ListDataSourcesRequest) GetParent
func (x *ListDataSourcesRequest) GetParent() stringfunc (*ListDataSourcesRequest) ProtoMessage
func (*ListDataSourcesRequest) ProtoMessage()func (*ListDataSourcesRequest) ProtoReflect
func (x *ListDataSourcesRequest) ProtoReflect() protoreflect.Messagefunc (*ListDataSourcesRequest) Reset
func (x *ListDataSourcesRequest) Reset()func (*ListDataSourcesRequest) String
func (x *ListDataSourcesRequest) String() stringListDataSourcesResponse
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() []*DataSourcefunc (*ListDataSourcesResponse) GetNextPageToken
func (x *ListDataSourcesResponse) GetNextPageToken() stringfunc (*ListDataSourcesResponse) ProtoMessage
func (*ListDataSourcesResponse) ProtoMessage()func (*ListDataSourcesResponse) ProtoReflect
func (x *ListDataSourcesResponse) ProtoReflect() protoreflect.Messagefunc (*ListDataSourcesResponse) Reset
func (x *ListDataSourcesResponse) Reset()func (*ListDataSourcesResponse) String
func (x *ListDataSourcesResponse) String() stringLocalInventoryDataSource
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 type is only available for file inputs and can't be used to create API local inventory data sources.
func (*LocalInventoryDataSource) Descriptor
func (*LocalInventoryDataSource) Descriptor() ([]byte, []int)Deprecated: Use LocalInventoryDataSource.ProtoReflect.Descriptor instead.
func (*LocalInventoryDataSource) GetContentLanguage
func (x *LocalInventoryDataSource) GetContentLanguage() stringfunc (*LocalInventoryDataSource) GetFeedLabel
func (x *LocalInventoryDataSource) GetFeedLabel() stringfunc (*LocalInventoryDataSource) ProtoMessage
func (*LocalInventoryDataSource) ProtoMessage()func (*LocalInventoryDataSource) ProtoReflect
func (x *LocalInventoryDataSource) ProtoReflect() protoreflect.Messagefunc (*LocalInventoryDataSource) Reset
func (x *LocalInventoryDataSource) Reset()func (*LocalInventoryDataSource) String
func (x *LocalInventoryDataSource) String() stringMerchantReviewDataSource
type MerchantReviewDataSource struct {
// contains filtered or unexported fields
}The merchant review data source.
func (*MerchantReviewDataSource) Descriptor
func (*MerchantReviewDataSource) Descriptor() ([]byte, []int)Deprecated: Use MerchantReviewDataSource.ProtoReflect.Descriptor instead.
func (*MerchantReviewDataSource) ProtoMessage
func (*MerchantReviewDataSource) ProtoMessage()func (*MerchantReviewDataSource) ProtoReflect
func (x *MerchantReviewDataSource) ProtoReflect() protoreflect.Messagefunc (*MerchantReviewDataSource) Reset
func (x *MerchantReviewDataSource) Reset()func (*MerchantReviewDataSource) String
func (x *MerchantReviewDataSource) String() stringPrimaryProductDataSource
type PrimaryProductDataSource struct {
// Optional. Immutable. Determines whether the products of this data source
// are **only** targeting local destinations. Legacy local products are
// prefixed with `local~` in the product resource ID. For example,
// `accounts/123/products/local~en~US~sku123`.
LegacyLocal bool `protobuf:"varint,11,opt,name=legacy_local,json=legacyLocal,proto3" json:"legacy_local,omitempty"`
// 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 products 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 products without that
// restriction.
ContentLanguage *string `protobuf:"bytes,5,opt,name=content_language,json=contentLanguage,proto3,oneof" json:"content_language,omitempty"`
// Optional. The countries where the items may be displayed. Represented as a
// [CLDR territory
// code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml).
Countries []string `protobuf:"bytes,6,rep,name=countries,proto3" json:"countries,omitempty"`
// Optional. Default rule management of the data source. If set, the linked
// data sources will be replaced.
DefaultRule *PrimaryProductDataSource_DefaultRule `protobuf:"bytes,7,opt,name=default_rule,json=defaultRule,proto3" json:"default_rule,omitempty"`
// Output only. The existing data source setup contains at least one custom
// (non-default) rule and therefore its management through the
// `default_rule_data_sources` field should be treated with caution.
ContainsCustomRules bool `protobuf:"varint,9,opt,name=contains_custom_rules,json=containsCustomRules,proto3" json:"contains_custom_rules,omitempty"`
// Optional. A list of destinations describing where products of the data
// source can be shown.
//
// When retrieving the data source, the list contains all the destinations
// that can be used for the data source, including the ones that are disabled
// for the data source but enabled for the account.
//
// Only destinations that are enabled on the account, for example through
// program participation, can be enabled on the data source.
//
// If unset, during creation, the destinations will be inherited based on the
// account level program participation.
//
// If set, during creation or update, the data source will be set only for the
// specified destinations.
//
// Updating this field requires at least one destination.
Destinations []*PrimaryProductDataSource_Destination `protobuf:"bytes,10,rep,name=destinations,proto3" json:"destinations,omitempty"`
// contains filtered or unexported fields
}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) GetContainsCustomRules
func (x *PrimaryProductDataSource) GetContainsCustomRules() boolfunc (*PrimaryProductDataSource) GetContentLanguage
func (x *PrimaryProductDataSource) GetContentLanguage() stringfunc (*PrimaryProductDataSource) GetCountries
func (x *PrimaryProductDataSource) GetCountries() []stringfunc (*PrimaryProductDataSource) GetDefaultRule
func (x *PrimaryProductDataSource) GetDefaultRule() *PrimaryProductDataSource_DefaultRulefunc (*PrimaryProductDataSource) GetDestinations
func (x *PrimaryProductDataSource) GetDestinations() []*PrimaryProductDataSource_Destinationfunc (*PrimaryProductDataSource) GetFeedLabel
func (x *PrimaryProductDataSource) GetFeedLabel() stringfunc (*PrimaryProductDataSource) GetLegacyLocal
func (x *PrimaryProductDataSource) GetLegacyLocal() boolfunc (*PrimaryProductDataSource) ProtoMessage
func (*PrimaryProductDataSource) ProtoMessage()func (*PrimaryProductDataSource) ProtoReflect
func (x *PrimaryProductDataSource) ProtoReflect() protoreflect.Messagefunc (*PrimaryProductDataSource) Reset
func (x *PrimaryProductDataSource) Reset()func (*PrimaryProductDataSource) String
func (x *PrimaryProductDataSource) String() stringPrimaryProductDataSource_DefaultRule
type PrimaryProductDataSource_DefaultRule struct {
// Required. The list of data sources linked in the [default
// rule](https://support.google.com/merchants/answer/7450276).
// This list is ordered by the default rule priority of joining the data.
// It might include none or multiple references to `self` and supplemental
// data sources.
//
// The list must not be empty.
//
// To link the data source to the default rule, you need to add a
// new reference to this list (in sequential order).
//
// To unlink the data source from the default rule, you need to
// remove the given reference from this list.
//
// Changing the order of this list will result in changing the priority of
// data sources in the default rule.
//
// For example, providing the following list: [`1001`, `self`] will
// take attribute values from supplemental data source `1001`, and fallback
// to `self` if the attribute is not set in `1001`.
TakeFromDataSources []*DataSourceReference `protobuf:"bytes,1,rep,name=take_from_data_sources,json=takeFromDataSources,proto3" json:"take_from_data_sources,omitempty"`
// contains filtered or unexported fields
}Default rule management of the data source.
func (*PrimaryProductDataSource_DefaultRule) Descriptor
func (*PrimaryProductDataSource_DefaultRule) Descriptor() ([]byte, []int)Deprecated: Use PrimaryProductDataSource_DefaultRule.ProtoReflect.Descriptor instead.
func (*PrimaryProductDataSource_DefaultRule) GetTakeFromDataSources
func (x *PrimaryProductDataSource_DefaultRule) GetTakeFromDataSources() []*DataSourceReferencefunc (*PrimaryProductDataSource_DefaultRule) ProtoMessage
func (*PrimaryProductDataSource_DefaultRule) ProtoMessage()func (*PrimaryProductDataSource_DefaultRule) ProtoReflect
func (x *PrimaryProductDataSource_DefaultRule) ProtoReflect() protoreflect.Messagefunc (*PrimaryProductDataSource_DefaultRule) Reset
func (x *PrimaryProductDataSource_DefaultRule) Reset()func (*PrimaryProductDataSource_DefaultRule) String
func (x *PrimaryProductDataSource_DefaultRule) String() stringPrimaryProductDataSource_Destination
type PrimaryProductDataSource_Destination struct {
// [Marketing methods](https://support.google.com/merchants/answer/15130232)
// (also known as destination) selections.
Destination typepb.Destination_DestinationEnum `protobuf:"varint,1,opt,name=destination,proto3,enum=google.shopping.type.Destination_DestinationEnum" json:"destination,omitempty"`
// The state of the destination.
State PrimaryProductDataSource_Destination_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.shopping.merchant.datasources.v1.PrimaryProductDataSource_Destination_State" json:"state,omitempty"`
// contains filtered or unexported fields
}Destinations also known as Marketing methods selections.
func (*PrimaryProductDataSource_Destination) Descriptor
func (*PrimaryProductDataSource_Destination) Descriptor() ([]byte, []int)Deprecated: Use PrimaryProductDataSource_Destination.ProtoReflect.Descriptor instead.
func (*PrimaryProductDataSource_Destination) GetDestination
func (x *PrimaryProductDataSource_Destination) GetDestination() typepb.Destination_DestinationEnumfunc (*PrimaryProductDataSource_Destination) GetState
func (x *PrimaryProductDataSource_Destination) GetState() PrimaryProductDataSource_Destination_Statefunc (*PrimaryProductDataSource_Destination) ProtoMessage
func (*PrimaryProductDataSource_Destination) ProtoMessage()func (*PrimaryProductDataSource_Destination) ProtoReflect
func (x *PrimaryProductDataSource_Destination) ProtoReflect() protoreflect.Messagefunc (*PrimaryProductDataSource_Destination) Reset
func (x *PrimaryProductDataSource_Destination) Reset()func (*PrimaryProductDataSource_Destination) String
func (x *PrimaryProductDataSource_Destination) String() stringPrimaryProductDataSource_Destination_State
type PrimaryProductDataSource_Destination_State int32The state of the destination.
PrimaryProductDataSource_Destination_STATE_UNSPECIFIED, PrimaryProductDataSource_Destination_ENABLED, PrimaryProductDataSource_Destination_DISABLED
const (
// Not specified.
PrimaryProductDataSource_Destination_STATE_UNSPECIFIED PrimaryProductDataSource_Destination_State = 0
// Indicates that the destination is enabled.
PrimaryProductDataSource_Destination_ENABLED PrimaryProductDataSource_Destination_State = 1
// Indicates that the destination is disabled.
PrimaryProductDataSource_Destination_DISABLED PrimaryProductDataSource_Destination_State = 2
)func (PrimaryProductDataSource_Destination_State) Descriptor
func (PrimaryProductDataSource_Destination_State) Descriptor() protoreflect.EnumDescriptorfunc (PrimaryProductDataSource_Destination_State) Enum
func (x PrimaryProductDataSource_Destination_State) Enum() *PrimaryProductDataSource_Destination_Statefunc (PrimaryProductDataSource_Destination_State) EnumDescriptor
func (PrimaryProductDataSource_Destination_State) EnumDescriptor() ([]byte, []int)Deprecated: Use PrimaryProductDataSource_Destination_State.Descriptor instead.
func (PrimaryProductDataSource_Destination_State) Number
func (x PrimaryProductDataSource_Destination_State) Number() protoreflect.EnumNumberfunc (PrimaryProductDataSource_Destination_State) String
func (x PrimaryProductDataSource_Destination_State) String() stringfunc (PrimaryProductDataSource_Destination_State) Type
func (PrimaryProductDataSource_Destination_State) Type() protoreflect.EnumTypeProductReviewDataSource
type ProductReviewDataSource struct {
// contains filtered or unexported fields
}The product review data source.
func (*ProductReviewDataSource) Descriptor
func (*ProductReviewDataSource) Descriptor() ([]byte, []int)Deprecated: Use ProductReviewDataSource.ProtoReflect.Descriptor instead.
func (*ProductReviewDataSource) ProtoMessage
func (*ProductReviewDataSource) ProtoMessage()func (*ProductReviewDataSource) ProtoReflect
func (x *ProductReviewDataSource) ProtoReflect() protoreflect.Messagefunc (*ProductReviewDataSource) Reset
func (x *ProductReviewDataSource) Reset()func (*ProductReviewDataSource) String
func (x *ProductReviewDataSource) String() stringPromotionDataSource
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() stringfunc (*PromotionDataSource) GetTargetCountry
func (x *PromotionDataSource) GetTargetCountry() stringfunc (*PromotionDataSource) ProtoMessage
func (*PromotionDataSource) ProtoMessage()func (*PromotionDataSource) ProtoReflect
func (x *PromotionDataSource) ProtoReflect() protoreflect.Messagefunc (*PromotionDataSource) Reset
func (x *PromotionDataSource) Reset()func (*PromotionDataSource) String
func (x *PromotionDataSource) String() stringRegionalInventoryDataSource
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
}func (*RegionalInventoryDataSource) Descriptor
func (*RegionalInventoryDataSource) Descriptor() ([]byte, []int)Deprecated: Use RegionalInventoryDataSource.ProtoReflect.Descriptor instead.
func (*RegionalInventoryDataSource) GetContentLanguage
func (x *RegionalInventoryDataSource) GetContentLanguage() stringfunc (*RegionalInventoryDataSource) GetFeedLabel
func (x *RegionalInventoryDataSource) GetFeedLabel() stringfunc (*RegionalInventoryDataSource) ProtoMessage
func (*RegionalInventoryDataSource) ProtoMessage()func (*RegionalInventoryDataSource) ProtoReflect
func (x *RegionalInventoryDataSource) ProtoReflect() protoreflect.Messagefunc (*RegionalInventoryDataSource) Reset
func (x *RegionalInventoryDataSource) Reset()func (*RegionalInventoryDataSource) String
func (x *RegionalInventoryDataSource) String() stringSupplementalProductDataSource
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][google.shopping.merchant.datasources.v1.FileInput].
// The fields must be unset for data sources without [file
// input][google.shopping.merchant.datasources.v1.FileInput].
//
// 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"`
// Output only. The (unordered and deduplicated) list of all primary data
// sources linked to this data source in either default or custom rules.
// Supplemental data source cannot be deleted before all links are removed.
ReferencingPrimaryDataSources []*DataSourceReference `protobuf:"bytes,7,rep,name=referencing_primary_data_sources,json=referencingPrimaryDataSources,proto3" json:"referencing_primary_data_sources,omitempty"`
// contains filtered or unexported fields
}The supplemental data source for local and online products. After creation, you should make sure to link the supplemental product data source into one or more primary product data sources.
func (*SupplementalProductDataSource) Descriptor
func (*SupplementalProductDataSource) Descriptor() ([]byte, []int)Deprecated: Use SupplementalProductDataSource.ProtoReflect.Descriptor instead.
func (*SupplementalProductDataSource) GetContentLanguage
func (x *SupplementalProductDataSource) GetContentLanguage() stringfunc (*SupplementalProductDataSource) GetFeedLabel
func (x *SupplementalProductDataSource) GetFeedLabel() stringfunc (*SupplementalProductDataSource) GetReferencingPrimaryDataSources
func (x *SupplementalProductDataSource) GetReferencingPrimaryDataSources() []*DataSourceReferencefunc (*SupplementalProductDataSource) ProtoMessage
func (*SupplementalProductDataSource) ProtoMessage()func (*SupplementalProductDataSource) ProtoReflect
func (x *SupplementalProductDataSource) ProtoReflect() protoreflect.Messagefunc (*SupplementalProductDataSource) Reset
func (x *SupplementalProductDataSource) Reset()func (*SupplementalProductDataSource) String
func (x *SupplementalProductDataSource) String() stringUnimplementedDataSourcesServiceServer
type UnimplementedDataSourcesServiceServer struct {
}UnimplementedDataSourcesServiceServer should 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)UnimplementedFileUploadsServiceServer
type UnimplementedFileUploadsServiceServer struct {
}UnimplementedFileUploadsServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedFileUploadsServiceServer) GetFileUpload
func (UnimplementedFileUploadsServiceServer) GetFileUpload(context.Context, *GetFileUploadRequest) (*FileUpload, error)UnsafeDataSourcesServiceServer
type UnsafeDataSourcesServiceServer interface {
// contains filtered or unexported methods
}UnsafeDataSourcesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataSourcesServiceServer will result in compilation errors.
UnsafeFileUploadsServiceServer
type UnsafeFileUploadsServiceServer interface {
// contains filtered or unexported methods
}UnsafeFileUploadsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileUploadsServiceServer will result in compilation errors.
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.
//
// For example, If you insert `updateMask=displayName` in the request, it will
// only update the `displayName` leaving all other fields untouched.
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() *DataSourcefunc (*UpdateDataSourceRequest) GetUpdateMask
func (x *UpdateDataSourceRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateDataSourceRequest) ProtoMessage
func (*UpdateDataSourceRequest) ProtoMessage()func (*UpdateDataSourceRequest) ProtoReflect
func (x *UpdateDataSourceRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateDataSourceRequest) Reset
func (x *UpdateDataSourceRequest) Reset()func (*UpdateDataSourceRequest) String
func (x *UpdateDataSourceRequest) String() string