public final class AnswerQueryResponse extends GeneratedMessage implements AnswerQueryResponseOrBuilderResponse message for DeveloperKnowledge.AnswerQuery.
Protobuf type google.developers.knowledge.v1.AnswerQueryResponse
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AnswerQueryResponseImplements
AnswerQueryResponseOrBuilderStatic Fields
ANSWER_FIELD_NUMBER
public static final int ANSWER_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static AnswerQueryResponse getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static AnswerQueryResponse.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse.Builder |
|
newBuilder(AnswerQueryResponse prototype)
public static AnswerQueryResponse.Builder newBuilder(AnswerQueryResponse prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
AnswerQueryResponse |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse.Builder |
|
parseDelimitedFrom(InputStream input)
public static AnswerQueryResponse parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AnswerQueryResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static AnswerQueryResponse parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnswerQueryResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static AnswerQueryResponse parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnswerQueryResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static AnswerQueryResponse parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AnswerQueryResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static AnswerQueryResponse parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AnswerQueryResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static AnswerQueryResponse parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AnswerQueryResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<AnswerQueryResponse> parser()| Returns | |
|---|---|
| Type | Description |
Parser<AnswerQueryResponse> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAnswer()
public Answer getAnswer()The answer to the query.
.google.developers.knowledge.v1.Answer answer = 1;
| Returns | |
|---|---|
| Type | Description |
Answer |
The answer. |
getAnswerOrBuilder()
public AnswerOrBuilder getAnswerOrBuilder()The answer to the query.
.google.developers.knowledge.v1.Answer answer = 1;
| Returns | |
|---|---|
| Type | Description |
AnswerOrBuilder |
|
getDefaultInstanceForType()
public AnswerQueryResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse |
|
getParserForType()
public Parser<AnswerQueryResponse> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<AnswerQueryResponse> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasAnswer()
public boolean hasAnswer()The answer to the query.
.google.developers.knowledge.v1.Answer answer = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the answer field is set. |
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 AnswerQueryResponse.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AnswerQueryResponse.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse.Builder |
|
toBuilder()
public AnswerQueryResponse.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
AnswerQueryResponse.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|