Class TitleExample (0.2.0)

public final class TitleExample extends GeneratedMessageV3 implements TitleExampleOrBuilder

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.

Protobuf type google.shopping.merchant.productstudio.v1alpha.TitleExample

Static Fields

CATEGORY_FIELD_NUMBER

public static final int CATEGORY_FIELD_NUMBER
Field Value
Type Description
int

FINAL_PRODUCT_INFO_FIELD_NUMBER

public static final int FINAL_PRODUCT_INFO_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_INFO_FIELD_NUMBER

public static final int PRODUCT_INFO_FIELD_NUMBER
Field Value
Type Description
int

TITLE_FORMAT_FIELD_NUMBER

public static final int TITLE_FORMAT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TitleExample getDefaultInstance()
Returns
Type Description
TitleExample

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static TitleExample.Builder newBuilder()
Returns
Type Description
TitleExample.Builder

newBuilder(TitleExample prototype)

public static TitleExample.Builder newBuilder(TitleExample prototype)
Parameter
Name Description
prototype TitleExample
Returns
Type Description
TitleExample.Builder

parseDelimitedFrom(InputStream input)

public static TitleExample parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TitleExample
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TitleExample parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TitleExample
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TitleExample parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TitleExample
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TitleExample parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TitleExample
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TitleExample parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TitleExample
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TitleExample parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TitleExample
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TitleExample parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TitleExample
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TitleExample parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TitleExample
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TitleExample parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TitleExample
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TitleExample parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TitleExample
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TitleExample parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TitleExample
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TitleExample parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TitleExample
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TitleExample> parser()
Returns
Type Description
Parser<TitleExample>

Methods

containsFinalProductInfo(String key)

public boolean containsFinalProductInfo(String key)

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

map<string, string> final_product_info = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
boolean

containsProductInfo(String key)

public boolean containsProductInfo(String key)

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.

map<string, string> product_info = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCategory()

public String getCategory()

Required. The product's category. This helps the AI understand when certain examples are more relevant than others.

optional string category = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The category.

getCategoryBytes()

public ByteString getCategoryBytes()

Required. The product's category. This helps the AI understand when certain examples are more relevant than others.

optional string category = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for category.

getDefaultInstanceForType()

public TitleExample getDefaultInstanceForType()
Returns
Type Description
TitleExample

getFinalProductInfo() (deprecated)

public Map<String,String> getFinalProductInfo()
Returns
Type Description
Map<String,String>

getFinalProductInfoCount()

public int getFinalProductInfoCount()

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

map<string, string> final_product_info = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getFinalProductInfoMap()

public Map<String,String> getFinalProductInfoMap()

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

map<string, string> final_product_info = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Map<String,String>

getFinalProductInfoOrDefault(String key, String defaultValue)

public String getFinalProductInfoOrDefault(String key, String defaultValue)

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

map<string, string> final_product_info = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getFinalProductInfoOrThrow(String key)

public String getFinalProductInfoOrThrow(String key)

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

map<string, string> final_product_info = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
String

getParserForType()

public Parser<TitleExample> getParserForType()
Returns
Type Description
Parser<TitleExample>
Overrides

getProductInfo() (deprecated)

public Map<String,String> getProductInfo()

Use #getProductInfoMap() instead.

Returns
Type Description
Map<String,String>

getProductInfoCount()

public int getProductInfoCount()

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.

map<string, string> product_info = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getProductInfoMap()

public Map<String,String> getProductInfoMap()

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.

map<string, string> product_info = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Map<String,String>

getProductInfoOrDefault(String key, String defaultValue)

public String getProductInfoOrDefault(String key, String defaultValue)

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.

map<string, string> product_info = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getProductInfoOrThrow(String key)

public String getProductInfoOrThrow(String key)

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.

map<string, string> product_info = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
String

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTitleFormat()

public String getTitleFormat()

Required. The attributes or approximate attributes that make up the title. For example, title "Google GShoe M" title_format can be "brand | product | size".

optional string title_format = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The titleFormat.

getTitleFormatBytes()

public ByteString getTitleFormatBytes()

Required. The attributes or approximate attributes that make up the title. For example, title "Google GShoe M" title_format can be "brand | product | size".

optional string title_format = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for titleFormat.

hasCategory()

public boolean hasCategory()

Required. The product's category. This helps the AI understand when certain examples are more relevant than others.

optional string category = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the category field is set.

hasTitleFormat()

public boolean hasTitleFormat()

Required. The attributes or approximate attributes that make up the title. For example, title "Google GShoe M" title_format can be "brand | product | size".

optional string title_format = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the titleFormat field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TitleExample.Builder newBuilderForType()
Returns
Type Description
TitleExample.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TitleExample.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TitleExample.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TitleExample.Builder toBuilder()
Returns
Type Description
TitleExample.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException