Class UpsertExamplesRequest.Builder

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

public static final class UpsertExamplesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpsertExamplesRequest.Builder> implements UpsertExamplesRequestOrBuilder
 Request message for
 [ExampleStoreService.UpsertExamples][google.cloud.aiplatform.v1beta1.ExampleStoreService.UpsertExamples].
 
Protobuf type google.cloud.aiplatform.v1beta1.UpsertExamplesRequest
  • 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<UpsertExamplesRequest.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<UpsertExamplesRequest.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<UpsertExamplesRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public UpsertExamplesRequest.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<UpsertExamplesRequest.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<UpsertExamplesRequest.Builder>
    • mergeFrom

      public UpsertExamplesRequest.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<UpsertExamplesRequest.Builder>
      Throws:
      IOException
    • getExampleStore

      public String getExampleStore()
       Required. The name of the ExampleStore resource that examples are added to
       or updated in. Format:
       `projects/{project}/locations/{location}/exampleStores/{example_store}`
       
      string example_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getExampleStore in interface UpsertExamplesRequestOrBuilder
      Returns:
      The exampleStore.
    • getExampleStoreBytes

      public com.google.protobuf.ByteString getExampleStoreBytes()
       Required. The name of the ExampleStore resource that examples are added to
       or updated in. Format:
       `projects/{project}/locations/{location}/exampleStores/{example_store}`
       
      string example_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getExampleStoreBytes in interface UpsertExamplesRequestOrBuilder
      Returns:
      The bytes for exampleStore.
    • setExampleStore

      public UpsertExamplesRequest.Builder setExampleStore(String value)
       Required. The name of the ExampleStore resource that examples are added to
       or updated in. 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

      public UpsertExamplesRequest.Builder clearExampleStore()
       Required. The name of the ExampleStore resource that examples are added to
       or updated in. 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

      public UpsertExamplesRequest.Builder setExampleStoreBytes(com.google.protobuf.ByteString value)
       Required. The name of the ExampleStore resource that examples are added to
       or updated in. 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.
    • getExamplesList

      public List<Example> getExamplesList()
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExamplesList in interface UpsertExamplesRequestOrBuilder
    • getExamplesCount

      public int getExamplesCount()
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExamplesCount in interface UpsertExamplesRequestOrBuilder
    • getExamples

      public Example getExamples(int index)
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExamples in interface UpsertExamplesRequestOrBuilder
    • setExamples

      public UpsertExamplesRequest.Builder setExamples(int index, Example value)
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
    • setExamples

      public UpsertExamplesRequest.Builder setExamples(int index, Example.Builder builderForValue)
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
    • addExamples

      public UpsertExamplesRequest.Builder addExamples(Example value)
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
    • addExamples

      public UpsertExamplesRequest.Builder addExamples(int index, Example value)
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
    • addExamples

      public UpsertExamplesRequest.Builder addExamples(Example.Builder builderForValue)
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
    • addExamples

      public UpsertExamplesRequest.Builder addExamples(int index, Example.Builder builderForValue)
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllExamples

      public UpsertExamplesRequest.Builder addAllExamples(Iterable<? extends Example> values)
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearExamples

      public UpsertExamplesRequest.Builder clearExamples()
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeExamples

      public UpsertExamplesRequest.Builder removeExamples(int index)
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
    • getExamplesBuilder

      public Example.Builder getExamplesBuilder(int index)
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
    • getExamplesOrBuilder

      public ExampleOrBuilder getExamplesOrBuilder(int index)
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExamplesOrBuilder in interface UpsertExamplesRequestOrBuilder
    • getExamplesOrBuilderList

      public List<? extends ExampleOrBuilder> getExamplesOrBuilderList()
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExamplesOrBuilderList in interface UpsertExamplesRequestOrBuilder
    • addExamplesBuilder

      public Example.Builder addExamplesBuilder()
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
    • addExamplesBuilder

      public Example.Builder addExamplesBuilder(int index)
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
    • getExamplesBuilderList

      public List<Example.Builder> getExamplesBuilderList()
       Required. A list of examples to be created/updated.
       
      repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
    • getOverwrite

      public boolean getOverwrite()
       Optional. A flag indicating whether an example can be overwritten if it
       already exists. If False (default) and the example already exists, the
       example will not be updated. This does not affect behavior if the example
       does not exist already.
       
      bool overwrite = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOverwrite in interface UpsertExamplesRequestOrBuilder
      Returns:
      The overwrite.
    • setOverwrite

      public UpsertExamplesRequest.Builder setOverwrite(boolean value)
       Optional. A flag indicating whether an example can be overwritten if it
       already exists. If False (default) and the example already exists, the
       example will not be updated. This does not affect behavior if the example
       does not exist already.
       
      bool overwrite = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The overwrite to set.
      Returns:
      This builder for chaining.
    • clearOverwrite

      public UpsertExamplesRequest.Builder clearOverwrite()
       Optional. A flag indicating whether an example can be overwritten if it
       already exists. If False (default) and the example already exists, the
       example will not be updated. This does not affect behavior if the example
       does not exist already.
       
      bool overwrite = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.