public static final class ProductAttributes.QuestionAndAnswer.Builder extends GeneratedMessage.Builder<ProductAttributes.QuestionAndAnswer.Builder> implements ProductAttributes.QuestionAndAnswerOrBuilderThe question and answer for the product.
Protobuf type
google.shopping.merchant.products.v1.ProductAttributes.QuestionAndAnswer
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ProductAttributes.QuestionAndAnswer.BuilderImplements
ProductAttributes.QuestionAndAnswerOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ProductAttributes.QuestionAndAnswer build()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
buildPartial()
public ProductAttributes.QuestionAndAnswer buildPartial()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
clear()
public ProductAttributes.QuestionAndAnswer.Builder clear()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
|
clearAnswer()
public ProductAttributes.QuestionAndAnswer.Builder clearAnswer()Required. The answer text.
string answer = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
This builder for chaining. |
clearQuestion()
public ProductAttributes.QuestionAndAnswer.Builder clearQuestion()Required. The question text.
string question = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
This builder for chaining. |
getAnswer()
public String getAnswer()Required. The answer text.
string answer = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The answer. |
getAnswerBytes()
public ByteString getAnswerBytes()Required. The answer text.
string answer = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for answer. |
getDefaultInstanceForType()
public ProductAttributes.QuestionAndAnswer getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getQuestion()
public String getQuestion()Required. The question text.
string question = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The question. |
getQuestionBytes()
public ByteString getQuestionBytes()Required. The question text.
string question = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for question. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProductAttributes.QuestionAndAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ProductAttributes.QuestionAndAnswer.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
|
mergeFrom(ProductAttributes.QuestionAndAnswer other)
public ProductAttributes.QuestionAndAnswer.Builder mergeFrom(ProductAttributes.QuestionAndAnswer other)| Parameter | |
|---|---|
| Name | Description |
other |
ProductAttributes.QuestionAndAnswer |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
|
setAnswer(String value)
public ProductAttributes.QuestionAndAnswer.Builder setAnswer(String value)Required. The answer text.
string answer = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe answer to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
This builder for chaining. |
setAnswerBytes(ByteString value)
public ProductAttributes.QuestionAndAnswer.Builder setAnswerBytes(ByteString value)Required. The answer text.
string answer = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for answer to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
This builder for chaining. |
setQuestion(String value)
public ProductAttributes.QuestionAndAnswer.Builder setQuestion(String value)Required. The question text.
string question = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe question to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
This builder for chaining. |
setQuestionBytes(ByteString value)
public ProductAttributes.QuestionAndAnswer.Builder setQuestionBytes(ByteString value)Required. The question text.
string question = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for question to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
This builder for chaining. |