Package cloud.google.com/go/shopping/merchant/datasources/apiv1beta/datasourcespb (v1.1.0)

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.v1beta.DataSourcesService/GetDataSource"
	DataSourcesService_ListDataSources_FullMethodName  = "/google.shopping.merchant.datasources.v1beta.DataSourcesService/ListDataSources"
	DataSourcesService_CreateDataSource_FullMethodName = "/google.shopping.merchant.datasources.v1beta.DataSourcesService/CreateDataSource"
	DataSourcesService_UpdateDataSource_FullMethodName = "/google.shopping.merchant.datasources.v1beta.DataSourcesService/UpdateDataSource"
	DataSourcesService_DeleteDataSource_FullMethodName = "/google.shopping.merchant.datasources.v1beta.DataSourcesService/DeleteDataSource"
	DataSourcesService_FetchDataSource_FullMethodName  = "/google.shopping.merchant.datasources.v1beta.DataSourcesService/FetchDataSource"
)

FileUploadsService_GetFileUpload_FullMethodName

const (
	FileUploadsService_GetFileUpload_FullMethodName = "/google.shopping.merchant.datasources.v1beta.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_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.

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.v1beta.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/v1beta/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.v1beta.FileUploadsService",
	HandlerType: (*FileUploadsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetFileUpload",
			Handler:    _FileUploadsService_GetFileUpload_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/shopping/merchant/datasources/v1beta/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_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

File_google_shopping_merchant_datasources_v1beta_fileuploads_proto

var File_google_shopping_merchant_datasources_v1beta_fileuploads_proto protoreflect.FileDescriptor

Functions

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() *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 {

	// 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"`
	// Identifier. The name of the data source.
	// Format:
	// `{datasource.name=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.v1beta.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() 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) GetMerchantReviewDataSource

func (x *DataSource) GetMerchantReviewDataSource() *MerchantReviewDataSource

func (*DataSource) GetName

func (x *DataSource) GetName() string

func (*DataSource) GetPrimaryProductDataSource

func (x *DataSource) GetPrimaryProductDataSource() *PrimaryProductDataSource

func (*DataSource) GetProductReviewDataSource

func (x *DataSource) GetProductReviewDataSource() *ProductReviewDataSource

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

DataSourceReference

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_DataSourceId

func (*DataSourceReference) GetPrimaryDataSourceName

func (x *DataSourceReference) GetPrimaryDataSourceName() string

func (*DataSourceReference) GetSelf

func (x *DataSourceReference) GetSelf() bool

func (*DataSourceReference) GetSupplementalDataSourceName

func (x *DataSourceReference) GetSupplementalDataSourceName() string

func (*DataSourceReference) ProtoMessage

func (*DataSourceReference) ProtoMessage()

func (*DataSourceReference) ProtoReflect

func (x *DataSourceReference) ProtoReflect() protoreflect.Message

func (*DataSourceReference) Reset

func (x *DataSourceReference) Reset()

func (*DataSourceReference) String

func (x *DataSourceReference) String() string

DataSourceReference_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 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) Enum

func (DataSource_Input) EnumDescriptor

func (DataSource_Input) EnumDescriptor() ([]byte, []int)

Deprecated: Use DataSource_Input.Descriptor instead.

func (DataSource_Input) Number

func (DataSource_Input) String

func (x DataSource_Input) String() string

func (DataSource_Input) Type

DataSource_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.
	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) 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. 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() 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 {

	// 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.v1beta.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

func (*FileInput) Descriptor() ([]byte, []int)

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 (x *FileInput) GetFileName() string

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

func (x *FileInput) String() 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.v1beta.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.v1beta.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.v1beta.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() 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 (*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) Enum

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 (FileInput_FetchSettings_Frequency) String

func (FileInput_FetchSettings_Frequency) Type

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.merchant.datasources.v1beta.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.v1beta.FileInput.FetchSettings.fetch_uri].
	FileInput_GOOGLE_SHEETS FileInput_FileInputType = 3
)

func (FileInput_FileInputType) Descriptor

func (FileInput_FileInputType) Enum

func (FileInput_FileInputType) EnumDescriptor

func (FileInput_FileInputType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FileInput_FileInputType.Descriptor instead.

func (FileInput_FileInputType) Number

func (FileInput_FileInputType) String

func (x FileInput_FileInputType) String() string

func (FileInput_FileInputType) Type

FileUpload

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.v1beta.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() int64

func (*FileUpload) GetIssues

func (x *FileUpload) GetIssues() []*FileUpload_Issue

func (*FileUpload) GetItemsCreated

func (x *FileUpload) GetItemsCreated() int64

func (*FileUpload) GetItemsTotal

func (x *FileUpload) GetItemsTotal() int64

func (*FileUpload) GetItemsUpdated

func (x *FileUpload) GetItemsUpdated() int64

func (*FileUpload) GetName

func (x *FileUpload) GetName() string

func (*FileUpload) GetProcessingState

func (x *FileUpload) GetProcessingState() FileUpload_ProcessingState

func (*FileUpload) GetUploadTime

func (x *FileUpload) GetUploadTime() *timestamppb.Timestamp

func (*FileUpload) ProtoMessage

func (*FileUpload) ProtoMessage()

func (*FileUpload) ProtoReflect

func (x *FileUpload) ProtoReflect() protoreflect.Message

func (*FileUpload) Reset

func (x *FileUpload) Reset()

func (*FileUpload) String

func (x *FileUpload) String() string

FileUpload_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.v1beta.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() string

func (*FileUpload_Issue) GetCount

func (x *FileUpload_Issue) GetCount() int64

func (*FileUpload_Issue) GetDescription

func (x *FileUpload_Issue) GetDescription() string

func (*FileUpload_Issue) GetDocumentationUri

func (x *FileUpload_Issue) GetDocumentationUri() string

func (*FileUpload_Issue) GetSeverity

func (*FileUpload_Issue) GetTitle

func (x *FileUpload_Issue) GetTitle() string

func (*FileUpload_Issue) ProtoMessage

func (*FileUpload_Issue) ProtoMessage()

func (*FileUpload_Issue) ProtoReflect

func (x *FileUpload_Issue) ProtoReflect() protoreflect.Message

func (*FileUpload_Issue) Reset

func (x *FileUpload_Issue) Reset()

func (*FileUpload_Issue) String

func (x *FileUpload_Issue) String() string

FileUpload_Issue_Severity

type FileUpload_Issue_Severity int32

The 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) Enum

func (FileUpload_Issue_Severity) EnumDescriptor

func (FileUpload_Issue_Severity) EnumDescriptor() ([]byte, []int)

Deprecated: Use FileUpload_Issue_Severity.Descriptor instead.

func (FileUpload_Issue_Severity) Number

func (FileUpload_Issue_Severity) String

func (x FileUpload_Issue_Severity) String() string

func (FileUpload_Issue_Severity) Type

FileUpload_ProcessingState

type FileUpload_ProcessingState int32

The 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) Enum

func (FileUpload_ProcessingState) EnumDescriptor

func (FileUpload_ProcessingState) EnumDescriptor() ([]byte, []int)

Deprecated: Use FileUpload_ProcessingState.Descriptor instead.

func (FileUpload_ProcessingState) Number

func (FileUpload_ProcessingState) String

func (FileUpload_ProcessingState) Type

FileUploadsServiceClient

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) FileUploadsServiceClient

FileUploadsServiceServer

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() 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

GetFileUploadRequest

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() string

func (*GetFileUploadRequest) ProtoMessage

func (*GetFileUploadRequest) ProtoMessage()

func (*GetFileUploadRequest) ProtoReflect

func (x *GetFileUploadRequest) ProtoReflect() protoreflect.Message

func (*GetFileUploadRequest) Reset

func (x *GetFileUploadRequest) Reset()

func (*GetFileUploadRequest) String

func (x *GetFileUploadRequest) 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

MerchantReviewDataSource

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.Message

func (*MerchantReviewDataSource) Reset

func (x *MerchantReviewDataSource) Reset()

func (*MerchantReviewDataSource) String

func (x *MerchantReviewDataSource) String() string

PrimaryProductDataSource

type PrimaryProductDataSource struct {

	// Optional. Immutable. Specifies the type of data source channel.
	Channel PrimaryProductDataSource_Channel `protobuf:"varint,3,opt,name=channel,proto3,enum=google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource_Channel" json:"channel,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"`
	// 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) GetChannel

func (*PrimaryProductDataSource) GetContentLanguage

func (x *PrimaryProductDataSource) GetContentLanguage() string

func (*PrimaryProductDataSource) GetCountries

func (x *PrimaryProductDataSource) GetCountries() []string

func (*PrimaryProductDataSource) GetDefaultRule

func (*PrimaryProductDataSource) GetDestinations

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.
	// Note: Products management through the API is not possible for this
	// channel.
	PrimaryProductDataSource_PRODUCTS PrimaryProductDataSource_Channel = 3
)

func (PrimaryProductDataSource_Channel) Descriptor

func (PrimaryProductDataSource_Channel) Enum

func (PrimaryProductDataSource_Channel) EnumDescriptor

func (PrimaryProductDataSource_Channel) EnumDescriptor() ([]byte, []int)

Deprecated: Use PrimaryProductDataSource_Channel.Descriptor instead.

func (PrimaryProductDataSource_Channel) Number

func (PrimaryProductDataSource_Channel) String

func (PrimaryProductDataSource_Channel) Type

PrimaryProductDataSource_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() []*DataSourceReference

func (*PrimaryProductDataSource_DefaultRule) ProtoMessage

func (*PrimaryProductDataSource_DefaultRule) ProtoMessage()

func (*PrimaryProductDataSource_DefaultRule) ProtoReflect

func (*PrimaryProductDataSource_DefaultRule) Reset

func (*PrimaryProductDataSource_DefaultRule) String

PrimaryProductDataSource_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.v1beta.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 (*PrimaryProductDataSource_Destination) GetState

func (*PrimaryProductDataSource_Destination) ProtoMessage

func (*PrimaryProductDataSource_Destination) ProtoMessage()

func (*PrimaryProductDataSource_Destination) ProtoReflect

func (*PrimaryProductDataSource_Destination) Reset

func (*PrimaryProductDataSource_Destination) String

PrimaryProductDataSource_Destination_State

type PrimaryProductDataSource_Destination_State int32

The 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) Enum

func (PrimaryProductDataSource_Destination_State) EnumDescriptor

func (PrimaryProductDataSource_Destination_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use PrimaryProductDataSource_Destination_State.Descriptor instead.

func (PrimaryProductDataSource_Destination_State) Number

func (PrimaryProductDataSource_Destination_State) String

func (PrimaryProductDataSource_Destination_State) Type

ProductReviewDataSource

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.Message

func (*ProductReviewDataSource) Reset

func (x *ProductReviewDataSource) Reset()

func (*ProductReviewDataSource) String

func (x *ProductReviewDataSource) String() string

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 (*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][google.shopping.merchant.datasources.v1main.FileInput].
	// The fields must be unset for data sources without [file
	// input][google.shopping.merchant.datasources.v1main.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() string

func (*SupplementalProductDataSource) GetFeedLabel

func (x *SupplementalProductDataSource) GetFeedLabel() string

func (*SupplementalProductDataSource) GetReferencingPrimaryDataSources

func (x *SupplementalProductDataSource) GetReferencingPrimaryDataSources() []*DataSourceReference

func (*SupplementalProductDataSource) ProtoMessage

func (*SupplementalProductDataSource) ProtoMessage()

func (*SupplementalProductDataSource) ProtoReflect

func (*SupplementalProductDataSource) Reset

func (x *SupplementalProductDataSource) Reset()

func (*SupplementalProductDataSource) String

UnimplementedDataSourcesServiceServer

type UnimplementedDataSourcesServiceServer struct {
}

UnimplementedDataSourcesServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedDataSourcesServiceServer) CreateDataSource

func (UnimplementedDataSourcesServiceServer) DeleteDataSource

func (UnimplementedDataSourcesServiceServer) FetchDataSource

func (UnimplementedDataSourcesServiceServer) GetDataSource

func (UnimplementedDataSourcesServiceServer) ListDataSources

func (UnimplementedDataSourcesServiceServer) UpdateDataSource

UnimplementedFileUploadsServiceServer

type UnimplementedFileUploadsServiceServer struct {
}

UnimplementedFileUploadsServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedFileUploadsServiceServer) GetFileUpload

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.
	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