Class FetchExamplesRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FetchExamplesRequest.Builder>
com.google.cloud.aiplatform.v1beta1.FetchExamplesRequest.Builder
- All Implemented Interfaces:
FetchExamplesRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FetchExamplesRequest
public static final class FetchExamplesRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FetchExamplesRequest.Builder>
implements FetchExamplesRequestOrBuilder
Request message for [ExampleStoreService.FetchExamples][google.cloud.aiplatform.v1beta1.ExampleStoreService.FetchExamples].Protobuf type
google.cloud.aiplatform.v1beta1.FetchExamplesRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllExampleIds(Iterable<String> values) Optional.addExampleIds(String value) Optional.addExampleIdsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Required.Optional.Optional.The metadata filters for StoredContentsExamples.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExampleIds(int index) Optional.com.google.protobuf.ByteStringgetExampleIdsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Required.com.google.protobuf.ByteStringRequired.intOptional.Optional.com.google.protobuf.ByteStringOptional.The metadata filters for StoredContentsExamples.The metadata filters for StoredContentsExamples.The metadata filters for StoredContentsExamples.booleanThe metadata filters for StoredContentsExamples.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(FetchExamplesRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The metadata filters for StoredContentsExamples.setExampleIds(int index, String value) Optional.setExampleStore(String value) Required.setExampleStoreBytes(com.google.protobuf.ByteString value) Required.setPageSize(int value) Optional.setPageToken(String value) Optional.setPageTokenBytes(com.google.protobuf.ByteString value) Optional.The metadata filters for StoredContentsExamples.setStoredContentsExampleFilter(StoredContentsExampleFilter.Builder builderForValue) The metadata filters for StoredContentsExamples.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<FetchExamplesRequest.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<FetchExamplesRequest.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<FetchExamplesRequest.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<FetchExamplesRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FetchExamplesRequest.Builder>
-
mergeFrom
public FetchExamplesRequest.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<FetchExamplesRequest.Builder>- Throws:
IOException
-
getMetadataFilterCase
- Specified by:
getMetadataFilterCasein interfaceFetchExamplesRequestOrBuilder
-
clearMetadataFilter
-
hasStoredContentsExampleFilter
public boolean hasStoredContentsExampleFilter()The metadata filters for StoredContentsExamples.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleFilter stored_contents_example_filter = 8;- Specified by:
hasStoredContentsExampleFilterin interfaceFetchExamplesRequestOrBuilder- Returns:
- Whether the storedContentsExampleFilter field is set.
-
getStoredContentsExampleFilter
The metadata filters for StoredContentsExamples.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleFilter stored_contents_example_filter = 8;- Specified by:
getStoredContentsExampleFilterin interfaceFetchExamplesRequestOrBuilder- Returns:
- The storedContentsExampleFilter.
-
setStoredContentsExampleFilter
public FetchExamplesRequest.Builder setStoredContentsExampleFilter(StoredContentsExampleFilter value) The metadata filters for StoredContentsExamples.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleFilter stored_contents_example_filter = 8; -
setStoredContentsExampleFilter
public FetchExamplesRequest.Builder setStoredContentsExampleFilter(StoredContentsExampleFilter.Builder builderForValue) The metadata filters for StoredContentsExamples.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleFilter stored_contents_example_filter = 8; -
mergeStoredContentsExampleFilter
public FetchExamplesRequest.Builder mergeStoredContentsExampleFilter(StoredContentsExampleFilter value) The metadata filters for StoredContentsExamples.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleFilter stored_contents_example_filter = 8; -
clearStoredContentsExampleFilter
The metadata filters for StoredContentsExamples.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleFilter stored_contents_example_filter = 8; -
getStoredContentsExampleFilterBuilder
The metadata filters for StoredContentsExamples.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleFilter stored_contents_example_filter = 8; -
getStoredContentsExampleFilterOrBuilder
The metadata filters for StoredContentsExamples.
.google.cloud.aiplatform.v1beta1.StoredContentsExampleFilter stored_contents_example_filter = 8;- Specified by:
getStoredContentsExampleFilterOrBuilderin interfaceFetchExamplesRequestOrBuilder
-
getExampleStore
Required. The name of the ExampleStore resource that the examples should be fetched 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 interfaceFetchExamplesRequestOrBuilder- Returns:
- The exampleStore.
-
getExampleStoreBytes
public com.google.protobuf.ByteString getExampleStoreBytes()Required. The name of the ExampleStore resource that the examples should be fetched 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 interfaceFetchExamplesRequestOrBuilder- Returns:
- The bytes for exampleStore.
-
setExampleStore
Required. The name of the ExampleStore resource that the examples should be fetched 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 the examples should be fetched 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 the examples should be fetched 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.
-
getPageSize
public int getPageSize()Optional. The maximum number of examples to return. The service may return fewer than this value. If unspecified, at most 100 examples will be returned.
int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPageSizein interfaceFetchExamplesRequestOrBuilder- Returns:
- The pageSize.
-
setPageSize
Optional. The maximum number of examples to return. The service may return fewer than this value. If unspecified, at most 100 examples will be returned.
int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The pageSize to set.- Returns:
- This builder for chaining.
-
clearPageSize
Optional. The maximum number of examples to return. The service may return fewer than this value. If unspecified, at most 100 examples will be returned.
int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getPageToken
Optional. The [next_page_token][google.cloud.aiplatform.v1beta1.FetchExamplesResponse.next_page_token] value returned from a previous list [ExampleStoreService.FetchExamplesResponse][] call.
string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPageTokenin interfaceFetchExamplesRequestOrBuilder- Returns:
- The pageToken.
-
getPageTokenBytes
public com.google.protobuf.ByteString getPageTokenBytes()Optional. The [next_page_token][google.cloud.aiplatform.v1beta1.FetchExamplesResponse.next_page_token] value returned from a previous list [ExampleStoreService.FetchExamplesResponse][] call.
string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPageTokenBytesin interfaceFetchExamplesRequestOrBuilder- Returns:
- The bytes for pageToken.
-
setPageToken
Optional. The [next_page_token][google.cloud.aiplatform.v1beta1.FetchExamplesResponse.next_page_token] value returned from a previous list [ExampleStoreService.FetchExamplesResponse][] call.
string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The pageToken to set.- Returns:
- This builder for chaining.
-
clearPageToken
Optional. The [next_page_token][google.cloud.aiplatform.v1beta1.FetchExamplesResponse.next_page_token] value returned from a previous list [ExampleStoreService.FetchExamplesResponse][] call.
string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setPageTokenBytes
Optional. The [next_page_token][google.cloud.aiplatform.v1beta1.FetchExamplesResponse.next_page_token] value returned from a previous list [ExampleStoreService.FetchExamplesResponse][] call.
string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for pageToken to set.- Returns:
- This builder for chaining.
-
getExampleIdsList
public com.google.protobuf.ProtocolStringList getExampleIdsList()Optional. Example IDs to fetch. If both metadata filters and Example IDs are specified, then both ID and metadata filtering will be applied.
repeated string example_ids = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExampleIdsListin interfaceFetchExamplesRequestOrBuilder- Returns:
- A list containing the exampleIds.
-
getExampleIdsCount
public int getExampleIdsCount()Optional. Example IDs to fetch. If both metadata filters and Example IDs are specified, then both ID and metadata filtering will be applied.
repeated string example_ids = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExampleIdsCountin interfaceFetchExamplesRequestOrBuilder- Returns:
- The count of exampleIds.
-
getExampleIds
Optional. Example IDs to fetch. If both metadata filters and Example IDs are specified, then both ID and metadata filtering will be applied.
repeated string example_ids = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExampleIdsin interfaceFetchExamplesRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The exampleIds at the given index.
-
getExampleIdsBytes
public com.google.protobuf.ByteString getExampleIdsBytes(int index) Optional. Example IDs to fetch. If both metadata filters and Example IDs are specified, then both ID and metadata filtering will be applied.
repeated string example_ids = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExampleIdsBytesin interfaceFetchExamplesRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the exampleIds at the given index.
-
setExampleIds
Optional. Example IDs to fetch. If both metadata filters and Example IDs are specified, then both ID and metadata filtering will be applied.
repeated string example_ids = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The exampleIds to set.- Returns:
- This builder for chaining.
-
addExampleIds
Optional. Example IDs to fetch. If both metadata filters and Example IDs are specified, then both ID and metadata filtering will be applied.
repeated string example_ids = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The exampleIds to add.- Returns:
- This builder for chaining.
-
addAllExampleIds
Optional. Example IDs to fetch. If both metadata filters and Example IDs are specified, then both ID and metadata filtering will be applied.
repeated string example_ids = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The exampleIds to add.- Returns:
- This builder for chaining.
-
clearExampleIds
Optional. Example IDs to fetch. If both metadata filters and Example IDs are specified, then both ID and metadata filtering will be applied.
repeated string example_ids = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addExampleIdsBytes
Optional. Example IDs to fetch. If both metadata filters and Example IDs are specified, then both ID and metadata filtering will be applied.
repeated string example_ids = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the exampleIds to add.- Returns:
- This builder for chaining.
-