Package cloud.google.com/go/shopping/merchant/inventories/apiv1/inventoriespb (v1.2.1)

Constants

LocalInventoryService_ListLocalInventories_FullMethodName, LocalInventoryService_InsertLocalInventory_FullMethodName, LocalInventoryService_DeleteLocalInventory_FullMethodName

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

RegionalInventoryService_ListRegionalInventories_FullMethodName, RegionalInventoryService_InsertRegionalInventory_FullMethodName, RegionalInventoryService_DeleteRegionalInventory_FullMethodName

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

Variables

LocalInventoryAttributes_Availability_name, LocalInventoryAttributes_Availability_value

var (
	LocalInventoryAttributes_Availability_name = map[int32]string{
		0: "LOCAL_INVENTORY_AVAILABILITY_UNSPECIFIED",
		1: "IN_STOCK",
		2: "LIMITED_AVAILABILITY",
		3: "ON_DISPLAY_TO_ORDER",
		4: "OUT_OF_STOCK",
	}
	LocalInventoryAttributes_Availability_value = map[string]int32{
		"LOCAL_INVENTORY_AVAILABILITY_UNSPECIFIED": 0,
		"IN_STOCK":             1,
		"LIMITED_AVAILABILITY": 2,
		"ON_DISPLAY_TO_ORDER":  3,
		"OUT_OF_STOCK":         4,
	}
)

Enum value maps for LocalInventoryAttributes_Availability.

LocalInventoryAttributes_PickupMethod_name, LocalInventoryAttributes_PickupMethod_value

var (
	LocalInventoryAttributes_PickupMethod_name = map[int32]string{
		0: "PICKUP_METHOD_UNSPECIFIED",
		1: "BUY",
		2: "RESERVE",
		3: "SHIP_TO_STORE",
		4: "NOT_SUPPORTED",
	}
	LocalInventoryAttributes_PickupMethod_value = map[string]int32{
		"PICKUP_METHOD_UNSPECIFIED": 0,
		"BUY":                       1,
		"RESERVE":                   2,
		"SHIP_TO_STORE":             3,
		"NOT_SUPPORTED":             4,
	}
)

Enum value maps for LocalInventoryAttributes_PickupMethod.

LocalInventoryAttributes_PickupSla_name, LocalInventoryAttributes_PickupSla_value

var (
	LocalInventoryAttributes_PickupSla_name = map[int32]string{
		0: "PICKUP_SLA_UNSPECIFIED",
		1: "SAME_DAY",
		2: "NEXT_DAY",
		3: "TWO_DAY",
		4: "THREE_DAY",
		5: "FOUR_DAY",
		6: "FIVE_DAY",
		7: "SIX_DAY",
		8: "SEVEN_DAY",
		9: "MULTI_WEEK",
	}
	LocalInventoryAttributes_PickupSla_value = map[string]int32{
		"PICKUP_SLA_UNSPECIFIED": 0,
		"SAME_DAY":               1,
		"NEXT_DAY":               2,
		"TWO_DAY":                3,
		"THREE_DAY":              4,
		"FOUR_DAY":               5,
		"FIVE_DAY":               6,
		"SIX_DAY":                7,
		"SEVEN_DAY":              8,
		"MULTI_WEEK":             9,
	}
)

Enum value maps for LocalInventoryAttributes_PickupSla.

RegionalInventoryAttributes_Availability_name, RegionalInventoryAttributes_Availability_value

var (
	RegionalInventoryAttributes_Availability_name = map[int32]string{
		0: "REGIONAL_INVENTORY_AVAILABILITY_UNSPECIFIED",
		1: "IN_STOCK",
		2: "OUT_OF_STOCK",
	}
	RegionalInventoryAttributes_Availability_value = map[string]int32{
		"REGIONAL_INVENTORY_AVAILABILITY_UNSPECIFIED": 0,
		"IN_STOCK":     1,
		"OUT_OF_STOCK": 2,
	}
)

Enum value maps for RegionalInventoryAttributes_Availability.

File_google_shopping_merchant_inventories_v1_inventories_common_proto

var File_google_shopping_merchant_inventories_v1_inventories_common_proto protoreflect.FileDescriptor

File_google_shopping_merchant_inventories_v1_localinventory_proto

var File_google_shopping_merchant_inventories_v1_localinventory_proto protoreflect.FileDescriptor

File_google_shopping_merchant_inventories_v1_regionalinventory_proto

var File_google_shopping_merchant_inventories_v1_regionalinventory_proto protoreflect.FileDescriptor

LocalInventoryService_ServiceDesc

var LocalInventoryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "google.shopping.merchant.inventories.v1.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/v1/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.v1.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/v1/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.v1.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.v1.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"`
	// Optional. A list of local inventory attributes.
	LocalInventoryAttributes *LocalInventoryAttributes `protobuf:"bytes,14,opt,name=local_inventory_attributes,json=localInventoryAttributes,proto3" json:"local_inventory_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.v1.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) GetLocalInventoryAttributes

func (x *LocalInventory) GetLocalInventoryAttributes() *LocalInventoryAttributes

func (*LocalInventory) GetName

func (x *LocalInventory) GetName() string

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

LocalInventoryAttributes

type LocalInventoryAttributes struct {

	// Optional. Price of the product at this store.
	Price *typepb.Price `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	// Optional. Sale price of the product at this store. Mandatory if
	// [`salePriceEffectiveDate`][LocalInventory.sale_price_effective_date] is
	// defined.
	SalePrice *typepb.Price `protobuf:"bytes,2,opt,name=sale_price,json=salePrice,proto3" json:"sale_price,omitempty"`
	// Optional. The `TimePeriod` of the
	// sale at this store.
	SalePriceEffectiveDate *interval.Interval `protobuf:"bytes,3,opt,name=sale_price_effective_date,json=salePriceEffectiveDate,proto3" json:"sale_price_effective_date,omitempty"`
	// [Availability](https://support.google.com/merchants/answer/3061342) of the
	// product at this store.
	Availability *LocalInventoryAttributes_Availability `protobuf:"varint,4,opt,name=availability,proto3,enum=google.shopping.merchant.inventories.v1.LocalInventoryAttributes_Availability,oneof" json:"availability,omitempty"`
	// Optional. Quantity of the product available at this store. Must be greater
	// than or equal to zero.
	Quantity *int64 `protobuf:"varint,5,opt,name=quantity,proto3,oneof" json:"quantity,omitempty"`
	// Optional. Supported [pickup
	// method](https://support.google.com/merchants/answer/3061342) for this
	// product. Unless the value is `"not supported"`, this field must be
	// submitted together with `pickupSla`.
	PickupMethod *LocalInventoryAttributes_PickupMethod `protobuf:"varint,6,opt,name=pickup_method,json=pickupMethod,proto3,enum=google.shopping.merchant.inventories.v1.LocalInventoryAttributes_PickupMethod,oneof" json:"pickup_method,omitempty"`
	// Optional. 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`. See more details
	// [here](https://support.google.com/merchants/answer/3061342).
	PickupSla *LocalInventoryAttributes_PickupSla `protobuf:"varint,7,opt,name=pickup_sla,json=pickupSla,proto3,enum=google.shopping.merchant.inventories.v1.LocalInventoryAttributes_PickupSla,oneof" json:"pickup_sla,omitempty"`
	// Optional. Location of the product inside the store. Maximum length is 20
	// bytes.
	InstoreProductLocation *string `protobuf:"bytes,8,opt,name=instore_product_location,json=instoreProductLocation,proto3,oneof" json:"instore_product_location,omitempty"`
	// contains filtered or unexported fields
}

Local inventory attributes.

func (*LocalInventoryAttributes) Descriptor

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

Deprecated: Use LocalInventoryAttributes.ProtoReflect.Descriptor instead.

func (*LocalInventoryAttributes) GetAvailability

func (*LocalInventoryAttributes) GetInstoreProductLocation

func (x *LocalInventoryAttributes) GetInstoreProductLocation() string

func (*LocalInventoryAttributes) GetPickupMethod

func (*LocalInventoryAttributes) GetPickupSla

func (*LocalInventoryAttributes) GetPrice

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

func (*LocalInventoryAttributes) GetQuantity

func (x *LocalInventoryAttributes) GetQuantity() int64

func (*LocalInventoryAttributes) GetSalePrice

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

func (*LocalInventoryAttributes) GetSalePriceEffectiveDate

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

func (*LocalInventoryAttributes) ProtoMessage

func (*LocalInventoryAttributes) ProtoMessage()

func (*LocalInventoryAttributes) ProtoReflect

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

func (*LocalInventoryAttributes) Reset

func (x *LocalInventoryAttributes) Reset()

func (*LocalInventoryAttributes) String

func (x *LocalInventoryAttributes) String() string

LocalInventoryAttributes_Availability

type LocalInventoryAttributes_Availability int32

Availability of the product at this store.

LocalInventoryAttributes_LOCAL_INVENTORY_AVAILABILITY_UNSPECIFIED, LocalInventoryAttributes_IN_STOCK, LocalInventoryAttributes_LIMITED_AVAILABILITY, LocalInventoryAttributes_ON_DISPLAY_TO_ORDER, LocalInventoryAttributes_OUT_OF_STOCK

const (
	// Indicates that the availability is unspecified.
	LocalInventoryAttributes_LOCAL_INVENTORY_AVAILABILITY_UNSPECIFIED LocalInventoryAttributes_Availability = 0
	// Indicates that the product is in stock.
	LocalInventoryAttributes_IN_STOCK LocalInventoryAttributes_Availability = 1
	// Indicates that the product is out of stock.
	LocalInventoryAttributes_LIMITED_AVAILABILITY LocalInventoryAttributes_Availability = 2
	// Indicates that the product is on display to order.
	LocalInventoryAttributes_ON_DISPLAY_TO_ORDER LocalInventoryAttributes_Availability = 3
	// Indicates that the product is out of stock.
	LocalInventoryAttributes_OUT_OF_STOCK LocalInventoryAttributes_Availability = 4
)

func (LocalInventoryAttributes_Availability) Descriptor

func (LocalInventoryAttributes_Availability) Enum

func (LocalInventoryAttributes_Availability) EnumDescriptor

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

Deprecated: Use LocalInventoryAttributes_Availability.Descriptor instead.

func (LocalInventoryAttributes_Availability) Number

func (LocalInventoryAttributes_Availability) String

func (LocalInventoryAttributes_Availability) Type

LocalInventoryAttributes_PickupMethod

type LocalInventoryAttributes_PickupMethod int32

Supported pickup method for this product. Unless the value is "not supported", this field must be submitted together with pickupSla.

LocalInventoryAttributes_PICKUP_METHOD_UNSPECIFIED, LocalInventoryAttributes_BUY, LocalInventoryAttributes_RESERVE, LocalInventoryAttributes_SHIP_TO_STORE, LocalInventoryAttributes_NOT_SUPPORTED

const (
	// Indicates that the pickup method is unspecified.
	LocalInventoryAttributes_PICKUP_METHOD_UNSPECIFIED LocalInventoryAttributes_PickupMethod = 0
	// Indicates that the pickup method is Buy.
	LocalInventoryAttributes_BUY LocalInventoryAttributes_PickupMethod = 1
	// Indicates that the pickup method is Reserve.
	LocalInventoryAttributes_RESERVE LocalInventoryAttributes_PickupMethod = 2
	// Indicates that the pickup method is Ship to store.
	LocalInventoryAttributes_SHIP_TO_STORE LocalInventoryAttributes_PickupMethod = 3
	// Indicates that the pickup method is not supported.
	LocalInventoryAttributes_NOT_SUPPORTED LocalInventoryAttributes_PickupMethod = 4
)

func (LocalInventoryAttributes_PickupMethod) Descriptor

func (LocalInventoryAttributes_PickupMethod) Enum

func (LocalInventoryAttributes_PickupMethod) EnumDescriptor

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

Deprecated: Use LocalInventoryAttributes_PickupMethod.Descriptor instead.

func (LocalInventoryAttributes_PickupMethod) Number

func (LocalInventoryAttributes_PickupMethod) String

func (LocalInventoryAttributes_PickupMethod) Type

LocalInventoryAttributes_PickupSla

type LocalInventoryAttributes_PickupSla int32

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. See more details here.

LocalInventoryAttributes_PICKUP_SLA_UNSPECIFIED, LocalInventoryAttributes_SAME_DAY, LocalInventoryAttributes_NEXT_DAY, LocalInventoryAttributes_TWO_DAY, LocalInventoryAttributes_THREE_DAY, LocalInventoryAttributes_FOUR_DAY, LocalInventoryAttributes_FIVE_DAY, LocalInventoryAttributes_SIX_DAY, LocalInventoryAttributes_SEVEN_DAY, LocalInventoryAttributes_MULTI_WEEK

const (
	// Indicates that the pickup SLA is unspecified.
	LocalInventoryAttributes_PICKUP_SLA_UNSPECIFIED LocalInventoryAttributes_PickupSla = 0
	// Indicates that the pickup SLA is same day.
	LocalInventoryAttributes_SAME_DAY LocalInventoryAttributes_PickupSla = 1
	// Indicates that the pickup SLA is next day.
	LocalInventoryAttributes_NEXT_DAY LocalInventoryAttributes_PickupSla = 2
	// Indicates that the pickup SLA is two days.
	LocalInventoryAttributes_TWO_DAY LocalInventoryAttributes_PickupSla = 3
	// Indicates that the pickup SLA is three days.
	LocalInventoryAttributes_THREE_DAY LocalInventoryAttributes_PickupSla = 4
	// Indicates that the pickup SLA is four days.
	LocalInventoryAttributes_FOUR_DAY LocalInventoryAttributes_PickupSla = 5
	// Indicates that the pickup SLA is five days.
	LocalInventoryAttributes_FIVE_DAY LocalInventoryAttributes_PickupSla = 6
	// Indicates that the pickup SLA is six days.
	LocalInventoryAttributes_SIX_DAY LocalInventoryAttributes_PickupSla = 7
	// Indicates that the pickup SLA is seven days.
	LocalInventoryAttributes_SEVEN_DAY LocalInventoryAttributes_PickupSla = 8
	// Indicates that the pickup SLA is multi-week.
	LocalInventoryAttributes_MULTI_WEEK LocalInventoryAttributes_PickupSla = 9
)

func (LocalInventoryAttributes_PickupSla) Descriptor

func (LocalInventoryAttributes_PickupSla) Enum

func (LocalInventoryAttributes_PickupSla) EnumDescriptor

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

Deprecated: Use LocalInventoryAttributes_PickupSla.Descriptor instead.

func (LocalInventoryAttributes_PickupSla) Number

func (LocalInventoryAttributes_PickupSla) String

func (LocalInventoryAttributes_PickupSla) Type

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.v1.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.v1.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"`
	// Optional. A list of regional inventory attributes.
	RegionalInventoryAttributes *RegionalInventoryAttributes `protobuf:"bytes,9,opt,name=regional_inventory_attributes,json=regionalInventoryAttributes,proto3" json:"regional_inventory_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.v1.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) GetName

func (x *RegionalInventory) GetName() string

func (*RegionalInventory) GetRegion

func (x *RegionalInventory) GetRegion() string

func (*RegionalInventory) GetRegionalInventoryAttributes

func (x *RegionalInventory) GetRegionalInventoryAttributes() *RegionalInventoryAttributes

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

RegionalInventoryAttributes

type RegionalInventoryAttributes struct {

	// Optional. Price of the product in this region.
	Price *typepb.Price `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	// Optional. Sale price of the product in this region. Mandatory if
	// [`salePriceEffectiveDate`][RegionalInventory.sale_price_effective_date] is
	// defined.
	SalePrice *typepb.Price `protobuf:"bytes,2,opt,name=sale_price,json=salePrice,proto3" json:"sale_price,omitempty"`
	// Optional. The `TimePeriod` of the
	// sale price in this region.
	SalePriceEffectiveDate *interval.Interval `protobuf:"bytes,3,opt,name=sale_price_effective_date,json=salePriceEffectiveDate,proto3" json:"sale_price_effective_date,omitempty"`
	// Optional.
	// [Availability](https://support.google.com/merchants/answer/14644124) of the
	// product in this region.
	Availability *RegionalInventoryAttributes_Availability `protobuf:"varint,4,opt,name=availability,proto3,enum=google.shopping.merchant.inventories.v1.RegionalInventoryAttributes_Availability,oneof" json:"availability,omitempty"`
	// contains filtered or unexported fields
}

Regional inventory attributes.

func (*RegionalInventoryAttributes) Descriptor

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

Deprecated: Use RegionalInventoryAttributes.ProtoReflect.Descriptor instead.

func (*RegionalInventoryAttributes) GetAvailability

func (*RegionalInventoryAttributes) GetPrice

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

func (*RegionalInventoryAttributes) GetSalePrice

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

func (*RegionalInventoryAttributes) GetSalePriceEffectiveDate

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

func (*RegionalInventoryAttributes) ProtoMessage

func (*RegionalInventoryAttributes) ProtoMessage()

func (*RegionalInventoryAttributes) ProtoReflect

func (*RegionalInventoryAttributes) Reset

func (x *RegionalInventoryAttributes) Reset()

func (*RegionalInventoryAttributes) String

func (x *RegionalInventoryAttributes) String() string

RegionalInventoryAttributes_Availability

type RegionalInventoryAttributes_Availability int32

Availability of the product in this region.

RegionalInventoryAttributes_REGIONAL_INVENTORY_AVAILABILITY_UNSPECIFIED, RegionalInventoryAttributes_IN_STOCK, RegionalInventoryAttributes_OUT_OF_STOCK

const (
	// Indicates that the availability is unspecified.
	RegionalInventoryAttributes_REGIONAL_INVENTORY_AVAILABILITY_UNSPECIFIED RegionalInventoryAttributes_Availability = 0
	// Indicates that the product is in stock.
	RegionalInventoryAttributes_IN_STOCK RegionalInventoryAttributes_Availability = 1
	// Indicates that the product is out of stock.
	RegionalInventoryAttributes_OUT_OF_STOCK RegionalInventoryAttributes_Availability = 2
)

func (RegionalInventoryAttributes_Availability) Descriptor

func (RegionalInventoryAttributes_Availability) Enum

func (RegionalInventoryAttributes_Availability) EnumDescriptor

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

Deprecated: Use RegionalInventoryAttributes_Availability.Descriptor instead.

func (RegionalInventoryAttributes_Availability) Number

func (RegionalInventoryAttributes_Availability) String

func (RegionalInventoryAttributes_Availability) Type

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