Class StoredContentsExampleParameters.ContentSearchKey.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StoredContentsExampleParameters.ContentSearchKey.Builder>
com.google.cloud.aiplatform.v1beta1.StoredContentsExampleParameters.ContentSearchKey.Builder
- All Implemented Interfaces:
StoredContentsExampleParameters.ContentSearchKeyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StoredContentsExampleParameters.ContentSearchKey
public static final class StoredContentsExampleParameters.ContentSearchKey.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllContents(Iterable<? extends Content> values) Required.addContents(int index, Content value) Required.addContents(int index, Content.Builder builderForValue) Required.addContents(Content value) Required.addContents(Content.Builder builderForValue) Required.Required.addContentsBuilder(int index) Required.build()clear()Required.Required.getContents(int index) Required.getContentsBuilder(int index) Required.Required.intRequired.Required.getContentsOrBuilder(int index) Required.List<? extends ContentOrBuilder>Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.Required.Required.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.removeContents(int index) Required.setContents(int index, Content value) Required.setContents(int index, Content.Builder builderForValue) Required.Required.setSearchKeyGenerationMethod(StoredContentsExample.SearchKeyGenerationMethod.Builder builderForValue) Required.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<StoredContentsExampleParameters.ContentSearchKey.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<StoredContentsExampleParameters.ContentSearchKey.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<StoredContentsExampleParameters.ContentSearchKey.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
public StoredContentsExampleParameters.ContentSearchKey.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StoredContentsExampleParameters.ContentSearchKey.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StoredContentsExampleParameters.ContentSearchKey.Builder>
-
mergeFrom
public StoredContentsExampleParameters.ContentSearchKey.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<StoredContentsExampleParameters.ContentSearchKey.Builder>- Throws:
IOException
-
getContentsList
Required. The conversation for generating a search key.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentsListin interfaceStoredContentsExampleParameters.ContentSearchKeyOrBuilder
-
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];- Specified by:
getContentsCountin interfaceStoredContentsExampleParameters.ContentSearchKeyOrBuilder
-
getContents
Required. The conversation for generating a search key.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentsin interfaceStoredContentsExampleParameters.ContentSearchKeyOrBuilder
-
setContents
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]; -
setContents
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]; -
addContents
Required. The conversation for generating a search key.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED]; -
addContents
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]; -
addContents
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]; -
addContents
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]; -
addAllContents
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]; -
clearContents
Required. The conversation for generating a search key.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED]; -
removeContents
Required. The conversation for generating a search key.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED]; -
getContentsBuilder
Required. The conversation for generating a search key.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED]; -
getContentsOrBuilder
Required. The conversation for generating a search key.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentsOrBuilderin interfaceStoredContentsExampleParameters.ContentSearchKeyOrBuilder
-
getContentsOrBuilderList
Required. The conversation for generating a search key.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentsOrBuilderListin interfaceStoredContentsExampleParameters.ContentSearchKeyOrBuilder
-
addContentsBuilder
Required. The conversation for generating a search key.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED]; -
addContentsBuilder
Required. The conversation for generating a search key.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED]; -
getContentsBuilderList
Required. The conversation for generating a search key.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED]; -
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];- Specified by:
hasSearchKeyGenerationMethodin interfaceStoredContentsExampleParameters.ContentSearchKeyOrBuilder- Returns:
- Whether the searchKeyGenerationMethod field is set.
-
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];- Specified by:
getSearchKeyGenerationMethodin interfaceStoredContentsExampleParameters.ContentSearchKeyOrBuilder- Returns:
- The searchKeyGenerationMethod.
-
setSearchKeyGenerationMethod
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]; -
setSearchKeyGenerationMethod
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]; -
mergeSearchKeyGenerationMethod
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]; -
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]; -
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]; -
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];- Specified by:
getSearchKeyGenerationMethodOrBuilderin interfaceStoredContentsExampleParameters.ContentSearchKeyOrBuilder
-