Class StructuredDescription.Builder (1.0.0)

public static final class StructuredDescription.Builder extends GeneratedMessageV3.Builder<StructuredDescription.Builder> implements StructuredDescriptionOrBuilder

Structured description, for algorithmically (AI)-generated descriptions.

Protobuf type google.shopping.merchant.products.v1.StructuredDescription

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StructuredDescription build()
Returns
Type Description
StructuredDescription

buildPartial()

public StructuredDescription buildPartial()
Returns
Type Description
StructuredDescription

clear()

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

clearContent()

public StructuredDescription.Builder clearContent()

The description text Maximum length is 5000 characters

optional string content = 2;

Returns
Type Description
StructuredDescription.Builder

This builder for chaining.

clearDigitalSourceType()

public StructuredDescription.Builder clearDigitalSourceType()

The digital source type. Following IPTC.

optional .google.shopping.merchant.products.v1.DigitalSourceType digital_source_type = 1;

Returns
Type Description
StructuredDescription.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getContent()

public String getContent()

The description text Maximum length is 5000 characters

optional string content = 2;

Returns
Type Description
String

The content.

getContentBytes()

public ByteString getContentBytes()

The description text Maximum length is 5000 characters

optional string content = 2;

Returns
Type Description
ByteString

The bytes for content.

getDefaultInstanceForType()

public StructuredDescription getDefaultInstanceForType()
Returns
Type Description
StructuredDescription

getDescriptorForType()

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

getDigitalSourceType()

public DigitalSourceType getDigitalSourceType()

The digital source type. Following IPTC.

optional .google.shopping.merchant.products.v1.DigitalSourceType digital_source_type = 1;

Returns
Type Description
DigitalSourceType

The digitalSourceType.

getDigitalSourceTypeValue()

public int getDigitalSourceTypeValue()

The digital source type. Following IPTC.

optional .google.shopping.merchant.products.v1.DigitalSourceType digital_source_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for digitalSourceType.

hasContent()

public boolean hasContent()

The description text Maximum length is 5000 characters

optional string content = 2;

Returns
Type Description
boolean

Whether the content field is set.

hasDigitalSourceType()

public boolean hasDigitalSourceType()

The digital source type. Following IPTC.

optional .google.shopping.merchant.products.v1.DigitalSourceType 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 StructuredDescription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StructuredDescription.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(StructuredDescription other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContent(String value)

public StructuredDescription.Builder setContent(String value)

The description text Maximum length is 5000 characters

optional string content = 2;

Parameter
Name Description
value String

The content to set.

Returns
Type Description
StructuredDescription.Builder

This builder for chaining.

setContentBytes(ByteString value)

public StructuredDescription.Builder setContentBytes(ByteString value)

The description text Maximum length is 5000 characters

optional string content = 2;

Parameter
Name Description
value ByteString

The bytes for content to set.

Returns
Type Description
StructuredDescription.Builder

This builder for chaining.

setDigitalSourceType(DigitalSourceType value)

public StructuredDescription.Builder setDigitalSourceType(DigitalSourceType value)

The digital source type. Following IPTC.

optional .google.shopping.merchant.products.v1.DigitalSourceType digital_source_type = 1;

Parameter
Name Description
value DigitalSourceType

The digitalSourceType to set.

Returns
Type Description
StructuredDescription.Builder

This builder for chaining.

setDigitalSourceTypeValue(int value)

public StructuredDescription.Builder setDigitalSourceTypeValue(int value)

The digital source type. Following IPTC.

optional .google.shopping.merchant.products.v1.DigitalSourceType digital_source_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for digitalSourceType to set.

Returns
Type Description
StructuredDescription.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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