public final class ArticleAnswer extends com.google.protobuf.GeneratedMessageV3 implements ArticleAnswerOrBuilder
Represents article answer.Protobuf type
google.cloud.dialogflow.v2beta1.ArticleAnswer| Modifier and Type | Class and Description |
|---|---|
static class |
ArticleAnswer.Builder
Represents article answer.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ANSWER_RECORD_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
SNIPPETS_FIELD_NUMBER |
static int |
TITLE_FIELD_NUMBER |
static int |
URI_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMetadata(String key)
A map that contains metadata about the answer and the
document from which it originates.
|
boolean |
equals(Object obj) |
String |
getAnswerRecord()
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
com.google.protobuf.ByteString |
getAnswerRecordBytes()
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
static ArticleAnswer |
getDefaultInstance() |
ArticleAnswer |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
A map that contains metadata about the answer and the
document from which it originates.
|
Map<String,String> |
getMetadataMap()
A map that contains metadata about the answer and the
document from which it originates.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
A map that contains metadata about the answer and the
document from which it originates.
|
String |
getMetadataOrThrow(String key)
A map that contains metadata about the answer and the
document from which it originates.
|
com.google.protobuf.Parser<ArticleAnswer> |
getParserForType() |
int |
getSerializedSize() |
String |
getSnippets(int index)
Output only.
|
com.google.protobuf.ByteString |
getSnippetsBytes(int index)
Output only.
|
int |
getSnippetsCount()
Output only.
|
com.google.protobuf.ProtocolStringList |
getSnippetsList()
Output only.
|
String |
getTitle()
The article title.
|
com.google.protobuf.ByteString |
getTitleBytes()
The article title.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getUri()
The article URI.
|
com.google.protobuf.ByteString |
getUriBytes()
The article URI.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static ArticleAnswer.Builder |
newBuilder() |
static ArticleAnswer.Builder |
newBuilder(ArticleAnswer prototype) |
ArticleAnswer.Builder |
newBuilderForType() |
protected ArticleAnswer.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ArticleAnswer |
parseDelimitedFrom(InputStream input) |
static ArticleAnswer |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ArticleAnswer |
parseFrom(byte[] data) |
static ArticleAnswer |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ArticleAnswer |
parseFrom(ByteBuffer data) |
static ArticleAnswer |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ArticleAnswer |
parseFrom(com.google.protobuf.ByteString data) |
static ArticleAnswer |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ArticleAnswer |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ArticleAnswer |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ArticleAnswer |
parseFrom(InputStream input) |
static ArticleAnswer |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ArticleAnswer> |
parser() |
ArticleAnswer.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TITLE_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
public static final int SNIPPETS_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int ANSWER_RECORD_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getTitle()
The article title.
string title = 1;getTitle in interface ArticleAnswerOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
The article title.
string title = 1;getTitleBytes in interface ArticleAnswerOrBuilderpublic String getUri()
The article URI.
string uri = 2;getUri in interface ArticleAnswerOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
The article URI.
string uri = 2;getUriBytes in interface ArticleAnswerOrBuilderpublic com.google.protobuf.ProtocolStringList getSnippetsList()
Output only. Article snippets.
repeated string snippets = 3;getSnippetsList in interface ArticleAnswerOrBuilderpublic int getSnippetsCount()
Output only. Article snippets.
repeated string snippets = 3;getSnippetsCount in interface ArticleAnswerOrBuilderpublic String getSnippets(int index)
Output only. Article snippets.
repeated string snippets = 3;getSnippets in interface ArticleAnswerOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getSnippetsBytes(int index)
Output only. Article snippets.
repeated string snippets = 3;getSnippetsBytes in interface ArticleAnswerOrBuilderindex - The index of the value to return.public int getMetadataCount()
ArticleAnswerOrBuilderA map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;getMetadataCount in interface ArticleAnswerOrBuilderpublic boolean containsMetadata(String key)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;containsMetadata in interface ArticleAnswerOrBuilder@Deprecated public Map<String,String> getMetadata()
getMetadataMap() instead.getMetadata in interface ArticleAnswerOrBuilderpublic Map<String,String> getMetadataMap()
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;getMetadataMap in interface ArticleAnswerOrBuilderpublic String getMetadataOrDefault(String key, String defaultValue)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;getMetadataOrDefault in interface ArticleAnswerOrBuilderpublic String getMetadataOrThrow(String key)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;getMetadataOrThrow in interface ArticleAnswerOrBuilderpublic String getAnswerRecord()
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;getAnswerRecord in interface ArticleAnswerOrBuilderpublic com.google.protobuf.ByteString getAnswerRecordBytes()
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;getAnswerRecordBytes in interface ArticleAnswerOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ArticleAnswer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ArticleAnswer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ArticleAnswer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ArticleAnswer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ArticleAnswer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ArticleAnswer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ArticleAnswer parseFrom(InputStream input) throws IOException
IOExceptionpublic static ArticleAnswer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ArticleAnswer parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ArticleAnswer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ArticleAnswer parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ArticleAnswer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ArticleAnswer.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ArticleAnswer.Builder newBuilder()
public static ArticleAnswer.Builder newBuilder(ArticleAnswer prototype)
public ArticleAnswer.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ArticleAnswer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ArticleAnswer getDefaultInstance()
public static com.google.protobuf.Parser<ArticleAnswer> parser()
public com.google.protobuf.Parser<ArticleAnswer> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ArticleAnswer getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.