Class StoredContentsExampleParameters.ContentSearchKey.Builder (3.64.0)

public static final class StoredContentsExampleParameters.ContentSearchKey.Builder extends GeneratedMessageV3.Builder<StoredContentsExampleParameters.ContentSearchKey.Builder> implements StoredContentsExampleParameters.ContentSearchKeyOrBuilder

The chat history to use to generate the search key for retrieval.

Protobuf type google.cloud.aiplatform.v1beta1.StoredContentsExampleParameters.ContentSearchKey

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > StoredContentsExampleParameters.ContentSearchKey.Builder

Static Methods

getDescriptor()

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

Methods

addAllContents(Iterable<? extends Content> values)

public StoredContentsExampleParameters.ContentSearchKey.Builder addAllContents(Iterable<? extends Content> values)

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.Content>
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

addContents(Content value)

public StoredContentsExampleParameters.ContentSearchKey.Builder addContents(Content value)

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Content
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

addContents(Content.Builder builderForValue)

public StoredContentsExampleParameters.ContentSearchKey.Builder addContents(Content.Builder builderForValue)

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Content.Builder
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

addContents(int index, Content value)

public StoredContentsExampleParameters.ContentSearchKey.Builder addContents(int index, Content value)

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Content
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

addContents(int index, Content.Builder builderForValue)

public StoredContentsExampleParameters.ContentSearchKey.Builder addContents(int index, Content.Builder builderForValue)

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Content.Builder
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

addContentsBuilder()

public Content.Builder addContentsBuilder()

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Content.Builder

addContentsBuilder(int index)

public Content.Builder addContentsBuilder(int index)

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Content.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StoredContentsExampleParameters.ContentSearchKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder
Overrides

build()

public StoredContentsExampleParameters.ContentSearchKey build()
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey

buildPartial()

public StoredContentsExampleParameters.ContentSearchKey buildPartial()
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey

clear()

public StoredContentsExampleParameters.ContentSearchKey.Builder clear()
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder
Overrides

clearContents()

public StoredContentsExampleParameters.ContentSearchKey.Builder clearContents()

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

clearField(Descriptors.FieldDescriptor field)

public StoredContentsExampleParameters.ContentSearchKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StoredContentsExampleParameters.ContentSearchKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder
Overrides

clearSearchKeyGenerationMethod()

public StoredContentsExampleParameters.ContentSearchKey.Builder clearSearchKeyGenerationMethod()

Required. The method of generating a search key.

.google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod search_key_generation_method = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

clone()

public StoredContentsExampleParameters.ContentSearchKey.Builder clone()
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder
Overrides

getContents(int index)

public Content getContents(int index)

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Content

getContentsBuilder(int index)

public Content.Builder getContentsBuilder(int index)

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Content.Builder

getContentsBuilderList()

public List<Content.Builder> getContentsBuilderList()

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getContentsCount()

public int getContentsCount()

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getContentsList()

public List<Content> getContentsList()

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Content>

getContentsOrBuilder(int index)

public ContentOrBuilder getContentsOrBuilder(int index)

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ContentOrBuilder

getContentsOrBuilderList()

public List<? extends ContentOrBuilder> getContentsOrBuilderList()

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>

getDefaultInstanceForType()

public StoredContentsExampleParameters.ContentSearchKey getDefaultInstanceForType()
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey

getDescriptorForType()

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

getSearchKeyGenerationMethod()

public StoredContentsExample.SearchKeyGenerationMethod getSearchKeyGenerationMethod()

Required. The method of generating a search key.

.google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod search_key_generation_method = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StoredContentsExample.SearchKeyGenerationMethod

The searchKeyGenerationMethod.

getSearchKeyGenerationMethodBuilder()

public StoredContentsExample.SearchKeyGenerationMethod.Builder getSearchKeyGenerationMethodBuilder()

Required. The method of generating a search key.

.google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod search_key_generation_method = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StoredContentsExample.SearchKeyGenerationMethod.Builder

getSearchKeyGenerationMethodOrBuilder()

public StoredContentsExample.SearchKeyGenerationMethodOrBuilder getSearchKeyGenerationMethodOrBuilder()

Required. The method of generating a search key.

.google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod search_key_generation_method = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StoredContentsExample.SearchKeyGenerationMethodOrBuilder

hasSearchKeyGenerationMethod()

public boolean hasSearchKeyGenerationMethod()

Required. The method of generating a search key.

.google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod search_key_generation_method = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the searchKeyGenerationMethod field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StoredContentsExampleParameters.ContentSearchKey other)

public StoredContentsExampleParameters.ContentSearchKey.Builder mergeFrom(StoredContentsExampleParameters.ContentSearchKey other)
Parameter
Name Description
other StoredContentsExampleParameters.ContentSearchKey
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StoredContentsExampleParameters.ContentSearchKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StoredContentsExampleParameters.ContentSearchKey.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder
Overrides

mergeSearchKeyGenerationMethod(StoredContentsExample.SearchKeyGenerationMethod value)

public StoredContentsExampleParameters.ContentSearchKey.Builder mergeSearchKeyGenerationMethod(StoredContentsExample.SearchKeyGenerationMethod value)

Required. The method of generating a search key.

.google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod search_key_generation_method = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value StoredContentsExample.SearchKeyGenerationMethod
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StoredContentsExampleParameters.ContentSearchKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder
Overrides

removeContents(int index)

public StoredContentsExampleParameters.ContentSearchKey.Builder removeContents(int index)

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

setContents(int index, Content value)

public StoredContentsExampleParameters.ContentSearchKey.Builder setContents(int index, Content value)

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Content
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

setContents(int index, Content.Builder builderForValue)

public StoredContentsExampleParameters.ContentSearchKey.Builder setContents(int index, Content.Builder builderForValue)

Required. The conversation for generating a search key.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Content.Builder
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StoredContentsExampleParameters.ContentSearchKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder
Overrides

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

public StoredContentsExampleParameters.ContentSearchKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder
Overrides

setSearchKeyGenerationMethod(StoredContentsExample.SearchKeyGenerationMethod value)

public StoredContentsExampleParameters.ContentSearchKey.Builder setSearchKeyGenerationMethod(StoredContentsExample.SearchKeyGenerationMethod value)

Required. The method of generating a search key.

.google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod search_key_generation_method = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value StoredContentsExample.SearchKeyGenerationMethod
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

setSearchKeyGenerationMethod(StoredContentsExample.SearchKeyGenerationMethod.Builder builderForValue)

public StoredContentsExampleParameters.ContentSearchKey.Builder setSearchKeyGenerationMethod(StoredContentsExample.SearchKeyGenerationMethod.Builder builderForValue)

Required. The method of generating a search key.

.google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod search_key_generation_method = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue StoredContentsExample.SearchKeyGenerationMethod.Builder
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final StoredContentsExampleParameters.ContentSearchKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StoredContentsExampleParameters.ContentSearchKey.Builder
Overrides