public static final class Suggestion.Article extends com.google.protobuf.GeneratedMessageV3 implements Suggestion.ArticleOrBuilder
Represents suggested article.Protobuf type
google.cloud.dialogflow.v2beta1.Suggestion.Article| Modifier and Type | Class and Description |
|---|---|
static class |
Suggestion.Article.Builder
Represents suggested article.
|
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)
Output only.
|
boolean |
equals(Object obj) |
String |
getAnswerRecord()
Output only.
|
com.google.protobuf.ByteString |
getAnswerRecordBytes()
Output only.
|
static Suggestion.Article |
getDefaultInstance() |
Suggestion.Article |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
Output only.
|
Map<String,String> |
getMetadataMap()
Output only.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
Output only.
|
String |
getMetadataOrThrow(String key)
Output only.
|
com.google.protobuf.Parser<Suggestion.Article> |
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()
Output only.
|
com.google.protobuf.ByteString |
getTitleBytes()
Output only.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getUri()
Output only.
|
com.google.protobuf.ByteString |
getUriBytes()
Output only.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Suggestion.Article.Builder |
newBuilder() |
static Suggestion.Article.Builder |
newBuilder(Suggestion.Article prototype) |
Suggestion.Article.Builder |
newBuilderForType() |
protected Suggestion.Article.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Suggestion.Article |
parseDelimitedFrom(InputStream input) |
static Suggestion.Article |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Suggestion.Article |
parseFrom(byte[] data) |
static Suggestion.Article |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Suggestion.Article |
parseFrom(ByteBuffer data) |
static Suggestion.Article |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Suggestion.Article |
parseFrom(com.google.protobuf.ByteString data) |
static Suggestion.Article |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Suggestion.Article |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Suggestion.Article |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Suggestion.Article |
parseFrom(InputStream input) |
static Suggestion.Article |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Suggestion.Article> |
parser() |
Suggestion.Article.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()
Output only. The article title.
string title = 1;getTitle in interface Suggestion.ArticleOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
Output only. The article title.
string title = 1;getTitleBytes in interface Suggestion.ArticleOrBuilderpublic String getUri()
Output only. The article URI.
string uri = 2;getUri in interface Suggestion.ArticleOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
Output only. The article URI.
string uri = 2;getUriBytes in interface Suggestion.ArticleOrBuilderpublic com.google.protobuf.ProtocolStringList getSnippetsList()
Output only. Article snippets.
repeated string snippets = 3;getSnippetsList in interface Suggestion.ArticleOrBuilderpublic int getSnippetsCount()
Output only. Article snippets.
repeated string snippets = 3;getSnippetsCount in interface Suggestion.ArticleOrBuilderpublic String getSnippets(int index)
Output only. Article snippets.
repeated string snippets = 3;getSnippets in interface Suggestion.ArticleOrBuilderindex - 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 Suggestion.ArticleOrBuilderindex - The index of the value to return.public int getMetadataCount()
Suggestion.ArticleOrBuilderOutput only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;getMetadataCount in interface Suggestion.ArticleOrBuilderpublic boolean containsMetadata(String key)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;containsMetadata in interface Suggestion.ArticleOrBuilder@Deprecated public Map<String,String> getMetadata()
getMetadataMap() instead.getMetadata in interface Suggestion.ArticleOrBuilderpublic Map<String,String> getMetadataMap()
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;getMetadataMap in interface Suggestion.ArticleOrBuilderpublic String getMetadataOrDefault(String key, String defaultValue)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;getMetadataOrDefault in interface Suggestion.ArticleOrBuilderpublic String getMetadataOrThrow(String key)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;getMetadataOrThrow in interface Suggestion.ArticleOrBuilderpublic String getAnswerRecord()
Output only. 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 Suggestion.ArticleOrBuilderpublic com.google.protobuf.ByteString getAnswerRecordBytes()
Output only. 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 Suggestion.ArticleOrBuilderpublic 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 Suggestion.Article parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Suggestion.Article parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Suggestion.Article parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Suggestion.Article parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Suggestion.Article parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Suggestion.Article parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Suggestion.Article parseFrom(InputStream input) throws IOException
IOExceptionpublic static Suggestion.Article parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Suggestion.Article parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Suggestion.Article parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Suggestion.Article parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Suggestion.Article parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Suggestion.Article.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Suggestion.Article.Builder newBuilder()
public static Suggestion.Article.Builder newBuilder(Suggestion.Article prototype)
public Suggestion.Article.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Suggestion.Article.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Suggestion.Article getDefaultInstance()
public static com.google.protobuf.Parser<Suggestion.Article> parser()
public com.google.protobuf.Parser<Suggestion.Article> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Suggestion.Article getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.