Class DataStoreConnectionSignals.AnswerPart.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataStoreConnectionSignals.AnswerPart.Builder>
com.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.AnswerPart.Builder
- All Implemented Interfaces:
DataStoreConnectionSignals.AnswerPartOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DataStoreConnectionSignals.AnswerPart
public static final class DataStoreConnectionSignals.AnswerPart.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DataStoreConnectionSignals.AnswerPart.Builder>
implements DataStoreConnectionSignals.AnswerPartOrBuilder
Answer part with citation.Protobuf type
google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.AnswerPart-
Method Summary
Modifier and TypeMethodDescriptionaddAllSupportingIndices(Iterable<? extends Integer> values) Citations for this answer part.addSupportingIndices(int value) Citations for this answer part.build()clear()Citations for this answer part.Substring of the answer.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetSupportingIndices(int index) Citations for this answer part.intCitations for this answer part.Citations for this answer part.getText()Substring of the answer.com.google.protobuf.ByteStringSubstring of the answer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setSupportingIndices(int index, int value) Citations for this answer part.Substring of the answer.setTextBytes(com.google.protobuf.ByteString value) Substring of the answer.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DataStoreConnectionSignals.AnswerPart.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DataStoreConnectionSignals.AnswerPart.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DataStoreConnectionSignals.AnswerPart.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataStoreConnectionSignals.AnswerPart.Builder>
-
mergeFrom
public DataStoreConnectionSignals.AnswerPart.Builder mergeFrom(DataStoreConnectionSignals.AnswerPart other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DataStoreConnectionSignals.AnswerPart.Builder>
-
mergeFrom
public DataStoreConnectionSignals.AnswerPart.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataStoreConnectionSignals.AnswerPart.Builder>- Throws:
IOException
-
getText
Substring of the answer.
string text = 1;- Specified by:
getTextin interfaceDataStoreConnectionSignals.AnswerPartOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()Substring of the answer.
string text = 1;- Specified by:
getTextBytesin interfaceDataStoreConnectionSignals.AnswerPartOrBuilder- Returns:
- The bytes for text.
-
setText
Substring of the answer.
string text = 1;- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
Substring of the answer.
string text = 1;- Returns:
- This builder for chaining.
-
setTextBytes
public DataStoreConnectionSignals.AnswerPart.Builder setTextBytes(com.google.protobuf.ByteString value) Substring of the answer.
string text = 1;- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
getSupportingIndicesList
Citations for this answer part. Indices of `search_snippets`.
repeated int32 supporting_indices = 2;- Specified by:
getSupportingIndicesListin interfaceDataStoreConnectionSignals.AnswerPartOrBuilder- Returns:
- A list containing the supportingIndices.
-
getSupportingIndicesCount
public int getSupportingIndicesCount()Citations for this answer part. Indices of `search_snippets`.
repeated int32 supporting_indices = 2;- Specified by:
getSupportingIndicesCountin interfaceDataStoreConnectionSignals.AnswerPartOrBuilder- Returns:
- The count of supportingIndices.
-
getSupportingIndices
public int getSupportingIndices(int index) Citations for this answer part. Indices of `search_snippets`.
repeated int32 supporting_indices = 2;- Specified by:
getSupportingIndicesin interfaceDataStoreConnectionSignals.AnswerPartOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The supportingIndices at the given index.
-
setSupportingIndices
Citations for this answer part. Indices of `search_snippets`.
repeated int32 supporting_indices = 2;- Parameters:
index- The index to set the value at.value- The supportingIndices to set.- Returns:
- This builder for chaining.
-
addSupportingIndices
Citations for this answer part. Indices of `search_snippets`.
repeated int32 supporting_indices = 2;- Parameters:
value- The supportingIndices to add.- Returns:
- This builder for chaining.
-
addAllSupportingIndices
public DataStoreConnectionSignals.AnswerPart.Builder addAllSupportingIndices(Iterable<? extends Integer> values) Citations for this answer part. Indices of `search_snippets`.
repeated int32 supporting_indices = 2;- Parameters:
values- The supportingIndices to add.- Returns:
- This builder for chaining.
-
clearSupportingIndices
Citations for this answer part. Indices of `search_snippets`.
repeated int32 supporting_indices = 2;- Returns:
- This builder for chaining.
-