v2

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Default product availability. Default to Availability.IN_STOCK if unset.
	ProductAvailabilityAvailabilityUnspecified = ProductAvailability("AVAILABILITY_UNSPECIFIED")
	// Product in stock.
	ProductAvailabilityInStock = ProductAvailability("IN_STOCK")
	// Product out of stock.
	ProductAvailabilityOutOfStock = ProductAvailability("OUT_OF_STOCK")
	// Product that is in pre-order state.
	ProductAvailabilityPreorder = ProductAvailability("PREORDER")
	// Product that is back-ordered (i.e. temporarily out of stock).
	ProductAvailabilityBackorder = ProductAvailability("BACKORDER")
)
View Source
const (
	// Default value. Default to Catalog.product_level_config.ingestion_product_type if unset.
	ProductTypeTypeUnspecified = ProductType("TYPE_UNSPECIFIED")
	// The primary type. As the primary unit for predicting, indexing and search serving, a Type.PRIMARY Product is grouped with multiple Type.VARIANT Products.
	ProductTypePrimary = ProductType("PRIMARY")
	// The variant type. Type.VARIANT Products usually share some common attributes on the same Type.PRIMARY Products, but they have variant attributes like different colors, sizes and prices, etc.
	ProductTypeVariant = ProductType("VARIANT")
	// The collection type. Collection products are bundled Type.PRIMARY Products or Type.VARIANT Products that are sold together, such as a jewelry set with necklaces, earrings and rings, etc.
	ProductTypeCollection = ProductType("COLLECTION")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleCloudRetailV2Audience added in v0.8.0

type GoogleCloudRetailV2Audience struct {
	// The age groups of the audience. Strongly encouraged to use the standard values: "newborn" (up to 3 months old), "infant" (3–12 months old), "toddler" (1–5 years old), "kids" (5–13 years old), "adult" (typically teens or older). At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [age_group](https://support.google.com/merchants/answer/6324463). Schema.org property [Product.audience.suggestedMinAge](https://schema.org/suggestedMinAge) and [Product.audience.suggestedMaxAge](https://schema.org/suggestedMaxAge).
	AgeGroups []string `pulumi:"ageGroups"`
	// The genders of the audience. Strongly encouraged to use the standard values: "male", "female", "unisex". At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [gender](https://support.google.com/merchants/answer/6324479). Schema.org property [Product.audience.suggestedGender](https://schema.org/suggestedGender).
	Genders []string `pulumi:"genders"`
}

An intended audience of the Product for whom it's sold.

type GoogleCloudRetailV2AudienceArgs added in v0.8.0

type GoogleCloudRetailV2AudienceArgs struct {
	// The age groups of the audience. Strongly encouraged to use the standard values: "newborn" (up to 3 months old), "infant" (3–12 months old), "toddler" (1–5 years old), "kids" (5–13 years old), "adult" (typically teens or older). At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [age_group](https://support.google.com/merchants/answer/6324463). Schema.org property [Product.audience.suggestedMinAge](https://schema.org/suggestedMinAge) and [Product.audience.suggestedMaxAge](https://schema.org/suggestedMaxAge).
	AgeGroups pulumi.StringArrayInput `pulumi:"ageGroups"`
	// The genders of the audience. Strongly encouraged to use the standard values: "male", "female", "unisex". At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [gender](https://support.google.com/merchants/answer/6324479). Schema.org property [Product.audience.suggestedGender](https://schema.org/suggestedGender).
	Genders pulumi.StringArrayInput `pulumi:"genders"`
}

An intended audience of the Product for whom it's sold.

func (GoogleCloudRetailV2AudienceArgs) ElementType added in v0.8.0

func (GoogleCloudRetailV2AudienceArgs) ToGoogleCloudRetailV2AudienceOutput added in v0.8.0

func (i GoogleCloudRetailV2AudienceArgs) ToGoogleCloudRetailV2AudienceOutput() GoogleCloudRetailV2AudienceOutput

func (GoogleCloudRetailV2AudienceArgs) ToGoogleCloudRetailV2AudienceOutputWithContext added in v0.8.0

func (i GoogleCloudRetailV2AudienceArgs) ToGoogleCloudRetailV2AudienceOutputWithContext(ctx context.Context) GoogleCloudRetailV2AudienceOutput

func (GoogleCloudRetailV2AudienceArgs) ToGoogleCloudRetailV2AudiencePtrOutput added in v0.8.0

func (i GoogleCloudRetailV2AudienceArgs) ToGoogleCloudRetailV2AudiencePtrOutput() GoogleCloudRetailV2AudiencePtrOutput

func (GoogleCloudRetailV2AudienceArgs) ToGoogleCloudRetailV2AudiencePtrOutputWithContext added in v0.8.0

func (i GoogleCloudRetailV2AudienceArgs) ToGoogleCloudRetailV2AudiencePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2AudiencePtrOutput

type GoogleCloudRetailV2AudienceInput added in v0.8.0

type GoogleCloudRetailV2AudienceInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2AudienceOutput() GoogleCloudRetailV2AudienceOutput
	ToGoogleCloudRetailV2AudienceOutputWithContext(context.Context) GoogleCloudRetailV2AudienceOutput
}

GoogleCloudRetailV2AudienceInput is an input type that accepts GoogleCloudRetailV2AudienceArgs and GoogleCloudRetailV2AudienceOutput values. You can construct a concrete instance of `GoogleCloudRetailV2AudienceInput` via:

GoogleCloudRetailV2AudienceArgs{...}

type GoogleCloudRetailV2AudienceOutput added in v0.8.0

type GoogleCloudRetailV2AudienceOutput struct{ *pulumi.OutputState }

An intended audience of the Product for whom it's sold.

func (GoogleCloudRetailV2AudienceOutput) AgeGroups added in v0.8.0

The age groups of the audience. Strongly encouraged to use the standard values: "newborn" (up to 3 months old), "infant" (3–12 months old), "toddler" (1–5 years old), "kids" (5–13 years old), "adult" (typically teens or older). At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [age_group](https://support.google.com/merchants/answer/6324463). Schema.org property [Product.audience.suggestedMinAge](https://schema.org/suggestedMinAge) and [Product.audience.suggestedMaxAge](https://schema.org/suggestedMaxAge).

func (GoogleCloudRetailV2AudienceOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2AudienceOutput) Genders added in v0.8.0

The genders of the audience. Strongly encouraged to use the standard values: "male", "female", "unisex". At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [gender](https://support.google.com/merchants/answer/6324479). Schema.org property [Product.audience.suggestedGender](https://schema.org/suggestedGender).

func (GoogleCloudRetailV2AudienceOutput) ToGoogleCloudRetailV2AudienceOutput added in v0.8.0

func (o GoogleCloudRetailV2AudienceOutput) ToGoogleCloudRetailV2AudienceOutput() GoogleCloudRetailV2AudienceOutput

func (GoogleCloudRetailV2AudienceOutput) ToGoogleCloudRetailV2AudienceOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2AudienceOutput) ToGoogleCloudRetailV2AudienceOutputWithContext(ctx context.Context) GoogleCloudRetailV2AudienceOutput

func (GoogleCloudRetailV2AudienceOutput) ToGoogleCloudRetailV2AudiencePtrOutput added in v0.8.0

func (o GoogleCloudRetailV2AudienceOutput) ToGoogleCloudRetailV2AudiencePtrOutput() GoogleCloudRetailV2AudiencePtrOutput

func (GoogleCloudRetailV2AudienceOutput) ToGoogleCloudRetailV2AudiencePtrOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2AudienceOutput) ToGoogleCloudRetailV2AudiencePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2AudiencePtrOutput

type GoogleCloudRetailV2AudiencePtrInput added in v0.8.0

type GoogleCloudRetailV2AudiencePtrInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2AudiencePtrOutput() GoogleCloudRetailV2AudiencePtrOutput
	ToGoogleCloudRetailV2AudiencePtrOutputWithContext(context.Context) GoogleCloudRetailV2AudiencePtrOutput
}

GoogleCloudRetailV2AudiencePtrInput is an input type that accepts GoogleCloudRetailV2AudienceArgs, GoogleCloudRetailV2AudiencePtr and GoogleCloudRetailV2AudiencePtrOutput values. You can construct a concrete instance of `GoogleCloudRetailV2AudiencePtrInput` via:

        GoogleCloudRetailV2AudienceArgs{...}

or:

        nil

func GoogleCloudRetailV2AudiencePtr added in v0.8.0

type GoogleCloudRetailV2AudiencePtrOutput added in v0.8.0

type GoogleCloudRetailV2AudiencePtrOutput struct{ *pulumi.OutputState }

func (GoogleCloudRetailV2AudiencePtrOutput) AgeGroups added in v0.8.0

The age groups of the audience. Strongly encouraged to use the standard values: "newborn" (up to 3 months old), "infant" (3–12 months old), "toddler" (1–5 years old), "kids" (5–13 years old), "adult" (typically teens or older). At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [age_group](https://support.google.com/merchants/answer/6324463). Schema.org property [Product.audience.suggestedMinAge](https://schema.org/suggestedMinAge) and [Product.audience.suggestedMaxAge](https://schema.org/suggestedMaxAge).

func (GoogleCloudRetailV2AudiencePtrOutput) Elem added in v0.8.0

func (GoogleCloudRetailV2AudiencePtrOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2AudiencePtrOutput) Genders added in v0.8.0

The genders of the audience. Strongly encouraged to use the standard values: "male", "female", "unisex". At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [gender](https://support.google.com/merchants/answer/6324479). Schema.org property [Product.audience.suggestedGender](https://schema.org/suggestedGender).

func (GoogleCloudRetailV2AudiencePtrOutput) ToGoogleCloudRetailV2AudiencePtrOutput added in v0.8.0

func (o GoogleCloudRetailV2AudiencePtrOutput) ToGoogleCloudRetailV2AudiencePtrOutput() GoogleCloudRetailV2AudiencePtrOutput

func (GoogleCloudRetailV2AudiencePtrOutput) ToGoogleCloudRetailV2AudiencePtrOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2AudiencePtrOutput) ToGoogleCloudRetailV2AudiencePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2AudiencePtrOutput

type GoogleCloudRetailV2AudienceResponse added in v0.8.0

type GoogleCloudRetailV2AudienceResponse struct {
	// The age groups of the audience. Strongly encouraged to use the standard values: "newborn" (up to 3 months old), "infant" (3–12 months old), "toddler" (1–5 years old), "kids" (5–13 years old), "adult" (typically teens or older). At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [age_group](https://support.google.com/merchants/answer/6324463). Schema.org property [Product.audience.suggestedMinAge](https://schema.org/suggestedMinAge) and [Product.audience.suggestedMaxAge](https://schema.org/suggestedMaxAge).
	AgeGroups []string `pulumi:"ageGroups"`
	// The genders of the audience. Strongly encouraged to use the standard values: "male", "female", "unisex". At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [gender](https://support.google.com/merchants/answer/6324479). Schema.org property [Product.audience.suggestedGender](https://schema.org/suggestedGender).
	Genders []string `pulumi:"genders"`
}

An intended audience of the Product for whom it's sold.

type GoogleCloudRetailV2AudienceResponseOutput added in v0.8.0

type GoogleCloudRetailV2AudienceResponseOutput struct{ *pulumi.OutputState }

An intended audience of the Product for whom it's sold.

func (GoogleCloudRetailV2AudienceResponseOutput) AgeGroups added in v0.8.0

The age groups of the audience. Strongly encouraged to use the standard values: "newborn" (up to 3 months old), "infant" (3–12 months old), "toddler" (1–5 years old), "kids" (5–13 years old), "adult" (typically teens or older). At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [age_group](https://support.google.com/merchants/answer/6324463). Schema.org property [Product.audience.suggestedMinAge](https://schema.org/suggestedMinAge) and [Product.audience.suggestedMaxAge](https://schema.org/suggestedMaxAge).

func (GoogleCloudRetailV2AudienceResponseOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2AudienceResponseOutput) Genders added in v0.8.0

The genders of the audience. Strongly encouraged to use the standard values: "male", "female", "unisex". At most 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [gender](https://support.google.com/merchants/answer/6324479). Schema.org property [Product.audience.suggestedGender](https://schema.org/suggestedGender).

func (GoogleCloudRetailV2AudienceResponseOutput) ToGoogleCloudRetailV2AudienceResponseOutput added in v0.8.0

func (o GoogleCloudRetailV2AudienceResponseOutput) ToGoogleCloudRetailV2AudienceResponseOutput() GoogleCloudRetailV2AudienceResponseOutput

func (GoogleCloudRetailV2AudienceResponseOutput) ToGoogleCloudRetailV2AudienceResponseOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2AudienceResponseOutput) ToGoogleCloudRetailV2AudienceResponseOutputWithContext(ctx context.Context) GoogleCloudRetailV2AudienceResponseOutput

type GoogleCloudRetailV2ColorInfo added in v0.8.0

type GoogleCloudRetailV2ColorInfo struct {
	// The standard color families. Strongly recommended to use the following standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple", "Green", "Cyan", "Blue", "Brown", "White", "Gray", "Black" and "Mixed". Normally it is expected to have only 1 color family. May consider using single "Mixed" instead of multiple values. A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
	ColorFamilies []string `pulumi:"colorFamilies"`
	// The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single "Mixed" instead of multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
	Colors []string `pulumi:"colors"`
}

The color information of a Product.

type GoogleCloudRetailV2ColorInfoArgs added in v0.8.0

type GoogleCloudRetailV2ColorInfoArgs struct {
	// The standard color families. Strongly recommended to use the following standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple", "Green", "Cyan", "Blue", "Brown", "White", "Gray", "Black" and "Mixed". Normally it is expected to have only 1 color family. May consider using single "Mixed" instead of multiple values. A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
	ColorFamilies pulumi.StringArrayInput `pulumi:"colorFamilies"`
	// The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single "Mixed" instead of multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
	Colors pulumi.StringArrayInput `pulumi:"colors"`
}

The color information of a Product.

func (GoogleCloudRetailV2ColorInfoArgs) ElementType added in v0.8.0

func (GoogleCloudRetailV2ColorInfoArgs) ToGoogleCloudRetailV2ColorInfoOutput added in v0.8.0

func (i GoogleCloudRetailV2ColorInfoArgs) ToGoogleCloudRetailV2ColorInfoOutput() GoogleCloudRetailV2ColorInfoOutput

func (GoogleCloudRetailV2ColorInfoArgs) ToGoogleCloudRetailV2ColorInfoOutputWithContext added in v0.8.0

func (i GoogleCloudRetailV2ColorInfoArgs) ToGoogleCloudRetailV2ColorInfoOutputWithContext(ctx context.Context) GoogleCloudRetailV2ColorInfoOutput

func (GoogleCloudRetailV2ColorInfoArgs) ToGoogleCloudRetailV2ColorInfoPtrOutput added in v0.8.0

func (i GoogleCloudRetailV2ColorInfoArgs) ToGoogleCloudRetailV2ColorInfoPtrOutput() GoogleCloudRetailV2ColorInfoPtrOutput

func (GoogleCloudRetailV2ColorInfoArgs) ToGoogleCloudRetailV2ColorInfoPtrOutputWithContext added in v0.8.0

func (i GoogleCloudRetailV2ColorInfoArgs) ToGoogleCloudRetailV2ColorInfoPtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2ColorInfoPtrOutput

type GoogleCloudRetailV2ColorInfoInput added in v0.8.0

type GoogleCloudRetailV2ColorInfoInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2ColorInfoOutput() GoogleCloudRetailV2ColorInfoOutput
	ToGoogleCloudRetailV2ColorInfoOutputWithContext(context.Context) GoogleCloudRetailV2ColorInfoOutput
}

GoogleCloudRetailV2ColorInfoInput is an input type that accepts GoogleCloudRetailV2ColorInfoArgs and GoogleCloudRetailV2ColorInfoOutput values. You can construct a concrete instance of `GoogleCloudRetailV2ColorInfoInput` via:

GoogleCloudRetailV2ColorInfoArgs{...}

type GoogleCloudRetailV2ColorInfoOutput added in v0.8.0

type GoogleCloudRetailV2ColorInfoOutput struct{ *pulumi.OutputState }

The color information of a Product.

func (GoogleCloudRetailV2ColorInfoOutput) ColorFamilies added in v0.8.0

The standard color families. Strongly recommended to use the following standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple", "Green", "Cyan", "Blue", "Brown", "White", "Gray", "Black" and "Mixed". Normally it is expected to have only 1 color family. May consider using single "Mixed" instead of multiple values. A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).

func (GoogleCloudRetailV2ColorInfoOutput) Colors added in v0.8.0

The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single "Mixed" instead of multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).

func (GoogleCloudRetailV2ColorInfoOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2ColorInfoOutput) ToGoogleCloudRetailV2ColorInfoOutput added in v0.8.0

func (o GoogleCloudRetailV2ColorInfoOutput) ToGoogleCloudRetailV2ColorInfoOutput() GoogleCloudRetailV2ColorInfoOutput

func (GoogleCloudRetailV2ColorInfoOutput) ToGoogleCloudRetailV2ColorInfoOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2ColorInfoOutput) ToGoogleCloudRetailV2ColorInfoOutputWithContext(ctx context.Context) GoogleCloudRetailV2ColorInfoOutput

func (GoogleCloudRetailV2ColorInfoOutput) ToGoogleCloudRetailV2ColorInfoPtrOutput added in v0.8.0

func (o GoogleCloudRetailV2ColorInfoOutput) ToGoogleCloudRetailV2ColorInfoPtrOutput() GoogleCloudRetailV2ColorInfoPtrOutput

func (GoogleCloudRetailV2ColorInfoOutput) ToGoogleCloudRetailV2ColorInfoPtrOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2ColorInfoOutput) ToGoogleCloudRetailV2ColorInfoPtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2ColorInfoPtrOutput

type GoogleCloudRetailV2ColorInfoPtrInput added in v0.8.0

type GoogleCloudRetailV2ColorInfoPtrInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2ColorInfoPtrOutput() GoogleCloudRetailV2ColorInfoPtrOutput
	ToGoogleCloudRetailV2ColorInfoPtrOutputWithContext(context.Context) GoogleCloudRetailV2ColorInfoPtrOutput
}

GoogleCloudRetailV2ColorInfoPtrInput is an input type that accepts GoogleCloudRetailV2ColorInfoArgs, GoogleCloudRetailV2ColorInfoPtr and GoogleCloudRetailV2ColorInfoPtrOutput values. You can construct a concrete instance of `GoogleCloudRetailV2ColorInfoPtrInput` via:

        GoogleCloudRetailV2ColorInfoArgs{...}

or:

        nil

type GoogleCloudRetailV2ColorInfoPtrOutput added in v0.8.0

type GoogleCloudRetailV2ColorInfoPtrOutput struct{ *pulumi.OutputState }

func (GoogleCloudRetailV2ColorInfoPtrOutput) ColorFamilies added in v0.8.0

The standard color families. Strongly recommended to use the following standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple", "Green", "Cyan", "Blue", "Brown", "White", "Gray", "Black" and "Mixed". Normally it is expected to have only 1 color family. May consider using single "Mixed" instead of multiple values. A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).

func (GoogleCloudRetailV2ColorInfoPtrOutput) Colors added in v0.8.0

The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single "Mixed" instead of multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).

func (GoogleCloudRetailV2ColorInfoPtrOutput) Elem added in v0.8.0

func (GoogleCloudRetailV2ColorInfoPtrOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2ColorInfoPtrOutput) ToGoogleCloudRetailV2ColorInfoPtrOutput added in v0.8.0

func (o GoogleCloudRetailV2ColorInfoPtrOutput) ToGoogleCloudRetailV2ColorInfoPtrOutput() GoogleCloudRetailV2ColorInfoPtrOutput

func (GoogleCloudRetailV2ColorInfoPtrOutput) ToGoogleCloudRetailV2ColorInfoPtrOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2ColorInfoPtrOutput) ToGoogleCloudRetailV2ColorInfoPtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2ColorInfoPtrOutput

type GoogleCloudRetailV2ColorInfoResponse added in v0.8.0

type GoogleCloudRetailV2ColorInfoResponse struct {
	// The standard color families. Strongly recommended to use the following standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple", "Green", "Cyan", "Blue", "Brown", "White", "Gray", "Black" and "Mixed". Normally it is expected to have only 1 color family. May consider using single "Mixed" instead of multiple values. A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
	ColorFamilies []string `pulumi:"colorFamilies"`
	// The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single "Mixed" instead of multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
	Colors []string `pulumi:"colors"`
}

The color information of a Product.

type GoogleCloudRetailV2ColorInfoResponseOutput added in v0.8.0

type GoogleCloudRetailV2ColorInfoResponseOutput struct{ *pulumi.OutputState }

The color information of a Product.

func (GoogleCloudRetailV2ColorInfoResponseOutput) ColorFamilies added in v0.8.0

The standard color families. Strongly recommended to use the following standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple", "Green", "Cyan", "Blue", "Brown", "White", "Gray", "Black" and "Mixed". Normally it is expected to have only 1 color family. May consider using single "Mixed" instead of multiple values. A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).

func (GoogleCloudRetailV2ColorInfoResponseOutput) Colors added in v0.8.0

The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single "Mixed" instead of multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).

func (GoogleCloudRetailV2ColorInfoResponseOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2ColorInfoResponseOutput) ToGoogleCloudRetailV2ColorInfoResponseOutput added in v0.8.0

func (o GoogleCloudRetailV2ColorInfoResponseOutput) ToGoogleCloudRetailV2ColorInfoResponseOutput() GoogleCloudRetailV2ColorInfoResponseOutput

func (GoogleCloudRetailV2ColorInfoResponseOutput) ToGoogleCloudRetailV2ColorInfoResponseOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2ColorInfoResponseOutput) ToGoogleCloudRetailV2ColorInfoResponseOutputWithContext(ctx context.Context) GoogleCloudRetailV2ColorInfoResponseOutput

type GoogleCloudRetailV2FulfillmentInfo added in v0.8.0

type GoogleCloudRetailV2FulfillmentInfo struct {
	// The IDs for this type, such as the store IDs for FulfillmentInfo.type.pickup-in-store or the region IDs for FulfillmentInfo.type.same-day-delivery. A maximum of 3000 values are allowed. Each value must be a string with a length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned.
	PlaceIds []string `pulumi:"placeIds"`
	// The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.
	Type *string `pulumi:"type"`
}

Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.

type GoogleCloudRetailV2FulfillmentInfoArgs added in v0.8.0

type GoogleCloudRetailV2FulfillmentInfoArgs struct {
	// The IDs for this type, such as the store IDs for FulfillmentInfo.type.pickup-in-store or the region IDs for FulfillmentInfo.type.same-day-delivery. A maximum of 3000 values are allowed. Each value must be a string with a length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned.
	PlaceIds pulumi.StringArrayInput `pulumi:"placeIds"`
	// The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.
	Type pulumi.StringPtrInput `pulumi:"type"`
}

Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.

func (GoogleCloudRetailV2FulfillmentInfoArgs) ElementType added in v0.8.0

func (GoogleCloudRetailV2FulfillmentInfoArgs) ToGoogleCloudRetailV2FulfillmentInfoOutput added in v0.8.0

func (i GoogleCloudRetailV2FulfillmentInfoArgs) ToGoogleCloudRetailV2FulfillmentInfoOutput() GoogleCloudRetailV2FulfillmentInfoOutput

func (GoogleCloudRetailV2FulfillmentInfoArgs) ToGoogleCloudRetailV2FulfillmentInfoOutputWithContext added in v0.8.0

func (i GoogleCloudRetailV2FulfillmentInfoArgs) ToGoogleCloudRetailV2FulfillmentInfoOutputWithContext(ctx context.Context) GoogleCloudRetailV2FulfillmentInfoOutput

type GoogleCloudRetailV2FulfillmentInfoArray added in v0.8.0

type GoogleCloudRetailV2FulfillmentInfoArray []GoogleCloudRetailV2FulfillmentInfoInput

func (GoogleCloudRetailV2FulfillmentInfoArray) ElementType added in v0.8.0

func (GoogleCloudRetailV2FulfillmentInfoArray) ToGoogleCloudRetailV2FulfillmentInfoArrayOutput added in v0.8.0

func (i GoogleCloudRetailV2FulfillmentInfoArray) ToGoogleCloudRetailV2FulfillmentInfoArrayOutput() GoogleCloudRetailV2FulfillmentInfoArrayOutput

func (GoogleCloudRetailV2FulfillmentInfoArray) ToGoogleCloudRetailV2FulfillmentInfoArrayOutputWithContext added in v0.8.0

func (i GoogleCloudRetailV2FulfillmentInfoArray) ToGoogleCloudRetailV2FulfillmentInfoArrayOutputWithContext(ctx context.Context) GoogleCloudRetailV2FulfillmentInfoArrayOutput

type GoogleCloudRetailV2FulfillmentInfoArrayInput added in v0.8.0

type GoogleCloudRetailV2FulfillmentInfoArrayInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2FulfillmentInfoArrayOutput() GoogleCloudRetailV2FulfillmentInfoArrayOutput
	ToGoogleCloudRetailV2FulfillmentInfoArrayOutputWithContext(context.Context) GoogleCloudRetailV2FulfillmentInfoArrayOutput
}

GoogleCloudRetailV2FulfillmentInfoArrayInput is an input type that accepts GoogleCloudRetailV2FulfillmentInfoArray and GoogleCloudRetailV2FulfillmentInfoArrayOutput values. You can construct a concrete instance of `GoogleCloudRetailV2FulfillmentInfoArrayInput` via:

GoogleCloudRetailV2FulfillmentInfoArray{ GoogleCloudRetailV2FulfillmentInfoArgs{...} }

type GoogleCloudRetailV2FulfillmentInfoArrayOutput added in v0.8.0

type GoogleCloudRetailV2FulfillmentInfoArrayOutput struct{ *pulumi.OutputState }

func (GoogleCloudRetailV2FulfillmentInfoArrayOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2FulfillmentInfoArrayOutput) Index added in v0.8.0

func (GoogleCloudRetailV2FulfillmentInfoArrayOutput) ToGoogleCloudRetailV2FulfillmentInfoArrayOutput added in v0.8.0

func (o GoogleCloudRetailV2FulfillmentInfoArrayOutput) ToGoogleCloudRetailV2FulfillmentInfoArrayOutput() GoogleCloudRetailV2FulfillmentInfoArrayOutput

func (GoogleCloudRetailV2FulfillmentInfoArrayOutput) ToGoogleCloudRetailV2FulfillmentInfoArrayOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2FulfillmentInfoArrayOutput) ToGoogleCloudRetailV2FulfillmentInfoArrayOutputWithContext(ctx context.Context) GoogleCloudRetailV2FulfillmentInfoArrayOutput

type GoogleCloudRetailV2FulfillmentInfoInput added in v0.8.0

type GoogleCloudRetailV2FulfillmentInfoInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2FulfillmentInfoOutput() GoogleCloudRetailV2FulfillmentInfoOutput
	ToGoogleCloudRetailV2FulfillmentInfoOutputWithContext(context.Context) GoogleCloudRetailV2FulfillmentInfoOutput
}

GoogleCloudRetailV2FulfillmentInfoInput is an input type that accepts GoogleCloudRetailV2FulfillmentInfoArgs and GoogleCloudRetailV2FulfillmentInfoOutput values. You can construct a concrete instance of `GoogleCloudRetailV2FulfillmentInfoInput` via:

GoogleCloudRetailV2FulfillmentInfoArgs{...}

type GoogleCloudRetailV2FulfillmentInfoOutput added in v0.8.0

type GoogleCloudRetailV2FulfillmentInfoOutput struct{ *pulumi.OutputState }

Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.

func (GoogleCloudRetailV2FulfillmentInfoOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2FulfillmentInfoOutput) PlaceIds added in v0.8.0

The IDs for this type, such as the store IDs for FulfillmentInfo.type.pickup-in-store or the region IDs for FulfillmentInfo.type.same-day-delivery. A maximum of 3000 values are allowed. Each value must be a string with a length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned.

func (GoogleCloudRetailV2FulfillmentInfoOutput) ToGoogleCloudRetailV2FulfillmentInfoOutput added in v0.8.0

func (o GoogleCloudRetailV2FulfillmentInfoOutput) ToGoogleCloudRetailV2FulfillmentInfoOutput() GoogleCloudRetailV2FulfillmentInfoOutput

func (GoogleCloudRetailV2FulfillmentInfoOutput) ToGoogleCloudRetailV2FulfillmentInfoOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2FulfillmentInfoOutput) ToGoogleCloudRetailV2FulfillmentInfoOutputWithContext(ctx context.Context) GoogleCloudRetailV2FulfillmentInfoOutput

func (GoogleCloudRetailV2FulfillmentInfoOutput) Type added in v0.8.0

The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.

type GoogleCloudRetailV2FulfillmentInfoResponse added in v0.8.0

type GoogleCloudRetailV2FulfillmentInfoResponse struct {
	// The IDs for this type, such as the store IDs for FulfillmentInfo.type.pickup-in-store or the region IDs for FulfillmentInfo.type.same-day-delivery. A maximum of 3000 values are allowed. Each value must be a string with a length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned.
	PlaceIds []string `pulumi:"placeIds"`
	// The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.
	Type string `pulumi:"type"`
}

Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.

type GoogleCloudRetailV2FulfillmentInfoResponseArrayOutput added in v0.8.0

type GoogleCloudRetailV2FulfillmentInfoResponseArrayOutput struct{ *pulumi.OutputState }

func (GoogleCloudRetailV2FulfillmentInfoResponseArrayOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2FulfillmentInfoResponseArrayOutput) Index added in v0.8.0

func (GoogleCloudRetailV2FulfillmentInfoResponseArrayOutput) ToGoogleCloudRetailV2FulfillmentInfoResponseArrayOutput added in v0.8.0

func (GoogleCloudRetailV2FulfillmentInfoResponseArrayOutput) ToGoogleCloudRetailV2FulfillmentInfoResponseArrayOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2FulfillmentInfoResponseArrayOutput) ToGoogleCloudRetailV2FulfillmentInfoResponseArrayOutputWithContext(ctx context.Context) GoogleCloudRetailV2FulfillmentInfoResponseArrayOutput

type GoogleCloudRetailV2FulfillmentInfoResponseOutput added in v0.8.0

type GoogleCloudRetailV2FulfillmentInfoResponseOutput struct{ *pulumi.OutputState }

Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.

func (GoogleCloudRetailV2FulfillmentInfoResponseOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2FulfillmentInfoResponseOutput) PlaceIds added in v0.8.0

The IDs for this type, such as the store IDs for FulfillmentInfo.type.pickup-in-store or the region IDs for FulfillmentInfo.type.same-day-delivery. A maximum of 3000 values are allowed. Each value must be a string with a length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned.

func (GoogleCloudRetailV2FulfillmentInfoResponseOutput) ToGoogleCloudRetailV2FulfillmentInfoResponseOutput added in v0.8.0

func (o GoogleCloudRetailV2FulfillmentInfoResponseOutput) ToGoogleCloudRetailV2FulfillmentInfoResponseOutput() GoogleCloudRetailV2FulfillmentInfoResponseOutput

func (GoogleCloudRetailV2FulfillmentInfoResponseOutput) ToGoogleCloudRetailV2FulfillmentInfoResponseOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2FulfillmentInfoResponseOutput) ToGoogleCloudRetailV2FulfillmentInfoResponseOutputWithContext(ctx context.Context) GoogleCloudRetailV2FulfillmentInfoResponseOutput

func (GoogleCloudRetailV2FulfillmentInfoResponseOutput) Type added in v0.8.0

The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.

type GoogleCloudRetailV2Image

type GoogleCloudRetailV2Image struct {
	// Height of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
	Height *int `pulumi:"height"`
	// URI of the image. This field must be a valid UTF-8 encoded URI with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
	Uri string `pulumi:"uri"`
	// Width of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
	Width *int `pulumi:"width"`
}

Product image. Recommendations AI and Retail Search do not use product images to improve prediction and search results. However, product images can be returned in results, and are shown in prediction or search previews in the console.

type GoogleCloudRetailV2ImageArgs

type GoogleCloudRetailV2ImageArgs struct {
	// Height of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
	Height pulumi.IntPtrInput `pulumi:"height"`
	// URI of the image. This field must be a valid UTF-8 encoded URI with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
	Uri pulumi.StringInput `pulumi:"uri"`
	// Width of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
	Width pulumi.IntPtrInput `pulumi:"width"`
}

Product image. Recommendations AI and Retail Search do not use product images to improve prediction and search results. However, product images can be returned in results, and are shown in prediction or search previews in the console.

func (GoogleCloudRetailV2ImageArgs) ElementType

func (GoogleCloudRetailV2ImageArgs) ToGoogleCloudRetailV2ImageOutput

func (i GoogleCloudRetailV2ImageArgs) ToGoogleCloudRetailV2ImageOutput() GoogleCloudRetailV2ImageOutput

func (GoogleCloudRetailV2ImageArgs) ToGoogleCloudRetailV2ImageOutputWithContext

func (i GoogleCloudRetailV2ImageArgs) ToGoogleCloudRetailV2ImageOutputWithContext(ctx context.Context) GoogleCloudRetailV2ImageOutput

type GoogleCloudRetailV2ImageArray

type GoogleCloudRetailV2ImageArray []GoogleCloudRetailV2ImageInput

func (GoogleCloudRetailV2ImageArray) ElementType

func (GoogleCloudRetailV2ImageArray) ToGoogleCloudRetailV2ImageArrayOutput

func (i GoogleCloudRetailV2ImageArray) ToGoogleCloudRetailV2ImageArrayOutput() GoogleCloudRetailV2ImageArrayOutput

func (GoogleCloudRetailV2ImageArray) ToGoogleCloudRetailV2ImageArrayOutputWithContext

func (i GoogleCloudRetailV2ImageArray) ToGoogleCloudRetailV2ImageArrayOutputWithContext(ctx context.Context) GoogleCloudRetailV2ImageArrayOutput

type GoogleCloudRetailV2ImageArrayInput

type GoogleCloudRetailV2ImageArrayInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2ImageArrayOutput() GoogleCloudRetailV2ImageArrayOutput
	ToGoogleCloudRetailV2ImageArrayOutputWithContext(context.Context) GoogleCloudRetailV2ImageArrayOutput
}

GoogleCloudRetailV2ImageArrayInput is an input type that accepts GoogleCloudRetailV2ImageArray and GoogleCloudRetailV2ImageArrayOutput values. You can construct a concrete instance of `GoogleCloudRetailV2ImageArrayInput` via:

GoogleCloudRetailV2ImageArray{ GoogleCloudRetailV2ImageArgs{...} }

type GoogleCloudRetailV2ImageArrayOutput

type GoogleCloudRetailV2ImageArrayOutput struct{ *pulumi.OutputState }

func (GoogleCloudRetailV2ImageArrayOutput) ElementType

func (GoogleCloudRetailV2ImageArrayOutput) Index

func (GoogleCloudRetailV2ImageArrayOutput) ToGoogleCloudRetailV2ImageArrayOutput

func (o GoogleCloudRetailV2ImageArrayOutput) ToGoogleCloudRetailV2ImageArrayOutput() GoogleCloudRetailV2ImageArrayOutput

func (GoogleCloudRetailV2ImageArrayOutput) ToGoogleCloudRetailV2ImageArrayOutputWithContext

func (o GoogleCloudRetailV2ImageArrayOutput) ToGoogleCloudRetailV2ImageArrayOutputWithContext(ctx context.Context) GoogleCloudRetailV2ImageArrayOutput

type GoogleCloudRetailV2ImageInput

type GoogleCloudRetailV2ImageInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2ImageOutput() GoogleCloudRetailV2ImageOutput
	ToGoogleCloudRetailV2ImageOutputWithContext(context.Context) GoogleCloudRetailV2ImageOutput
}

GoogleCloudRetailV2ImageInput is an input type that accepts GoogleCloudRetailV2ImageArgs and GoogleCloudRetailV2ImageOutput values. You can construct a concrete instance of `GoogleCloudRetailV2ImageInput` via:

GoogleCloudRetailV2ImageArgs{...}

type GoogleCloudRetailV2ImageOutput

type GoogleCloudRetailV2ImageOutput struct{ *pulumi.OutputState }

Product image. Recommendations AI and Retail Search do not use product images to improve prediction and search results. However, product images can be returned in results, and are shown in prediction or search previews in the console.

func (GoogleCloudRetailV2ImageOutput) ElementType

func (GoogleCloudRetailV2ImageOutput) Height

Height of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.

func (GoogleCloudRetailV2ImageOutput) ToGoogleCloudRetailV2ImageOutput

func (o GoogleCloudRetailV2ImageOutput) ToGoogleCloudRetailV2ImageOutput() GoogleCloudRetailV2ImageOutput

func (GoogleCloudRetailV2ImageOutput) ToGoogleCloudRetailV2ImageOutputWithContext

func (o GoogleCloudRetailV2ImageOutput) ToGoogleCloudRetailV2ImageOutputWithContext(ctx context.Context) GoogleCloudRetailV2ImageOutput

func (GoogleCloudRetailV2ImageOutput) Uri

URI of the image. This field must be a valid UTF-8 encoded URI with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).

func (GoogleCloudRetailV2ImageOutput) Width

Width of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.

type GoogleCloudRetailV2ImageResponse

type GoogleCloudRetailV2ImageResponse struct {
	// Height of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
	Height int `pulumi:"height"`
	// URI of the image. This field must be a valid UTF-8 encoded URI with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
	Uri string `pulumi:"uri"`
	// Width of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
	Width int `pulumi:"width"`
}

Product image. Recommendations AI and Retail Search do not use product images to improve prediction and search results. However, product images can be returned in results, and are shown in prediction or search previews in the console.

type GoogleCloudRetailV2ImageResponseArrayOutput

type GoogleCloudRetailV2ImageResponseArrayOutput struct{ *pulumi.OutputState }

func (GoogleCloudRetailV2ImageResponseArrayOutput) ElementType

func (GoogleCloudRetailV2ImageResponseArrayOutput) Index

func (GoogleCloudRetailV2ImageResponseArrayOutput) ToGoogleCloudRetailV2ImageResponseArrayOutput

func (o GoogleCloudRetailV2ImageResponseArrayOutput) ToGoogleCloudRetailV2ImageResponseArrayOutput() GoogleCloudRetailV2ImageResponseArrayOutput

func (GoogleCloudRetailV2ImageResponseArrayOutput) ToGoogleCloudRetailV2ImageResponseArrayOutputWithContext

func (o GoogleCloudRetailV2ImageResponseArrayOutput) ToGoogleCloudRetailV2ImageResponseArrayOutputWithContext(ctx context.Context) GoogleCloudRetailV2ImageResponseArrayOutput

type GoogleCloudRetailV2ImageResponseOutput

type GoogleCloudRetailV2ImageResponseOutput struct{ *pulumi.OutputState }

Product image. Recommendations AI and Retail Search do not use product images to improve prediction and search results. However, product images can be returned in results, and are shown in prediction or search previews in the console.

func (GoogleCloudRetailV2ImageResponseOutput) ElementType

func (GoogleCloudRetailV2ImageResponseOutput) Height

Height of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.

func (GoogleCloudRetailV2ImageResponseOutput) ToGoogleCloudRetailV2ImageResponseOutput

func (o GoogleCloudRetailV2ImageResponseOutput) ToGoogleCloudRetailV2ImageResponseOutput() GoogleCloudRetailV2ImageResponseOutput

func (GoogleCloudRetailV2ImageResponseOutput) ToGoogleCloudRetailV2ImageResponseOutputWithContext

func (o GoogleCloudRetailV2ImageResponseOutput) ToGoogleCloudRetailV2ImageResponseOutputWithContext(ctx context.Context) GoogleCloudRetailV2ImageResponseOutput

func (GoogleCloudRetailV2ImageResponseOutput) Uri

URI of the image. This field must be a valid UTF-8 encoded URI with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).

func (GoogleCloudRetailV2ImageResponseOutput) Width

Width of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.

type GoogleCloudRetailV2IntervalResponse added in v0.8.0

type GoogleCloudRetailV2IntervalResponse struct {
	// Exclusive upper bound.
	ExclusiveMaximum float64 `pulumi:"exclusiveMaximum"`
	// Exclusive lower bound.
	ExclusiveMinimum float64 `pulumi:"exclusiveMinimum"`
	// Inclusive upper bound.
	Maximum float64 `pulumi:"maximum"`
	// Inclusive lower bound.
	Minimum float64 `pulumi:"minimum"`
}

A floating point interval.

type GoogleCloudRetailV2IntervalResponseOutput added in v0.8.0

type GoogleCloudRetailV2IntervalResponseOutput struct{ *pulumi.OutputState }

A floating point interval.

func (GoogleCloudRetailV2IntervalResponseOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2IntervalResponseOutput) ExclusiveMaximum added in v0.8.0

Exclusive upper bound.

func (GoogleCloudRetailV2IntervalResponseOutput) ExclusiveMinimum added in v0.8.0

Exclusive lower bound.

func (GoogleCloudRetailV2IntervalResponseOutput) Maximum added in v0.8.0

Inclusive upper bound.

func (GoogleCloudRetailV2IntervalResponseOutput) Minimum added in v0.8.0

Inclusive lower bound.

func (GoogleCloudRetailV2IntervalResponseOutput) ToGoogleCloudRetailV2IntervalResponseOutput added in v0.8.0

func (o GoogleCloudRetailV2IntervalResponseOutput) ToGoogleCloudRetailV2IntervalResponseOutput() GoogleCloudRetailV2IntervalResponseOutput

func (GoogleCloudRetailV2IntervalResponseOutput) ToGoogleCloudRetailV2IntervalResponseOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2IntervalResponseOutput) ToGoogleCloudRetailV2IntervalResponseOutputWithContext(ctx context.Context) GoogleCloudRetailV2IntervalResponseOutput

type GoogleCloudRetailV2PriceInfo

type GoogleCloudRetailV2PriceInfo struct {
	// The costs associated with the sale of a particular product. Used for gross profit reporting. * Profit = price - cost Google Merchant Center property [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895).
	Cost *float64 `pulumi:"cost"`
	// The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html). If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned. The Product.Type.VARIANT Products with the same Product.primary_product_id must share the same currency_code. Otherwise, a FAILED_PRECONDITION error is returned.
	CurrencyCode *string `pulumi:"currencyCode"`
	// Price of the product without any discount. If zero, by default set to be the price. If set, original_price should be greater than or equal to price, otherwise an INVALID_ARGUMENT error is thrown.
	OriginalPrice *float64 `pulumi:"originalPrice"`
	// Price of the product. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371). Schema.org property [Offer.price](https://schema.org/price).
	Price *float64 `pulumi:"price"`
	// The timestamp when the price starts to be effective. This can be set as a future timestamp, and the price is only used for search after price_effective_time. If so, the original_price must be set and original_price is used before price_effective_time. Do not set if price is always effective because it will cause additional latency during search.
	PriceEffectiveTime *string `pulumi:"priceEffectiveTime"`
	// The timestamp when the price stops to be effective. The price is used for search before price_expire_time. If this field is set, the original_price must be set and original_price is used after price_expire_time. Do not set if price is always effective because it will cause additional latency during search.
	PriceExpireTime *string `pulumi:"priceExpireTime"`
}

The price information of a Product.

type GoogleCloudRetailV2PriceInfoArgs

type GoogleCloudRetailV2PriceInfoArgs struct {
	// The costs associated with the sale of a particular product. Used for gross profit reporting. * Profit = price - cost Google Merchant Center property [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895).
	Cost pulumi.Float64PtrInput `pulumi:"cost"`
	// The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html). If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned. The Product.Type.VARIANT Products with the same Product.primary_product_id must share the same currency_code. Otherwise, a FAILED_PRECONDITION error is returned.
	CurrencyCode pulumi.StringPtrInput `pulumi:"currencyCode"`
	// Price of the product without any discount. If zero, by default set to be the price. If set, original_price should be greater than or equal to price, otherwise an INVALID_ARGUMENT error is thrown.
	OriginalPrice pulumi.Float64PtrInput `pulumi:"originalPrice"`
	// Price of the product. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371). Schema.org property [Offer.price](https://schema.org/price).
	Price pulumi.Float64PtrInput `pulumi:"price"`
	// The timestamp when the price starts to be effective. This can be set as a future timestamp, and the price is only used for search after price_effective_time. If so, the original_price must be set and original_price is used before price_effective_time. Do not set if price is always effective because it will cause additional latency during search.
	PriceEffectiveTime pulumi.StringPtrInput `pulumi:"priceEffectiveTime"`
	// The timestamp when the price stops to be effective. The price is used for search before price_expire_time. If this field is set, the original_price must be set and original_price is used after price_expire_time. Do not set if price is always effective because it will cause additional latency during search.
	PriceExpireTime pulumi.StringPtrInput `pulumi:"priceExpireTime"`
}

The price information of a Product.

func (GoogleCloudRetailV2PriceInfoArgs) ElementType

func (GoogleCloudRetailV2PriceInfoArgs) ToGoogleCloudRetailV2PriceInfoOutput

func (i GoogleCloudRetailV2PriceInfoArgs) ToGoogleCloudRetailV2PriceInfoOutput() GoogleCloudRetailV2PriceInfoOutput

func (GoogleCloudRetailV2PriceInfoArgs) ToGoogleCloudRetailV2PriceInfoOutputWithContext

func (i GoogleCloudRetailV2PriceInfoArgs) ToGoogleCloudRetailV2PriceInfoOutputWithContext(ctx context.Context) GoogleCloudRetailV2PriceInfoOutput

func (GoogleCloudRetailV2PriceInfoArgs) ToGoogleCloudRetailV2PriceInfoPtrOutput

func (i GoogleCloudRetailV2PriceInfoArgs) ToGoogleCloudRetailV2PriceInfoPtrOutput() GoogleCloudRetailV2PriceInfoPtrOutput

func (GoogleCloudRetailV2PriceInfoArgs) ToGoogleCloudRetailV2PriceInfoPtrOutputWithContext

func (i GoogleCloudRetailV2PriceInfoArgs) ToGoogleCloudRetailV2PriceInfoPtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2PriceInfoPtrOutput

type GoogleCloudRetailV2PriceInfoInput

type GoogleCloudRetailV2PriceInfoInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2PriceInfoOutput() GoogleCloudRetailV2PriceInfoOutput
	ToGoogleCloudRetailV2PriceInfoOutputWithContext(context.Context) GoogleCloudRetailV2PriceInfoOutput
}

GoogleCloudRetailV2PriceInfoInput is an input type that accepts GoogleCloudRetailV2PriceInfoArgs and GoogleCloudRetailV2PriceInfoOutput values. You can construct a concrete instance of `GoogleCloudRetailV2PriceInfoInput` via:

GoogleCloudRetailV2PriceInfoArgs{...}

type GoogleCloudRetailV2PriceInfoOutput

type GoogleCloudRetailV2PriceInfoOutput struct{ *pulumi.OutputState }

The price information of a Product.

func (GoogleCloudRetailV2PriceInfoOutput) Cost

The costs associated with the sale of a particular product. Used for gross profit reporting. * Profit = price - cost Google Merchant Center property [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895).

func (GoogleCloudRetailV2PriceInfoOutput) CurrencyCode

The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html). If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned. The Product.Type.VARIANT Products with the same Product.primary_product_id must share the same currency_code. Otherwise, a FAILED_PRECONDITION error is returned.

func (GoogleCloudRetailV2PriceInfoOutput) ElementType

func (GoogleCloudRetailV2PriceInfoOutput) OriginalPrice

Price of the product without any discount. If zero, by default set to be the price. If set, original_price should be greater than or equal to price, otherwise an INVALID_ARGUMENT error is thrown.

func (GoogleCloudRetailV2PriceInfoOutput) Price

Price of the product. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371). Schema.org property [Offer.price](https://schema.org/price).

func (GoogleCloudRetailV2PriceInfoOutput) PriceEffectiveTime added in v0.8.0

The timestamp when the price starts to be effective. This can be set as a future timestamp, and the price is only used for search after price_effective_time. If so, the original_price must be set and original_price is used before price_effective_time. Do not set if price is always effective because it will cause additional latency during search.

func (GoogleCloudRetailV2PriceInfoOutput) PriceExpireTime added in v0.8.0

The timestamp when the price stops to be effective. The price is used for search before price_expire_time. If this field is set, the original_price must be set and original_price is used after price_expire_time. Do not set if price is always effective because it will cause additional latency during search.

func (GoogleCloudRetailV2PriceInfoOutput) ToGoogleCloudRetailV2PriceInfoOutput

func (o GoogleCloudRetailV2PriceInfoOutput) ToGoogleCloudRetailV2PriceInfoOutput() GoogleCloudRetailV2PriceInfoOutput

func (GoogleCloudRetailV2PriceInfoOutput) ToGoogleCloudRetailV2PriceInfoOutputWithContext

func (o GoogleCloudRetailV2PriceInfoOutput) ToGoogleCloudRetailV2PriceInfoOutputWithContext(ctx context.Context) GoogleCloudRetailV2PriceInfoOutput

func (GoogleCloudRetailV2PriceInfoOutput) ToGoogleCloudRetailV2PriceInfoPtrOutput

func (o GoogleCloudRetailV2PriceInfoOutput) ToGoogleCloudRetailV2PriceInfoPtrOutput() GoogleCloudRetailV2PriceInfoPtrOutput

func (GoogleCloudRetailV2PriceInfoOutput) ToGoogleCloudRetailV2PriceInfoPtrOutputWithContext

func (o GoogleCloudRetailV2PriceInfoOutput) ToGoogleCloudRetailV2PriceInfoPtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2PriceInfoPtrOutput

type GoogleCloudRetailV2PriceInfoPriceRangeResponse added in v0.8.0

type GoogleCloudRetailV2PriceInfoPriceRangeResponse struct {
	// The inclusive Product.pricing_info.original_price internal of all variant Product having the same Product.primary_product_id.
	OriginalPrice GoogleCloudRetailV2IntervalResponse `pulumi:"originalPrice"`
	// The inclusive Product.pricing_info.price interval of all variant Product having the same Product.primary_product_id.
	Price GoogleCloudRetailV2IntervalResponse `pulumi:"price"`
}

The price range of all variant Product having the same Product.primary_product_id.

type GoogleCloudRetailV2PriceInfoPriceRangeResponseOutput added in v0.8.0

type GoogleCloudRetailV2PriceInfoPriceRangeResponseOutput struct{ *pulumi.OutputState }

The price range of all variant Product having the same Product.primary_product_id.

func (GoogleCloudRetailV2PriceInfoPriceRangeResponseOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2PriceInfoPriceRangeResponseOutput) OriginalPrice added in v0.8.0

The inclusive Product.pricing_info.original_price internal of all variant Product having the same Product.primary_product_id.

func (GoogleCloudRetailV2PriceInfoPriceRangeResponseOutput) Price added in v0.8.0

The inclusive Product.pricing_info.price interval of all variant Product having the same Product.primary_product_id.

func (GoogleCloudRetailV2PriceInfoPriceRangeResponseOutput) ToGoogleCloudRetailV2PriceInfoPriceRangeResponseOutput added in v0.8.0

func (GoogleCloudRetailV2PriceInfoPriceRangeResponseOutput) ToGoogleCloudRetailV2PriceInfoPriceRangeResponseOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2PriceInfoPriceRangeResponseOutput) ToGoogleCloudRetailV2PriceInfoPriceRangeResponseOutputWithContext(ctx context.Context) GoogleCloudRetailV2PriceInfoPriceRangeResponseOutput

type GoogleCloudRetailV2PriceInfoPtrInput

type GoogleCloudRetailV2PriceInfoPtrInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2PriceInfoPtrOutput() GoogleCloudRetailV2PriceInfoPtrOutput
	ToGoogleCloudRetailV2PriceInfoPtrOutputWithContext(context.Context) GoogleCloudRetailV2PriceInfoPtrOutput
}

GoogleCloudRetailV2PriceInfoPtrInput is an input type that accepts GoogleCloudRetailV2PriceInfoArgs, GoogleCloudRetailV2PriceInfoPtr and GoogleCloudRetailV2PriceInfoPtrOutput values. You can construct a concrete instance of `GoogleCloudRetailV2PriceInfoPtrInput` via:

        GoogleCloudRetailV2PriceInfoArgs{...}

or:

        nil

type GoogleCloudRetailV2PriceInfoPtrOutput

type GoogleCloudRetailV2PriceInfoPtrOutput struct{ *pulumi.OutputState }

func (GoogleCloudRetailV2PriceInfoPtrOutput) Cost

The costs associated with the sale of a particular product. Used for gross profit reporting. * Profit = price - cost Google Merchant Center property [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895).

func (GoogleCloudRetailV2PriceInfoPtrOutput) CurrencyCode

The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html). If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned. The Product.Type.VARIANT Products with the same Product.primary_product_id must share the same currency_code. Otherwise, a FAILED_PRECONDITION error is returned.

func (GoogleCloudRetailV2PriceInfoPtrOutput) Elem

func (GoogleCloudRetailV2PriceInfoPtrOutput) ElementType

func (GoogleCloudRetailV2PriceInfoPtrOutput) OriginalPrice

Price of the product without any discount. If zero, by default set to be the price. If set, original_price should be greater than or equal to price, otherwise an INVALID_ARGUMENT error is thrown.

func (GoogleCloudRetailV2PriceInfoPtrOutput) Price

Price of the product. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371). Schema.org property [Offer.price](https://schema.org/price).

func (GoogleCloudRetailV2PriceInfoPtrOutput) PriceEffectiveTime added in v0.8.0

The timestamp when the price starts to be effective. This can be set as a future timestamp, and the price is only used for search after price_effective_time. If so, the original_price must be set and original_price is used before price_effective_time. Do not set if price is always effective because it will cause additional latency during search.

func (GoogleCloudRetailV2PriceInfoPtrOutput) PriceExpireTime added in v0.8.0

The timestamp when the price stops to be effective. The price is used for search before price_expire_time. If this field is set, the original_price must be set and original_price is used after price_expire_time. Do not set if price is always effective because it will cause additional latency during search.

func (GoogleCloudRetailV2PriceInfoPtrOutput) ToGoogleCloudRetailV2PriceInfoPtrOutput

func (o GoogleCloudRetailV2PriceInfoPtrOutput) ToGoogleCloudRetailV2PriceInfoPtrOutput() GoogleCloudRetailV2PriceInfoPtrOutput

func (GoogleCloudRetailV2PriceInfoPtrOutput) ToGoogleCloudRetailV2PriceInfoPtrOutputWithContext

func (o GoogleCloudRetailV2PriceInfoPtrOutput) ToGoogleCloudRetailV2PriceInfoPtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2PriceInfoPtrOutput

type GoogleCloudRetailV2PriceInfoResponse

type GoogleCloudRetailV2PriceInfoResponse struct {
	// The costs associated with the sale of a particular product. Used for gross profit reporting. * Profit = price - cost Google Merchant Center property [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895).
	Cost float64 `pulumi:"cost"`
	// The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html). If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned. The Product.Type.VARIANT Products with the same Product.primary_product_id must share the same currency_code. Otherwise, a FAILED_PRECONDITION error is returned.
	CurrencyCode string `pulumi:"currencyCode"`
	// Price of the product without any discount. If zero, by default set to be the price. If set, original_price should be greater than or equal to price, otherwise an INVALID_ARGUMENT error is thrown.
	OriginalPrice float64 `pulumi:"originalPrice"`
	// Price of the product. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371). Schema.org property [Offer.price](https://schema.org/price).
	Price float64 `pulumi:"price"`
	// The timestamp when the price starts to be effective. This can be set as a future timestamp, and the price is only used for search after price_effective_time. If so, the original_price must be set and original_price is used before price_effective_time. Do not set if price is always effective because it will cause additional latency during search.
	PriceEffectiveTime string `pulumi:"priceEffectiveTime"`
	// The timestamp when the price stops to be effective. The price is used for search before price_expire_time. If this field is set, the original_price must be set and original_price is used after price_expire_time. Do not set if price is always effective because it will cause additional latency during search.
	PriceExpireTime string `pulumi:"priceExpireTime"`
	// The price range of all the child Product.Type.VARIANT Products grouped together on the Product.Type.PRIMARY Product. Only populated for Product.Type.PRIMARY Products. Note: This field is OUTPUT_ONLY for ProductService.GetProduct. Do not set this field in API requests.
	PriceRange GoogleCloudRetailV2PriceInfoPriceRangeResponse `pulumi:"priceRange"`
}

The price information of a Product.

type GoogleCloudRetailV2PriceInfoResponseOutput

type GoogleCloudRetailV2PriceInfoResponseOutput struct{ *pulumi.OutputState }

The price information of a Product.

func (GoogleCloudRetailV2PriceInfoResponseOutput) Cost

The costs associated with the sale of a particular product. Used for gross profit reporting. * Profit = price - cost Google Merchant Center property [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895).

func (GoogleCloudRetailV2PriceInfoResponseOutput) CurrencyCode

The 3-letter currency code defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html). If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned. The Product.Type.VARIANT Products with the same Product.primary_product_id must share the same currency_code. Otherwise, a FAILED_PRECONDITION error is returned.

func (GoogleCloudRetailV2PriceInfoResponseOutput) ElementType

func (GoogleCloudRetailV2PriceInfoResponseOutput) OriginalPrice

Price of the product without any discount. If zero, by default set to be the price. If set, original_price should be greater than or equal to price, otherwise an INVALID_ARGUMENT error is thrown.

func (GoogleCloudRetailV2PriceInfoResponseOutput) Price

Price of the product. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371). Schema.org property [Offer.price](https://schema.org/price).

func (GoogleCloudRetailV2PriceInfoResponseOutput) PriceEffectiveTime added in v0.8.0

The timestamp when the price starts to be effective. This can be set as a future timestamp, and the price is only used for search after price_effective_time. If so, the original_price must be set and original_price is used before price_effective_time. Do not set if price is always effective because it will cause additional latency during search.

func (GoogleCloudRetailV2PriceInfoResponseOutput) PriceExpireTime added in v0.8.0

The timestamp when the price stops to be effective. The price is used for search before price_expire_time. If this field is set, the original_price must be set and original_price is used after price_expire_time. Do not set if price is always effective because it will cause additional latency during search.

func (GoogleCloudRetailV2PriceInfoResponseOutput) PriceRange added in v0.8.0

The price range of all the child Product.Type.VARIANT Products grouped together on the Product.Type.PRIMARY Product. Only populated for Product.Type.PRIMARY Products. Note: This field is OUTPUT_ONLY for ProductService.GetProduct. Do not set this field in API requests.

func (GoogleCloudRetailV2PriceInfoResponseOutput) ToGoogleCloudRetailV2PriceInfoResponseOutput

func (o GoogleCloudRetailV2PriceInfoResponseOutput) ToGoogleCloudRetailV2PriceInfoResponseOutput() GoogleCloudRetailV2PriceInfoResponseOutput

func (GoogleCloudRetailV2PriceInfoResponseOutput) ToGoogleCloudRetailV2PriceInfoResponseOutputWithContext

func (o GoogleCloudRetailV2PriceInfoResponseOutput) ToGoogleCloudRetailV2PriceInfoResponseOutputWithContext(ctx context.Context) GoogleCloudRetailV2PriceInfoResponseOutput

type GoogleCloudRetailV2ProductResponse added in v0.8.0

type GoogleCloudRetailV2ProductResponse struct {
	// Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.
	Attributes map[string]string `pulumi:"attributes"`
	// The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
	Audience GoogleCloudRetailV2AudienceResponse `pulumi:"audience"`
	// The online availability of the Product. Default to Availability.IN_STOCK. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).
	Availability string `pulumi:"availability"`
	// The available quantity of the item.
	AvailableQuantity int `pulumi:"availableQuantity"`
	// The timestamp when this Product becomes available for SearchService.Search.
	AvailableTime string `pulumi:"availableTime"`
	// The brands of the product. A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).
	Brands []string `pulumi:"brands"`
	// Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, please replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for Type.PRIMARY Product otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property google_product_category. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
	Categories []string `pulumi:"categories"`
	// The id of the collection members when type is Type.COLLECTION. Non-existent product ids are allowed. The type of the members must be either Type.PRIMARY or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
	CollectionMemberIds []string `pulumi:"collectionMemberIds"`
	// The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
	ColorInfo GoogleCloudRetailV2ColorInfoResponse `pulumi:"colorInfo"`
	// The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).
	Conditions []string `pulumi:"conditions"`
	// Product description. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [description](https://support.google.com/merchants/answer/6324468). Schema.org property [Product.description](https://schema.org/description).
	Description string `pulumi:"description"`
	// The timestamp when this product becomes unavailable for SearchService.Search. If it is set, the Product is not available for SearchService.Search after expire_time. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts. expire_time must be later than available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).
	ExpireTime string `pulumi:"expireTime"`
	// Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct FulfillmentInfo.type. Otherwise, an INVALID_ARGUMENT error is returned.
	FulfillmentInfo []GoogleCloudRetailV2FulfillmentInfoResponse `pulumi:"fulfillmentInfo"`
	// The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.
	Gtin string `pulumi:"gtin"`
	// Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
	Images []GoogleCloudRetailV2ImageResponse `pulumi:"images"`
	// Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For product prediction, this field is ignored and the model automatically detects the text language. The Product can include text in different languages, but duplicating Products to provide text in multiple languages can result in degraded model performance. For product search this field is in use. It defaults to "en-US" if unset.
	LanguageCode string `pulumi:"languageCode"`
	// The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).
	Materials []string `pulumi:"materials"`
	// Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
	Name string `pulumi:"name"`
	// The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).
	Patterns []string `pulumi:"patterns"`
	// Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
	PriceInfo GoogleCloudRetailV2PriceInfoResponse `pulumi:"priceInfo"`
	// Variant group identifier. Must be an id, with the same parent branch with this product. Otherwise, an error is thrown. For Type.PRIMARY Products, this field can only be empty or set to the same value as id. For VARIANT Products, this field cannot be empty. A maximum of 2,000 products are allowed to share the same Type.PRIMARY Product. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [item_group_id](https://support.google.com/merchants/answer/6324507). Schema.org property [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
	PrimaryProductId string `pulumi:"primaryProductId"`
	// The promotions applied to the product. A maximum of 10 values are allowed per Product. Only Promotion.promotion_id will be used, other fields will be ignored if set.
	Promotions []GoogleCloudRetailV2PromotionResponse `pulumi:"promotions"`
	// The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from available_time, given it purely describes product freshness regardless of when it is available on search and recommendation.
	PublishTime string `pulumi:"publishTime"`
	// The rating of this product.
	Rating GoogleCloudRetailV2RatingResponse `pulumi:"rating"`
	// Indicates which fields in the Products are returned in SearchResponse. Supported fields for all types: * audience * availability * brands * color_info * conditions * gtin * materials * name * patterns * price_info * rating * sizes * title * uri Supported fields only for Type.PRIMARY and Type.COLLECTION: * categories * description * images Supported fields only for Type.VARIANT: * Only the first image in images To mark attributes as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION, the following fields are always returned in SearchResponse by default: * name For Type.VARIANT, the following fields are always returned in by default: * name * color_info The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in SearchResponse can increase response payload size and serving latency.
	RetrievableFields string `pulumi:"retrievableFields"`
	// The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).
	Sizes []string `pulumi:"sizes"`
	// Custom tags associated with the product. At most 250 values are allowed per Product. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the PredictRequest.filter. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
	Tags []string `pulumi:"tags"`
	// Product title. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [title](https://support.google.com/merchants/answer/6324415). Schema.org property [Product.name](https://schema.org/name).
	Title string `pulumi:"title"`
	// Input only. The TTL (time to live) of the product. If it is set, it must be a non-negative value, and expire_time is set as current timestamp plus ttl. The derived expire_time is returned in the output and ttl is left blank when retrieving the Product. If it is set, the product is not available for SearchService.Search after current timestamp plus ttl. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts.
	Ttl string `pulumi:"ttl"`
	// Immutable. The type of the product. Default to Catalog.product_level_config.ingestion_product_type if unset.
	Type string `pulumi:"type"`
	// Canonical URL directly linking to the product detail page. It is strongly recommended to provide a valid uri for the product, otherwise the service performance could be significantly degraded. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [link](https://support.google.com/merchants/answer/6324416). Schema.org property [Offer.url](https://schema.org/url).
	Uri string `pulumi:"uri"`
	// Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by primary_product_id for all the product variants. Only populated for Type.PRIMARY Products. Note: This field is OUTPUT_ONLY for ProductService.GetProduct. Do not set this field in API requests.
	Variants []GoogleCloudRetailV2ProductResponse `pulumi:"variants"`
}

Product captures all metadata information of items to be recommended or searched.

type GoogleCloudRetailV2ProductResponseArrayOutput added in v0.8.0

type GoogleCloudRetailV2ProductResponseArrayOutput struct{ *pulumi.OutputState }

func (GoogleCloudRetailV2ProductResponseArrayOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2ProductResponseArrayOutput) Index added in v0.8.0

func (GoogleCloudRetailV2ProductResponseArrayOutput) ToGoogleCloudRetailV2ProductResponseArrayOutput added in v0.8.0

func (o GoogleCloudRetailV2ProductResponseArrayOutput) ToGoogleCloudRetailV2ProductResponseArrayOutput() GoogleCloudRetailV2ProductResponseArrayOutput

func (GoogleCloudRetailV2ProductResponseArrayOutput) ToGoogleCloudRetailV2ProductResponseArrayOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2ProductResponseArrayOutput) ToGoogleCloudRetailV2ProductResponseArrayOutputWithContext(ctx context.Context) GoogleCloudRetailV2ProductResponseArrayOutput

type GoogleCloudRetailV2ProductResponseOutput added in v0.8.0

type GoogleCloudRetailV2ProductResponseOutput struct{ *pulumi.OutputState }

Product captures all metadata information of items to be recommended or searched.

func (GoogleCloudRetailV2ProductResponseOutput) Attributes added in v0.8.0

Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.

func (GoogleCloudRetailV2ProductResponseOutput) Audience added in v0.8.0

The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.

func (GoogleCloudRetailV2ProductResponseOutput) Availability added in v0.8.0

The online availability of the Product. Default to Availability.IN_STOCK. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).

func (GoogleCloudRetailV2ProductResponseOutput) AvailableQuantity added in v0.8.0

The available quantity of the item.

func (GoogleCloudRetailV2ProductResponseOutput) AvailableTime added in v0.8.0

The timestamp when this Product becomes available for SearchService.Search.

func (GoogleCloudRetailV2ProductResponseOutput) Brands added in v0.8.0

The brands of the product. A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).

func (GoogleCloudRetailV2ProductResponseOutput) Categories added in v0.8.0

Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, please replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for Type.PRIMARY Product otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property google_product_category. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436

func (GoogleCloudRetailV2ProductResponseOutput) CollectionMemberIds added in v0.8.0

The id of the collection members when type is Type.COLLECTION. Non-existent product ids are allowed. The type of the members must be either Type.PRIMARY or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.

func (GoogleCloudRetailV2ProductResponseOutput) ColorInfo added in v0.8.0

The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).

func (GoogleCloudRetailV2ProductResponseOutput) Conditions added in v0.8.0

The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).

func (GoogleCloudRetailV2ProductResponseOutput) Description added in v0.8.0

Product description. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [description](https://support.google.com/merchants/answer/6324468). Schema.org property [Product.description](https://schema.org/description).

func (GoogleCloudRetailV2ProductResponseOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2ProductResponseOutput) ExpireTime added in v0.8.0

The timestamp when this product becomes unavailable for SearchService.Search. If it is set, the Product is not available for SearchService.Search after expire_time. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts. expire_time must be later than available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).

func (GoogleCloudRetailV2ProductResponseOutput) FulfillmentInfo added in v0.8.0

Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct FulfillmentInfo.type. Otherwise, an INVALID_ARGUMENT error is returned.

func (GoogleCloudRetailV2ProductResponseOutput) Gtin added in v0.8.0

The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.

func (GoogleCloudRetailV2ProductResponseOutput) Images added in v0.8.0

Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).

func (GoogleCloudRetailV2ProductResponseOutput) LanguageCode added in v0.8.0

Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For product prediction, this field is ignored and the model automatically detects the text language. The Product can include text in different languages, but duplicating Products to provide text in multiple languages can result in degraded model performance. For product search this field is in use. It defaults to "en-US" if unset.

func (GoogleCloudRetailV2ProductResponseOutput) Materials added in v0.8.0

The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).

func (GoogleCloudRetailV2ProductResponseOutput) Name added in v0.8.0

Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.

func (GoogleCloudRetailV2ProductResponseOutput) Patterns added in v0.8.0

The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).

func (GoogleCloudRetailV2ProductResponseOutput) PriceInfo added in v0.8.0

Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).

func (GoogleCloudRetailV2ProductResponseOutput) PrimaryProductId added in v0.8.0

Variant group identifier. Must be an id, with the same parent branch with this product. Otherwise, an error is thrown. For Type.PRIMARY Products, this field can only be empty or set to the same value as id. For VARIANT Products, this field cannot be empty. A maximum of 2,000 products are allowed to share the same Type.PRIMARY Product. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [item_group_id](https://support.google.com/merchants/answer/6324507). Schema.org property [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).

func (GoogleCloudRetailV2ProductResponseOutput) Promotions added in v0.8.0

The promotions applied to the product. A maximum of 10 values are allowed per Product. Only Promotion.promotion_id will be used, other fields will be ignored if set.

func (GoogleCloudRetailV2ProductResponseOutput) PublishTime added in v0.8.0

The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from available_time, given it purely describes product freshness regardless of when it is available on search and recommendation.

func (GoogleCloudRetailV2ProductResponseOutput) Rating added in v0.8.0

The rating of this product.

func (GoogleCloudRetailV2ProductResponseOutput) RetrievableFields added in v0.8.0

Indicates which fields in the Products are returned in SearchResponse. Supported fields for all types: * audience * availability * brands * color_info * conditions * gtin * materials * name * patterns * price_info * rating * sizes * title * uri Supported fields only for Type.PRIMARY and Type.COLLECTION: * categories * description * images Supported fields only for Type.VARIANT: * Only the first image in images To mark attributes as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION, the following fields are always returned in SearchResponse by default: * name For Type.VARIANT, the following fields are always returned in by default: * name * color_info The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in SearchResponse can increase response payload size and serving latency.

func (GoogleCloudRetailV2ProductResponseOutput) Sizes added in v0.8.0

The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).

func (GoogleCloudRetailV2ProductResponseOutput) Tags added in v0.8.0

Custom tags associated with the product. At most 250 values are allowed per Product. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the PredictRequest.filter. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).

func (GoogleCloudRetailV2ProductResponseOutput) Title added in v0.8.0

Product title. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [title](https://support.google.com/merchants/answer/6324415). Schema.org property [Product.name](https://schema.org/name).

func (GoogleCloudRetailV2ProductResponseOutput) ToGoogleCloudRetailV2ProductResponseOutput added in v0.8.0

func (o GoogleCloudRetailV2ProductResponseOutput) ToGoogleCloudRetailV2ProductResponseOutput() GoogleCloudRetailV2ProductResponseOutput

func (GoogleCloudRetailV2ProductResponseOutput) ToGoogleCloudRetailV2ProductResponseOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2ProductResponseOutput) ToGoogleCloudRetailV2ProductResponseOutputWithContext(ctx context.Context) GoogleCloudRetailV2ProductResponseOutput

func (GoogleCloudRetailV2ProductResponseOutput) Ttl added in v0.8.0

Input only. The TTL (time to live) of the product. If it is set, it must be a non-negative value, and expire_time is set as current timestamp plus ttl. The derived expire_time is returned in the output and ttl is left blank when retrieving the Product. If it is set, the product is not available for SearchService.Search after current timestamp plus ttl. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts.

func (GoogleCloudRetailV2ProductResponseOutput) Type added in v0.8.0

Immutable. The type of the product. Default to Catalog.product_level_config.ingestion_product_type if unset.

func (GoogleCloudRetailV2ProductResponseOutput) Uri added in v0.8.0

Canonical URL directly linking to the product detail page. It is strongly recommended to provide a valid uri for the product, otherwise the service performance could be significantly degraded. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [link](https://support.google.com/merchants/answer/6324416). Schema.org property [Offer.url](https://schema.org/url).

func (GoogleCloudRetailV2ProductResponseOutput) Variants added in v0.8.0

Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by primary_product_id for all the product variants. Only populated for Type.PRIMARY Products. Note: This field is OUTPUT_ONLY for ProductService.GetProduct. Do not set this field in API requests.

type GoogleCloudRetailV2Promotion added in v0.8.0

type GoogleCloudRetailV2Promotion struct {
	// ID of the promotion. For example, "free gift". The value must be a UTF-8 encoded string with a length limit of 128 characters, and match the pattern: `a-zA-Z*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [promotion](https://support.google.com/merchants/answer/7050148).
	PromotionId *string `pulumi:"promotionId"`
}

Promotion information.

type GoogleCloudRetailV2PromotionArgs added in v0.8.0

type GoogleCloudRetailV2PromotionArgs struct {
	// ID of the promotion. For example, "free gift". The value must be a UTF-8 encoded string with a length limit of 128 characters, and match the pattern: `a-zA-Z*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [promotion](https://support.google.com/merchants/answer/7050148).
	PromotionId pulumi.StringPtrInput `pulumi:"promotionId"`
}

Promotion information.

func (GoogleCloudRetailV2PromotionArgs) ElementType added in v0.8.0

func (GoogleCloudRetailV2PromotionArgs) ToGoogleCloudRetailV2PromotionOutput added in v0.8.0

func (i GoogleCloudRetailV2PromotionArgs) ToGoogleCloudRetailV2PromotionOutput() GoogleCloudRetailV2PromotionOutput

func (GoogleCloudRetailV2PromotionArgs) ToGoogleCloudRetailV2PromotionOutputWithContext added in v0.8.0

func (i GoogleCloudRetailV2PromotionArgs) ToGoogleCloudRetailV2PromotionOutputWithContext(ctx context.Context) GoogleCloudRetailV2PromotionOutput

type GoogleCloudRetailV2PromotionArray added in v0.8.0

type GoogleCloudRetailV2PromotionArray []GoogleCloudRetailV2PromotionInput

func (GoogleCloudRetailV2PromotionArray) ElementType added in v0.8.0

func (GoogleCloudRetailV2PromotionArray) ToGoogleCloudRetailV2PromotionArrayOutput added in v0.8.0

func (i GoogleCloudRetailV2PromotionArray) ToGoogleCloudRetailV2PromotionArrayOutput() GoogleCloudRetailV2PromotionArrayOutput

func (GoogleCloudRetailV2PromotionArray) ToGoogleCloudRetailV2PromotionArrayOutputWithContext added in v0.8.0

func (i GoogleCloudRetailV2PromotionArray) ToGoogleCloudRetailV2PromotionArrayOutputWithContext(ctx context.Context) GoogleCloudRetailV2PromotionArrayOutput

type GoogleCloudRetailV2PromotionArrayInput added in v0.8.0

type GoogleCloudRetailV2PromotionArrayInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2PromotionArrayOutput() GoogleCloudRetailV2PromotionArrayOutput
	ToGoogleCloudRetailV2PromotionArrayOutputWithContext(context.Context) GoogleCloudRetailV2PromotionArrayOutput
}

GoogleCloudRetailV2PromotionArrayInput is an input type that accepts GoogleCloudRetailV2PromotionArray and GoogleCloudRetailV2PromotionArrayOutput values. You can construct a concrete instance of `GoogleCloudRetailV2PromotionArrayInput` via:

GoogleCloudRetailV2PromotionArray{ GoogleCloudRetailV2PromotionArgs{...} }

type GoogleCloudRetailV2PromotionArrayOutput added in v0.8.0

type GoogleCloudRetailV2PromotionArrayOutput struct{ *pulumi.OutputState }

func (GoogleCloudRetailV2PromotionArrayOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2PromotionArrayOutput) Index added in v0.8.0

func (GoogleCloudRetailV2PromotionArrayOutput) ToGoogleCloudRetailV2PromotionArrayOutput added in v0.8.0

func (o GoogleCloudRetailV2PromotionArrayOutput) ToGoogleCloudRetailV2PromotionArrayOutput() GoogleCloudRetailV2PromotionArrayOutput

func (GoogleCloudRetailV2PromotionArrayOutput) ToGoogleCloudRetailV2PromotionArrayOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2PromotionArrayOutput) ToGoogleCloudRetailV2PromotionArrayOutputWithContext(ctx context.Context) GoogleCloudRetailV2PromotionArrayOutput

type GoogleCloudRetailV2PromotionInput added in v0.8.0

type GoogleCloudRetailV2PromotionInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2PromotionOutput() GoogleCloudRetailV2PromotionOutput
	ToGoogleCloudRetailV2PromotionOutputWithContext(context.Context) GoogleCloudRetailV2PromotionOutput
}

GoogleCloudRetailV2PromotionInput is an input type that accepts GoogleCloudRetailV2PromotionArgs and GoogleCloudRetailV2PromotionOutput values. You can construct a concrete instance of `GoogleCloudRetailV2PromotionInput` via:

GoogleCloudRetailV2PromotionArgs{...}

type GoogleCloudRetailV2PromotionOutput added in v0.8.0

type GoogleCloudRetailV2PromotionOutput struct{ *pulumi.OutputState }

Promotion information.

func (GoogleCloudRetailV2PromotionOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2PromotionOutput) PromotionId added in v0.8.0

ID of the promotion. For example, "free gift". The value must be a UTF-8 encoded string with a length limit of 128 characters, and match the pattern: `a-zA-Z*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [promotion](https://support.google.com/merchants/answer/7050148).

func (GoogleCloudRetailV2PromotionOutput) ToGoogleCloudRetailV2PromotionOutput added in v0.8.0

func (o GoogleCloudRetailV2PromotionOutput) ToGoogleCloudRetailV2PromotionOutput() GoogleCloudRetailV2PromotionOutput

func (GoogleCloudRetailV2PromotionOutput) ToGoogleCloudRetailV2PromotionOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2PromotionOutput) ToGoogleCloudRetailV2PromotionOutputWithContext(ctx context.Context) GoogleCloudRetailV2PromotionOutput

type GoogleCloudRetailV2PromotionResponse added in v0.8.0

type GoogleCloudRetailV2PromotionResponse struct {
	// ID of the promotion. For example, "free gift". The value must be a UTF-8 encoded string with a length limit of 128 characters, and match the pattern: `a-zA-Z*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [promotion](https://support.google.com/merchants/answer/7050148).
	PromotionId string `pulumi:"promotionId"`
}

Promotion information.

type GoogleCloudRetailV2PromotionResponseArrayOutput added in v0.8.0

type GoogleCloudRetailV2PromotionResponseArrayOutput struct{ *pulumi.OutputState }

func (GoogleCloudRetailV2PromotionResponseArrayOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2PromotionResponseArrayOutput) Index added in v0.8.0

func (GoogleCloudRetailV2PromotionResponseArrayOutput) ToGoogleCloudRetailV2PromotionResponseArrayOutput added in v0.8.0

func (o GoogleCloudRetailV2PromotionResponseArrayOutput) ToGoogleCloudRetailV2PromotionResponseArrayOutput() GoogleCloudRetailV2PromotionResponseArrayOutput

func (GoogleCloudRetailV2PromotionResponseArrayOutput) ToGoogleCloudRetailV2PromotionResponseArrayOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2PromotionResponseArrayOutput) ToGoogleCloudRetailV2PromotionResponseArrayOutputWithContext(ctx context.Context) GoogleCloudRetailV2PromotionResponseArrayOutput

type GoogleCloudRetailV2PromotionResponseOutput added in v0.8.0

type GoogleCloudRetailV2PromotionResponseOutput struct{ *pulumi.OutputState }

Promotion information.

func (GoogleCloudRetailV2PromotionResponseOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2PromotionResponseOutput) PromotionId added in v0.8.0

ID of the promotion. For example, "free gift". The value must be a UTF-8 encoded string with a length limit of 128 characters, and match the pattern: `a-zA-Z*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [promotion](https://support.google.com/merchants/answer/7050148).

func (GoogleCloudRetailV2PromotionResponseOutput) ToGoogleCloudRetailV2PromotionResponseOutput added in v0.8.0

func (o GoogleCloudRetailV2PromotionResponseOutput) ToGoogleCloudRetailV2PromotionResponseOutput() GoogleCloudRetailV2PromotionResponseOutput

func (GoogleCloudRetailV2PromotionResponseOutput) ToGoogleCloudRetailV2PromotionResponseOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2PromotionResponseOutput) ToGoogleCloudRetailV2PromotionResponseOutputWithContext(ctx context.Context) GoogleCloudRetailV2PromotionResponseOutput

type GoogleCloudRetailV2Rating added in v0.8.0

type GoogleCloudRetailV2Rating struct {
	// The average rating of the Product. The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is returned.
	AverageRating *float64 `pulumi:"averageRating"`
	// The total number of ratings. This value is independent of the value of rating_histogram. This value must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
	RatingCount *int `pulumi:"ratingCount"`
	// List of rating counts per rating value (index = rating - 1). The list is empty if there is no rating. If the list is non-empty, its size is always 5. Otherwise, an INVALID_ARGUMENT error is returned. For example, [41, 14, 13, 47, 303]. It means that the Product got 41 ratings with 1 star, 14 ratings with 2 star, and so on.
	RatingHistogram []int `pulumi:"ratingHistogram"`
}

The rating of a Product.

type GoogleCloudRetailV2RatingArgs added in v0.8.0

type GoogleCloudRetailV2RatingArgs struct {
	// The average rating of the Product. The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is returned.
	AverageRating pulumi.Float64PtrInput `pulumi:"averageRating"`
	// The total number of ratings. This value is independent of the value of rating_histogram. This value must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
	RatingCount pulumi.IntPtrInput `pulumi:"ratingCount"`
	// List of rating counts per rating value (index = rating - 1). The list is empty if there is no rating. If the list is non-empty, its size is always 5. Otherwise, an INVALID_ARGUMENT error is returned. For example, [41, 14, 13, 47, 303]. It means that the Product got 41 ratings with 1 star, 14 ratings with 2 star, and so on.
	RatingHistogram pulumi.IntArrayInput `pulumi:"ratingHistogram"`
}

The rating of a Product.

func (GoogleCloudRetailV2RatingArgs) ElementType added in v0.8.0

func (GoogleCloudRetailV2RatingArgs) ToGoogleCloudRetailV2RatingOutput added in v0.8.0

func (i GoogleCloudRetailV2RatingArgs) ToGoogleCloudRetailV2RatingOutput() GoogleCloudRetailV2RatingOutput

func (GoogleCloudRetailV2RatingArgs) ToGoogleCloudRetailV2RatingOutputWithContext added in v0.8.0

func (i GoogleCloudRetailV2RatingArgs) ToGoogleCloudRetailV2RatingOutputWithContext(ctx context.Context) GoogleCloudRetailV2RatingOutput

func (GoogleCloudRetailV2RatingArgs) ToGoogleCloudRetailV2RatingPtrOutput added in v0.8.0

func (i GoogleCloudRetailV2RatingArgs) ToGoogleCloudRetailV2RatingPtrOutput() GoogleCloudRetailV2RatingPtrOutput

func (GoogleCloudRetailV2RatingArgs) ToGoogleCloudRetailV2RatingPtrOutputWithContext added in v0.8.0

func (i GoogleCloudRetailV2RatingArgs) ToGoogleCloudRetailV2RatingPtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2RatingPtrOutput

type GoogleCloudRetailV2RatingInput added in v0.8.0

type GoogleCloudRetailV2RatingInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2RatingOutput() GoogleCloudRetailV2RatingOutput
	ToGoogleCloudRetailV2RatingOutputWithContext(context.Context) GoogleCloudRetailV2RatingOutput
}

GoogleCloudRetailV2RatingInput is an input type that accepts GoogleCloudRetailV2RatingArgs and GoogleCloudRetailV2RatingOutput values. You can construct a concrete instance of `GoogleCloudRetailV2RatingInput` via:

GoogleCloudRetailV2RatingArgs{...}

type GoogleCloudRetailV2RatingOutput added in v0.8.0

type GoogleCloudRetailV2RatingOutput struct{ *pulumi.OutputState }

The rating of a Product.

func (GoogleCloudRetailV2RatingOutput) AverageRating added in v0.8.0

The average rating of the Product. The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is returned.

func (GoogleCloudRetailV2RatingOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2RatingOutput) RatingCount added in v0.8.0

The total number of ratings. This value is independent of the value of rating_histogram. This value must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.

func (GoogleCloudRetailV2RatingOutput) RatingHistogram added in v0.8.0

List of rating counts per rating value (index = rating - 1). The list is empty if there is no rating. If the list is non-empty, its size is always 5. Otherwise, an INVALID_ARGUMENT error is returned. For example, [41, 14, 13, 47, 303]. It means that the Product got 41 ratings with 1 star, 14 ratings with 2 star, and so on.

func (GoogleCloudRetailV2RatingOutput) ToGoogleCloudRetailV2RatingOutput added in v0.8.0

func (o GoogleCloudRetailV2RatingOutput) ToGoogleCloudRetailV2RatingOutput() GoogleCloudRetailV2RatingOutput

func (GoogleCloudRetailV2RatingOutput) ToGoogleCloudRetailV2RatingOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2RatingOutput) ToGoogleCloudRetailV2RatingOutputWithContext(ctx context.Context) GoogleCloudRetailV2RatingOutput

func (GoogleCloudRetailV2RatingOutput) ToGoogleCloudRetailV2RatingPtrOutput added in v0.8.0

func (o GoogleCloudRetailV2RatingOutput) ToGoogleCloudRetailV2RatingPtrOutput() GoogleCloudRetailV2RatingPtrOutput

func (GoogleCloudRetailV2RatingOutput) ToGoogleCloudRetailV2RatingPtrOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2RatingOutput) ToGoogleCloudRetailV2RatingPtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2RatingPtrOutput

type GoogleCloudRetailV2RatingPtrInput added in v0.8.0

type GoogleCloudRetailV2RatingPtrInput interface {
	pulumi.Input

	ToGoogleCloudRetailV2RatingPtrOutput() GoogleCloudRetailV2RatingPtrOutput
	ToGoogleCloudRetailV2RatingPtrOutputWithContext(context.Context) GoogleCloudRetailV2RatingPtrOutput
}

GoogleCloudRetailV2RatingPtrInput is an input type that accepts GoogleCloudRetailV2RatingArgs, GoogleCloudRetailV2RatingPtr and GoogleCloudRetailV2RatingPtrOutput values. You can construct a concrete instance of `GoogleCloudRetailV2RatingPtrInput` via:

        GoogleCloudRetailV2RatingArgs{...}

or:

        nil

func GoogleCloudRetailV2RatingPtr added in v0.8.0

type GoogleCloudRetailV2RatingPtrOutput added in v0.8.0

type GoogleCloudRetailV2RatingPtrOutput struct{ *pulumi.OutputState }

func (GoogleCloudRetailV2RatingPtrOutput) AverageRating added in v0.8.0

The average rating of the Product. The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is returned.

func (GoogleCloudRetailV2RatingPtrOutput) Elem added in v0.8.0

func (GoogleCloudRetailV2RatingPtrOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2RatingPtrOutput) RatingCount added in v0.8.0

The total number of ratings. This value is independent of the value of rating_histogram. This value must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.

func (GoogleCloudRetailV2RatingPtrOutput) RatingHistogram added in v0.8.0

List of rating counts per rating value (index = rating - 1). The list is empty if there is no rating. If the list is non-empty, its size is always 5. Otherwise, an INVALID_ARGUMENT error is returned. For example, [41, 14, 13, 47, 303]. It means that the Product got 41 ratings with 1 star, 14 ratings with 2 star, and so on.

func (GoogleCloudRetailV2RatingPtrOutput) ToGoogleCloudRetailV2RatingPtrOutput added in v0.8.0

func (o GoogleCloudRetailV2RatingPtrOutput) ToGoogleCloudRetailV2RatingPtrOutput() GoogleCloudRetailV2RatingPtrOutput

func (GoogleCloudRetailV2RatingPtrOutput) ToGoogleCloudRetailV2RatingPtrOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2RatingPtrOutput) ToGoogleCloudRetailV2RatingPtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2RatingPtrOutput

type GoogleCloudRetailV2RatingResponse added in v0.8.0

type GoogleCloudRetailV2RatingResponse struct {
	// The average rating of the Product. The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is returned.
	AverageRating float64 `pulumi:"averageRating"`
	// The total number of ratings. This value is independent of the value of rating_histogram. This value must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
	RatingCount int `pulumi:"ratingCount"`
	// List of rating counts per rating value (index = rating - 1). The list is empty if there is no rating. If the list is non-empty, its size is always 5. Otherwise, an INVALID_ARGUMENT error is returned. For example, [41, 14, 13, 47, 303]. It means that the Product got 41 ratings with 1 star, 14 ratings with 2 star, and so on.
	RatingHistogram []int `pulumi:"ratingHistogram"`
}

The rating of a Product.

type GoogleCloudRetailV2RatingResponseOutput added in v0.8.0

type GoogleCloudRetailV2RatingResponseOutput struct{ *pulumi.OutputState }

The rating of a Product.

func (GoogleCloudRetailV2RatingResponseOutput) AverageRating added in v0.8.0

The average rating of the Product. The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is returned.

func (GoogleCloudRetailV2RatingResponseOutput) ElementType added in v0.8.0

func (GoogleCloudRetailV2RatingResponseOutput) RatingCount added in v0.8.0

The total number of ratings. This value is independent of the value of rating_histogram. This value must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.

func (GoogleCloudRetailV2RatingResponseOutput) RatingHistogram added in v0.8.0

List of rating counts per rating value (index = rating - 1). The list is empty if there is no rating. If the list is non-empty, its size is always 5. Otherwise, an INVALID_ARGUMENT error is returned. For example, [41, 14, 13, 47, 303]. It means that the Product got 41 ratings with 1 star, 14 ratings with 2 star, and so on.

func (GoogleCloudRetailV2RatingResponseOutput) ToGoogleCloudRetailV2RatingResponseOutput added in v0.8.0

func (o GoogleCloudRetailV2RatingResponseOutput) ToGoogleCloudRetailV2RatingResponseOutput() GoogleCloudRetailV2RatingResponseOutput

func (GoogleCloudRetailV2RatingResponseOutput) ToGoogleCloudRetailV2RatingResponseOutputWithContext added in v0.8.0

func (o GoogleCloudRetailV2RatingResponseOutput) ToGoogleCloudRetailV2RatingResponseOutputWithContext(ctx context.Context) GoogleCloudRetailV2RatingResponseOutput

type LookupProductArgs added in v0.4.0

type LookupProductArgs struct {
	BranchId  string  `pulumi:"branchId"`
	CatalogId string  `pulumi:"catalogId"`
	Location  string  `pulumi:"location"`
	ProductId string  `pulumi:"productId"`
	Project   *string `pulumi:"project"`
}

type LookupProductOutputArgs added in v0.8.0

type LookupProductOutputArgs struct {
	BranchId  pulumi.StringInput    `pulumi:"branchId"`
	CatalogId pulumi.StringInput    `pulumi:"catalogId"`
	Location  pulumi.StringInput    `pulumi:"location"`
	ProductId pulumi.StringInput    `pulumi:"productId"`
	Project   pulumi.StringPtrInput `pulumi:"project"`
}

func (LookupProductOutputArgs) ElementType added in v0.8.0

func (LookupProductOutputArgs) ElementType() reflect.Type

type LookupProductResult added in v0.4.0

type LookupProductResult struct {
	// Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.
	Attributes map[string]string `pulumi:"attributes"`
	// The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
	Audience GoogleCloudRetailV2AudienceResponse `pulumi:"audience"`
	// The online availability of the Product. Default to Availability.IN_STOCK. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).
	Availability string `pulumi:"availability"`
	// The available quantity of the item.
	AvailableQuantity int `pulumi:"availableQuantity"`
	// The timestamp when this Product becomes available for SearchService.Search.
	AvailableTime string `pulumi:"availableTime"`
	// The brands of the product. A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).
	Brands []string `pulumi:"brands"`
	// Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, please replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for Type.PRIMARY Product otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property google_product_category. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
	Categories []string `pulumi:"categories"`
	// The id of the collection members when type is Type.COLLECTION. Non-existent product ids are allowed. The type of the members must be either Type.PRIMARY or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
	CollectionMemberIds []string `pulumi:"collectionMemberIds"`
	// The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
	ColorInfo GoogleCloudRetailV2ColorInfoResponse `pulumi:"colorInfo"`
	// The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).
	Conditions []string `pulumi:"conditions"`
	// Product description. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [description](https://support.google.com/merchants/answer/6324468). Schema.org property [Product.description](https://schema.org/description).
	Description string `pulumi:"description"`
	// The timestamp when this product becomes unavailable for SearchService.Search. If it is set, the Product is not available for SearchService.Search after expire_time. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts. expire_time must be later than available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).
	ExpireTime string `pulumi:"expireTime"`
	// Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct FulfillmentInfo.type. Otherwise, an INVALID_ARGUMENT error is returned.
	FulfillmentInfo []GoogleCloudRetailV2FulfillmentInfoResponse `pulumi:"fulfillmentInfo"`
	// The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.
	Gtin string `pulumi:"gtin"`
	// Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
	Images []GoogleCloudRetailV2ImageResponse `pulumi:"images"`
	// Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For product prediction, this field is ignored and the model automatically detects the text language. The Product can include text in different languages, but duplicating Products to provide text in multiple languages can result in degraded model performance. For product search this field is in use. It defaults to "en-US" if unset.
	LanguageCode string `pulumi:"languageCode"`
	// The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).
	Materials []string `pulumi:"materials"`
	// Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
	Name string `pulumi:"name"`
	// The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).
	Patterns []string `pulumi:"patterns"`
	// Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
	PriceInfo GoogleCloudRetailV2PriceInfoResponse `pulumi:"priceInfo"`
	// Variant group identifier. Must be an id, with the same parent branch with this product. Otherwise, an error is thrown. For Type.PRIMARY Products, this field can only be empty or set to the same value as id. For VARIANT Products, this field cannot be empty. A maximum of 2,000 products are allowed to share the same Type.PRIMARY Product. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [item_group_id](https://support.google.com/merchants/answer/6324507). Schema.org property [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
	PrimaryProductId string `pulumi:"primaryProductId"`
	// The promotions applied to the product. A maximum of 10 values are allowed per Product. Only Promotion.promotion_id will be used, other fields will be ignored if set.
	Promotions []GoogleCloudRetailV2PromotionResponse `pulumi:"promotions"`
	// The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from available_time, given it purely describes product freshness regardless of when it is available on search and recommendation.
	PublishTime string `pulumi:"publishTime"`
	// The rating of this product.
	Rating GoogleCloudRetailV2RatingResponse `pulumi:"rating"`
	// Indicates which fields in the Products are returned in SearchResponse. Supported fields for all types: * audience * availability * brands * color_info * conditions * gtin * materials * name * patterns * price_info * rating * sizes * title * uri Supported fields only for Type.PRIMARY and Type.COLLECTION: * categories * description * images Supported fields only for Type.VARIANT: * Only the first image in images To mark attributes as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION, the following fields are always returned in SearchResponse by default: * name For Type.VARIANT, the following fields are always returned in by default: * name * color_info The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in SearchResponse can increase response payload size and serving latency.
	RetrievableFields string `pulumi:"retrievableFields"`
	// The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).
	Sizes []string `pulumi:"sizes"`
	// Custom tags associated with the product. At most 250 values are allowed per Product. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the PredictRequest.filter. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
	Tags []string `pulumi:"tags"`
	// Product title. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [title](https://support.google.com/merchants/answer/6324415). Schema.org property [Product.name](https://schema.org/name).
	Title string `pulumi:"title"`
	// Input only. The TTL (time to live) of the product. If it is set, it must be a non-negative value, and expire_time is set as current timestamp plus ttl. The derived expire_time is returned in the output and ttl is left blank when retrieving the Product. If it is set, the product is not available for SearchService.Search after current timestamp plus ttl. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts.
	Ttl string `pulumi:"ttl"`
	// Immutable. The type of the product. Default to Catalog.product_level_config.ingestion_product_type if unset.
	Type string `pulumi:"type"`
	// Canonical URL directly linking to the product detail page. It is strongly recommended to provide a valid uri for the product, otherwise the service performance could be significantly degraded. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [link](https://support.google.com/merchants/answer/6324416). Schema.org property [Offer.url](https://schema.org/url).
	Uri string `pulumi:"uri"`
	// Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by primary_product_id for all the product variants. Only populated for Type.PRIMARY Products. Note: This field is OUTPUT_ONLY for ProductService.GetProduct. Do not set this field in API requests.
	Variants []GoogleCloudRetailV2ProductResponse `pulumi:"variants"`
}

func LookupProduct added in v0.4.0

func LookupProduct(ctx *pulumi.Context, args *LookupProductArgs, opts ...pulumi.InvokeOption) (*LookupProductResult, error)

Gets a Product.

type LookupProductResultOutput added in v0.8.0

type LookupProductResultOutput struct{ *pulumi.OutputState }

func LookupProductOutput added in v0.8.0

func LookupProductOutput(ctx *pulumi.Context, args LookupProductOutputArgs, opts ...pulumi.InvokeOption) LookupProductResultOutput

func (LookupProductResultOutput) Attributes added in v0.8.0

Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.

func (LookupProductResultOutput) Audience added in v0.8.0

The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.

func (LookupProductResultOutput) Availability added in v0.8.0

The online availability of the Product. Default to Availability.IN_STOCK. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).

func (LookupProductResultOutput) AvailableQuantity added in v0.8.0

func (o LookupProductResultOutput) AvailableQuantity() pulumi.IntOutput

The available quantity of the item.

func (LookupProductResultOutput) AvailableTime added in v0.8.0

func (o LookupProductResultOutput) AvailableTime() pulumi.StringOutput

The timestamp when this Product becomes available for SearchService.Search.

func (LookupProductResultOutput) Brands added in v0.8.0

The brands of the product. A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).

func (LookupProductResultOutput) Categories added in v0.8.0

Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, please replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for Type.PRIMARY Product otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property google_product_category. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436

func (LookupProductResultOutput) CollectionMemberIds added in v0.8.0

func (o LookupProductResultOutput) CollectionMemberIds() pulumi.StringArrayOutput

The id of the collection members when type is Type.COLLECTION. Non-existent product ids are allowed. The type of the members must be either Type.PRIMARY or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.

func (LookupProductResultOutput) ColorInfo added in v0.8.0

The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).

func (LookupProductResultOutput) Conditions added in v0.8.0

The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).

func (LookupProductResultOutput) Description added in v0.8.0

Product description. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [description](https://support.google.com/merchants/answer/6324468). Schema.org property [Product.description](https://schema.org/description).

func (LookupProductResultOutput) ElementType added in v0.8.0

func (LookupProductResultOutput) ElementType() reflect.Type

func (LookupProductResultOutput) ExpireTime added in v0.8.0

The timestamp when this product becomes unavailable for SearchService.Search. If it is set, the Product is not available for SearchService.Search after expire_time. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts. expire_time must be later than available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).

func (LookupProductResultOutput) FulfillmentInfo added in v0.8.0

Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct FulfillmentInfo.type. Otherwise, an INVALID_ARGUMENT error is returned.

func (LookupProductResultOutput) Gtin added in v0.8.0

The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.

func (LookupProductResultOutput) Images added in v0.8.0

Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).

func (LookupProductResultOutput) LanguageCode added in v0.8.0

Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For product prediction, this field is ignored and the model automatically detects the text language. The Product can include text in different languages, but duplicating Products to provide text in multiple languages can result in degraded model performance. For product search this field is in use. It defaults to "en-US" if unset.

func (LookupProductResultOutput) Materials added in v0.8.0

The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).

func (LookupProductResultOutput) Name added in v0.8.0

Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.

func (LookupProductResultOutput) Patterns added in v0.8.0

The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).

func (LookupProductResultOutput) PriceInfo added in v0.8.0

Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).

func (LookupProductResultOutput) PrimaryProductId added in v0.8.0

func (o LookupProductResultOutput) PrimaryProductId() pulumi.StringOutput

Variant group identifier. Must be an id, with the same parent branch with this product. Otherwise, an error is thrown. For Type.PRIMARY Products, this field can only be empty or set to the same value as id. For VARIANT Products, this field cannot be empty. A maximum of 2,000 products are allowed to share the same Type.PRIMARY Product. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [item_group_id](https://support.google.com/merchants/answer/6324507). Schema.org property [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).

func (LookupProductResultOutput) Promotions added in v0.8.0

The promotions applied to the product. A maximum of 10 values are allowed per Product. Only Promotion.promotion_id will be used, other fields will be ignored if set.

func (LookupProductResultOutput) PublishTime added in v0.8.0

The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from available_time, given it purely describes product freshness regardless of when it is available on search and recommendation.

func (LookupProductResultOutput) Rating added in v0.8.0

The rating of this product.

func (LookupProductResultOutput) RetrievableFields added in v0.8.0

func (o LookupProductResultOutput) RetrievableFields() pulumi.StringOutput

Indicates which fields in the Products are returned in SearchResponse. Supported fields for all types: * audience * availability * brands * color_info * conditions * gtin * materials * name * patterns * price_info * rating * sizes * title * uri Supported fields only for Type.PRIMARY and Type.COLLECTION: * categories * description * images Supported fields only for Type.VARIANT: * Only the first image in images To mark attributes as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION, the following fields are always returned in SearchResponse by default: * name For Type.VARIANT, the following fields are always returned in by default: * name * color_info The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in SearchResponse can increase response payload size and serving latency.

func (LookupProductResultOutput) Sizes added in v0.8.0

The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).

func (LookupProductResultOutput) Tags added in v0.8.0

Custom tags associated with the product. At most 250 values are allowed per Product. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the PredictRequest.filter. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).

func (LookupProductResultOutput) Title added in v0.8.0

Product title. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [title](https://support.google.com/merchants/answer/6324415). Schema.org property [Product.name](https://schema.org/name).

func (LookupProductResultOutput) ToLookupProductResultOutput added in v0.8.0

func (o LookupProductResultOutput) ToLookupProductResultOutput() LookupProductResultOutput

func (LookupProductResultOutput) ToLookupProductResultOutputWithContext added in v0.8.0

func (o LookupProductResultOutput) ToLookupProductResultOutputWithContext(ctx context.Context) LookupProductResultOutput

func (LookupProductResultOutput) Ttl added in v0.8.0

Input only. The TTL (time to live) of the product. If it is set, it must be a non-negative value, and expire_time is set as current timestamp plus ttl. The derived expire_time is returned in the output and ttl is left blank when retrieving the Product. If it is set, the product is not available for SearchService.Search after current timestamp plus ttl. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts.

func (LookupProductResultOutput) Type added in v0.8.0

Immutable. The type of the product. Default to Catalog.product_level_config.ingestion_product_type if unset.

func (LookupProductResultOutput) Uri added in v0.8.0

Canonical URL directly linking to the product detail page. It is strongly recommended to provide a valid uri for the product, otherwise the service performance could be significantly degraded. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [link](https://support.google.com/merchants/answer/6324416). Schema.org property [Offer.url](https://schema.org/url).

func (LookupProductResultOutput) Variants added in v0.8.0

Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by primary_product_id for all the product variants. Only populated for Type.PRIMARY Products. Note: This field is OUTPUT_ONLY for ProductService.GetProduct. Do not set this field in API requests.

type Product added in v0.3.0

type Product struct {
	pulumi.CustomResourceState

	// Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.
	Attributes pulumi.StringMapOutput `pulumi:"attributes"`
	// The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
	Audience GoogleCloudRetailV2AudienceResponseOutput `pulumi:"audience"`
	// The online availability of the Product. Default to Availability.IN_STOCK. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).
	Availability pulumi.StringOutput `pulumi:"availability"`
	// The available quantity of the item.
	AvailableQuantity pulumi.IntOutput `pulumi:"availableQuantity"`
	// The timestamp when this Product becomes available for SearchService.Search.
	AvailableTime pulumi.StringOutput `pulumi:"availableTime"`
	// The brands of the product. A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).
	Brands pulumi.StringArrayOutput `pulumi:"brands"`
	// Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, please replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for Type.PRIMARY Product otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property google_product_category. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
	Categories pulumi.StringArrayOutput `pulumi:"categories"`
	// The id of the collection members when type is Type.COLLECTION. Non-existent product ids are allowed. The type of the members must be either Type.PRIMARY or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
	CollectionMemberIds pulumi.StringArrayOutput `pulumi:"collectionMemberIds"`
	// The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
	ColorInfo GoogleCloudRetailV2ColorInfoResponseOutput `pulumi:"colorInfo"`
	// The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).
	Conditions pulumi.StringArrayOutput `pulumi:"conditions"`
	// Product description. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [description](https://support.google.com/merchants/answer/6324468). Schema.org property [Product.description](https://schema.org/description).
	Description pulumi.StringOutput `pulumi:"description"`
	// The timestamp when this product becomes unavailable for SearchService.Search. If it is set, the Product is not available for SearchService.Search after expire_time. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts. expire_time must be later than available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).
	ExpireTime pulumi.StringOutput `pulumi:"expireTime"`
	// Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct FulfillmentInfo.type. Otherwise, an INVALID_ARGUMENT error is returned.
	FulfillmentInfo GoogleCloudRetailV2FulfillmentInfoResponseArrayOutput `pulumi:"fulfillmentInfo"`
	// The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.
	Gtin pulumi.StringOutput `pulumi:"gtin"`
	// Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
	Images GoogleCloudRetailV2ImageResponseArrayOutput `pulumi:"images"`
	// Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For product prediction, this field is ignored and the model automatically detects the text language. The Product can include text in different languages, but duplicating Products to provide text in multiple languages can result in degraded model performance. For product search this field is in use. It defaults to "en-US" if unset.
	LanguageCode pulumi.StringOutput `pulumi:"languageCode"`
	// The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).
	Materials pulumi.StringArrayOutput `pulumi:"materials"`
	// Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
	Name pulumi.StringOutput `pulumi:"name"`
	// The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).
	Patterns pulumi.StringArrayOutput `pulumi:"patterns"`
	// Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
	PriceInfo GoogleCloudRetailV2PriceInfoResponseOutput `pulumi:"priceInfo"`
	// Variant group identifier. Must be an id, with the same parent branch with this product. Otherwise, an error is thrown. For Type.PRIMARY Products, this field can only be empty or set to the same value as id. For VARIANT Products, this field cannot be empty. A maximum of 2,000 products are allowed to share the same Type.PRIMARY Product. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [item_group_id](https://support.google.com/merchants/answer/6324507). Schema.org property [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
	PrimaryProductId pulumi.StringOutput `pulumi:"primaryProductId"`
	// The promotions applied to the product. A maximum of 10 values are allowed per Product. Only Promotion.promotion_id will be used, other fields will be ignored if set.
	Promotions GoogleCloudRetailV2PromotionResponseArrayOutput `pulumi:"promotions"`
	// The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from available_time, given it purely describes product freshness regardless of when it is available on search and recommendation.
	PublishTime pulumi.StringOutput `pulumi:"publishTime"`
	// The rating of this product.
	Rating GoogleCloudRetailV2RatingResponseOutput `pulumi:"rating"`
	// Indicates which fields in the Products are returned in SearchResponse. Supported fields for all types: * audience * availability * brands * color_info * conditions * gtin * materials * name * patterns * price_info * rating * sizes * title * uri Supported fields only for Type.PRIMARY and Type.COLLECTION: * categories * description * images Supported fields only for Type.VARIANT: * Only the first image in images To mark attributes as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION, the following fields are always returned in SearchResponse by default: * name For Type.VARIANT, the following fields are always returned in by default: * name * color_info The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in SearchResponse can increase response payload size and serving latency.
	RetrievableFields pulumi.StringOutput `pulumi:"retrievableFields"`
	// The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).
	Sizes pulumi.StringArrayOutput `pulumi:"sizes"`
	// Custom tags associated with the product. At most 250 values are allowed per Product. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the PredictRequest.filter. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
	Tags pulumi.StringArrayOutput `pulumi:"tags"`
	// Product title. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [title](https://support.google.com/merchants/answer/6324415). Schema.org property [Product.name](https://schema.org/name).
	Title pulumi.StringOutput `pulumi:"title"`
	// Input only. The TTL (time to live) of the product. If it is set, it must be a non-negative value, and expire_time is set as current timestamp plus ttl. The derived expire_time is returned in the output and ttl is left blank when retrieving the Product. If it is set, the product is not available for SearchService.Search after current timestamp plus ttl. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts.
	Ttl pulumi.StringOutput `pulumi:"ttl"`
	// Immutable. The type of the product. Default to Catalog.product_level_config.ingestion_product_type if unset.
	Type pulumi.StringOutput `pulumi:"type"`
	// Canonical URL directly linking to the product detail page. It is strongly recommended to provide a valid uri for the product, otherwise the service performance could be significantly degraded. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [link](https://support.google.com/merchants/answer/6324416). Schema.org property [Offer.url](https://schema.org/url).
	Uri pulumi.StringOutput `pulumi:"uri"`
	// Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by primary_product_id for all the product variants. Only populated for Type.PRIMARY Products. Note: This field is OUTPUT_ONLY for ProductService.GetProduct. Do not set this field in API requests.
	Variants GoogleCloudRetailV2ProductResponseArrayOutput `pulumi:"variants"`
}

Creates a Product.

func GetProduct added in v0.3.0

func GetProduct(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProductState, opts ...pulumi.ResourceOption) (*Product, error)

GetProduct gets an existing Product resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewProduct added in v0.3.0

func NewProduct(ctx *pulumi.Context,
	name string, args *ProductArgs, opts ...pulumi.ResourceOption) (*Product, error)

NewProduct registers a new resource with the given unique name, arguments, and options.

func (*Product) ElementType added in v0.3.0

func (*Product) ElementType() reflect.Type

func (*Product) ToProductOutput added in v0.3.0

func (i *Product) ToProductOutput() ProductOutput

func (*Product) ToProductOutputWithContext added in v0.3.0

func (i *Product) ToProductOutputWithContext(ctx context.Context) ProductOutput

type ProductArgs added in v0.3.0

type ProductArgs struct {
	// Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.
	Attributes pulumi.StringMapInput
	// The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
	Audience GoogleCloudRetailV2AudiencePtrInput
	// The online availability of the Product. Default to Availability.IN_STOCK. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).
	Availability ProductAvailabilityPtrInput
	// The available quantity of the item.
	AvailableQuantity pulumi.IntPtrInput
	// The timestamp when this Product becomes available for SearchService.Search.
	AvailableTime pulumi.StringPtrInput
	BranchId      pulumi.StringInput
	// The brands of the product. A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).
	Brands    pulumi.StringArrayInput
	CatalogId pulumi.StringInput
	// Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, please replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for Type.PRIMARY Product otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property google_product_category. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436
	Categories pulumi.StringArrayInput
	// The id of the collection members when type is Type.COLLECTION. Non-existent product ids are allowed. The type of the members must be either Type.PRIMARY or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.
	CollectionMemberIds pulumi.StringArrayInput
	// The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
	ColorInfo GoogleCloudRetailV2ColorInfoPtrInput
	// The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).
	Conditions pulumi.StringArrayInput
	// Product description. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [description](https://support.google.com/merchants/answer/6324468). Schema.org property [Product.description](https://schema.org/description).
	Description pulumi.StringPtrInput
	// The timestamp when this product becomes unavailable for SearchService.Search. If it is set, the Product is not available for SearchService.Search after expire_time. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts. expire_time must be later than available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).
	ExpireTime pulumi.StringPtrInput
	// Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct FulfillmentInfo.type. Otherwise, an INVALID_ARGUMENT error is returned.
	FulfillmentInfo GoogleCloudRetailV2FulfillmentInfoArrayInput
	// The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.
	Gtin pulumi.StringPtrInput
	// Immutable. Product identifier, which is the final component of name. For example, this field is "id_1", if name is `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1`. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [id](https://support.google.com/merchants/answer/6324405). Schema.org property [Product.sku](https://schema.org/sku).
	Id pulumi.StringPtrInput
	// Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).
	Images GoogleCloudRetailV2ImageArrayInput
	// Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For product prediction, this field is ignored and the model automatically detects the text language. The Product can include text in different languages, but duplicating Products to provide text in multiple languages can result in degraded model performance. For product search this field is in use. It defaults to "en-US" if unset.
	LanguageCode pulumi.StringPtrInput
	Location     pulumi.StringPtrInput
	// The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).
	Materials pulumi.StringArrayInput
	// Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
	Name pulumi.StringPtrInput
	// The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).
	Patterns pulumi.StringArrayInput
	// Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
	PriceInfo GoogleCloudRetailV2PriceInfoPtrInput
	// Variant group identifier. Must be an id, with the same parent branch with this product. Otherwise, an error is thrown. For Type.PRIMARY Products, this field can only be empty or set to the same value as id. For VARIANT Products, this field cannot be empty. A maximum of 2,000 products are allowed to share the same Type.PRIMARY Product. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [item_group_id](https://support.google.com/merchants/answer/6324507). Schema.org property [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
	PrimaryProductId pulumi.StringPtrInput
	// Required. The ID to use for the Product, which will become the final component of the Product.name. If the caller does not have permission to create the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. This field must be unique among all Products with the same parent. Otherwise, an ALREADY_EXISTS error is returned. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
	ProductId pulumi.StringInput
	Project   pulumi.StringPtrInput
	// The promotions applied to the product. A maximum of 10 values are allowed per Product. Only Promotion.promotion_id will be used, other fields will be ignored if set.
	Promotions GoogleCloudRetailV2PromotionArrayInput
	// The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from available_time, given it purely describes product freshness regardless of when it is available on search and recommendation.
	PublishTime pulumi.StringPtrInput
	// The rating of this product.
	Rating GoogleCloudRetailV2RatingPtrInput
	// Indicates which fields in the Products are returned in SearchResponse. Supported fields for all types: * audience * availability * brands * color_info * conditions * gtin * materials * name * patterns * price_info * rating * sizes * title * uri Supported fields only for Type.PRIMARY and Type.COLLECTION: * categories * description * images Supported fields only for Type.VARIANT: * Only the first image in images To mark attributes as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION, the following fields are always returned in SearchResponse by default: * name For Type.VARIANT, the following fields are always returned in by default: * name * color_info The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in SearchResponse can increase response payload size and serving latency.
	RetrievableFields pulumi.StringPtrInput
	// The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).
	Sizes pulumi.StringArrayInput
	// Custom tags associated with the product. At most 250 values are allowed per Product. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the PredictRequest.filter. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
	Tags pulumi.StringArrayInput
	// Product title. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [title](https://support.google.com/merchants/answer/6324415). Schema.org property [Product.name](https://schema.org/name).
	Title pulumi.StringInput
	// Input only. The TTL (time to live) of the product. If it is set, it must be a non-negative value, and expire_time is set as current timestamp plus ttl. The derived expire_time is returned in the output and ttl is left blank when retrieving the Product. If it is set, the product is not available for SearchService.Search after current timestamp plus ttl. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts.
	Ttl pulumi.StringPtrInput
	// Immutable. The type of the product. Default to Catalog.product_level_config.ingestion_product_type if unset.
	Type ProductTypePtrInput
	// Canonical URL directly linking to the product detail page. It is strongly recommended to provide a valid uri for the product, otherwise the service performance could be significantly degraded. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [link](https://support.google.com/merchants/answer/6324416). Schema.org property [Offer.url](https://schema.org/url).
	Uri pulumi.StringPtrInput
}

The set of arguments for constructing a Product resource.

func (ProductArgs) ElementType added in v0.3.0

func (ProductArgs) ElementType() reflect.Type

type ProductAvailability added in v0.4.0

type ProductAvailability string

The online availability of the Product. Default to Availability.IN_STOCK. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).

func (ProductAvailability) ElementType added in v0.4.0

func (ProductAvailability) ElementType() reflect.Type

func (ProductAvailability) ToProductAvailabilityOutput added in v0.6.0

func (e ProductAvailability) ToProductAvailabilityOutput() ProductAvailabilityOutput

func (ProductAvailability) ToProductAvailabilityOutputWithContext added in v0.6.0

func (e ProductAvailability) ToProductAvailabilityOutputWithContext(ctx context.Context) ProductAvailabilityOutput

func (ProductAvailability) ToProductAvailabilityPtrOutput added in v0.6.0

func (e ProductAvailability) ToProductAvailabilityPtrOutput() ProductAvailabilityPtrOutput

func (ProductAvailability) ToProductAvailabilityPtrOutputWithContext added in v0.6.0

func (e ProductAvailability) ToProductAvailabilityPtrOutputWithContext(ctx context.Context) ProductAvailabilityPtrOutput

func (ProductAvailability) ToStringOutput added in v0.4.0

func (e ProductAvailability) ToStringOutput() pulumi.StringOutput

func (ProductAvailability) ToStringOutputWithContext added in v0.4.0

func (e ProductAvailability) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput

func (ProductAvailability) ToStringPtrOutput added in v0.4.0

func (e ProductAvailability) ToStringPtrOutput() pulumi.StringPtrOutput

func (ProductAvailability) ToStringPtrOutputWithContext added in v0.4.0

func (e ProductAvailability) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

type ProductAvailabilityInput added in v0.6.0

type ProductAvailabilityInput interface {
	pulumi.Input

	ToProductAvailabilityOutput() ProductAvailabilityOutput
	ToProductAvailabilityOutputWithContext(context.Context) ProductAvailabilityOutput
}

ProductAvailabilityInput is an input type that accepts ProductAvailabilityArgs and ProductAvailabilityOutput values. You can construct a concrete instance of `ProductAvailabilityInput` via:

ProductAvailabilityArgs{...}

type ProductAvailabilityOutput added in v0.6.0

type ProductAvailabilityOutput struct{ *pulumi.OutputState }

func (ProductAvailabilityOutput) ElementType added in v0.6.0

func (ProductAvailabilityOutput) ElementType() reflect.Type

func (ProductAvailabilityOutput) ToProductAvailabilityOutput added in v0.6.0

func (o ProductAvailabilityOutput) ToProductAvailabilityOutput() ProductAvailabilityOutput

func (ProductAvailabilityOutput) ToProductAvailabilityOutputWithContext added in v0.6.0

func (o ProductAvailabilityOutput) ToProductAvailabilityOutputWithContext(ctx context.Context) ProductAvailabilityOutput

func (ProductAvailabilityOutput) ToProductAvailabilityPtrOutput added in v0.6.0

func (o ProductAvailabilityOutput) ToProductAvailabilityPtrOutput() ProductAvailabilityPtrOutput

func (ProductAvailabilityOutput) ToProductAvailabilityPtrOutputWithContext added in v0.6.0

func (o ProductAvailabilityOutput) ToProductAvailabilityPtrOutputWithContext(ctx context.Context) ProductAvailabilityPtrOutput

func (ProductAvailabilityOutput) ToStringOutput added in v0.6.0

func (o ProductAvailabilityOutput) ToStringOutput() pulumi.StringOutput

func (ProductAvailabilityOutput) ToStringOutputWithContext added in v0.6.0

func (o ProductAvailabilityOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput

func (ProductAvailabilityOutput) ToStringPtrOutput added in v0.6.0

func (o ProductAvailabilityOutput) ToStringPtrOutput() pulumi.StringPtrOutput

func (ProductAvailabilityOutput) ToStringPtrOutputWithContext added in v0.6.0

func (o ProductAvailabilityOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

type ProductAvailabilityPtrInput added in v0.6.0

type ProductAvailabilityPtrInput interface {
	pulumi.Input

	ToProductAvailabilityPtrOutput() ProductAvailabilityPtrOutput
	ToProductAvailabilityPtrOutputWithContext(context.Context) ProductAvailabilityPtrOutput
}

func ProductAvailabilityPtr added in v0.6.0

func ProductAvailabilityPtr(v string) ProductAvailabilityPtrInput

type ProductAvailabilityPtrOutput added in v0.6.0

type ProductAvailabilityPtrOutput struct{ *pulumi.OutputState }

func (ProductAvailabilityPtrOutput) Elem added in v0.6.0

func (ProductAvailabilityPtrOutput) ElementType added in v0.6.0

func (ProductAvailabilityPtrOutput) ToProductAvailabilityPtrOutput added in v0.6.0

func (o ProductAvailabilityPtrOutput) ToProductAvailabilityPtrOutput() ProductAvailabilityPtrOutput

func (ProductAvailabilityPtrOutput) ToProductAvailabilityPtrOutputWithContext added in v0.6.0

func (o ProductAvailabilityPtrOutput) ToProductAvailabilityPtrOutputWithContext(ctx context.Context) ProductAvailabilityPtrOutput

func (ProductAvailabilityPtrOutput) ToStringPtrOutput added in v0.6.0

func (o ProductAvailabilityPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput

func (ProductAvailabilityPtrOutput) ToStringPtrOutputWithContext added in v0.6.0

func (o ProductAvailabilityPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

type ProductInput added in v0.3.0

type ProductInput interface {
	pulumi.Input

	ToProductOutput() ProductOutput
	ToProductOutputWithContext(ctx context.Context) ProductOutput
}

type ProductOutput added in v0.3.0

type ProductOutput struct{ *pulumi.OutputState }

func (ProductOutput) Attributes added in v0.19.0

func (o ProductOutput) Attributes() pulumi.StringMapOutput

Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example, `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a non-empty UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed.

func (ProductOutput) Audience added in v0.19.0

The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.

func (ProductOutput) Availability added in v0.19.0

func (o ProductOutput) Availability() pulumi.StringOutput

The online availability of the Product. Default to Availability.IN_STOCK. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).

func (ProductOutput) AvailableQuantity added in v0.19.0

func (o ProductOutput) AvailableQuantity() pulumi.IntOutput

The available quantity of the item.

func (ProductOutput) AvailableTime added in v0.19.0

func (o ProductOutput) AvailableTime() pulumi.StringOutput

The timestamp when this Product becomes available for SearchService.Search.

func (ProductOutput) Brands added in v0.19.0

The brands of the product. A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [brand](https://support.google.com/merchants/answer/6324351). Schema.org property [Product.brand](https://schema.org/brand).

func (ProductOutput) Categories added in v0.19.0

func (o ProductOutput) Categories() pulumi.StringArrayOutput

Product categories. This field is repeated for supporting one product belonging to several parallel categories. Strongly recommended using the full path for better search / recommendation quality. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, please replace it with other character(s). For example, if a shoes product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic Clothing > Shoes" ] Must be set for Type.PRIMARY Product otherwise an INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property google_product_category. Schema.org property [Product.category] (https://schema.org/category). [mc_google_product_category]: https://support.google.com/merchants/answer/6324436

func (ProductOutput) CollectionMemberIds added in v0.19.0

func (o ProductOutput) CollectionMemberIds() pulumi.StringArrayOutput

The id of the collection members when type is Type.COLLECTION. Non-existent product ids are allowed. The type of the members must be either Type.PRIMARY or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set it for other types. A maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is return.

func (ProductOutput) ColorInfo added in v0.19.0

The color of the product. Corresponding properties: Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).

func (ProductOutput) Conditions added in v0.19.0

func (o ProductOutput) Conditions() pulumi.StringArrayOutput

The condition of the product. Strongly encouraged to use the standard values: "new", "refurbished", "used". A maximum of 1 value is allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [condition](https://support.google.com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://schema.org/itemCondition).

func (ProductOutput) Description added in v0.19.0

func (o ProductOutput) Description() pulumi.StringOutput

Product description. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [description](https://support.google.com/merchants/answer/6324468). Schema.org property [Product.description](https://schema.org/description).

func (ProductOutput) ElementType added in v0.3.0

func (ProductOutput) ElementType() reflect.Type

func (ProductOutput) ExpireTime added in v0.19.0

func (o ProductOutput) ExpireTime() pulumi.StringOutput

The timestamp when this product becomes unavailable for SearchService.Search. If it is set, the Product is not available for SearchService.Search after expire_time. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts. expire_time must be later than available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant Center property [expiration_date](https://support.google.com/merchants/answer/6324499).

func (ProductOutput) FulfillmentInfo added in v0.19.0

Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods. All the elements must have distinct FulfillmentInfo.type. Otherwise, an INVALID_ARGUMENT error is returned.

func (ProductOutput) Gtin added in v0.19.0

The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.

func (ProductOutput) Images added in v0.19.0

Product images for the product. We highly recommend putting the main image first. A maximum of 300 images are allowed. Corresponding properties: Google Merchant Center property [image_link](https://support.google.com/merchants/answer/6324350). Schema.org property [Product.image](https://schema.org/image).

func (ProductOutput) LanguageCode added in v0.19.0

func (o ProductOutput) LanguageCode() pulumi.StringOutput

Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For product prediction, this field is ignored and the model automatically detects the text language. The Product can include text in different languages, but duplicating Products to provide text in multiple languages can result in degraded model performance. For product search this field is in use. It defaults to "en-US" if unset.

func (ProductOutput) Materials added in v0.19.0

func (o ProductOutput) Materials() pulumi.StringArrayOutput

The material of the product. For example, "leather", "wooden". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).

func (ProductOutput) Name added in v0.19.0

Immutable. Full resource name of the product, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.

func (ProductOutput) Patterns added in v0.19.0

func (o ProductOutput) Patterns() pulumi.StringArrayOutput

The pattern or graphic print of the product. For example, "striped", "polka dot", "paisley". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).

func (ProductOutput) PriceInfo added in v0.19.0

Product price and cost information. Corresponding properties: Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).

func (ProductOutput) PrimaryProductId added in v0.19.0

func (o ProductOutput) PrimaryProductId() pulumi.StringOutput

Variant group identifier. Must be an id, with the same parent branch with this product. Otherwise, an error is thrown. For Type.PRIMARY Products, this field can only be empty or set to the same value as id. For VARIANT Products, this field cannot be empty. A maximum of 2,000 products are allowed to share the same Type.PRIMARY Product. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [item_group_id](https://support.google.com/merchants/answer/6324507). Schema.org property [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).

func (ProductOutput) Promotions added in v0.19.0

The promotions applied to the product. A maximum of 10 values are allowed per Product. Only Promotion.promotion_id will be used, other fields will be ignored if set.

func (ProductOutput) PublishTime added in v0.19.0

func (o ProductOutput) PublishTime() pulumi.StringOutput

The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products. Note that this field is different from available_time, given it purely describes product freshness regardless of when it is available on search and recommendation.

func (ProductOutput) Rating added in v0.19.0

The rating of this product.

func (ProductOutput) RetrievableFields added in v0.19.0

func (o ProductOutput) RetrievableFields() pulumi.StringOutput

Indicates which fields in the Products are returned in SearchResponse. Supported fields for all types: * audience * availability * brands * color_info * conditions * gtin * materials * name * patterns * price_info * rating * sizes * title * uri Supported fields only for Type.PRIMARY and Type.COLLECTION: * categories * description * images Supported fields only for Type.VARIANT: * Only the first image in images To mark attributes as retrievable, include paths of the form "attributes.key" where "key" is the key of a custom attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION, the following fields are always returned in SearchResponse by default: * name For Type.VARIANT, the following fields are always returned in by default: * name * color_info The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is returned. Note: Returning more fields in SearchResponse can increase response payload size and serving latency.

func (ProductOutput) Sizes added in v0.19.0

The size of the product. To represent different size systems or size types, consider using this format: [[[size_system:]size_type:]size_value]. For example, in "US:MENS:M", "US" represents size system; "MENS" represents size type; "M" represents size value. In "GIRLS:27", size system is empty; "GIRLS" represents size type; "27" represents size value. In "32 inches", both size system and size type are empty, while size value is "32 inches". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [size](https://support.google.com/merchants/answer/6324492), [size_type](https://support.google.com/merchants/answer/6324497), and [size_system](https://support.google.com/merchants/answer/6324502). Schema.org property [Product.size](https://schema.org/size).

func (ProductOutput) Tags added in v0.19.0

Custom tags associated with the product. At most 250 values are allowed per Product. This value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can be used for filtering recommendation results by passing the tag as part of the PredictRequest.filter. Corresponding properties: Google Merchant Center property [custom_label_0–4](https://support.google.com/merchants/answer/6324473).

func (ProductOutput) Title added in v0.19.0

func (o ProductOutput) Title() pulumi.StringOutput

Product title. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [title](https://support.google.com/merchants/answer/6324415). Schema.org property [Product.name](https://schema.org/name).

func (ProductOutput) ToProductOutput added in v0.3.0

func (o ProductOutput) ToProductOutput() ProductOutput

func (ProductOutput) ToProductOutputWithContext added in v0.3.0

func (o ProductOutput) ToProductOutputWithContext(ctx context.Context) ProductOutput

func (ProductOutput) Ttl added in v0.19.0

Input only. The TTL (time to live) of the product. If it is set, it must be a non-negative value, and expire_time is set as current timestamp plus ttl. The derived expire_time is returned in the output and ttl is left blank when retrieving the Product. If it is set, the product is not available for SearchService.Search after current timestamp plus ttl. However, the product can still be retrieved by ProductService.GetProduct and ProductService.ListProducts.

func (ProductOutput) Type added in v0.19.0

Immutable. The type of the product. Default to Catalog.product_level_config.ingestion_product_type if unset.

func (ProductOutput) Uri added in v0.19.0

Canonical URL directly linking to the product detail page. It is strongly recommended to provide a valid uri for the product, otherwise the service performance could be significantly degraded. This field must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant Center property [link](https://support.google.com/merchants/answer/6324416). Schema.org property [Offer.url](https://schema.org/url).

func (ProductOutput) Variants added in v0.19.0

Product variants grouped together on primary product which share similar product attributes. It's automatically grouped by primary_product_id for all the product variants. Only populated for Type.PRIMARY Products. Note: This field is OUTPUT_ONLY for ProductService.GetProduct. Do not set this field in API requests.

type ProductState added in v0.3.0

type ProductState struct {
}

func (ProductState) ElementType added in v0.3.0

func (ProductState) ElementType() reflect.Type

type ProductType added in v0.4.0

type ProductType string

Immutable. The type of the product. Default to Catalog.product_level_config.ingestion_product_type if unset.

func (ProductType) ElementType added in v0.4.0

func (ProductType) ElementType() reflect.Type

func (ProductType) ToProductTypeOutput added in v0.6.0

func (e ProductType) ToProductTypeOutput() ProductTypeOutput

func (ProductType) ToProductTypeOutputWithContext added in v0.6.0

func (e ProductType) ToProductTypeOutputWithContext(ctx context.Context) ProductTypeOutput

func (ProductType) ToProductTypePtrOutput added in v0.6.0

func (e ProductType) ToProductTypePtrOutput() ProductTypePtrOutput

func (ProductType) ToProductTypePtrOutputWithContext added in v0.6.0

func (e ProductType) ToProductTypePtrOutputWithContext(ctx context.Context) ProductTypePtrOutput

func (ProductType) ToStringOutput added in v0.4.0

func (e ProductType) ToStringOutput() pulumi.StringOutput

func (ProductType) ToStringOutputWithContext added in v0.4.0

func (e ProductType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput

func (ProductType) ToStringPtrOutput added in v0.4.0

func (e ProductType) ToStringPtrOutput() pulumi.StringPtrOutput

func (ProductType) ToStringPtrOutputWithContext added in v0.4.0

func (e ProductType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

type ProductTypeInput added in v0.6.0

type ProductTypeInput interface {
	pulumi.Input

	ToProductTypeOutput() ProductTypeOutput
	ToProductTypeOutputWithContext(context.Context) ProductTypeOutput
}

ProductTypeInput is an input type that accepts ProductTypeArgs and ProductTypeOutput values. You can construct a concrete instance of `ProductTypeInput` via:

ProductTypeArgs{...}

type ProductTypeOutput added in v0.6.0

type ProductTypeOutput struct{ *pulumi.OutputState }

func (ProductTypeOutput) ElementType added in v0.6.0

func (ProductTypeOutput) ElementType() reflect.Type

func (ProductTypeOutput) ToProductTypeOutput added in v0.6.0

func (o ProductTypeOutput) ToProductTypeOutput() ProductTypeOutput

func (ProductTypeOutput) ToProductTypeOutputWithContext added in v0.6.0

func (o ProductTypeOutput) ToProductTypeOutputWithContext(ctx context.Context) ProductTypeOutput

func (ProductTypeOutput) ToProductTypePtrOutput added in v0.6.0

func (o ProductTypeOutput) ToProductTypePtrOutput() ProductTypePtrOutput

func (ProductTypeOutput) ToProductTypePtrOutputWithContext added in v0.6.0

func (o ProductTypeOutput) ToProductTypePtrOutputWithContext(ctx context.Context) ProductTypePtrOutput

func (ProductTypeOutput) ToStringOutput added in v0.6.0

func (o ProductTypeOutput) ToStringOutput() pulumi.StringOutput

func (ProductTypeOutput) ToStringOutputWithContext added in v0.6.0

func (o ProductTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput

func (ProductTypeOutput) ToStringPtrOutput added in v0.6.0

func (o ProductTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput

func (ProductTypeOutput) ToStringPtrOutputWithContext added in v0.6.0

func (o ProductTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

type ProductTypePtrInput added in v0.6.0

type ProductTypePtrInput interface {
	pulumi.Input

	ToProductTypePtrOutput() ProductTypePtrOutput
	ToProductTypePtrOutputWithContext(context.Context) ProductTypePtrOutput
}

func ProductTypePtr added in v0.6.0

func ProductTypePtr(v string) ProductTypePtrInput

type ProductTypePtrOutput added in v0.6.0

type ProductTypePtrOutput struct{ *pulumi.OutputState }

func (ProductTypePtrOutput) Elem added in v0.6.0

func (ProductTypePtrOutput) ElementType added in v0.6.0

func (ProductTypePtrOutput) ElementType() reflect.Type

func (ProductTypePtrOutput) ToProductTypePtrOutput added in v0.6.0

func (o ProductTypePtrOutput) ToProductTypePtrOutput() ProductTypePtrOutput

func (ProductTypePtrOutput) ToProductTypePtrOutputWithContext added in v0.6.0

func (o ProductTypePtrOutput) ToProductTypePtrOutputWithContext(ctx context.Context) ProductTypePtrOutput

func (ProductTypePtrOutput) ToStringPtrOutput added in v0.6.0

func (o ProductTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput

func (ProductTypePtrOutput) ToStringPtrOutputWithContext added in v0.6.0

func (o ProductTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

Jump to

Keyboard shortcuts

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