Documentation
¶
Index ¶
- Variables
- func RegisterImageServiceServer(s *grpc.Server, srv ImageServiceServer)
- func RegisterTextSuggestionsServiceServer(s *grpc.Server, srv TextSuggestionsServiceServer)
- type GenerateImageBackgroundConfig
- func (*GenerateImageBackgroundConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateImageBackgroundConfig) GetBackgroundDescription() string
- func (x *GenerateImageBackgroundConfig) GetProductDescription() string
- func (*GenerateImageBackgroundConfig) ProtoMessage()
- func (x *GenerateImageBackgroundConfig) ProtoReflect() protoreflect.Message
- func (x *GenerateImageBackgroundConfig) Reset()
- func (x *GenerateImageBackgroundConfig) String() string
- type GenerateProductImageBackgroundRequest
- func (*GenerateProductImageBackgroundRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateProductImageBackgroundRequest) GetConfig() *GenerateImageBackgroundConfig
- func (x *GenerateProductImageBackgroundRequest) GetInputImage() *InputImage
- func (x *GenerateProductImageBackgroundRequest) GetName() string
- func (x *GenerateProductImageBackgroundRequest) GetOutputConfig() *OutputImageConfig
- func (*GenerateProductImageBackgroundRequest) ProtoMessage()
- func (x *GenerateProductImageBackgroundRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateProductImageBackgroundRequest) Reset()
- func (x *GenerateProductImageBackgroundRequest) String() string
- type GenerateProductImageBackgroundResponse
- func (*GenerateProductImageBackgroundResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateProductImageBackgroundResponse) GetGeneratedImage() *GeneratedImage
- func (*GenerateProductImageBackgroundResponse) ProtoMessage()
- func (x *GenerateProductImageBackgroundResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateProductImageBackgroundResponse) Reset()
- func (x *GenerateProductImageBackgroundResponse) String() string
- type GenerateProductTextSuggestionsRequest
- func (*GenerateProductTextSuggestionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateProductTextSuggestionsRequest) GetName() string
- func (x *GenerateProductTextSuggestionsRequest) GetOutputSpec() *OutputSpec
- func (x *GenerateProductTextSuggestionsRequest) GetProductInfo() *ProductInfo
- func (x *GenerateProductTextSuggestionsRequest) GetTitleExamples() []*TitleExample
- func (*GenerateProductTextSuggestionsRequest) ProtoMessage()
- func (x *GenerateProductTextSuggestionsRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateProductTextSuggestionsRequest) Reset()
- func (x *GenerateProductTextSuggestionsRequest) String() string
- type GenerateProductTextSuggestionsResponse
- func (*GenerateProductTextSuggestionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateProductTextSuggestionsResponse) GetAttributes() map[string]string
- func (x *GenerateProductTextSuggestionsResponse) GetDescription() *ProductTextGenerationSuggestion
- func (x *GenerateProductTextSuggestionsResponse) GetMetadata() *ProductTextGenerationMetadata
- func (x *GenerateProductTextSuggestionsResponse) GetTitle() *ProductTextGenerationSuggestion
- func (*GenerateProductTextSuggestionsResponse) ProtoMessage()
- func (x *GenerateProductTextSuggestionsResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateProductTextSuggestionsResponse) Reset()
- func (x *GenerateProductTextSuggestionsResponse) String() string
- type GeneratedImage
- func (*GeneratedImage) Descriptor() ([]byte, []int)deprecated
- func (x *GeneratedImage) GetGenerationTime() *timestamppb.Timestamp
- func (m *GeneratedImage) GetImage() isGeneratedImage_Image
- func (x *GeneratedImage) GetImageBytes() []byte
- func (x *GeneratedImage) GetName() string
- func (x *GeneratedImage) GetUri() string
- func (*GeneratedImage) ProtoMessage()
- func (x *GeneratedImage) ProtoReflect() protoreflect.Message
- func (x *GeneratedImage) Reset()
- func (x *GeneratedImage) String() string
- type GeneratedImage_ImageBytes
- type GeneratedImage_Uri
- type Image
- type ImageServiceClient
- type ImageServiceServer
- type Image_Data
- type Image_Uri
- type InputImage
- func (*InputImage) Descriptor() ([]byte, []int)deprecated
- func (m *InputImage) GetImage() isInputImage_Image
- func (x *InputImage) GetImageBytes() []byte
- func (x *InputImage) GetImageUri() string
- func (*InputImage) ProtoMessage()
- func (x *InputImage) ProtoReflect() protoreflect.Message
- func (x *InputImage) Reset()
- func (x *InputImage) String() string
- type InputImage_ImageBytes
- type InputImage_ImageUri
- type OutputImageConfig
- func (*OutputImageConfig) Descriptor() ([]byte, []int)deprecated
- func (x *OutputImageConfig) GetReturnImageUri() bool
- func (*OutputImageConfig) ProtoMessage()
- func (x *OutputImageConfig) ProtoReflect() protoreflect.Message
- func (x *OutputImageConfig) Reset()
- func (x *OutputImageConfig) String() string
- type OutputSpec
- func (*OutputSpec) Descriptor() ([]byte, []int)deprecated
- func (x *OutputSpec) GetAttributeOrder() []string
- func (x *OutputSpec) GetAttributeSeparator() string
- func (x *OutputSpec) GetEditorialChanges() string
- func (x *OutputSpec) GetTargetLanguage() string
- func (x *OutputSpec) GetTone() string
- func (x *OutputSpec) GetWorkflowId() string
- func (*OutputSpec) ProtoMessage()
- func (x *OutputSpec) ProtoReflect() protoreflect.Message
- func (x *OutputSpec) Reset()
- func (x *OutputSpec) String() string
- type ProductInfo
- func (*ProductInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProductInfo) GetProductAttributes() map[string]string
- func (x *ProductInfo) GetProductImage() *Image
- func (*ProductInfo) ProtoMessage()
- func (x *ProductInfo) ProtoReflect() protoreflect.Message
- func (x *ProductInfo) Reset()
- func (x *ProductInfo) String() string
- type ProductTextGenerationMetadata
- func (*ProductTextGenerationMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *ProductTextGenerationMetadata) GetMetadata() *structpb.Struct
- func (*ProductTextGenerationMetadata) ProtoMessage()
- func (x *ProductTextGenerationMetadata) ProtoReflect() protoreflect.Message
- func (x *ProductTextGenerationMetadata) Reset()
- func (x *ProductTextGenerationMetadata) String() string
- type ProductTextGenerationSuggestion
- func (*ProductTextGenerationSuggestion) Descriptor() ([]byte, []int)deprecated
- func (x *ProductTextGenerationSuggestion) GetChangeSummary() string
- func (x *ProductTextGenerationSuggestion) GetScore() float32
- func (x *ProductTextGenerationSuggestion) GetText() string
- func (*ProductTextGenerationSuggestion) ProtoMessage()
- func (x *ProductTextGenerationSuggestion) ProtoReflect() protoreflect.Message
- func (x *ProductTextGenerationSuggestion) Reset()
- func (x *ProductTextGenerationSuggestion) String() string
- type RemoveImageBackgroundConfig
- func (*RemoveImageBackgroundConfig) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveImageBackgroundConfig) GetBackgroundColor() *RgbColor
- func (*RemoveImageBackgroundConfig) ProtoMessage()
- func (x *RemoveImageBackgroundConfig) ProtoReflect() protoreflect.Message
- func (x *RemoveImageBackgroundConfig) Reset()
- func (x *RemoveImageBackgroundConfig) String() string
- type RemoveProductImageBackgroundRequest
- func (*RemoveProductImageBackgroundRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveProductImageBackgroundRequest) GetConfig() *RemoveImageBackgroundConfig
- func (x *RemoveProductImageBackgroundRequest) GetInputImage() *InputImage
- func (x *RemoveProductImageBackgroundRequest) GetName() string
- func (x *RemoveProductImageBackgroundRequest) GetOutputConfig() *OutputImageConfig
- func (*RemoveProductImageBackgroundRequest) ProtoMessage()
- func (x *RemoveProductImageBackgroundRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveProductImageBackgroundRequest) Reset()
- func (x *RemoveProductImageBackgroundRequest) String() string
- type RemoveProductImageBackgroundResponse
- func (*RemoveProductImageBackgroundResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveProductImageBackgroundResponse) GetGeneratedImage() *GeneratedImage
- func (*RemoveProductImageBackgroundResponse) ProtoMessage()
- func (x *RemoveProductImageBackgroundResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveProductImageBackgroundResponse) Reset()
- func (x *RemoveProductImageBackgroundResponse) String() string
- type RgbColor
- func (*RgbColor) Descriptor() ([]byte, []int)deprecated
- func (x *RgbColor) GetBlue() int32
- func (x *RgbColor) GetGreen() int32
- func (x *RgbColor) GetRed() int32
- func (*RgbColor) ProtoMessage()
- func (x *RgbColor) ProtoReflect() protoreflect.Message
- func (x *RgbColor) Reset()
- func (x *RgbColor) String() string
- type TextSuggestionsServiceClient
- type TextSuggestionsServiceServer
- type TitleExample
- func (*TitleExample) Descriptor() ([]byte, []int)deprecated
- func (x *TitleExample) GetCategory() string
- func (x *TitleExample) GetFinalProductInfo() map[string]string
- func (x *TitleExample) GetProductInfo() map[string]string
- func (x *TitleExample) GetTitleFormat() string
- func (*TitleExample) ProtoMessage()
- func (x *TitleExample) ProtoReflect() protoreflect.Message
- func (x *TitleExample) Reset()
- func (x *TitleExample) String() string
- type UnimplementedImageServiceServer
- func (*UnimplementedImageServiceServer) GenerateProductImageBackground(context.Context, *GenerateProductImageBackgroundRequest) (*GenerateProductImageBackgroundResponse, error)
- func (*UnimplementedImageServiceServer) RemoveProductImageBackground(context.Context, *RemoveProductImageBackgroundRequest) (*RemoveProductImageBackgroundResponse, error)
- func (*UnimplementedImageServiceServer) UpscaleProductImage(context.Context, *UpscaleProductImageRequest) (*UpscaleProductImageResponse, error)
- type UnimplementedTextSuggestionsServiceServer
- type UpscaleProductImageRequest
- func (*UpscaleProductImageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpscaleProductImageRequest) GetInputImage() *InputImage
- func (x *UpscaleProductImageRequest) GetName() string
- func (x *UpscaleProductImageRequest) GetOutputConfig() *OutputImageConfig
- func (*UpscaleProductImageRequest) ProtoMessage()
- func (x *UpscaleProductImageRequest) ProtoReflect() protoreflect.Message
- func (x *UpscaleProductImageRequest) Reset()
- func (x *UpscaleProductImageRequest) String() string
- type UpscaleProductImageResponse
- func (*UpscaleProductImageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpscaleProductImageResponse) GetGeneratedImage() *GeneratedImage
- func (*UpscaleProductImageResponse) ProtoMessage()
- func (x *UpscaleProductImageResponse) ProtoReflect() protoreflect.Message
- func (x *UpscaleProductImageResponse) Reset()
- func (x *UpscaleProductImageResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_google_shopping_merchant_productstudio_v1alpha_image_proto protoreflect.FileDescriptor
var File_google_shopping_merchant_productstudio_v1alpha_productstudio_common_proto protoreflect.FileDescriptor
var File_google_shopping_merchant_productstudio_v1alpha_textsuggestions_proto protoreflect.FileDescriptor
Functions ¶
func RegisterImageServiceServer ¶
func RegisterImageServiceServer(s *grpc.Server, srv ImageServiceServer)
func RegisterTextSuggestionsServiceServer ¶
func RegisterTextSuggestionsServiceServer(s *grpc.Server, srv TextSuggestionsServiceServer)
Types ¶
type GenerateImageBackgroundConfig ¶
type GenerateImageBackgroundConfig struct { // Required. Example: "Hat on a baseball field" // "Hat" = product description // Description of product. ProductDescription string `protobuf:"bytes,1,opt,name=product_description,json=productDescription,proto3" json:"product_description,omitempty"` // Required. Example: "Hat on a baseball field" // "on a baseball field" = background description // Description of wanted background. BackgroundDescription string `protobuf:"bytes,2,opt,name=background_description,json=backgroundDescription,proto3" json:"background_description,omitempty"` // contains filtered or unexported fields }
Client provided input configuration for generating the background.
func (*GenerateImageBackgroundConfig) Descriptor
deprecated
func (*GenerateImageBackgroundConfig) Descriptor() ([]byte, []int)
Deprecated: Use GenerateImageBackgroundConfig.ProtoReflect.Descriptor instead.
func (*GenerateImageBackgroundConfig) GetBackgroundDescription ¶
func (x *GenerateImageBackgroundConfig) GetBackgroundDescription() string
func (*GenerateImageBackgroundConfig) GetProductDescription ¶
func (x *GenerateImageBackgroundConfig) GetProductDescription() string
func (*GenerateImageBackgroundConfig) ProtoMessage ¶
func (*GenerateImageBackgroundConfig) ProtoMessage()
func (*GenerateImageBackgroundConfig) ProtoReflect ¶
func (x *GenerateImageBackgroundConfig) ProtoReflect() protoreflect.Message
func (*GenerateImageBackgroundConfig) Reset ¶
func (x *GenerateImageBackgroundConfig) Reset()
func (*GenerateImageBackgroundConfig) String ¶
func (x *GenerateImageBackgroundConfig) String() string
type GenerateProductImageBackgroundRequest ¶
type GenerateProductImageBackgroundRequest struct { // Required. The account for which to generate an image. This acts as a // container for the request and does not affect the generation itself. // Format: accounts/{account} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Optional. Configuration for how the output image should be returned. OutputConfig *OutputImageConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` // Required. The input image. InputImage *InputImage `protobuf:"bytes,3,opt,name=input_image,json=inputImage,proto3" json:"input_image,omitempty"` // Required. Configuration parameters for the generation of the background. Config *GenerateImageBackgroundConfig `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
Request message for the GenerateProductImageBackground method.
func (*GenerateProductImageBackgroundRequest) Descriptor
deprecated
func (*GenerateProductImageBackgroundRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateProductImageBackgroundRequest.ProtoReflect.Descriptor instead.
func (*GenerateProductImageBackgroundRequest) GetConfig ¶
func (x *GenerateProductImageBackgroundRequest) GetConfig() *GenerateImageBackgroundConfig
func (*GenerateProductImageBackgroundRequest) GetInputImage ¶
func (x *GenerateProductImageBackgroundRequest) GetInputImage() *InputImage
func (*GenerateProductImageBackgroundRequest) GetName ¶
func (x *GenerateProductImageBackgroundRequest) GetName() string
func (*GenerateProductImageBackgroundRequest) GetOutputConfig ¶
func (x *GenerateProductImageBackgroundRequest) GetOutputConfig() *OutputImageConfig
func (*GenerateProductImageBackgroundRequest) ProtoMessage ¶
func (*GenerateProductImageBackgroundRequest) ProtoMessage()
func (*GenerateProductImageBackgroundRequest) ProtoReflect ¶
func (x *GenerateProductImageBackgroundRequest) ProtoReflect() protoreflect.Message
func (*GenerateProductImageBackgroundRequest) Reset ¶
func (x *GenerateProductImageBackgroundRequest) Reset()
func (*GenerateProductImageBackgroundRequest) String ¶
func (x *GenerateProductImageBackgroundRequest) String() string
type GenerateProductImageBackgroundResponse ¶
type GenerateProductImageBackgroundResponse struct { // The generated output image. GeneratedImage *GeneratedImage `protobuf:"bytes,1,opt,name=generated_image,json=generatedImage,proto3" json:"generated_image,omitempty"` // contains filtered or unexported fields }
Response message for the GenerateProductImageBackground method.
func (*GenerateProductImageBackgroundResponse) Descriptor
deprecated
func (*GenerateProductImageBackgroundResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateProductImageBackgroundResponse.ProtoReflect.Descriptor instead.
func (*GenerateProductImageBackgroundResponse) GetGeneratedImage ¶
func (x *GenerateProductImageBackgroundResponse) GetGeneratedImage() *GeneratedImage
func (*GenerateProductImageBackgroundResponse) ProtoMessage ¶
func (*GenerateProductImageBackgroundResponse) ProtoMessage()
func (*GenerateProductImageBackgroundResponse) ProtoReflect ¶
func (x *GenerateProductImageBackgroundResponse) ProtoReflect() protoreflect.Message
func (*GenerateProductImageBackgroundResponse) Reset ¶
func (x *GenerateProductImageBackgroundResponse) Reset()
func (*GenerateProductImageBackgroundResponse) String ¶
func (x *GenerateProductImageBackgroundResponse) String() string
type GenerateProductTextSuggestionsRequest ¶
type GenerateProductTextSuggestionsRequest struct { // Required. The name of the account to generate text suggestions for. This // acts as a container for the request and does not affect the generation // itself, as this is a stateless API. Format: accounts/{account} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. Available information about the product. Used to inform the genAI // models. ProductInfo *ProductInfo `protobuf:"bytes,2,opt,name=product_info,json=productInfo,proto3" json:"product_info,omitempty"` // Optional. Configuration parameters that directly influence what content is // generated, and how that content is rendered in the final response. OutputSpec *OutputSpec `protobuf:"bytes,3,opt,name=output_spec,json=outputSpec,proto3,oneof" json:"output_spec,omitempty"` // Optional. Provide some hand-crafted examples of title improvements that are // unique to your use case. This is a general tool that handles multiple // product categories, but your brand identity may require custom // functionality. Feel free to specify that here. TitleExamples []*TitleExample `protobuf:"bytes,4,rep,name=title_examples,json=titleExamples,proto3" json:"title_examples,omitempty"` // contains filtered or unexported fields }
Request message for the GenerateProductTextSuggestions method.
func (*GenerateProductTextSuggestionsRequest) Descriptor
deprecated
func (*GenerateProductTextSuggestionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateProductTextSuggestionsRequest.ProtoReflect.Descriptor instead.
func (*GenerateProductTextSuggestionsRequest) GetName ¶
func (x *GenerateProductTextSuggestionsRequest) GetName() string
func (*GenerateProductTextSuggestionsRequest) GetOutputSpec ¶
func (x *GenerateProductTextSuggestionsRequest) GetOutputSpec() *OutputSpec
func (*GenerateProductTextSuggestionsRequest) GetProductInfo ¶
func (x *GenerateProductTextSuggestionsRequest) GetProductInfo() *ProductInfo
func (*GenerateProductTextSuggestionsRequest) GetTitleExamples ¶
func (x *GenerateProductTextSuggestionsRequest) GetTitleExamples() []*TitleExample
func (*GenerateProductTextSuggestionsRequest) ProtoMessage ¶
func (*GenerateProductTextSuggestionsRequest) ProtoMessage()
func (*GenerateProductTextSuggestionsRequest) ProtoReflect ¶
func (x *GenerateProductTextSuggestionsRequest) ProtoReflect() protoreflect.Message
func (*GenerateProductTextSuggestionsRequest) Reset ¶
func (x *GenerateProductTextSuggestionsRequest) Reset()
func (*GenerateProductTextSuggestionsRequest) String ¶
func (x *GenerateProductTextSuggestionsRequest) String() string
type GenerateProductTextSuggestionsResponse ¶
type GenerateProductTextSuggestionsResponse struct { // Generated title suggestion. Title *ProductTextGenerationSuggestion `protobuf:"bytes,1,opt,name=title,proto3,oneof" json:"title,omitempty"` // Generated description suggestion. Description *ProductTextGenerationSuggestion `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"` // Any other generated attributes. Attributes map[string]string `` /* 161-byte string literal not displayed */ // Additional info that clients may want to audit surrounding the generation. Metadata *ProductTextGenerationMetadata `protobuf:"bytes,4,opt,name=metadata,proto3,oneof" json:"metadata,omitempty"` // contains filtered or unexported fields }
Response message for the GenerateProductTextSuggestions method.
func (*GenerateProductTextSuggestionsResponse) Descriptor
deprecated
func (*GenerateProductTextSuggestionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateProductTextSuggestionsResponse.ProtoReflect.Descriptor instead.
func (*GenerateProductTextSuggestionsResponse) GetAttributes ¶
func (x *GenerateProductTextSuggestionsResponse) GetAttributes() map[string]string
func (*GenerateProductTextSuggestionsResponse) GetDescription ¶
func (x *GenerateProductTextSuggestionsResponse) GetDescription() *ProductTextGenerationSuggestion
func (*GenerateProductTextSuggestionsResponse) GetMetadata ¶
func (x *GenerateProductTextSuggestionsResponse) GetMetadata() *ProductTextGenerationMetadata
func (*GenerateProductTextSuggestionsResponse) GetTitle ¶
func (x *GenerateProductTextSuggestionsResponse) GetTitle() *ProductTextGenerationSuggestion
func (*GenerateProductTextSuggestionsResponse) ProtoMessage ¶
func (*GenerateProductTextSuggestionsResponse) ProtoMessage()
func (*GenerateProductTextSuggestionsResponse) ProtoReflect ¶
func (x *GenerateProductTextSuggestionsResponse) ProtoReflect() protoreflect.Message
func (*GenerateProductTextSuggestionsResponse) Reset ¶
func (x *GenerateProductTextSuggestionsResponse) Reset()
func (*GenerateProductTextSuggestionsResponse) String ¶
func (x *GenerateProductTextSuggestionsResponse) String() string
type GeneratedImage ¶
type GeneratedImage struct { // The generated image. // // Types that are assignable to Image: // // *GeneratedImage_Uri // *GeneratedImage_ImageBytes Image isGeneratedImage_Image `protobuf_oneof:"image"` // Identifier. The unique key for the image. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The timestamp when the image was generated. GenerationTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=generation_time,json=generationTime,proto3" json:"generation_time,omitempty"` // contains filtered or unexported fields }
Represents a generated image object.
func (*GeneratedImage) Descriptor
deprecated
func (*GeneratedImage) Descriptor() ([]byte, []int)
Deprecated: Use GeneratedImage.ProtoReflect.Descriptor instead.
func (*GeneratedImage) GetGenerationTime ¶
func (x *GeneratedImage) GetGenerationTime() *timestamppb.Timestamp
func (*GeneratedImage) GetImage ¶
func (m *GeneratedImage) GetImage() isGeneratedImage_Image
func (*GeneratedImage) GetImageBytes ¶
func (x *GeneratedImage) GetImageBytes() []byte
func (*GeneratedImage) GetName ¶
func (x *GeneratedImage) GetName() string
func (*GeneratedImage) GetUri ¶
func (x *GeneratedImage) GetUri() string
func (*GeneratedImage) ProtoMessage ¶
func (*GeneratedImage) ProtoMessage()
func (*GeneratedImage) ProtoReflect ¶
func (x *GeneratedImage) ProtoReflect() protoreflect.Message
func (*GeneratedImage) Reset ¶
func (x *GeneratedImage) Reset()
func (*GeneratedImage) String ¶
func (x *GeneratedImage) String() string
type GeneratedImage_ImageBytes ¶
type GeneratedImage_ImageBytes struct { // Raw bytes for the image. ImageBytes []byte `protobuf:"bytes,3,opt,name=image_bytes,json=imageBytes,proto3,oneof"` }
type GeneratedImage_Uri ¶
type GeneratedImage_Uri struct { // Generally web-requestable URI of the generated image. This is a temporary // URI and will expire after 6 months. A URI may not be populated // immediately after generation. Use get or list api using image_id to get // the URI. Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` }
type Image ¶
type Image struct { // Required. The image to use for text generation. // // Types that are assignable to Image: // // *Image_Uri // *Image_Data Image isImage_Image `protobuf_oneof:"image"` // contains filtered or unexported fields }
Product image represented as bytes directly or a URI.
func (*Image) Descriptor
deprecated
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type ImageServiceClient ¶
type ImageServiceClient interface { // GenerateProductImageBackground generates a new image where the background // of the original image is replaced by an AI generated scene based on // provided product information and a text prompt. GenerateProductImageBackground(ctx context.Context, in *GenerateProductImageBackgroundRequest, opts ...grpc.CallOption) (*GenerateProductImageBackgroundResponse, error) // RemoveProductImageBackground generates a new image where the background of // the original image is removed. RemoveProductImageBackground(ctx context.Context, in *RemoveProductImageBackgroundRequest, opts ...grpc.CallOption) (*RemoveProductImageBackgroundResponse, error) // UpscaleProductImage generates a new image where the resolution of the // original image is enhanced. UpscaleProductImage(ctx context.Context, in *UpscaleProductImageRequest, opts ...grpc.CallOption) (*UpscaleProductImageResponse, error) }
ImageServiceClient is the client API for ImageService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewImageServiceClient ¶
func NewImageServiceClient(cc grpc.ClientConnInterface) ImageServiceClient
type ImageServiceServer ¶
type ImageServiceServer interface { // GenerateProductImageBackground generates a new image where the background // of the original image is replaced by an AI generated scene based on // provided product information and a text prompt. GenerateProductImageBackground(context.Context, *GenerateProductImageBackgroundRequest) (*GenerateProductImageBackgroundResponse, error) // RemoveProductImageBackground generates a new image where the background of // the original image is removed. RemoveProductImageBackground(context.Context, *RemoveProductImageBackgroundRequest) (*RemoveProductImageBackgroundResponse, error) // UpscaleProductImage generates a new image where the resolution of the // original image is enhanced. UpscaleProductImage(context.Context, *UpscaleProductImageRequest) (*UpscaleProductImageResponse, error) }
ImageServiceServer is the server API for ImageService service.
type Image_Data ¶
type Image_Data struct { // Raw bytes for the image. Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"` }
type Image_Uri ¶
type Image_Uri struct { // Generally web-requestable URI. Uri string `protobuf:"bytes,1,opt,name=uri,proto3,oneof"` }
type InputImage ¶
type InputImage struct { // The input image. // // Types that are assignable to Image: // // *InputImage_ImageUri // *InputImage_ImageBytes Image isInputImage_Image `protobuf_oneof:"image"` // contains filtered or unexported fields }
Represents an input image.
func (*InputImage) Descriptor
deprecated
func (*InputImage) Descriptor() ([]byte, []int)
Deprecated: Use InputImage.ProtoReflect.Descriptor instead.
func (*InputImage) GetImage ¶
func (m *InputImage) GetImage() isInputImage_Image
func (*InputImage) GetImageBytes ¶
func (x *InputImage) GetImageBytes() []byte
func (*InputImage) GetImageUri ¶
func (x *InputImage) GetImageUri() string
func (*InputImage) ProtoMessage ¶
func (*InputImage) ProtoMessage()
func (*InputImage) ProtoReflect ¶
func (x *InputImage) ProtoReflect() protoreflect.Message
func (*InputImage) Reset ¶
func (x *InputImage) Reset()
func (*InputImage) String ¶
func (x *InputImage) String() string
type InputImage_ImageBytes ¶
type InputImage_ImageBytes struct { // Raw image bytes. ImageBytes []byte `protobuf:"bytes,2,opt,name=image_bytes,json=imageBytes,proto3,oneof"` }
type InputImage_ImageUri ¶
type InputImage_ImageUri struct { // Public uri of the image. ImageUri string `protobuf:"bytes,1,opt,name=image_uri,json=imageUri,proto3,oneof"` }
type OutputImageConfig ¶
type OutputImageConfig struct { // Optional. If true, returns the output images as serving uris instead of // bytes. ReturnImageUri bool `protobuf:"varint,1,opt,name=return_image_uri,json=returnImageUri,proto3" json:"return_image_uri,omitempty"` // contains filtered or unexported fields }
Configuration for how the output image should be returned.
func (*OutputImageConfig) Descriptor
deprecated
func (*OutputImageConfig) Descriptor() ([]byte, []int)
Deprecated: Use OutputImageConfig.ProtoReflect.Descriptor instead.
func (*OutputImageConfig) GetReturnImageUri ¶
func (x *OutputImageConfig) GetReturnImageUri() bool
func (*OutputImageConfig) ProtoMessage ¶
func (*OutputImageConfig) ProtoMessage()
func (*OutputImageConfig) ProtoReflect ¶
func (x *OutputImageConfig) ProtoReflect() protoreflect.Message
func (*OutputImageConfig) Reset ¶
func (x *OutputImageConfig) Reset()
func (*OutputImageConfig) String ¶
func (x *OutputImageConfig) String() string
type OutputSpec ¶
type OutputSpec struct { // Optional. The workflow to execute for the provided product data. Workflows // may populate the response's title, description, or both. Currently // supported workflow_ids are: "title", "description", and "tide" WorkflowId *string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3,oneof" json:"workflow_id,omitempty"` // Optional. The tone of the output generated text. Supported tones are: // "playful", "formal", "persuasive", and "conversational" Tone *string `protobuf:"bytes,2,opt,name=tone,proto3,oneof" json:"tone,omitempty"` // Optional. Any editorial changes for the generated product data. For // example, replace Small with "S", do not modify color if already present. EditorialChanges *string `protobuf:"bytes,3,opt,name=editorial_changes,json=editorialChanges,proto3,oneof" json:"editorial_changes,omitempty"` // Optional. The language for output titles/descriptions. For example. // 'German', 'es', 'FR'. Default is 'en'. TargetLanguage *string `protobuf:"bytes,4,opt,name=target_language,json=targetLanguage,proto3,oneof" json:"target_language,omitempty"` // Optional. The order that generated attributes should be placed in the // generated title. Eg., if the attribute order is ["brand", "product", // "size"], the generated title will have brand first, followed by the product // name, and then size information after that. AttributeOrder []string `protobuf:"bytes,5,rep,name=attribute_order,json=attributeOrder,proto3" json:"attribute_order,omitempty"` // Optional. Character used to separate attributes in the generated title. // For example, '|', '-', ','. AttributeSeparator *string `protobuf:"bytes,6,opt,name=attribute_separator,json=attributeSeparator,proto3,oneof" json:"attribute_separator,omitempty"` // contains filtered or unexported fields }
Configuration parameters that directly influence what content is generated, and how that content is rendered in the final response.
func (*OutputSpec) Descriptor
deprecated
func (*OutputSpec) Descriptor() ([]byte, []int)
Deprecated: Use OutputSpec.ProtoReflect.Descriptor instead.
func (*OutputSpec) GetAttributeOrder ¶
func (x *OutputSpec) GetAttributeOrder() []string
func (*OutputSpec) GetAttributeSeparator ¶
func (x *OutputSpec) GetAttributeSeparator() string
func (*OutputSpec) GetEditorialChanges ¶
func (x *OutputSpec) GetEditorialChanges() string
func (*OutputSpec) GetTargetLanguage ¶
func (x *OutputSpec) GetTargetLanguage() string
func (*OutputSpec) GetTone ¶
func (x *OutputSpec) GetTone() string
func (*OutputSpec) GetWorkflowId ¶
func (x *OutputSpec) GetWorkflowId() string
func (*OutputSpec) ProtoMessage ¶
func (*OutputSpec) ProtoMessage()
func (*OutputSpec) ProtoReflect ¶
func (x *OutputSpec) ProtoReflect() protoreflect.Message
func (*OutputSpec) Reset ¶
func (x *OutputSpec) Reset()
func (*OutputSpec) String ¶
func (x *OutputSpec) String() string
type ProductInfo ¶
type ProductInfo struct { // Required. A mapping of all available product attributes. This may include // title, description, brand, gender, color, size, etc. ProductAttributes map[string]string `` /* 200-byte string literal not displayed */ // Optional. Image associated with the product. ProductImage *Image `protobuf:"bytes,2,opt,name=product_image,json=productImage,proto3,oneof" json:"product_image,omitempty"` // contains filtered or unexported fields }
Available information about the product. Used to inform the genAI models.
func (*ProductInfo) Descriptor
deprecated
func (*ProductInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProductInfo.ProtoReflect.Descriptor instead.
func (*ProductInfo) GetProductAttributes ¶
func (x *ProductInfo) GetProductAttributes() map[string]string
func (*ProductInfo) GetProductImage ¶
func (x *ProductInfo) GetProductImage() *Image
func (*ProductInfo) ProtoMessage ¶
func (*ProductInfo) ProtoMessage()
func (*ProductInfo) ProtoReflect ¶
func (x *ProductInfo) ProtoReflect() protoreflect.Message
func (*ProductInfo) Reset ¶
func (x *ProductInfo) Reset()
func (*ProductInfo) String ¶
func (x *ProductInfo) String() string
type ProductTextGenerationMetadata ¶
type ProductTextGenerationMetadata struct { // Metadata is a pretty loose concept. The data is modeled as a map here to // indicate that there is no guaranteed structure to the output past a simple // K:V association. // The first use-case is to track words added/removed/changed in generations. Metadata *structpb.Struct `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
Wrapper data type for any metadata associated with text generation.
func (*ProductTextGenerationMetadata) Descriptor
deprecated
func (*ProductTextGenerationMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ProductTextGenerationMetadata.ProtoReflect.Descriptor instead.
func (*ProductTextGenerationMetadata) GetMetadata ¶
func (x *ProductTextGenerationMetadata) GetMetadata() *structpb.Struct
func (*ProductTextGenerationMetadata) ProtoMessage ¶
func (*ProductTextGenerationMetadata) ProtoMessage()
func (*ProductTextGenerationMetadata) ProtoReflect ¶
func (x *ProductTextGenerationMetadata) ProtoReflect() protoreflect.Message
func (*ProductTextGenerationMetadata) Reset ¶
func (x *ProductTextGenerationMetadata) Reset()
func (*ProductTextGenerationMetadata) String ¶
func (x *ProductTextGenerationMetadata) String() string
type ProductTextGenerationSuggestion ¶
type ProductTextGenerationSuggestion struct { // The text generated Text *string `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"` // The quality score associated with the generation. Heuristic implemented // according to the feedgen team's implementation styles. Score *float32 `protobuf:"fixed32,2,opt,name=score,proto3,oneof" json:"score,omitempty"` // A brief summarization of all the changes that have been made. ChangeSummary *string `protobuf:"bytes,3,opt,name=change_summary,json=changeSummary,proto3,oneof" json:"change_summary,omitempty"` // contains filtered or unexported fields }
Text generated for a product, optionally including its quality score.
func (*ProductTextGenerationSuggestion) Descriptor
deprecated
func (*ProductTextGenerationSuggestion) Descriptor() ([]byte, []int)
Deprecated: Use ProductTextGenerationSuggestion.ProtoReflect.Descriptor instead.
func (*ProductTextGenerationSuggestion) GetChangeSummary ¶
func (x *ProductTextGenerationSuggestion) GetChangeSummary() string
func (*ProductTextGenerationSuggestion) GetScore ¶
func (x *ProductTextGenerationSuggestion) GetScore() float32
func (*ProductTextGenerationSuggestion) GetText ¶
func (x *ProductTextGenerationSuggestion) GetText() string
func (*ProductTextGenerationSuggestion) ProtoMessage ¶
func (*ProductTextGenerationSuggestion) ProtoMessage()
func (*ProductTextGenerationSuggestion) ProtoReflect ¶
func (x *ProductTextGenerationSuggestion) ProtoReflect() protoreflect.Message
func (*ProductTextGenerationSuggestion) Reset ¶
func (x *ProductTextGenerationSuggestion) Reset()
func (*ProductTextGenerationSuggestion) String ¶
func (x *ProductTextGenerationSuggestion) String() string
type RemoveImageBackgroundConfig ¶
type RemoveImageBackgroundConfig struct { // Optional. If set, the result of background removal will be an RGB image // with this given color as the background, instead of an RGBA 4-channel // transparent image. BackgroundColor *RgbColor `protobuf:"bytes,1,opt,name=background_color,json=backgroundColor,proto3" json:"background_color,omitempty"` // contains filtered or unexported fields }
Client provided input configuration for removing the background.
func (*RemoveImageBackgroundConfig) Descriptor
deprecated
func (*RemoveImageBackgroundConfig) Descriptor() ([]byte, []int)
Deprecated: Use RemoveImageBackgroundConfig.ProtoReflect.Descriptor instead.
func (*RemoveImageBackgroundConfig) GetBackgroundColor ¶
func (x *RemoveImageBackgroundConfig) GetBackgroundColor() *RgbColor
func (*RemoveImageBackgroundConfig) ProtoMessage ¶
func (*RemoveImageBackgroundConfig) ProtoMessage()
func (*RemoveImageBackgroundConfig) ProtoReflect ¶
func (x *RemoveImageBackgroundConfig) ProtoReflect() protoreflect.Message
func (*RemoveImageBackgroundConfig) Reset ¶
func (x *RemoveImageBackgroundConfig) Reset()
func (*RemoveImageBackgroundConfig) String ¶
func (x *RemoveImageBackgroundConfig) String() string
type RemoveProductImageBackgroundRequest ¶
type RemoveProductImageBackgroundRequest struct { // Required. The account for which to generate an image. This acts as a // container for the request and does not affect the generation itself. // Format: accounts/{account} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Optional. Configuration for how the output image should be returned. OutputConfig *OutputImageConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` // Required. The input image. InputImage *InputImage `protobuf:"bytes,3,opt,name=input_image,json=inputImage,proto3" json:"input_image,omitempty"` // Optional. Configuration parameters for the removal of the background. Config *RemoveImageBackgroundConfig `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
Request message for the RemoveProductImageBackground method.
func (*RemoveProductImageBackgroundRequest) Descriptor
deprecated
func (*RemoveProductImageBackgroundRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveProductImageBackgroundRequest.ProtoReflect.Descriptor instead.
func (*RemoveProductImageBackgroundRequest) GetConfig ¶
func (x *RemoveProductImageBackgroundRequest) GetConfig() *RemoveImageBackgroundConfig
func (*RemoveProductImageBackgroundRequest) GetInputImage ¶
func (x *RemoveProductImageBackgroundRequest) GetInputImage() *InputImage
func (*RemoveProductImageBackgroundRequest) GetName ¶
func (x *RemoveProductImageBackgroundRequest) GetName() string
func (*RemoveProductImageBackgroundRequest) GetOutputConfig ¶
func (x *RemoveProductImageBackgroundRequest) GetOutputConfig() *OutputImageConfig
func (*RemoveProductImageBackgroundRequest) ProtoMessage ¶
func (*RemoveProductImageBackgroundRequest) ProtoMessage()
func (*RemoveProductImageBackgroundRequest) ProtoReflect ¶
func (x *RemoveProductImageBackgroundRequest) ProtoReflect() protoreflect.Message
func (*RemoveProductImageBackgroundRequest) Reset ¶
func (x *RemoveProductImageBackgroundRequest) Reset()
func (*RemoveProductImageBackgroundRequest) String ¶
func (x *RemoveProductImageBackgroundRequest) String() string
type RemoveProductImageBackgroundResponse ¶
type RemoveProductImageBackgroundResponse struct { // The generated output image. GeneratedImage *GeneratedImage `protobuf:"bytes,1,opt,name=generated_image,json=generatedImage,proto3" json:"generated_image,omitempty"` // contains filtered or unexported fields }
Response message for the RemoveProductImageBackground method.
func (*RemoveProductImageBackgroundResponse) Descriptor
deprecated
func (*RemoveProductImageBackgroundResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveProductImageBackgroundResponse.ProtoReflect.Descriptor instead.
func (*RemoveProductImageBackgroundResponse) GetGeneratedImage ¶
func (x *RemoveProductImageBackgroundResponse) GetGeneratedImage() *GeneratedImage
func (*RemoveProductImageBackgroundResponse) ProtoMessage ¶
func (*RemoveProductImageBackgroundResponse) ProtoMessage()
func (*RemoveProductImageBackgroundResponse) ProtoReflect ¶
func (x *RemoveProductImageBackgroundResponse) ProtoReflect() protoreflect.Message
func (*RemoveProductImageBackgroundResponse) Reset ¶
func (x *RemoveProductImageBackgroundResponse) Reset()
func (*RemoveProductImageBackgroundResponse) String ¶
func (x *RemoveProductImageBackgroundResponse) String() string
type RgbColor ¶
type RgbColor struct { // Optional. Values in [0, 255]. Red int32 `protobuf:"varint,1,opt,name=red,proto3" json:"red,omitempty"` // Optional. Values in [0, 255]. Green int32 `protobuf:"varint,2,opt,name=green,proto3" json:"green,omitempty"` // Optional. Values in [0, 255]. Blue int32 `protobuf:"varint,3,opt,name=blue,proto3" json:"blue,omitempty"` // contains filtered or unexported fields }
Represents a color in RGB format.
func (*RgbColor) Descriptor
deprecated
func (*RgbColor) ProtoMessage ¶
func (*RgbColor) ProtoMessage()
func (*RgbColor) ProtoReflect ¶
func (x *RgbColor) ProtoReflect() protoreflect.Message
type TextSuggestionsServiceClient ¶
type TextSuggestionsServiceClient interface { // GenerateProductTextSuggestions generates a set of candidate text // completions (e.g., product titles, descriptions) based on provided product // information. This endpoint leverages GenAI models to create suggestions for // improving existing product text or generating new content. GenerateProductTextSuggestions(ctx context.Context, in *GenerateProductTextSuggestionsRequest, opts ...grpc.CallOption) (*GenerateProductTextSuggestionsResponse, error) }
TextSuggestionsServiceClient is the client API for TextSuggestionsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTextSuggestionsServiceClient ¶
func NewTextSuggestionsServiceClient(cc grpc.ClientConnInterface) TextSuggestionsServiceClient
type TextSuggestionsServiceServer ¶
type TextSuggestionsServiceServer interface { // GenerateProductTextSuggestions generates a set of candidate text // completions (e.g., product titles, descriptions) based on provided product // information. This endpoint leverages GenAI models to create suggestions for // improving existing product text or generating new content. GenerateProductTextSuggestions(context.Context, *GenerateProductTextSuggestionsRequest) (*GenerateProductTextSuggestionsResponse, error) }
TextSuggestionsServiceServer is the server API for TextSuggestionsService service.
type TitleExample ¶
type TitleExample struct { // Required. A map containing all existing product information. For example: // {"title": "dress", "description": "A red dress", "brand": "Dresses4All"} // Any information that you might use to populate your product feed. ProductInfo map[string]string `` /* 182-byte string literal not displayed */ // Required. The product's category. This helps the AI understand when certain // examples are more relevant than others. Category *string `protobuf:"bytes,2,opt,name=category,proto3,oneof" json:"category,omitempty"` // Required. The attributes or approximate attributes that make up the title. // For example, title "Google GShoe M" title_format can be "brand | product | // size". TitleFormat *string `protobuf:"bytes,3,opt,name=title_format,json=titleFormat,proto3,oneof" json:"title_format,omitempty"` // Required. A map in the same format as product_info but with all // improvements included. For example, {"brand": "Dresses4All", "product": // "dress", "color": "red", ...}. The order of attributes in this map may be // used to guide the order in which they appear in the final generated title. // For instance, the above will become: Dresses4All dress | red FinalProductInfo map[string]string `` /* 199-byte string literal not displayed */ // contains filtered or unexported fields }
A hand-crafted example of a product title improvement. These examples are provided to the AI to improve its quality and guide it towards required outputs.
func (*TitleExample) Descriptor
deprecated
func (*TitleExample) Descriptor() ([]byte, []int)
Deprecated: Use TitleExample.ProtoReflect.Descriptor instead.
func (*TitleExample) GetCategory ¶
func (x *TitleExample) GetCategory() string
func (*TitleExample) GetFinalProductInfo ¶
func (x *TitleExample) GetFinalProductInfo() map[string]string
func (*TitleExample) GetProductInfo ¶
func (x *TitleExample) GetProductInfo() map[string]string
func (*TitleExample) GetTitleFormat ¶
func (x *TitleExample) GetTitleFormat() string
func (*TitleExample) ProtoMessage ¶
func (*TitleExample) ProtoMessage()
func (*TitleExample) ProtoReflect ¶
func (x *TitleExample) ProtoReflect() protoreflect.Message
func (*TitleExample) Reset ¶
func (x *TitleExample) Reset()
func (*TitleExample) String ¶
func (x *TitleExample) String() string
type UnimplementedImageServiceServer ¶
type UnimplementedImageServiceServer struct { }
UnimplementedImageServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedImageServiceServer) GenerateProductImageBackground ¶
func (*UnimplementedImageServiceServer) GenerateProductImageBackground(context.Context, *GenerateProductImageBackgroundRequest) (*GenerateProductImageBackgroundResponse, error)
func (*UnimplementedImageServiceServer) RemoveProductImageBackground ¶
func (*UnimplementedImageServiceServer) RemoveProductImageBackground(context.Context, *RemoveProductImageBackgroundRequest) (*RemoveProductImageBackgroundResponse, error)
func (*UnimplementedImageServiceServer) UpscaleProductImage ¶
func (*UnimplementedImageServiceServer) UpscaleProductImage(context.Context, *UpscaleProductImageRequest) (*UpscaleProductImageResponse, error)
type UnimplementedTextSuggestionsServiceServer ¶
type UnimplementedTextSuggestionsServiceServer struct { }
UnimplementedTextSuggestionsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTextSuggestionsServiceServer) GenerateProductTextSuggestions ¶
func (*UnimplementedTextSuggestionsServiceServer) GenerateProductTextSuggestions(context.Context, *GenerateProductTextSuggestionsRequest) (*GenerateProductTextSuggestionsResponse, error)
type UpscaleProductImageRequest ¶
type UpscaleProductImageRequest struct { // Required. The account for which to generate an image. This acts as a // container for the request and does not affect the generation itself. // Format: accounts/{account} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Optional. Configuration for how the output image should be returned. OutputConfig *OutputImageConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` // Required. The input image. InputImage *InputImage `protobuf:"bytes,3,opt,name=input_image,json=inputImage,proto3" json:"input_image,omitempty"` // contains filtered or unexported fields }
Request message for the UpscaleProductImage method.
func (*UpscaleProductImageRequest) Descriptor
deprecated
func (*UpscaleProductImageRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpscaleProductImageRequest.ProtoReflect.Descriptor instead.
func (*UpscaleProductImageRequest) GetInputImage ¶
func (x *UpscaleProductImageRequest) GetInputImage() *InputImage
func (*UpscaleProductImageRequest) GetName ¶
func (x *UpscaleProductImageRequest) GetName() string
func (*UpscaleProductImageRequest) GetOutputConfig ¶
func (x *UpscaleProductImageRequest) GetOutputConfig() *OutputImageConfig
func (*UpscaleProductImageRequest) ProtoMessage ¶
func (*UpscaleProductImageRequest) ProtoMessage()
func (*UpscaleProductImageRequest) ProtoReflect ¶
func (x *UpscaleProductImageRequest) ProtoReflect() protoreflect.Message
func (*UpscaleProductImageRequest) Reset ¶
func (x *UpscaleProductImageRequest) Reset()
func (*UpscaleProductImageRequest) String ¶
func (x *UpscaleProductImageRequest) String() string
type UpscaleProductImageResponse ¶
type UpscaleProductImageResponse struct { // The generated output image. GeneratedImage *GeneratedImage `protobuf:"bytes,1,opt,name=generated_image,json=generatedImage,proto3" json:"generated_image,omitempty"` // contains filtered or unexported fields }
Response message for the UpscaleProductImage method.
func (*UpscaleProductImageResponse) Descriptor
deprecated
func (*UpscaleProductImageResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpscaleProductImageResponse.ProtoReflect.Descriptor instead.
func (*UpscaleProductImageResponse) GetGeneratedImage ¶
func (x *UpscaleProductImageResponse) GetGeneratedImage() *GeneratedImage
func (*UpscaleProductImageResponse) ProtoMessage ¶
func (*UpscaleProductImageResponse) ProtoMessage()
func (*UpscaleProductImageResponse) ProtoReflect ¶
func (x *UpscaleProductImageResponse) ProtoReflect() protoreflect.Message
func (*UpscaleProductImageResponse) Reset ¶
func (x *UpscaleProductImageResponse) Reset()
func (*UpscaleProductImageResponse) String ¶
func (x *UpscaleProductImageResponse) String() string