Class ProductStructuredTitle.Builder (0.4.0)

public static final class ProductStructuredTitle.Builder extends GeneratedMessageV3.Builder<ProductStructuredTitle.Builder> implements ProductStructuredTitleOrBuilder

Structured title, for algorithmically (AI)-generated titles.

Protobuf type google.shopping.merchant.products.v1beta.ProductStructuredTitle

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductStructuredTitle.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductStructuredTitle.Builder
Overrides

build()

public ProductStructuredTitle build()
Returns
Type Description
ProductStructuredTitle

buildPartial()

public ProductStructuredTitle buildPartial()
Returns
Type Description
ProductStructuredTitle

clear()

public ProductStructuredTitle.Builder clear()
Returns
Type Description
ProductStructuredTitle.Builder
Overrides

clearContent()

public ProductStructuredTitle.Builder clearContent()

The title text Maximum length is 150 characters

optional string content = 2;

Returns
Type Description
ProductStructuredTitle.Builder

This builder for chaining.

clearDigitalSourceType()

public ProductStructuredTitle.Builder clearDigitalSourceType()

The digital source type, for example "trained_algorithmic_media". Following IPTC. Maximum length is 40 characters.

optional string digital_source_type = 1;

Returns
Type Description
ProductStructuredTitle.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ProductStructuredTitle.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProductStructuredTitle.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductStructuredTitle.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProductStructuredTitle.Builder
Overrides

clone()

public ProductStructuredTitle.Builder clone()
Returns
Type Description
ProductStructuredTitle.Builder
Overrides

getContent()

public String getContent()

The title text Maximum length is 150 characters

optional string content = 2;

Returns
Type Description
String

The content.

getContentBytes()

public ByteString getContentBytes()

The title text Maximum length is 150 characters

optional string content = 2;

Returns
Type Description
ByteString

The bytes for content.

getDefaultInstanceForType()

public ProductStructuredTitle getDefaultInstanceForType()
Returns
Type Description
ProductStructuredTitle

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDigitalSourceType()

public String getDigitalSourceType()

The digital source type, for example "trained_algorithmic_media". Following IPTC. Maximum length is 40 characters.

optional string digital_source_type = 1;

Returns
Type Description
String

The digitalSourceType.

getDigitalSourceTypeBytes()

public ByteString getDigitalSourceTypeBytes()

The digital source type, for example "trained_algorithmic_media". Following IPTC. Maximum length is 40 characters.

optional string digital_source_type = 1;

Returns
Type Description
ByteString

The bytes for digitalSourceType.

hasContent()

public boolean hasContent()

The title text Maximum length is 150 characters

optional string content = 2;

Returns
Type Description
boolean

Whether the content field is set.

hasDigitalSourceType()

public boolean hasDigitalSourceType()

The digital source type, for example "trained_algorithmic_media". Following IPTC. Maximum length is 40 characters.

optional string digital_source_type = 1;

Returns
Type Description
boolean

Whether the digitalSourceType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductStructuredTitle.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductStructuredTitle.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductStructuredTitle.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductStructuredTitle.Builder
Overrides

mergeFrom(ProductStructuredTitle other)

public ProductStructuredTitle.Builder mergeFrom(ProductStructuredTitle other)
Parameter
Name Description
other ProductStructuredTitle
Returns
Type Description
ProductStructuredTitle.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductStructuredTitle.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductStructuredTitle.Builder
Overrides

setContent(String value)

public ProductStructuredTitle.Builder setContent(String value)

The title text Maximum length is 150 characters

optional string content = 2;

Parameter
Name Description
value String

The content to set.

Returns
Type Description
ProductStructuredTitle.Builder

This builder for chaining.

setContentBytes(ByteString value)

public ProductStructuredTitle.Builder setContentBytes(ByteString value)

The title text Maximum length is 150 characters

optional string content = 2;

Parameter
Name Description
value ByteString

The bytes for content to set.

Returns
Type Description
ProductStructuredTitle.Builder

This builder for chaining.

setDigitalSourceType(String value)

public ProductStructuredTitle.Builder setDigitalSourceType(String value)

The digital source type, for example "trained_algorithmic_media". Following IPTC. Maximum length is 40 characters.

optional string digital_source_type = 1;

Parameter
Name Description
value String

The digitalSourceType to set.

Returns
Type Description
ProductStructuredTitle.Builder

This builder for chaining.

setDigitalSourceTypeBytes(ByteString value)

public ProductStructuredTitle.Builder setDigitalSourceTypeBytes(ByteString value)

The digital source type, for example "trained_algorithmic_media". Following IPTC. Maximum length is 40 characters.

optional string digital_source_type = 1;

Parameter
Name Description
value ByteString

The bytes for digitalSourceType to set.

Returns
Type Description
ProductStructuredTitle.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ProductStructuredTitle.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductStructuredTitle.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProductStructuredTitle.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProductStructuredTitle.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductStructuredTitle.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductStructuredTitle.Builder
Overrides