public static final class ProductAttributes.QuestionAndAnswer extends GeneratedMessage implements ProductAttributes.QuestionAndAnswerOrBuilderThe question and answer for the product.
Protobuf type google.shopping.merchant.products.v1.ProductAttributes.QuestionAndAnswer
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ProductAttributes.QuestionAndAnswerImplements
ProductAttributes.QuestionAndAnswerOrBuilderStatic Fields
ANSWER_FIELD_NUMBER
public static final int ANSWER_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
QUESTION_FIELD_NUMBER
public static final int QUESTION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static ProductAttributes.QuestionAndAnswer getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static ProductAttributes.QuestionAndAnswer.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
|
newBuilder(ProductAttributes.QuestionAndAnswer prototype)
public static ProductAttributes.QuestionAndAnswer.Builder newBuilder(ProductAttributes.QuestionAndAnswer prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
ProductAttributes.QuestionAndAnswer |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
|
parseDelimitedFrom(InputStream input)
public static ProductAttributes.QuestionAndAnswer parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.QuestionAndAnswer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static ProductAttributes.QuestionAndAnswer parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.QuestionAndAnswer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static ProductAttributes.QuestionAndAnswer parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.QuestionAndAnswer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static ProductAttributes.QuestionAndAnswer parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.QuestionAndAnswer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static ProductAttributes.QuestionAndAnswer parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.QuestionAndAnswer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static ProductAttributes.QuestionAndAnswer parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.QuestionAndAnswer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<ProductAttributes.QuestionAndAnswer> parser()| Returns | |
|---|---|
| Type | Description |
Parser<QuestionAndAnswer> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
getParserForType()
public Parser<ProductAttributes.QuestionAndAnswer> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<QuestionAndAnswer> |
|
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. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public ProductAttributes.QuestionAndAnswer.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ProductAttributes.QuestionAndAnswer.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
|
toBuilder()
public ProductAttributes.QuestionAndAnswer.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.QuestionAndAnswer.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|