Class DataStoreConnectionSignals.CitedSnippet.Builder (0.65.0)

public static final class DataStoreConnectionSignals.CitedSnippet.Builder extends GeneratedMessageV3.Builder<DataStoreConnectionSignals.CitedSnippet.Builder> implements DataStoreConnectionSignals.CitedSnippetOrBuilder

Snippet cited by the answer generation model.

Protobuf type google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataStoreConnectionSignals.CitedSnippet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Overrides

build()

public DataStoreConnectionSignals.CitedSnippet build()
Returns
Type Description
DataStoreConnectionSignals.CitedSnippet

buildPartial()

public DataStoreConnectionSignals.CitedSnippet buildPartial()
Returns
Type Description
DataStoreConnectionSignals.CitedSnippet

clear()

public DataStoreConnectionSignals.CitedSnippet.Builder clear()
Overrides

clearField(Descriptors.FieldDescriptor field)

public DataStoreConnectionSignals.CitedSnippet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DataStoreConnectionSignals.CitedSnippet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Overrides

clearSearchSnippet()

public DataStoreConnectionSignals.CitedSnippet.Builder clearSearchSnippet()

Details of the snippet.

.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1;

clearSnippetIndex()

public DataStoreConnectionSignals.CitedSnippet.Builder clearSnippetIndex()

Index of the snippet in search_snippets field.

int32 snippet_index = 2;

Returns
Type Description
DataStoreConnectionSignals.CitedSnippet.Builder

This builder for chaining.

clone()

public DataStoreConnectionSignals.CitedSnippet.Builder clone()
Overrides

getDefaultInstanceForType()

public DataStoreConnectionSignals.CitedSnippet getDefaultInstanceForType()
Returns
Type Description
DataStoreConnectionSignals.CitedSnippet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSearchSnippet()

public DataStoreConnectionSignals.SearchSnippet getSearchSnippet()

Details of the snippet.

.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1;

Returns
Type Description
DataStoreConnectionSignals.SearchSnippet

The searchSnippet.

getSearchSnippetBuilder()

public DataStoreConnectionSignals.SearchSnippet.Builder getSearchSnippetBuilder()

Details of the snippet.

.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1;

getSearchSnippetOrBuilder()

public DataStoreConnectionSignals.SearchSnippetOrBuilder getSearchSnippetOrBuilder()

Details of the snippet.

.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1;

getSnippetIndex()

public int getSnippetIndex()

Index of the snippet in search_snippets field.

int32 snippet_index = 2;

Returns
Type Description
int

The snippetIndex.

hasSearchSnippet()

public boolean hasSearchSnippet()

Details of the snippet.

.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1;

Returns
Type Description
boolean

Whether the searchSnippet field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataStoreConnectionSignals.CitedSnippet other)

public DataStoreConnectionSignals.CitedSnippet.Builder mergeFrom(DataStoreConnectionSignals.CitedSnippet other)
Parameter
Name Description
other DataStoreConnectionSignals.CitedSnippet

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataStoreConnectionSignals.CitedSnippet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataStoreConnectionSignals.CitedSnippet.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Overrides

mergeSearchSnippet(DataStoreConnectionSignals.SearchSnippet value)

public DataStoreConnectionSignals.CitedSnippet.Builder mergeSearchSnippet(DataStoreConnectionSignals.SearchSnippet value)

Details of the snippet.

.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1;

Parameter
Name Description
value DataStoreConnectionSignals.SearchSnippet

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataStoreConnectionSignals.CitedSnippet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DataStoreConnectionSignals.CitedSnippet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataStoreConnectionSignals.CitedSnippet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Overrides

setSearchSnippet(DataStoreConnectionSignals.SearchSnippet value)

public DataStoreConnectionSignals.CitedSnippet.Builder setSearchSnippet(DataStoreConnectionSignals.SearchSnippet value)

Details of the snippet.

.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1;

Parameter
Name Description
value DataStoreConnectionSignals.SearchSnippet

setSearchSnippet(DataStoreConnectionSignals.SearchSnippet.Builder builderForValue)

public DataStoreConnectionSignals.CitedSnippet.Builder setSearchSnippet(DataStoreConnectionSignals.SearchSnippet.Builder builderForValue)

Details of the snippet.

.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1;

Parameter
Name Description
builderForValue DataStoreConnectionSignals.SearchSnippet.Builder

setSnippetIndex(int value)

public DataStoreConnectionSignals.CitedSnippet.Builder setSnippetIndex(int value)

Index of the snippet in search_snippets field.

int32 snippet_index = 2;

Parameter
Name Description
value int

The snippetIndex to set.

Returns
Type Description
DataStoreConnectionSignals.CitedSnippet.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DataStoreConnectionSignals.CitedSnippet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides