typepb

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

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

View Source
var File_google_shopping_type_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Channel added in v0.2.0

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

Channel(https://support.google.com/merchants/answer/7361332) of a product.

Channel is used to distinguish between online and local products.

func (*Channel) Descriptor deprecated added in v0.2.0

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

Deprecated: Use Channel.ProtoReflect.Descriptor instead.

func (*Channel) ProtoMessage added in v0.2.0

func (*Channel) ProtoMessage()

func (*Channel) ProtoReflect added in v0.2.0

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

func (*Channel) Reset added in v0.2.0

func (x *Channel) Reset()

func (*Channel) String added in v0.2.0

func (x *Channel) String() string

type Channel_ChannelEnum added in v0.2.0

type Channel_ChannelEnum int32

Channel values.

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

func (Channel_ChannelEnum) Enum added in v0.2.0

func (Channel_ChannelEnum) EnumDescriptor deprecated added in v0.2.0

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

Deprecated: Use Channel_ChannelEnum.Descriptor instead.

func (Channel_ChannelEnum) Number added in v0.2.0

func (Channel_ChannelEnum) String added in v0.2.0

func (x Channel_ChannelEnum) String() string

func (Channel_ChannelEnum) Type added in v0.2.0

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 deprecated

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

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

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

Deprecated: Use Destination.ProtoReflect.Descriptor instead.

func (*Destination) ProtoMessage added in v0.2.0

func (*Destination) ProtoMessage()

func (*Destination) ProtoReflect added in v0.2.0

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

func (*Destination) Reset added in v0.2.0

func (x *Destination) Reset()

func (*Destination) String

func (x *Destination) String() string

type Destination_DestinationEnum added in v0.2.0

type Destination_DestinationEnum int32

Destination values.

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

func (Destination_DestinationEnum) Enum added in v0.2.0

func (Destination_DestinationEnum) EnumDescriptor deprecated added in v0.2.0

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

Deprecated: Use Destination_DestinationEnum.Descriptor instead.

func (Destination_DestinationEnum) Number added in v0.2.0

func (Destination_DestinationEnum) String added in v0.2.0

func (Destination_DestinationEnum) Type added in v0.2.0

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 deprecated

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

type ReportingContext added in v0.2.0

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](https://support.google.com/merchants/answer/6149970)) or a subset of formats within a destination (for example, [Demand Gen ads](https://support.google.com/merchants/answer/13389785)).

func (*ReportingContext) Descriptor deprecated added in v0.2.0

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

Deprecated: Use ReportingContext.ProtoReflect.Descriptor instead.

func (*ReportingContext) ProtoMessage added in v0.2.0

func (*ReportingContext) ProtoMessage()

func (*ReportingContext) ProtoReflect added in v0.2.0

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

func (*ReportingContext) Reset added in v0.2.0

func (x *ReportingContext) Reset()

func (*ReportingContext) String added in v0.2.0

func (x *ReportingContext) String() string

type ReportingContext_ReportingContextEnum added in v0.2.0

type ReportingContext_ReportingContextEnum int32

Reporting context values.

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

func (ReportingContext_ReportingContextEnum) Enum added in v0.2.0

func (ReportingContext_ReportingContextEnum) EnumDescriptor deprecated added in v0.2.0

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

Deprecated: Use ReportingContext_ReportingContextEnum.Descriptor instead.

func (ReportingContext_ReportingContextEnum) Number added in v0.2.0

func (ReportingContext_ReportingContextEnum) String added in v0.2.0

func (ReportingContext_ReportingContextEnum) Type added in v0.2.0

type Weight added in v0.6.0

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

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

Deprecated: Use Weight.ProtoReflect.Descriptor instead.

func (*Weight) GetAmountMicros added in v0.6.0

func (x *Weight) GetAmountMicros() int64

func (*Weight) GetUnit added in v0.6.0

func (x *Weight) GetUnit() Weight_WeightUnit

func (*Weight) ProtoMessage added in v0.6.0

func (*Weight) ProtoMessage()

func (*Weight) ProtoReflect added in v0.6.0

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

func (*Weight) Reset added in v0.6.0

func (x *Weight) Reset()

func (*Weight) String added in v0.6.0

func (x *Weight) String() string

type Weight_WeightUnit added in v0.6.0

type Weight_WeightUnit int32

The weight unit.

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

func (Weight_WeightUnit) Enum added in v0.6.0

func (Weight_WeightUnit) EnumDescriptor deprecated added in v0.6.0

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

Deprecated: Use Weight_WeightUnit.Descriptor instead.

func (Weight_WeightUnit) Number added in v0.6.0

func (Weight_WeightUnit) String added in v0.6.0

func (x Weight_WeightUnit) String() string

func (Weight_WeightUnit) Type added in v0.6.0

Jump to

Keyboard shortcuts

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