public static final class StructuredTitle.Builder extends GeneratedMessage.Builder<StructuredTitle.Builder> implements StructuredTitleOrBuilderStructured title, for algorithmically (AI)-generated titles.
Protobuf type google.shopping.merchant.products.v1.StructuredTitle
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StructuredTitle.BuilderImplements
StructuredTitleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public StructuredTitle build()| Returns | |
|---|---|
| Type | Description |
StructuredTitle |
|
buildPartial()
public StructuredTitle buildPartial()| Returns | |
|---|---|
| Type | Description |
StructuredTitle |
|
clear()
public StructuredTitle.Builder clear()| Returns | |
|---|---|
| Type | Description |
StructuredTitle.Builder |
|
clearContent()
public StructuredTitle.Builder clearContent()The title text Maximum length is 150 characters
optional string content = 2;
| Returns | |
|---|---|
| Type | Description |
StructuredTitle.Builder |
This builder for chaining. |
clearDigitalSourceType()
public StructuredTitle.Builder clearDigitalSourceType()The digital source type. Following IPTC.
optional .google.shopping.merchant.products.v1.DigitalSourceType digital_source_type = 1;
| Returns | |
|---|---|
| Type | Description |
StructuredTitle.Builder |
This builder for chaining. |
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 StructuredTitle getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StructuredTitle |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 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. 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StructuredTitle.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StructuredTitle.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StructuredTitle.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StructuredTitle.Builder |
|
mergeFrom(StructuredTitle other)
public StructuredTitle.Builder mergeFrom(StructuredTitle other)| Parameter | |
|---|---|
| Name | Description |
other |
StructuredTitle |
| Returns | |
|---|---|
| Type | Description |
StructuredTitle.Builder |
|
setContent(String value)
public StructuredTitle.Builder setContent(String value)The title text Maximum length is 150 characters
optional string content = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe content to set. |
| Returns | |
|---|---|
| Type | Description |
StructuredTitle.Builder |
This builder for chaining. |
setContentBytes(ByteString value)
public StructuredTitle.Builder setContentBytes(ByteString value)The title text Maximum length is 150 characters
optional string content = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for content to set. |
| Returns | |
|---|---|
| Type | Description |
StructuredTitle.Builder |
This builder for chaining. |
setDigitalSourceType(DigitalSourceType value)
public StructuredTitle.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 |
DigitalSourceTypeThe digitalSourceType to set. |
| Returns | |
|---|---|
| Type | Description |
StructuredTitle.Builder |
This builder for chaining. |
setDigitalSourceTypeValue(int value)
public StructuredTitle.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 |
intThe enum numeric value on the wire for digitalSourceType to set. |
| Returns | |
|---|---|
| Type | Description |
StructuredTitle.Builder |
This builder for chaining. |