Merchant API v1beta - Package cloud.google.com/go/shopping/merchant/inventories/apiv1beta/inventoriespb (v1.11.0)

Constants

LocalInventoryService_ListLocalInventories_FullMethodName, LocalInventoryService_InsertLocalInventory_FullMethodName, LocalInventoryService_DeleteLocalInventory_FullMethodName

const (
	LocalInventoryService_ListLocalInventories_FullMethodName = "/google.shopping.merchant.inventories.v1beta.LocalInventoryService/ListLocalInventories"
	LocalInventoryService_InsertLocalInventory_FullMethodName = "/google.shopping.merchant.inventories.v1beta.LocalInventoryService/InsertLocalInventory"
	LocalInventoryService_DeleteLocalInventory_FullMethodName = "/google.shopping.merchant.inventories.v1beta.LocalInventoryService/DeleteLocalInventory"
)

RegionalInventoryService_ListRegionalInventories_FullMethodName, RegionalInventoryService_InsertRegionalInventory_FullMethodName, RegionalInventoryService_DeleteRegionalInventory_FullMethodName

const (
	RegionalInventoryService_ListRegionalInventories_FullMethodName = "/google.shopping.merchant.inventories.v1beta.RegionalInventoryService/ListRegionalInventories"
	RegionalInventoryService_InsertRegionalInventory_FullMethodName = "/google.shopping.merchant.inventories.v1beta.RegionalInventoryService/InsertRegionalInventory"
	RegionalInventoryService_DeleteRegionalInventory_FullMethodName = "/google.shopping.merchant.inventories.v1beta.RegionalInventoryService/DeleteRegionalInventory"
)

Variables

File_google_shopping_merchant_inventories_v1beta_localinventory_proto

var File_google_shopping_merchant_inventories_v1beta_localinventory_proto protoreflect.FileDescriptor

File_google_shopping_merchant_inventories_v1beta_regionalinventory_proto

var File_google_shopping_merchant_inventories_v1beta_regionalinventory_proto protoreflect.FileDescriptor

LocalInventoryService_ServiceDesc

var LocalInventoryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "google.shopping.merchant.inventories.v1beta.LocalInventoryService",
	HandlerType: (*LocalInventoryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListLocalInventories",
			Handler:    _LocalInventoryService_ListLocalInventories_Handler,
		},
		{
			MethodName: "InsertLocalInventory",
			Handler:    _LocalInventoryService_InsertLocalInventory_Handler,
		},
		{
			MethodName: "DeleteLocalInventory",
			Handler:    _LocalInventoryService_DeleteLocalInventory_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/shopping/merchant/inventories/v1beta/localinventory.proto",
}

LocalInventoryService_ServiceDesc is the grpc.ServiceDesc for LocalInventoryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

RegionalInventoryService_ServiceDesc

var RegionalInventoryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "google.shopping.merchant.inventories.v1beta.RegionalInventoryService",
	HandlerType: (*RegionalInventoryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListRegionalInventories",
			Handler:    _RegionalInventoryService_ListRegionalInventories_Handler,
		},
		{
			MethodName: "InsertRegionalInventory",
			Handler:    _RegionalInventoryService_InsertRegionalInventory_Handler,
		},
		{
			MethodName: "DeleteRegionalInventory",
			Handler:    _RegionalInventoryService_DeleteRegionalInventory_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/shopping/merchant/inventories/v1beta/regionalinventory.proto",
}

RegionalInventoryService_ServiceDesc is the grpc.ServiceDesc for RegionalInventoryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterLocalInventoryServiceServer

func RegisterLocalInventoryServiceServer(s grpc.ServiceRegistrar, srv LocalInventoryServiceServer)

func RegisterRegionalInventoryServiceServer

func RegisterRegionalInventoryServiceServer(s grpc.ServiceRegistrar, srv RegionalInventoryServiceServer)

DeleteLocalInventoryRequest

type DeleteLocalInventoryRequest struct {

	// Required. The name of the local inventory for the given product to delete.
	// Format:
	// `accounts/{account}/products/{product}/localInventories/{store_code}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for the DeleteLocalInventory method.

func (*DeleteLocalInventoryRequest) Descriptor

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

Deprecated: Use DeleteLocalInventoryRequest.ProtoReflect.Descriptor instead.

func (*DeleteLocalInventoryRequest) GetName

func (x *DeleteLocalInventoryRequest) GetName() string

func (*DeleteLocalInventoryRequest) ProtoMessage

func (*DeleteLocalInventoryRequest) ProtoMessage()

func (*DeleteLocalInventoryRequest) ProtoReflect

func (*DeleteLocalInventoryRequest) Reset

func (x *DeleteLocalInventoryRequest) Reset()

func (*DeleteLocalInventoryRequest) String

func (x *DeleteLocalInventoryRequest) String() string

DeleteRegionalInventoryRequest

type DeleteRegionalInventoryRequest struct {

	// Required. The name of the `RegionalInventory` resource to delete.
	// Format:
	// `accounts/{account}/products/{product}/regionalInventories/{region}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for the DeleteRegionalInventory method.

func (*DeleteRegionalInventoryRequest) Descriptor

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

Deprecated: Use DeleteRegionalInventoryRequest.ProtoReflect.Descriptor instead.

func (*DeleteRegionalInventoryRequest) GetName

func (*DeleteRegionalInventoryRequest) ProtoMessage

func (*DeleteRegionalInventoryRequest) ProtoMessage()

func (*DeleteRegionalInventoryRequest) ProtoReflect

func (*DeleteRegionalInventoryRequest) Reset

func (x *DeleteRegionalInventoryRequest) Reset()

func (*DeleteRegionalInventoryRequest) String

InsertLocalInventoryRequest

type InsertLocalInventoryRequest struct {

	// Required. The account and product where this inventory will be inserted.
	// Format: `accounts/{account}/products/{product}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. Local inventory information of the product. If the product
	// already has a `LocalInventory` resource for the same `storeCode`, full
	// replacement of the `LocalInventory` resource is performed.
	LocalInventory *LocalInventory `protobuf:"bytes,2,opt,name=local_inventory,json=localInventory,proto3" json:"local_inventory,omitempty"`
	// contains filtered or unexported fields
}

Request message for the InsertLocalInventory method.

func (*InsertLocalInventoryRequest) Descriptor

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

Deprecated: Use InsertLocalInventoryRequest.ProtoReflect.Descriptor instead.

func (*InsertLocalInventoryRequest) GetLocalInventory

func (x *InsertLocalInventoryRequest) GetLocalInventory() *LocalInventory

func (*InsertLocalInventoryRequest) GetParent

func (x *InsertLocalInventoryRequest) GetParent() string

func (*InsertLocalInventoryRequest) ProtoMessage

func (*InsertLocalInventoryRequest) ProtoMessage()

func (*InsertLocalInventoryRequest) ProtoReflect

func (*InsertLocalInventoryRequest) Reset

func (x *InsertLocalInventoryRequest) Reset()

func (*InsertLocalInventoryRequest) String

func (x *InsertLocalInventoryRequest) String() string

InsertRegionalInventoryRequest

type InsertRegionalInventoryRequest struct {

	// Required. The account and product where this inventory will be inserted.
	// Format: `accounts/{account}/products/{product}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. Regional inventory information to add to the product. If the
	// product already has a `RegionalInventory` resource for the same `region`,
	// full replacement of the `RegionalInventory` resource is performed.
	RegionalInventory *RegionalInventory `protobuf:"bytes,2,opt,name=regional_inventory,json=regionalInventory,proto3" json:"regional_inventory,omitempty"`
	// contains filtered or unexported fields
}

Request message for the InsertRegionalInventory method.

func (*InsertRegionalInventoryRequest) Descriptor

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

Deprecated: Use InsertRegionalInventoryRequest.ProtoReflect.Descriptor instead.

func (*InsertRegionalInventoryRequest) GetParent

func (x *InsertRegionalInventoryRequest) GetParent() string

func (*InsertRegionalInventoryRequest) GetRegionalInventory

func (x *InsertRegionalInventoryRequest) GetRegionalInventory() *RegionalInventory

func (*InsertRegionalInventoryRequest) ProtoMessage

func (*InsertRegionalInventoryRequest) ProtoMessage()

func (*InsertRegionalInventoryRequest) ProtoReflect

func (*InsertRegionalInventoryRequest) Reset

func (x *InsertRegionalInventoryRequest) Reset()

func (*InsertRegionalInventoryRequest) String

ListLocalInventoriesRequest

type ListLocalInventoriesRequest struct {

	// Required. The `name` of the parent product to list local inventories for.
	// Format:
	// `accounts/{account}/products/{product}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of `LocalInventory` resources for the given
	// product to return. The service returns fewer than this value if the number
	// of inventories for the given product is less that than the `pageSize`. The
	// default value is 25000. The maximum value is 25000; If a value higher than
	// the maximum is specified, then the `pageSize` will default to the maximum
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `ListLocalInventories` call.
	// Provide the page token to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListLocalInventories`
	// must match the call that provided the page token. The token returned as
	// [nextPageToken][google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.next_page_token]
	// in the response to the previous request.
	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 ListLocalInventories method.

func (*ListLocalInventoriesRequest) Descriptor

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

Deprecated: Use ListLocalInventoriesRequest.ProtoReflect.Descriptor instead.

func (*ListLocalInventoriesRequest) GetPageSize

func (x *ListLocalInventoriesRequest) GetPageSize() int32

func (*ListLocalInventoriesRequest) GetPageToken

func (x *ListLocalInventoriesRequest) GetPageToken() string

func (*ListLocalInventoriesRequest) GetParent

func (x *ListLocalInventoriesRequest) GetParent() string

func (*ListLocalInventoriesRequest) ProtoMessage

func (*ListLocalInventoriesRequest) ProtoMessage()

func (*ListLocalInventoriesRequest) ProtoReflect

func (*ListLocalInventoriesRequest) Reset

func (x *ListLocalInventoriesRequest) Reset()

func (*ListLocalInventoriesRequest) String

func (x *ListLocalInventoriesRequest) String() string

ListLocalInventoriesResponse

type ListLocalInventoriesResponse struct {

	// The `LocalInventory` resources for the given product from the specified
	// account.
	LocalInventories []*LocalInventory `protobuf:"bytes,1,rep,name=local_inventories,json=localInventories,proto3" json:"local_inventories,omitempty"`
	// A token, which can be sent as `pageToken` 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 ListLocalInventories method.

func (*ListLocalInventoriesResponse) Descriptor

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

Deprecated: Use ListLocalInventoriesResponse.ProtoReflect.Descriptor instead.

func (*ListLocalInventoriesResponse) GetLocalInventories

func (x *ListLocalInventoriesResponse) GetLocalInventories() []*LocalInventory

func (*ListLocalInventoriesResponse) GetNextPageToken

func (x *ListLocalInventoriesResponse) GetNextPageToken() string

func (*ListLocalInventoriesResponse) ProtoMessage

func (*ListLocalInventoriesResponse) ProtoMessage()

func (*ListLocalInventoriesResponse) ProtoReflect

func (*ListLocalInventoriesResponse) Reset

func (x *ListLocalInventoriesResponse) Reset()

func (*ListLocalInventoriesResponse) String

ListRegionalInventoriesRequest

type ListRegionalInventoriesRequest struct {

	// Required. The `name` of the parent product to list `RegionalInventory`
	// resources for. Format: `accounts/{account}/products/{product}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of `RegionalInventory` resources for the given product
	// to return. The service returns fewer than this value if the number of
	// inventories for the given product is less that than the `pageSize`. The
	// default value is 25000. The maximum value is 100000; If a value higher than
	// the maximum is specified, then the `pageSize` will default to the maximum.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `ListRegionalInventories` call.
	// Provide the page token to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListRegionalInventories`
	// must match the call that provided the page token. The token returned as
	// [nextPageToken][google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.next_page_token]
	// in the response to the previous request.
	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 ListRegionalInventories method.

func (*ListRegionalInventoriesRequest) Descriptor

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

Deprecated: Use ListRegionalInventoriesRequest.ProtoReflect.Descriptor instead.

func (*ListRegionalInventoriesRequest) GetPageSize

func (x *ListRegionalInventoriesRequest) GetPageSize() int32

func (*ListRegionalInventoriesRequest) GetPageToken

func (x *ListRegionalInventoriesRequest) GetPageToken() string

func (*ListRegionalInventoriesRequest) GetParent

func (x *ListRegionalInventoriesRequest) GetParent() string

func (*ListRegionalInventoriesRequest) ProtoMessage

func (*ListRegionalInventoriesRequest) ProtoMessage()

func (*ListRegionalInventoriesRequest) ProtoReflect

func (*ListRegionalInventoriesRequest) Reset

func (x *ListRegionalInventoriesRequest) Reset()

func (*ListRegionalInventoriesRequest) String

ListRegionalInventoriesResponse

type ListRegionalInventoriesResponse struct {

	// The `RegionalInventory` resources for the given product from the specified
	// account.
	RegionalInventories []*RegionalInventory `protobuf:"bytes,1,rep,name=regional_inventories,json=regionalInventories,proto3" json:"regional_inventories,omitempty"`
	// A token, which can be sent as `pageToken` 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 ListRegionalInventories method.

func (*ListRegionalInventoriesResponse) Descriptor

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

Deprecated: Use ListRegionalInventoriesResponse.ProtoReflect.Descriptor instead.

func (*ListRegionalInventoriesResponse) GetNextPageToken

func (x *ListRegionalInventoriesResponse) GetNextPageToken() string

func (*ListRegionalInventoriesResponse) GetRegionalInventories

func (x *ListRegionalInventoriesResponse) GetRegionalInventories() []*RegionalInventory

func (*ListRegionalInventoriesResponse) ProtoMessage

func (*ListRegionalInventoriesResponse) ProtoMessage()

func (*ListRegionalInventoriesResponse) ProtoReflect

func (*ListRegionalInventoriesResponse) Reset

func (*ListRegionalInventoriesResponse) String

LocalInventory

type LocalInventory struct {

	// Output only. The name of the `LocalInventory` resource.
	// Format:
	// `accounts/{account}/products/{product}/localInventories/{store_code}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The account that owns the product. This field will be ignored
	// if set by the client.
	Account int64 `protobuf:"varint,2,opt,name=account,proto3" json:"account,omitempty"`
	// Required. Immutable. Store code (the store ID from your Business Profile)
	// of the physical store the product is sold in. See the [Local product
	// inventory data
	// specification](https://support.google.com/merchants/answer/3061342) for
	// more information.
	StoreCode string `protobuf:"bytes,3,opt,name=store_code,json=storeCode,proto3" json:"store_code,omitempty"`
	// Price of the product at this store.
	Price *typepb.Price `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"`
	// Sale price of the product at this store. Mandatory if
	// [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date]
	// is defined.
	SalePrice *typepb.Price `protobuf:"bytes,5,opt,name=sale_price,json=salePrice,proto3" json:"sale_price,omitempty"`
	// The `TimePeriod` of the
	// sale at this store.
	SalePriceEffectiveDate *interval.Interval `protobuf:"bytes,6,opt,name=sale_price_effective_date,json=salePriceEffectiveDate,proto3" json:"sale_price_effective_date,omitempty"`
	// Availability of the product at this store.
	// For accepted attribute values, see the [local product inventory data
	// specification](https://support.google.com/merchants/answer/3061342)
	Availability *string `protobuf:"bytes,7,opt,name=availability,proto3,oneof" json:"availability,omitempty"`
	// Quantity of the product available at this store. Must be greater than or
	// equal to zero.
	Quantity *int64 `protobuf:"varint,8,opt,name=quantity,proto3,oneof" json:"quantity,omitempty"`
	// Supported pickup method for this product. Unless the value is `"not
	// supported"`, this field must be submitted together with
	// `pickupSla`.
	// For accepted attribute values, see the [local product inventory data
	// specification](https://support.google.com/merchants/answer/3061342)
	PickupMethod *string `protobuf:"bytes,9,opt,name=pickup_method,json=pickupMethod,proto3,oneof" json:"pickup_method,omitempty"`
	// Relative time period from the order date for an order for this product,
	// from this store, to be ready for pickup. Must be submitted with
	// `pickupMethod`.
	// For accepted attribute values, see the [local product inventory data
	// specification](https://support.google.com/merchants/answer/3061342)
	PickupSla *string `protobuf:"bytes,10,opt,name=pickup_sla,json=pickupSla,proto3,oneof" json:"pickup_sla,omitempty"`
	// Location of the product inside the store. Maximum length is 20 bytes.
	InstoreProductLocation *string `protobuf:"bytes,11,opt,name=instore_product_location,json=instoreProductLocation,proto3,oneof" json:"instore_product_location,omitempty"`
	// A list of custom (merchant-provided) attributes. You can also use
	// `CustomAttribute` to submit any attribute of the data specification in its
	// generic form.
	CustomAttributes []*typepb.CustomAttribute `protobuf:"bytes,12,rep,name=custom_attributes,json=customAttributes,proto3" json:"custom_attributes,omitempty"`
	// contains filtered or unexported fields
}

Local inventory information for the product. Represents in-store information for a specific product at the store specified by [storeCode][google.shopping.merchant.inventories.v1beta.LocalInventory.store_code]. For a list of all accepted attribute values, see the local product inventory data specification.

func (*LocalInventory) Descriptor

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

Deprecated: Use LocalInventory.ProtoReflect.Descriptor instead.

func (*LocalInventory) GetAccount

func (x *LocalInventory) GetAccount() int64

func (*LocalInventory) GetAvailability

func (x *LocalInventory) GetAvailability() string

func (*LocalInventory) GetCustomAttributes

func (x *LocalInventory) GetCustomAttributes() []*typepb.CustomAttribute

func (*LocalInventory) GetInstoreProductLocation

func (x *LocalInventory) GetInstoreProductLocation() string

func (*LocalInventory) GetName

func (x *LocalInventory) GetName() string

func (*LocalInventory) GetPickupMethod

func (x *LocalInventory) GetPickupMethod() string

func (*LocalInventory) GetPickupSla

func (x *LocalInventory) GetPickupSla() string

func (*LocalInventory) GetPrice

func (x *LocalInventory) GetPrice() *typepb.Price

func (*LocalInventory) GetQuantity

func (x *LocalInventory) GetQuantity() int64

func (*LocalInventory) GetSalePrice

func (x *LocalInventory) GetSalePrice() *typepb.Price

func (*LocalInventory) GetSalePriceEffectiveDate

func (x *LocalInventory) GetSalePriceEffectiveDate() *interval.Interval

func (*LocalInventory) GetStoreCode

func (x *LocalInventory) GetStoreCode() string

func (*LocalInventory) ProtoMessage

func (*LocalInventory) ProtoMessage()

func (*LocalInventory) ProtoReflect

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

func (*LocalInventory) Reset

func (x *LocalInventory) Reset()

func (*LocalInventory) String

func (x *LocalInventory) String() string

LocalInventoryServiceClient

type LocalInventoryServiceClient interface {
	// Lists the `LocalInventory` resources for the given product in your merchant
	// account. The response might contain fewer items than specified by
	// `pageSize`. If `pageToken` was returned in previous request, it can be used
	// to obtain additional results.
	//
	// `LocalInventory` resources are listed per product for a given account.
	ListLocalInventories(ctx context.Context, in *ListLocalInventoriesRequest, opts ...grpc.CallOption) (*ListLocalInventoriesResponse, error)
	// Inserts a `LocalInventory` resource to a product in your merchant
	// account.
	//
	// Replaces the full `LocalInventory` resource if an entry with the same
	// [`storeCode`][google.shopping.merchant.inventories.v1beta.LocalInventory.store_code]
	// already exists for the product.
	//
	// It might take up to 30 minutes for the new or updated `LocalInventory`
	// resource to appear in products.
	InsertLocalInventory(ctx context.Context, in *InsertLocalInventoryRequest, opts ...grpc.CallOption) (*LocalInventory, error)
	// Deletes the specified `LocalInventory` from the given product in your
	// merchant account. It might take a up to an hour for the
	// `LocalInventory` to be deleted from the specific product.
	// Once you have received a successful delete response, wait for that
	// period before attempting a delete again.
	DeleteLocalInventory(ctx context.Context, in *DeleteLocalInventoryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

LocalInventoryServiceClient is the client API for LocalInventoryService 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 NewLocalInventoryServiceClient

func NewLocalInventoryServiceClient(cc grpc.ClientConnInterface) LocalInventoryServiceClient

LocalInventoryServiceServer

type LocalInventoryServiceServer interface {
	// Lists the `LocalInventory` resources for the given product in your merchant
	// account. The response might contain fewer items than specified by
	// `pageSize`. If `pageToken` was returned in previous request, it can be used
	// to obtain additional results.
	//
	// `LocalInventory` resources are listed per product for a given account.
	ListLocalInventories(context.Context, *ListLocalInventoriesRequest) (*ListLocalInventoriesResponse, error)
	// Inserts a `LocalInventory` resource to a product in your merchant
	// account.
	//
	// Replaces the full `LocalInventory` resource if an entry with the same
	// [`storeCode`][google.shopping.merchant.inventories.v1beta.LocalInventory.store_code]
	// already exists for the product.
	//
	// It might take up to 30 minutes for the new or updated `LocalInventory`
	// resource to appear in products.
	InsertLocalInventory(context.Context, *InsertLocalInventoryRequest) (*LocalInventory, error)
	// Deletes the specified `LocalInventory` from the given product in your
	// merchant account. It might take a up to an hour for the
	// `LocalInventory` to be deleted from the specific product.
	// Once you have received a successful delete response, wait for that
	// period before attempting a delete again.
	DeleteLocalInventory(context.Context, *DeleteLocalInventoryRequest) (*emptypb.Empty, error)
}

LocalInventoryServiceServer is the server API for LocalInventoryService service. All implementations should embed UnimplementedLocalInventoryServiceServer for forward compatibility

RegionalInventory

type RegionalInventory struct {

	// Output only. The name of the `RegionalInventory` resource.
	// Format:
	// `{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The account that owns the product. This field will be ignored
	// if set by the client.
	Account int64 `protobuf:"varint,2,opt,name=account,proto3" json:"account,omitempty"`
	// Required. Immutable. ID of the region for this
	// `RegionalInventory` resource. See the [Regional availability and
	// pricing](https://support.google.com/merchants/answer/9698880) for more
	// details.
	Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
	// Price of the product in this region.
	Price *typepb.Price `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"`
	// Sale price of the product in this region. Mandatory if
	// [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date]
	// is defined.
	SalePrice *typepb.Price `protobuf:"bytes,5,opt,name=sale_price,json=salePrice,proto3" json:"sale_price,omitempty"`
	// The `TimePeriod` of the
	// sale price in this region.
	SalePriceEffectiveDate *interval.Interval `protobuf:"bytes,6,opt,name=sale_price_effective_date,json=salePriceEffectiveDate,proto3" json:"sale_price_effective_date,omitempty"`
	// Availability of the product in this region.
	// For accepted attribute values, see the [regional product inventory data
	// specification](https://support.google.com/merchants/answer/3061342)
	Availability *string `protobuf:"bytes,7,opt,name=availability,proto3,oneof" json:"availability,omitempty"`
	// A list of custom (merchant-provided) attributes. You can also use
	// `CustomAttribute` to submit any attribute of the data specification in its
	// generic form.
	CustomAttributes []*typepb.CustomAttribute `protobuf:"bytes,8,rep,name=custom_attributes,json=customAttributes,proto3" json:"custom_attributes,omitempty"`
	// contains filtered or unexported fields
}

Regional inventory information for the product. Represents specific information like price and availability for a given product in a specific [region][google.shopping.merchant.inventories.v1beta.RegionalInventory.region]. For a list of all accepted attribute values, see the regional product inventory data specification.

func (*RegionalInventory) Descriptor

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

Deprecated: Use RegionalInventory.ProtoReflect.Descriptor instead.

func (*RegionalInventory) GetAccount

func (x *RegionalInventory) GetAccount() int64

func (*RegionalInventory) GetAvailability

func (x *RegionalInventory) GetAvailability() string

func (*RegionalInventory) GetCustomAttributes

func (x *RegionalInventory) GetCustomAttributes() []*typepb.CustomAttribute

func (*RegionalInventory) GetName

func (x *RegionalInventory) GetName() string

func (*RegionalInventory) GetPrice

func (x *RegionalInventory) GetPrice() *typepb.Price

func (*RegionalInventory) GetRegion

func (x *RegionalInventory) GetRegion() string

func (*RegionalInventory) GetSalePrice

func (x *RegionalInventory) GetSalePrice() *typepb.Price

func (*RegionalInventory) GetSalePriceEffectiveDate

func (x *RegionalInventory) GetSalePriceEffectiveDate() *interval.Interval

func (*RegionalInventory) ProtoMessage

func (*RegionalInventory) ProtoMessage()

func (*RegionalInventory) ProtoReflect

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

func (*RegionalInventory) Reset

func (x *RegionalInventory) Reset()

func (*RegionalInventory) String

func (x *RegionalInventory) String() string

RegionalInventoryServiceClient

type RegionalInventoryServiceClient interface {
	// Lists the `RegionalInventory` resources for the given product in your
	// merchant account. The response might contain fewer items than specified by
	// `pageSize`.  If `pageToken` was returned in previous request, it can be
	// used to obtain additional results.
	//
	// `RegionalInventory` resources are listed per product for a given account.
	ListRegionalInventories(ctx context.Context, in *ListRegionalInventoriesRequest, opts ...grpc.CallOption) (*ListRegionalInventoriesResponse, error)
	// Inserts a `RegionalInventory` to a given product in your
	// merchant account.
	//
	// Replaces the full `RegionalInventory` resource if an entry with the same
	// [`region`][google.shopping.merchant.inventories.v1beta.RegionalInventory.region]
	// already exists for the product.
	//
	// It might take up to 30 minutes for the new or updated `RegionalInventory`
	// resource to appear in products.
	InsertRegionalInventory(ctx context.Context, in *InsertRegionalInventoryRequest, opts ...grpc.CallOption) (*RegionalInventory, error)
	// Deletes the specified `RegionalInventory` resource from the given product
	// in your merchant account.  It might take up to an hour for the
	// `RegionalInventory` to be deleted from the specific product.
	// Once you have received a successful delete response, wait for that
	// period before attempting a delete again.
	DeleteRegionalInventory(ctx context.Context, in *DeleteRegionalInventoryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

RegionalInventoryServiceClient is the client API for RegionalInventoryService 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 NewRegionalInventoryServiceClient

func NewRegionalInventoryServiceClient(cc grpc.ClientConnInterface) RegionalInventoryServiceClient

RegionalInventoryServiceServer

type RegionalInventoryServiceServer interface {
	// Lists the `RegionalInventory` resources for the given product in your
	// merchant account. The response might contain fewer items than specified by
	// `pageSize`.  If `pageToken` was returned in previous request, it can be
	// used to obtain additional results.
	//
	// `RegionalInventory` resources are listed per product for a given account.
	ListRegionalInventories(context.Context, *ListRegionalInventoriesRequest) (*ListRegionalInventoriesResponse, error)
	// Inserts a `RegionalInventory` to a given product in your
	// merchant account.
	//
	// Replaces the full `RegionalInventory` resource if an entry with the same
	// [`region`][google.shopping.merchant.inventories.v1beta.RegionalInventory.region]
	// already exists for the product.
	//
	// It might take up to 30 minutes for the new or updated `RegionalInventory`
	// resource to appear in products.
	InsertRegionalInventory(context.Context, *InsertRegionalInventoryRequest) (*RegionalInventory, error)
	// Deletes the specified `RegionalInventory` resource from the given product
	// in your merchant account.  It might take up to an hour for the
	// `RegionalInventory` to be deleted from the specific product.
	// Once you have received a successful delete response, wait for that
	// period before attempting a delete again.
	DeleteRegionalInventory(context.Context, *DeleteRegionalInventoryRequest) (*emptypb.Empty, error)
}

RegionalInventoryServiceServer is the server API for RegionalInventoryService service. All implementations should embed UnimplementedRegionalInventoryServiceServer for forward compatibility

UnimplementedLocalInventoryServiceServer

type UnimplementedLocalInventoryServiceServer struct {
}

UnimplementedLocalInventoryServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedLocalInventoryServiceServer) DeleteLocalInventory

func (UnimplementedLocalInventoryServiceServer) InsertLocalInventory

func (UnimplementedLocalInventoryServiceServer) ListLocalInventories

UnimplementedRegionalInventoryServiceServer

type UnimplementedRegionalInventoryServiceServer struct {
}

UnimplementedRegionalInventoryServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedRegionalInventoryServiceServer) DeleteRegionalInventory

func (UnimplementedRegionalInventoryServiceServer) InsertRegionalInventory

func (UnimplementedRegionalInventoryServiceServer) ListRegionalInventories

UnsafeLocalInventoryServiceServer

type UnsafeLocalInventoryServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeLocalInventoryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LocalInventoryServiceServer will result in compilation errors.

UnsafeRegionalInventoryServiceServer

type UnsafeRegionalInventoryServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeRegionalInventoryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RegionalInventoryServiceServer will result in compilation errors.