Package cloud.google.com/go/shopping/type/typepb (v0.7.0)

Variables

Weight_WeightUnit_name, Weight_WeightUnit_value

var (
	Weight_WeightUnit_name = map[int32]string{
		0: "WEIGHT_UNIT_UNSPECIFIED",
		1: "POUND",
		2: "KILOGRAM",
	}
	Weight_WeightUnit_value = map[string]int32{
		"WEIGHT_UNIT_UNSPECIFIED": 0,
		"POUND":                   1,
		"KILOGRAM":                2,
	}
)

Enum value maps for Weight_WeightUnit.

Destination_DestinationEnum_name, Destination_DestinationEnum_value

var (
	Destination_DestinationEnum_name = map[int32]string{
		0: "DESTINATION_ENUM_UNSPECIFIED",
		1: "SHOPPING_ADS",
		2: "DISPLAY_ADS",
		3: "LOCAL_INVENTORY_ADS",
		4: "FREE_LISTINGS",
		5: "FREE_LOCAL_LISTINGS",
		6: "YOUTUBE_SHOPPING",
	}
	Destination_DestinationEnum_value = map[string]int32{
		"DESTINATION_ENUM_UNSPECIFIED": 0,
		"SHOPPING_ADS":                 1,
		"DISPLAY_ADS":                  2,
		"LOCAL_INVENTORY_ADS":          3,
		"FREE_LISTINGS":                4,
		"FREE_LOCAL_LISTINGS":          5,
		"YOUTUBE_SHOPPING":             6,
	}
)

Enum value maps for Destination_DestinationEnum.

ReportingContext_ReportingContextEnum_name, ReportingContext_ReportingContextEnum_value

var (
	ReportingContext_ReportingContextEnum_name = map[int32]string{
		0:  "REPORTING_CONTEXT_ENUM_UNSPECIFIED",
		1:  "SHOPPING_ADS",
		2:  "DISCOVERY_ADS",
		13: "DEMAND_GEN_ADS",
		14: "DEMAND_GEN_ADS_DISCOVER_SURFACE",
		3:  "VIDEO_ADS",
		4:  "DISPLAY_ADS",
		5:  "LOCAL_INVENTORY_ADS",
		6:  "VEHICLE_INVENTORY_ADS",
		7:  "FREE_LISTINGS",
		8:  "FREE_LOCAL_LISTINGS",
		9:  "FREE_LOCAL_VEHICLE_LISTINGS",
		10: "YOUTUBE_SHOPPING",
		11: "CLOUD_RETAIL",
		12: "LOCAL_CLOUD_RETAIL",
	}
	ReportingContext_ReportingContextEnum_value = map[string]int32{
		"REPORTING_CONTEXT_ENUM_UNSPECIFIED": 0,
		"SHOPPING_ADS":                       1,
		"DISCOVERY_ADS":                      2,
		"DEMAND_GEN_ADS":                     13,
		"DEMAND_GEN_ADS_DISCOVER_SURFACE":    14,
		"VIDEO_ADS":                          3,
		"DISPLAY_ADS":                        4,
		"LOCAL_INVENTORY_ADS":                5,
		"VEHICLE_INVENTORY_ADS":              6,
		"FREE_LISTINGS":                      7,
		"FREE_LOCAL_LISTINGS":                8,
		"FREE_LOCAL_VEHICLE_LISTINGS":        9,
		"YOUTUBE_SHOPPING":                   10,
		"CLOUD_RETAIL":                       11,
		"LOCAL_CLOUD_RETAIL":                 12,
	}
)

Enum value maps for ReportingContext_ReportingContextEnum.

Channel_ChannelEnum_name, Channel_ChannelEnum_value

var (
	Channel_ChannelEnum_name = map[int32]string{
		0: "CHANNEL_ENUM_UNSPECIFIED",
		1: "ONLINE",
		2: "LOCAL",
	}
	Channel_ChannelEnum_value = map[string]int32{
		"CHANNEL_ENUM_UNSPECIFIED": 0,
		"ONLINE":                   1,
		"LOCAL":                    2,
	}
)

Enum value maps for Channel_ChannelEnum.

File_google_shopping_type_types_proto

var File_google_shopping_type_types_proto protoreflect.FileDescriptor

Channel

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

Channel of a product.

Channel is used to distinguish between online and local products.

func (*Channel) Descriptor

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

Deprecated: Use Channel.ProtoReflect.Descriptor instead.

func (*Channel) ProtoMessage

func (*Channel) ProtoMessage()

func (*Channel) ProtoReflect

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

func (*Channel) Reset

func (x *Channel) Reset()

func (*Channel) String

func (x *Channel) String() string

Channel_ChannelEnum

type Channel_ChannelEnum int32

Channel values.

Channel_CHANNEL_ENUM_UNSPECIFIED, Channel_ONLINE, Channel_LOCAL

const (
	// Not specified.
	Channel_CHANNEL_ENUM_UNSPECIFIED Channel_ChannelEnum = 0
	// Online product.
	Channel_ONLINE Channel_ChannelEnum = 1
	// Local product.
	Channel_LOCAL Channel_ChannelEnum = 2
)

func (Channel_ChannelEnum) Descriptor

func (Channel_ChannelEnum) Enum

func (Channel_ChannelEnum) EnumDescriptor

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

Deprecated: Use Channel_ChannelEnum.Descriptor instead.

func (Channel_ChannelEnum) Number

func (Channel_ChannelEnum) String

func (x Channel_ChannelEnum) String() string

func (Channel_ChannelEnum) Type

CustomAttribute

type CustomAttribute struct {

	// The name of the attribute.
	Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// The value of the attribute. If `value` is not empty, `group_values` must be
	// empty.
	Value *string `protobuf:"bytes,2,opt,name=value,proto3,oneof" json:"value,omitempty"`
	// Subattributes within this attribute group.  If
	// `group_values` is not empty, `value` must be empty.
	GroupValues []*CustomAttribute `protobuf:"bytes,3,rep,name=group_values,json=groupValues,proto3" json:"group_values,omitempty"`
	// contains filtered or unexported fields
}

A message that represents custom attributes. Exactly one of value or group_values must not be empty.

func (*CustomAttribute) Descriptor

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

Deprecated: Use CustomAttribute.ProtoReflect.Descriptor instead.

func (*CustomAttribute) GetGroupValues

func (x *CustomAttribute) GetGroupValues() []*CustomAttribute

func (*CustomAttribute) GetName

func (x *CustomAttribute) GetName() string

func (*CustomAttribute) GetValue

func (x *CustomAttribute) GetValue() string

func (*CustomAttribute) ProtoMessage

func (*CustomAttribute) ProtoMessage()

func (*CustomAttribute) ProtoReflect

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

func (*CustomAttribute) Reset

func (x *CustomAttribute) Reset()

func (*CustomAttribute) String

func (x *CustomAttribute) String() string

Destination

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

Destinations available for a product.

Destinations are used in Merchant Center to allow you to control where the products from your data feed should be displayed.

func (*Destination) Descriptor

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

Deprecated: Use Destination.ProtoReflect.Descriptor instead.

func (*Destination) ProtoMessage

func (*Destination) ProtoMessage()

func (*Destination) ProtoReflect

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

func (*Destination) Reset

func (x *Destination) Reset()

func (*Destination) String

func (x *Destination) String() string

Destination_DestinationEnum

type Destination_DestinationEnum int32

Destination values.

Destination_DESTINATION_ENUM_UNSPECIFIED, Destination_SHOPPING_ADS, Destination_DISPLAY_ADS, Destination_LOCAL_INVENTORY_ADS, Destination_FREE_LISTINGS, Destination_FREE_LOCAL_LISTINGS, Destination_YOUTUBE_SHOPPING

const (
	// Not specified.
	Destination_DESTINATION_ENUM_UNSPECIFIED Destination_DestinationEnum = 0
	// [Shopping ads](https://support.google.com/google-ads/answer/2454022).
	Destination_SHOPPING_ADS Destination_DestinationEnum = 1
	// [Display ads](https://support.google.com/merchants/answer/6069387).
	Destination_DISPLAY_ADS Destination_DestinationEnum = 2
	// [Local inventory
	// ads](https://support.google.com/merchants/answer/3057972).
	Destination_LOCAL_INVENTORY_ADS Destination_DestinationEnum = 3
	// [Free listings](https://support.google.com/merchants/answer/9199328).
	Destination_FREE_LISTINGS Destination_DestinationEnum = 4
	// [Free local product
	// listings](https://support.google.com/merchants/answer/9825611).
	Destination_FREE_LOCAL_LISTINGS Destination_DestinationEnum = 5
	// [YouTube Shopping](https://support.google.com/merchants/answer/12362804).
	Destination_YOUTUBE_SHOPPING Destination_DestinationEnum = 6
)

func (Destination_DestinationEnum) Descriptor

func (Destination_DestinationEnum) Enum

func (Destination_DestinationEnum) EnumDescriptor

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

Deprecated: Use Destination_DestinationEnum.Descriptor instead.

func (Destination_DestinationEnum) Number

func (Destination_DestinationEnum) String

func (Destination_DestinationEnum) Type

Price

type Price struct {

	// The price represented as a number in micros (1 million micros is an
	// equivalent to one's currency standard unit, for example, 1 USD = 1000000
	// micros).
	AmountMicros *int64 `protobuf:"varint,1,opt,name=amount_micros,json=amountMicros,proto3,oneof" json:"amount_micros,omitempty"`
	// The currency of the price using three-letter acronyms according to [ISO
	// 4217](http://en.wikipedia.org/wiki/ISO_4217).
	CurrencyCode *string `protobuf:"bytes,2,opt,name=currency_code,json=currencyCode,proto3,oneof" json:"currency_code,omitempty"`
	// contains filtered or unexported fields
}

The price represented as a number and currency.

func (*Price) Descriptor

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

Deprecated: Use Price.ProtoReflect.Descriptor instead.

func (*Price) GetAmountMicros

func (x *Price) GetAmountMicros() int64

func (*Price) GetCurrencyCode

func (x *Price) GetCurrencyCode() string

func (*Price) ProtoMessage

func (*Price) ProtoMessage()

func (*Price) ProtoReflect

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

func (*Price) Reset

func (x *Price) Reset()

func (*Price) String

func (x *Price) String() string

ReportingContext

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

Reporting contexts that your account and product issues apply to.

Reporting contexts are groups of surfaces and formats for product results on Google. They can represent the entire destination (for example, Shopping ads) or a subset of formats within a destination (for example, Demand Gen ads).

func (*ReportingContext) Descriptor

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

Deprecated: Use ReportingContext.ProtoReflect.Descriptor instead.

func (*ReportingContext) ProtoMessage

func (*ReportingContext) ProtoMessage()

func (*ReportingContext) ProtoReflect

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

func (*ReportingContext) Reset

func (x *ReportingContext) Reset()

func (*ReportingContext) String

func (x *ReportingContext) String() string

ReportingContext_ReportingContextEnum

type ReportingContext_ReportingContextEnum int32

Reporting context values.

ReportingContext_REPORTING_CONTEXT_ENUM_UNSPECIFIED, ReportingContext_SHOPPING_ADS, ReportingContext_DISCOVERY_ADS, ReportingContext_DEMAND_GEN_ADS, ReportingContext_DEMAND_GEN_ADS_DISCOVER_SURFACE, ReportingContext_VIDEO_ADS, ReportingContext_DISPLAY_ADS, ReportingContext_LOCAL_INVENTORY_ADS, ReportingContext_VEHICLE_INVENTORY_ADS, ReportingContext_FREE_LISTINGS, ReportingContext_FREE_LOCAL_LISTINGS, ReportingContext_FREE_LOCAL_VEHICLE_LISTINGS, ReportingContext_YOUTUBE_SHOPPING, ReportingContext_CLOUD_RETAIL, ReportingContext_LOCAL_CLOUD_RETAIL

const (
	// Not specified.
	ReportingContext_REPORTING_CONTEXT_ENUM_UNSPECIFIED ReportingContext_ReportingContextEnum = 0
	// [Shopping ads](https://support.google.com/merchants/answer/6149970).
	ReportingContext_SHOPPING_ADS ReportingContext_ReportingContextEnum = 1
	// Deprecated:  Use `DEMAND_GEN_ADS` instead.
	// [Discovery and Demand Gen
	// ads](https://support.google.com/merchants/answer/13389785).
	//
	// Deprecated: Marked as deprecated in google/shopping/type/types.proto.
	ReportingContext_DISCOVERY_ADS ReportingContext_ReportingContextEnum = 2
	// [Demand Gen ads](https://support.google.com/merchants/answer/13389785).
	ReportingContext_DEMAND_GEN_ADS ReportingContext_ReportingContextEnum = 13
	// [Demand Gen ads on Discover
	// surface](https://support.google.com/merchants/answer/13389785).
	ReportingContext_DEMAND_GEN_ADS_DISCOVER_SURFACE ReportingContext_ReportingContextEnum = 14
	// [Video ads](https://support.google.com/google-ads/answer/6340491).
	ReportingContext_VIDEO_ADS ReportingContext_ReportingContextEnum = 3
	// [Display ads](https://support.google.com/merchants/answer/6069387).
	ReportingContext_DISPLAY_ADS ReportingContext_ReportingContextEnum = 4
	// [Local inventory
	// ads](https://support.google.com/merchants/answer/3271956).
	ReportingContext_LOCAL_INVENTORY_ADS ReportingContext_ReportingContextEnum = 5
	// [Vehicle inventory
	// ads](https://support.google.com/merchants/answer/11544533).
	ReportingContext_VEHICLE_INVENTORY_ADS ReportingContext_ReportingContextEnum = 6
	// [Free product
	// listings](https://support.google.com/merchants/answer/9199328).
	ReportingContext_FREE_LISTINGS ReportingContext_ReportingContextEnum = 7
	// [Free local product
	// listings](https://support.google.com/merchants/answer/9825611).
	ReportingContext_FREE_LOCAL_LISTINGS ReportingContext_ReportingContextEnum = 8
	// [Free local vehicle
	// listings](https://support.google.com/merchants/answer/11544533).
	ReportingContext_FREE_LOCAL_VEHICLE_LISTINGS ReportingContext_ReportingContextEnum = 9
	// [YouTube
	// Shopping](https://support.google.com/merchants/answer/13478370).
	ReportingContext_YOUTUBE_SHOPPING ReportingContext_ReportingContextEnum = 10
	// [Cloud retail](https://cloud.google.com/solutions/retail).
	ReportingContext_CLOUD_RETAIL ReportingContext_ReportingContextEnum = 11
	// [Local cloud retail](https://cloud.google.com/solutions/retail).
	ReportingContext_LOCAL_CLOUD_RETAIL ReportingContext_ReportingContextEnum = 12
)

func (ReportingContext_ReportingContextEnum) Descriptor

func (ReportingContext_ReportingContextEnum) Enum

func (ReportingContext_ReportingContextEnum) EnumDescriptor

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

Deprecated: Use ReportingContext_ReportingContextEnum.Descriptor instead.

func (ReportingContext_ReportingContextEnum) Number

func (ReportingContext_ReportingContextEnum) String

func (ReportingContext_ReportingContextEnum) Type

Weight

type Weight struct {

	// Required. The weight represented as a number in micros (1 million micros is
	// an equivalent to one's currency standard unit, for example, 1 kg = 1000000
	// micros).
	// This field can also be set as infinity by setting to -1.
	// This field only support -1 and positive value.
	AmountMicros *int64 `protobuf:"varint,1,opt,name=amount_micros,json=amountMicros,proto3,oneof" json:"amount_micros,omitempty"`
	// Required. The weight unit.
	// Acceptable values are: kg and lb
	Unit Weight_WeightUnit `protobuf:"varint,2,opt,name=unit,proto3,enum=google.shopping.type.Weight_WeightUnit" json:"unit,omitempty"`
	// contains filtered or unexported fields
}

The weight represented as the value in string and the unit.

func (*Weight) Descriptor

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

Deprecated: Use Weight.ProtoReflect.Descriptor instead.

func (*Weight) GetAmountMicros

func (x *Weight) GetAmountMicros() int64

func (*Weight) GetUnit

func (x *Weight) GetUnit() Weight_WeightUnit

func (*Weight) ProtoMessage

func (*Weight) ProtoMessage()

func (*Weight) ProtoReflect

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

func (*Weight) Reset

func (x *Weight) Reset()

func (*Weight) String

func (x *Weight) String() string

Weight_WeightUnit

type Weight_WeightUnit int32

The weight unit.

Weight_WEIGHT_UNIT_UNSPECIFIED, Weight_POUND, Weight_KILOGRAM

const (
	// unit unspecified
	Weight_WEIGHT_UNIT_UNSPECIFIED Weight_WeightUnit = 0
	// lb unit.
	Weight_POUND Weight_WeightUnit = 1
	// kg unit.
	Weight_KILOGRAM Weight_WeightUnit = 2
)

func (Weight_WeightUnit) Descriptor

func (Weight_WeightUnit) Enum

func (Weight_WeightUnit) EnumDescriptor

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

Deprecated: Use Weight_WeightUnit.Descriptor instead.

func (Weight_WeightUnit) Number

func (Weight_WeightUnit) String

func (x Weight_WeightUnit) String() string

func (Weight_WeightUnit) Type