Class SearchExamplesRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchExamplesRequest.Builder>
com.google.cloud.aiplatform.v1beta1.SearchExamplesRequest.Builder
- All Implemented Interfaces:
SearchExamplesRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchExamplesRequest
public static final class SearchExamplesRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SearchExamplesRequest.Builder>
implements SearchExamplesRequestOrBuilder
Request message for [ExampleStoreService.SearchExamples][google.cloud.aiplatform.v1beta1.ExampleStoreService.SearchExamples].Protobuf type
google.cloud.aiplatform.v1beta1.SearchExamplesRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.The parameters of StoredContentsExamples to be searched.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.The parameters of StoredContentsExamples to be searched.The parameters of StoredContentsExamples to be searched.The parameters of StoredContentsExamples to be searched.longgetTopK()Optional.booleanThe parameters of StoredContentsExamples to be searched.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SearchExamplesRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The parameters of StoredContentsExamples to be searched.setExampleStore(String value) Required.setExampleStoreBytes(com.google.protobuf.ByteString value) Required.The parameters of StoredContentsExamples to be searched.The parameters of StoredContentsExamples to be searched.setTopK(long value) Optional.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<SearchExamplesRequest.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<SearchExamplesRequest.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<SearchExamplesRequest.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<SearchExamplesRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchExamplesRequest.Builder>
-
mergeFrom
public SearchExamplesRequest.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<SearchExamplesRequest.Builder>- Throws:
IOException
-
getParametersCase
- Specified by:
getParametersCasein interfaceSearchExamplesRequestOrBuilder
-
clearParameters
-
hasStoredContentsExampleParameters
public boolean hasStoredContentsExampleParameters()The parameters of StoredContentsExamples to be searched.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleParameters stored_contents_example_parameters = 6;- Specified by:
hasStoredContentsExampleParametersin interfaceSearchExamplesRequestOrBuilder- Returns:
- Whether the storedContentsExampleParameters field is set.
-
getStoredContentsExampleParameters
The parameters of StoredContentsExamples to be searched.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleParameters stored_contents_example_parameters = 6;- Specified by:
getStoredContentsExampleParametersin interfaceSearchExamplesRequestOrBuilder- Returns:
- The storedContentsExampleParameters.
-
setStoredContentsExampleParameters
public SearchExamplesRequest.Builder setStoredContentsExampleParameters(StoredContentsExampleParameters value) The parameters of StoredContentsExamples to be searched.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleParameters stored_contents_example_parameters = 6; -
setStoredContentsExampleParameters
public SearchExamplesRequest.Builder setStoredContentsExampleParameters(StoredContentsExampleParameters.Builder builderForValue) The parameters of StoredContentsExamples to be searched.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleParameters stored_contents_example_parameters = 6; -
mergeStoredContentsExampleParameters
public SearchExamplesRequest.Builder mergeStoredContentsExampleParameters(StoredContentsExampleParameters value) The parameters of StoredContentsExamples to be searched.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleParameters stored_contents_example_parameters = 6; -
clearStoredContentsExampleParameters
The parameters of StoredContentsExamples to be searched.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleParameters stored_contents_example_parameters = 6; -
getStoredContentsExampleParametersBuilder
The parameters of StoredContentsExamples to be searched.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleParameters stored_contents_example_parameters = 6; -
getStoredContentsExampleParametersOrBuilder
The parameters of StoredContentsExamples to be searched.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleParameters stored_contents_example_parameters = 6;- Specified by:
getStoredContentsExampleParametersOrBuilderin interfaceSearchExamplesRequestOrBuilder
-
getExampleStore
Required. The name of the ExampleStore resource that examples are retrieved from. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}`string example_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getExampleStorein interfaceSearchExamplesRequestOrBuilder- Returns:
- The exampleStore.
-
getExampleStoreBytes
public com.google.protobuf.ByteString getExampleStoreBytes()Required. The name of the ExampleStore resource that examples are retrieved from. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}`string example_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getExampleStoreBytesin interfaceSearchExamplesRequestOrBuilder- Returns:
- The bytes for exampleStore.
-
setExampleStore
Required. The name of the ExampleStore resource that examples are retrieved from. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}`string example_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The exampleStore to set.- Returns:
- This builder for chaining.
-
clearExampleStore
Required. The name of the ExampleStore resource that examples are retrieved from. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}`string example_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setExampleStoreBytes
Required. The name of the ExampleStore resource that examples are retrieved from. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}`string example_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for exampleStore to set.- Returns:
- This builder for chaining.
-
getTopK
public long getTopK()Optional. The number of similar examples to return.
int64 top_k = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTopKin interfaceSearchExamplesRequestOrBuilder- Returns:
- The topK.
-
setTopK
Optional. The number of similar examples to return.
int64 top_k = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The topK to set.- Returns:
- This builder for chaining.
-
clearTopK
Optional. The number of similar examples to return.
int64 top_k = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-