datasourcespb

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

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

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

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

View Source
var File_google_shopping_merchant_datasources_v1beta_datasources_proto protoreflect.FileDescriptor
View Source
var File_google_shopping_merchant_datasources_v1beta_datasourcetypes_proto protoreflect.FileDescriptor
View Source
var File_google_shopping_merchant_datasources_v1beta_fileinputs_proto protoreflect.FileDescriptor
View Source
var File_google_shopping_merchant_datasources_v1beta_fileuploads_proto protoreflect.FileDescriptor

Functions

func RegisterDataSourcesServiceServer

func RegisterDataSourcesServiceServer(s *grpc.Server, srv DataSourcesServiceServer)

func RegisterFileUploadsServiceServer added in v0.10.0

func RegisterFileUploadsServiceServer(s *grpc.Server, srv FileUploadsServiceServer)

Types

type 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 deprecated

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

type 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 `` /* 131-byte string literal not displayed */
	// 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](https://support.google.com/merchants/answer/7439058) for the Merchant Center account.

func (*DataSource) Descriptor deprecated

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 added in v0.16.0

func (x *DataSource) GetMerchantReviewDataSource() *MerchantReviewDataSource

func (*DataSource) GetName

func (x *DataSource) GetName() string

func (*DataSource) GetPrimaryProductDataSource

func (x *DataSource) GetPrimaryProductDataSource() *PrimaryProductDataSource

func (*DataSource) GetProductReviewDataSource added in v0.16.0

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

type DataSourceReference added in v0.10.0

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 deprecated added in v0.10.0

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

Deprecated: Use DataSourceReference.ProtoReflect.Descriptor instead.

func (*DataSourceReference) GetDataSourceId added in v0.10.0

func (m *DataSourceReference) GetDataSourceId() isDataSourceReference_DataSourceId

func (*DataSourceReference) GetPrimaryDataSourceName added in v0.10.0

func (x *DataSourceReference) GetPrimaryDataSourceName() string

func (*DataSourceReference) GetSelf added in v0.10.0

func (x *DataSourceReference) GetSelf() bool

func (*DataSourceReference) GetSupplementalDataSourceName added in v0.10.0

func (x *DataSourceReference) GetSupplementalDataSourceName() string

func (*DataSourceReference) ProtoMessage added in v0.10.0

func (*DataSourceReference) ProtoMessage()

func (*DataSourceReference) ProtoReflect added in v0.10.0

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

func (*DataSourceReference) Reset added in v0.10.0

func (x *DataSourceReference) Reset()

func (*DataSourceReference) String added in v0.10.0

func (x *DataSourceReference) String() string

type DataSourceReference_PrimaryDataSourceName added in v0.10.0

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"`
}

type DataSourceReference_Self added in v0.10.0

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"`
}

type DataSourceReference_SupplementalDataSourceName added in v0.10.0

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"`
}

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

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 deprecated

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

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"`
}

type DataSource_MerchantReviewDataSource added in v0.16.0

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"`
}

type 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"`
}

type DataSource_ProductReviewDataSource added in v0.16.0

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"`
}

type 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"`
}

type 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"`
}

type 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"`
}

type DataSourcesServiceClient

type DataSourcesServiceClient interface {
	// Retrieves the data source configuration for the given account.
	GetDataSource(ctx context.Context, in *GetDataSourceRequest, opts ...grpc.CallOption) (*DataSource, error)
	// Lists the configurations for data sources for the given account.
	ListDataSources(ctx context.Context, in *ListDataSourcesRequest, opts ...grpc.CallOption) (*ListDataSourcesResponse, error)
	// Creates the new data source configuration for the given account.
	CreateDataSource(ctx context.Context, in *CreateDataSourceRequest, opts ...grpc.CallOption) (*DataSource, error)
	// Updates the existing data source configuration. The fields that are
	// set in the update mask but not provided in the resource will be deleted.
	UpdateDataSource(ctx context.Context, in *UpdateDataSourceRequest, opts ...grpc.CallOption) (*DataSource, error)
	// Deletes a data source from your Merchant Center account.
	DeleteDataSource(ctx context.Context, in *DeleteDataSourceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Performs the data fetch immediately (even outside fetch schedule) on a
	// data source from your Merchant Center Account. If you need to call
	// this method more than once per day, you should use the Products service to
	// update your product data instead.
	// This method only works on data sources with a file input set.
	FetchDataSource(ctx context.Context, in *FetchDataSourceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

DataSourcesServiceClient is the client API for DataSourcesService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

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

type 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 deprecated

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

type 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 deprecated

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

type 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 `` /* 176-byte string literal not displayed */
	// 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

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

type 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 `` /* 155-byte string literal not displayed */
	// 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 deprecated

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

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

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 deprecated

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

type FileInput_FileInputType

type FileInput_FileInputType int32

The method of file delivery.

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 deprecated

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

type FileUpload added in v0.10.0

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 `` /* 183-byte string literal not displayed */
	// 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 deprecated added in v0.10.0

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

Deprecated: Use FileUpload.ProtoReflect.Descriptor instead.

func (*FileUpload) GetDataSourceId added in v0.10.0

func (x *FileUpload) GetDataSourceId() int64

func (*FileUpload) GetIssues added in v0.10.0

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

func (*FileUpload) GetItemsCreated added in v0.10.0

func (x *FileUpload) GetItemsCreated() int64

func (*FileUpload) GetItemsTotal added in v0.10.0

func (x *FileUpload) GetItemsTotal() int64

func (*FileUpload) GetItemsUpdated added in v0.10.0

func (x *FileUpload) GetItemsUpdated() int64

func (*FileUpload) GetName added in v0.10.0

func (x *FileUpload) GetName() string

func (*FileUpload) GetProcessingState added in v0.10.0

func (x *FileUpload) GetProcessingState() FileUpload_ProcessingState

func (*FileUpload) GetUploadTime added in v0.10.0

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

func (*FileUpload) ProtoMessage added in v0.10.0

func (*FileUpload) ProtoMessage()

func (*FileUpload) ProtoReflect added in v0.10.0

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

func (*FileUpload) Reset added in v0.10.0

func (x *FileUpload) Reset()

func (*FileUpload) String added in v0.10.0

func (x *FileUpload) String() string

type FileUpload_Issue added in v0.10.0

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 `` /* 145-byte string literal not displayed */
	// 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 deprecated added in v0.10.0

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

Deprecated: Use FileUpload_Issue.ProtoReflect.Descriptor instead.

func (*FileUpload_Issue) GetCode added in v0.10.0

func (x *FileUpload_Issue) GetCode() string

func (*FileUpload_Issue) GetCount added in v0.10.0

func (x *FileUpload_Issue) GetCount() int64

func (*FileUpload_Issue) GetDescription added in v0.10.0

func (x *FileUpload_Issue) GetDescription() string

func (*FileUpload_Issue) GetDocumentationUri added in v0.10.0

func (x *FileUpload_Issue) GetDocumentationUri() string

func (*FileUpload_Issue) GetSeverity added in v0.10.0

func (*FileUpload_Issue) GetTitle added in v0.10.0

func (x *FileUpload_Issue) GetTitle() string

func (*FileUpload_Issue) ProtoMessage added in v0.10.0

func (*FileUpload_Issue) ProtoMessage()

func (*FileUpload_Issue) ProtoReflect added in v0.10.0

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

func (*FileUpload_Issue) Reset added in v0.10.0

func (x *FileUpload_Issue) Reset()

func (*FileUpload_Issue) String added in v0.10.0

func (x *FileUpload_Issue) String() string

type FileUpload_Issue_Severity added in v0.10.0

type FileUpload_Issue_Severity int32

The severity of the issue.

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 added in v0.10.0

func (FileUpload_Issue_Severity) Enum added in v0.10.0

func (FileUpload_Issue_Severity) EnumDescriptor deprecated added in v0.10.0

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

Deprecated: Use FileUpload_Issue_Severity.Descriptor instead.

func (FileUpload_Issue_Severity) Number added in v0.10.0

func (FileUpload_Issue_Severity) String added in v0.10.0

func (x FileUpload_Issue_Severity) String() string

func (FileUpload_Issue_Severity) Type added in v0.10.0

type FileUpload_ProcessingState added in v0.10.0

type FileUpload_ProcessingState int32

The processing state of the data source.

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 added in v0.10.0

func (FileUpload_ProcessingState) Enum added in v0.10.0

func (FileUpload_ProcessingState) EnumDescriptor deprecated added in v0.10.0

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

Deprecated: Use FileUpload_ProcessingState.Descriptor instead.

func (FileUpload_ProcessingState) Number added in v0.10.0

func (FileUpload_ProcessingState) String added in v0.10.0

func (FileUpload_ProcessingState) Type added in v0.10.0

type FileUploadsServiceClient added in v0.10.0

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewFileUploadsServiceClient added in v0.10.0

func NewFileUploadsServiceClient(cc grpc.ClientConnInterface) FileUploadsServiceClient

type FileUploadsServiceServer added in v0.10.0

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.

type 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 deprecated

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

type GetFileUploadRequest added in v0.10.0

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 deprecated added in v0.10.0

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

Deprecated: Use GetFileUploadRequest.ProtoReflect.Descriptor instead.

func (*GetFileUploadRequest) GetName added in v0.10.0

func (x *GetFileUploadRequest) GetName() string

func (*GetFileUploadRequest) ProtoMessage added in v0.10.0

func (*GetFileUploadRequest) ProtoMessage()

func (*GetFileUploadRequest) ProtoReflect added in v0.10.0

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

func (*GetFileUploadRequest) Reset added in v0.10.0

func (x *GetFileUploadRequest) Reset()

func (*GetFileUploadRequest) String added in v0.10.0

func (x *GetFileUploadRequest) String() string

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type MerchantReviewDataSource added in v0.16.0

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

The merchant review data source.

func (*MerchantReviewDataSource) Descriptor deprecated added in v0.16.0

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

Deprecated: Use MerchantReviewDataSource.ProtoReflect.Descriptor instead.

func (*MerchantReviewDataSource) ProtoMessage added in v0.16.0

func (*MerchantReviewDataSource) ProtoMessage()

func (*MerchantReviewDataSource) ProtoReflect added in v0.16.0

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

func (*MerchantReviewDataSource) Reset added in v0.16.0

func (x *MerchantReviewDataSource) Reset()

func (*MerchantReviewDataSource) String added in v0.16.0

func (x *MerchantReviewDataSource) String() string

type PrimaryProductDataSource

type PrimaryProductDataSource struct {

	// Required. Immutable. Specifies the type of data source channel.
	Channel PrimaryProductDataSource_Channel `` /* 150-byte string literal not displayed */
	// 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"`
	// contains filtered or unexported fields
}

The primary data source for local and online products.

func (*PrimaryProductDataSource) Descriptor deprecated

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 added in v0.10.0

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

type PrimaryProductDataSource_Channel

type PrimaryProductDataSource_Channel int32

Data Source Channel.

Channel is used to distinguish between data sources for different product verticals.

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 deprecated

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

Deprecated: Use PrimaryProductDataSource_Channel.Descriptor instead.

func (PrimaryProductDataSource_Channel) Number

func (PrimaryProductDataSource_Channel) String

func (PrimaryProductDataSource_Channel) Type

type PrimaryProductDataSource_DefaultRule added in v0.10.0

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 deprecated added in v0.10.0

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

Deprecated: Use PrimaryProductDataSource_DefaultRule.ProtoReflect.Descriptor instead.

func (*PrimaryProductDataSource_DefaultRule) GetTakeFromDataSources added in v0.10.0

func (x *PrimaryProductDataSource_DefaultRule) GetTakeFromDataSources() []*DataSourceReference

func (*PrimaryProductDataSource_DefaultRule) ProtoMessage added in v0.10.0

func (*PrimaryProductDataSource_DefaultRule) ProtoMessage()

func (*PrimaryProductDataSource_DefaultRule) ProtoReflect added in v0.10.0

func (*PrimaryProductDataSource_DefaultRule) Reset added in v0.10.0

func (*PrimaryProductDataSource_DefaultRule) String added in v0.10.0

type ProductReviewDataSource added in v0.16.0

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

The product review data source.

func (*ProductReviewDataSource) Descriptor deprecated added in v0.16.0

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

Deprecated: Use ProductReviewDataSource.ProtoReflect.Descriptor instead.

func (*ProductReviewDataSource) ProtoMessage added in v0.16.0

func (*ProductReviewDataSource) ProtoMessage()

func (*ProductReviewDataSource) ProtoReflect added in v0.16.0

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

func (*ProductReviewDataSource) Reset added in v0.16.0

func (x *ProductReviewDataSource) Reset()

func (*ProductReviewDataSource) String added in v0.16.0

func (x *ProductReviewDataSource) String() string

type 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 deprecated

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

type 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 deprecated

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

type 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 `` /* 152-byte string literal not displayed */
	// 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 deprecated

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 added in v0.10.0

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

func (*SupplementalProductDataSource) ProtoMessage

func (*SupplementalProductDataSource) ProtoMessage()

func (*SupplementalProductDataSource) ProtoReflect

func (*SupplementalProductDataSource) Reset

func (x *SupplementalProductDataSource) Reset()

func (*SupplementalProductDataSource) String

type UnimplementedDataSourcesServiceServer

type UnimplementedDataSourcesServiceServer struct {
}

UnimplementedDataSourcesServiceServer can 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

type UnimplementedFileUploadsServiceServer added in v0.10.0

type UnimplementedFileUploadsServiceServer struct {
}

UnimplementedFileUploadsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedFileUploadsServiceServer) GetFileUpload added in v0.10.0

type 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 deprecated

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL