public static final class ProductTextGenerationSuggestion.Builder extends GeneratedMessageV3.Builder<ProductTextGenerationSuggestion.Builder> implements ProductTextGenerationSuggestionOrBuilder
Text generated for a product, optionally including its quality score.
Protobuf type
google.shopping.merchant.productstudio.v1alpha.ProductTextGenerationSuggestion
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ProductTextGenerationSuggestion.BuilderImplements
ProductTextGenerationSuggestionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductTextGenerationSuggestion.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
build()
public ProductTextGenerationSuggestion build()
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion |
buildPartial()
public ProductTextGenerationSuggestion buildPartial()
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion |
clear()
public ProductTextGenerationSuggestion.Builder clear()
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
clearChangeSummary()
public ProductTextGenerationSuggestion.Builder clearChangeSummary()
A brief summarization of all the changes that have been made.
optional string change_summary = 3;
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ProductTextGenerationSuggestion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ProductTextGenerationSuggestion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
clearScore()
public ProductTextGenerationSuggestion.Builder clearScore()
The quality score associated with the generation. Heuristic implemented according to the feedgen team's implementation styles.
optional float score = 2;
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
This builder for chaining. |
clearText()
public ProductTextGenerationSuggestion.Builder clearText()
The text generated
optional string text = 1;
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
This builder for chaining. |
clone()
public ProductTextGenerationSuggestion.Builder clone()
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
getChangeSummary()
public String getChangeSummary()
A brief summarization of all the changes that have been made.
optional string change_summary = 3;
Returns | |
---|---|
Type | Description |
String |
The changeSummary. |
getChangeSummaryBytes()
public ByteString getChangeSummaryBytes()
A brief summarization of all the changes that have been made.
optional string change_summary = 3;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for changeSummary. |
getDefaultInstanceForType()
public ProductTextGenerationSuggestion getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getScore()
public float getScore()
The quality score associated with the generation. Heuristic implemented according to the feedgen team's implementation styles.
optional float score = 2;
Returns | |
---|---|
Type | Description |
float |
The score. |
getText()
public String getText()
The text generated
optional string text = 1;
Returns | |
---|---|
Type | Description |
String |
The text. |
getTextBytes()
public ByteString getTextBytes()
The text generated
optional string text = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for text. |
hasChangeSummary()
public boolean hasChangeSummary()
A brief summarization of all the changes that have been made.
optional string change_summary = 3;
Returns | |
---|---|
Type | Description |
boolean |
Whether the changeSummary field is set. |
hasScore()
public boolean hasScore()
The quality score associated with the generation. Heuristic implemented according to the feedgen team's implementation styles.
optional float score = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the score field is set. |
hasText()
public boolean hasText()
The text generated
optional string text = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the text field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProductTextGenerationSuggestion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ProductTextGenerationSuggestion.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
mergeFrom(ProductTextGenerationSuggestion other)
public ProductTextGenerationSuggestion.Builder mergeFrom(ProductTextGenerationSuggestion other)
Parameter | |
---|---|
Name | Description |
other |
ProductTextGenerationSuggestion |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProductTextGenerationSuggestion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
setChangeSummary(String value)
public ProductTextGenerationSuggestion.Builder setChangeSummary(String value)
A brief summarization of all the changes that have been made.
optional string change_summary = 3;
Parameter | |
---|---|
Name | Description |
value |
String The changeSummary to set. |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
This builder for chaining. |
setChangeSummaryBytes(ByteString value)
public ProductTextGenerationSuggestion.Builder setChangeSummaryBytes(ByteString value)
A brief summarization of all the changes that have been made.
optional string change_summary = 3;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for changeSummary to set. |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ProductTextGenerationSuggestion.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProductTextGenerationSuggestion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
setScore(float value)
public ProductTextGenerationSuggestion.Builder setScore(float value)
The quality score associated with the generation. Heuristic implemented according to the feedgen team's implementation styles.
optional float score = 2;
Parameter | |
---|---|
Name | Description |
value |
float The score to set. |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
This builder for chaining. |
setText(String value)
public ProductTextGenerationSuggestion.Builder setText(String value)
The text generated
optional string text = 1;
Parameter | |
---|---|
Name | Description |
value |
String The text to set. |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
This builder for chaining. |
setTextBytes(ByteString value)
public ProductTextGenerationSuggestion.Builder setTextBytes(ByteString value)
The text generated
optional string text = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for text to set. |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductTextGenerationSuggestion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ProductTextGenerationSuggestion.Builder |