Class Answer.DocumentReference (0.3.0)

public static final class Answer.DocumentReference extends GeneratedMessage implements Answer.DocumentReferenceOrBuilder

Represents a reference to a document.

Protobuf type google.developers.knowledge.v1.Answer.DocumentReference

Static Fields

DOCUMENT_CHUNK_FIELD_NUMBER

public static final int DOCUMENT_CHUNK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Answer.DocumentReference getDefaultInstance()
Returns
Type Description
Answer.DocumentReference

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Answer.DocumentReference.Builder newBuilder()
Returns
Type Description
Answer.DocumentReference.Builder

newBuilder(Answer.DocumentReference prototype)

public static Answer.DocumentReference.Builder newBuilder(Answer.DocumentReference prototype)
Parameter
Name Description
prototype Answer.DocumentReference
Returns
Type Description
Answer.DocumentReference.Builder

parseDelimitedFrom(InputStream input)

public static Answer.DocumentReference parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Answer.DocumentReference
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Answer.DocumentReference parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.DocumentReference
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Answer.DocumentReference parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Answer.DocumentReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Answer.DocumentReference parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.DocumentReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Answer.DocumentReference parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Answer.DocumentReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Answer.DocumentReference parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.DocumentReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Answer.DocumentReference parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Answer.DocumentReference
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Answer.DocumentReference parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.DocumentReference
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Answer.DocumentReference parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Answer.DocumentReference
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Answer.DocumentReference parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.DocumentReference
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Answer.DocumentReference parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Answer.DocumentReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Answer.DocumentReference parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.DocumentReference
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Answer.DocumentReference> parser()
Returns
Type Description
Parser<DocumentReference>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Answer.DocumentReference getDefaultInstanceForType()
Returns
Type Description
Answer.DocumentReference

getDocumentChunk()

public DocumentChunk getDocumentChunk()

Output only. Contains the document chunk. The document_chunk.id field is not set and will be empty.

.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DocumentChunk

The documentChunk.

getDocumentChunkOrBuilder()

public DocumentChunkOrBuilder getDocumentChunkOrBuilder()

Output only. Contains the document chunk. The document_chunk.id field is not set and will be empty.

.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DocumentChunkOrBuilder

getParserForType()

public Parser<Answer.DocumentReference> getParserForType()
Returns
Type Description
Parser<DocumentReference>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasDocumentChunk()

public boolean hasDocumentChunk()

Output only. Contains the document chunk. The document_chunk.id field is not set and will be empty.

.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the documentChunk field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Answer.DocumentReference.Builder newBuilderForType()
Returns
Type Description
Answer.DocumentReference.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Answer.DocumentReference.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Answer.DocumentReference.Builder
Overrides

toBuilder()

public Answer.DocumentReference.Builder toBuilder()
Returns
Type Description
Answer.DocumentReference.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException