Class StoredContentsExampleFilter.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StoredContentsExampleFilter.Builder>
com.google.cloud.aiplatform.v1beta1.StoredContentsExampleFilter.Builder
All Implemented Interfaces:
StoredContentsExampleFilterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
StoredContentsExampleFilter

public static final class StoredContentsExampleFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<StoredContentsExampleFilter.Builder> implements StoredContentsExampleFilterOrBuilder
 The metadata filters that will be used to remove or fetch
 StoredContentsExamples. If a field is unspecified, then no filtering for that
 field will be applied.
 
Protobuf type google.cloud.aiplatform.v1beta1.StoredContentsExampleFilter
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StoredContentsExampleFilter.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StoredContentsExampleFilter.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StoredContentsExampleFilter.Builder>
    • getDefaultInstanceForType

      public StoredContentsExampleFilter getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public StoredContentsExampleFilter buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public StoredContentsExampleFilter.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StoredContentsExampleFilter.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<StoredContentsExampleFilter.Builder>
    • mergeFrom

      public StoredContentsExampleFilter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StoredContentsExampleFilter.Builder>
      Throws:
      IOException
    • getSearchKeysList

      public com.google.protobuf.ProtocolStringList getSearchKeysList()
       Optional. The search keys for filtering. Only examples with one of the
       specified search keys
       ([StoredContentsExample.search_key][google.cloud.aiplatform.v1beta1.StoredContentsExample.search_key])
       are eligible to be returned.
       
      repeated string search_keys = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSearchKeysList in interface StoredContentsExampleFilterOrBuilder
      Returns:
      A list containing the searchKeys.
    • getSearchKeysCount

      public int getSearchKeysCount()
       Optional. The search keys for filtering. Only examples with one of the
       specified search keys
       ([StoredContentsExample.search_key][google.cloud.aiplatform.v1beta1.StoredContentsExample.search_key])
       are eligible to be returned.
       
      repeated string search_keys = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSearchKeysCount in interface StoredContentsExampleFilterOrBuilder
      Returns:
      The count of searchKeys.
    • getSearchKeys

      public String getSearchKeys(int index)
       Optional. The search keys for filtering. Only examples with one of the
       specified search keys
       ([StoredContentsExample.search_key][google.cloud.aiplatform.v1beta1.StoredContentsExample.search_key])
       are eligible to be returned.
       
      repeated string search_keys = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSearchKeys in interface StoredContentsExampleFilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The searchKeys at the given index.
    • getSearchKeysBytes

      public com.google.protobuf.ByteString getSearchKeysBytes(int index)
       Optional. The search keys for filtering. Only examples with one of the
       specified search keys
       ([StoredContentsExample.search_key][google.cloud.aiplatform.v1beta1.StoredContentsExample.search_key])
       are eligible to be returned.
       
      repeated string search_keys = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSearchKeysBytes in interface StoredContentsExampleFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the searchKeys at the given index.
    • setSearchKeys

      public StoredContentsExampleFilter.Builder setSearchKeys(int index, String value)
       Optional. The search keys for filtering. Only examples with one of the
       specified search keys
       ([StoredContentsExample.search_key][google.cloud.aiplatform.v1beta1.StoredContentsExample.search_key])
       are eligible to be returned.
       
      repeated string search_keys = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The searchKeys to set.
      Returns:
      This builder for chaining.
    • addSearchKeys

      public StoredContentsExampleFilter.Builder addSearchKeys(String value)
       Optional. The search keys for filtering. Only examples with one of the
       specified search keys
       ([StoredContentsExample.search_key][google.cloud.aiplatform.v1beta1.StoredContentsExample.search_key])
       are eligible to be returned.
       
      repeated string search_keys = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The searchKeys to add.
      Returns:
      This builder for chaining.
    • addAllSearchKeys

      public StoredContentsExampleFilter.Builder addAllSearchKeys(Iterable<String> values)
       Optional. The search keys for filtering. Only examples with one of the
       specified search keys
       ([StoredContentsExample.search_key][google.cloud.aiplatform.v1beta1.StoredContentsExample.search_key])
       are eligible to be returned.
       
      repeated string search_keys = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The searchKeys to add.
      Returns:
      This builder for chaining.
    • clearSearchKeys

      public StoredContentsExampleFilter.Builder clearSearchKeys()
       Optional. The search keys for filtering. Only examples with one of the
       specified search keys
       ([StoredContentsExample.search_key][google.cloud.aiplatform.v1beta1.StoredContentsExample.search_key])
       are eligible to be returned.
       
      repeated string search_keys = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addSearchKeysBytes

      public StoredContentsExampleFilter.Builder addSearchKeysBytes(com.google.protobuf.ByteString value)
       Optional. The search keys for filtering. Only examples with one of the
       specified search keys
       ([StoredContentsExample.search_key][google.cloud.aiplatform.v1beta1.StoredContentsExample.search_key])
       are eligible to be returned.
       
      repeated string search_keys = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the searchKeys to add.
      Returns:
      This builder for chaining.
    • hasFunctionNames

      public boolean hasFunctionNames()
       Optional. The function names for filtering.
       
      .google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFunctionNames in interface StoredContentsExampleFilterOrBuilder
      Returns:
      Whether the functionNames field is set.
    • getFunctionNames

      public ExamplesArrayFilter getFunctionNames()
       Optional. The function names for filtering.
       
      .google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFunctionNames in interface StoredContentsExampleFilterOrBuilder
      Returns:
      The functionNames.
    • setFunctionNames

       Optional. The function names for filtering.
       
      .google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setFunctionNames

      public StoredContentsExampleFilter.Builder setFunctionNames(ExamplesArrayFilter.Builder builderForValue)
       Optional. The function names for filtering.
       
      .google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeFunctionNames

      public StoredContentsExampleFilter.Builder mergeFunctionNames(ExamplesArrayFilter value)
       Optional. The function names for filtering.
       
      .google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearFunctionNames

      public StoredContentsExampleFilter.Builder clearFunctionNames()
       Optional. The function names for filtering.
       
      .google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getFunctionNamesBuilder

      public ExamplesArrayFilter.Builder getFunctionNamesBuilder()
       Optional. The function names for filtering.
       
      .google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getFunctionNamesOrBuilder

      public ExamplesArrayFilterOrBuilder getFunctionNamesOrBuilder()
       Optional. The function names for filtering.
       
      .google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFunctionNamesOrBuilder in interface StoredContentsExampleFilterOrBuilder