public static final class StoredContentsExampleParameters.ContentSearchKey.Builder extends GeneratedMessage.Builder<StoredContentsExampleParameters.ContentSearchKey.Builder> implements StoredContentsExampleParameters.ContentSearchKeyOrBuilderThe chat history to use to generate the search key for retrieval.
Protobuf type
google.cloud.aiplatform.v1beta1.StoredContentsExampleParameters.ContentSearchKey
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StoredContentsExampleParameters.ContentSearchKey.BuilderStatic 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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
|
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 |
|
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 |
|