Class UpsertDatapointsRequest.Builder

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

public static final class UpsertDatapointsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpsertDatapointsRequest.Builder> implements UpsertDatapointsRequestOrBuilder
 Request message for
 [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1.IndexService.UpsertDatapoints]
 
Protobuf type google.cloud.aiplatform.v1.UpsertDatapointsRequest
  • 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<UpsertDatapointsRequest.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<UpsertDatapointsRequest.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<UpsertDatapointsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public UpsertDatapointsRequest.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<UpsertDatapointsRequest.Builder>
      Throws:
      IOException
    • getIndex

      public String getIndex()
       Required. The name of the Index resource to be updated.
       Format:
       `projects/{project}/locations/{location}/indexes/{index}`
       
      string index = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getIndex in interface UpsertDatapointsRequestOrBuilder
      Returns:
      The index.
    • getIndexBytes

      public com.google.protobuf.ByteString getIndexBytes()
       Required. The name of the Index resource to be updated.
       Format:
       `projects/{project}/locations/{location}/indexes/{index}`
       
      string index = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getIndexBytes in interface UpsertDatapointsRequestOrBuilder
      Returns:
      The bytes for index.
    • setIndex

      public UpsertDatapointsRequest.Builder setIndex(String value)
       Required. The name of the Index resource to be updated.
       Format:
       `projects/{project}/locations/{location}/indexes/{index}`
       
      string index = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The index to set.
      Returns:
      This builder for chaining.
    • clearIndex

      public UpsertDatapointsRequest.Builder clearIndex()
       Required. The name of the Index resource to be updated.
       Format:
       `projects/{project}/locations/{location}/indexes/{index}`
       
      string index = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setIndexBytes

      public UpsertDatapointsRequest.Builder setIndexBytes(com.google.protobuf.ByteString value)
       Required. The name of the Index resource to be updated.
       Format:
       `projects/{project}/locations/{location}/indexes/{index}`
       
      string index = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for index to set.
      Returns:
      This builder for chaining.
    • getDatapointsList

      public List<IndexDatapoint> getDatapointsList()
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
      Specified by:
      getDatapointsList in interface UpsertDatapointsRequestOrBuilder
    • getDatapointsCount

      public int getDatapointsCount()
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
      Specified by:
      getDatapointsCount in interface UpsertDatapointsRequestOrBuilder
    • getDatapoints

      public IndexDatapoint getDatapoints(int index)
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
      Specified by:
      getDatapoints in interface UpsertDatapointsRequestOrBuilder
    • setDatapoints

      public UpsertDatapointsRequest.Builder setDatapoints(int index, IndexDatapoint value)
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
    • setDatapoints

      public UpsertDatapointsRequest.Builder setDatapoints(int index, IndexDatapoint.Builder builderForValue)
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
    • addDatapoints

      public UpsertDatapointsRequest.Builder addDatapoints(IndexDatapoint value)
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
    • addDatapoints

      public UpsertDatapointsRequest.Builder addDatapoints(int index, IndexDatapoint value)
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
    • addDatapoints

      public UpsertDatapointsRequest.Builder addDatapoints(IndexDatapoint.Builder builderForValue)
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
    • addDatapoints

      public UpsertDatapointsRequest.Builder addDatapoints(int index, IndexDatapoint.Builder builderForValue)
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
    • addAllDatapoints

      public UpsertDatapointsRequest.Builder addAllDatapoints(Iterable<? extends IndexDatapoint> values)
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
    • clearDatapoints

      public UpsertDatapointsRequest.Builder clearDatapoints()
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
    • removeDatapoints

      public UpsertDatapointsRequest.Builder removeDatapoints(int index)
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
    • getDatapointsBuilder

      public IndexDatapoint.Builder getDatapointsBuilder(int index)
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
    • getDatapointsOrBuilder

      public IndexDatapointOrBuilder getDatapointsOrBuilder(int index)
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
      Specified by:
      getDatapointsOrBuilder in interface UpsertDatapointsRequestOrBuilder
    • getDatapointsOrBuilderList

      public List<? extends IndexDatapointOrBuilder> getDatapointsOrBuilderList()
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
      Specified by:
      getDatapointsOrBuilderList in interface UpsertDatapointsRequestOrBuilder
    • addDatapointsBuilder

      public IndexDatapoint.Builder addDatapointsBuilder()
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
    • addDatapointsBuilder

      public IndexDatapoint.Builder addDatapointsBuilder(int index)
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
    • getDatapointsBuilderList

      public List<IndexDatapoint.Builder> getDatapointsBuilderList()
       A list of datapoints to be created/updated.
       
      repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
    • hasUpdateMask

      public boolean hasUpdateMask()
       Optional. Update mask is used to specify the fields to be overwritten in
       the datapoints by the update. The fields specified in the update_mask are
       relative to each IndexDatapoint inside datapoints, not the full request.
      
       Updatable fields:
      
       * Use `all_restricts` to update both restricts and numeric_restricts.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUpdateMask in interface UpsertDatapointsRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Optional. Update mask is used to specify the fields to be overwritten in
       the datapoints by the update. The fields specified in the update_mask are
       relative to each IndexDatapoint inside datapoints, not the full request.
      
       Updatable fields:
      
       * Use `all_restricts` to update both restricts and numeric_restricts.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMask in interface UpsertDatapointsRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpsertDatapointsRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Optional. Update mask is used to specify the fields to be overwritten in
       the datapoints by the update. The fields specified in the update_mask are
       relative to each IndexDatapoint inside datapoints, not the full request.
      
       Updatable fields:
      
       * Use `all_restricts` to update both restricts and numeric_restricts.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setUpdateMask

      public UpsertDatapointsRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Optional. Update mask is used to specify the fields to be overwritten in
       the datapoints by the update. The fields specified in the update_mask are
       relative to each IndexDatapoint inside datapoints, not the full request.
      
       Updatable fields:
      
       * Use `all_restricts` to update both restricts and numeric_restricts.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeUpdateMask

      public UpsertDatapointsRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Optional. Update mask is used to specify the fields to be overwritten in
       the datapoints by the update. The fields specified in the update_mask are
       relative to each IndexDatapoint inside datapoints, not the full request.
      
       Updatable fields:
      
       * Use `all_restricts` to update both restricts and numeric_restricts.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearUpdateMask

      public UpsertDatapointsRequest.Builder clearUpdateMask()
       Optional. Update mask is used to specify the fields to be overwritten in
       the datapoints by the update. The fields specified in the update_mask are
       relative to each IndexDatapoint inside datapoints, not the full request.
      
       Updatable fields:
      
       * Use `all_restricts` to update both restricts and numeric_restricts.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Optional. Update mask is used to specify the fields to be overwritten in
       the datapoints by the update. The fields specified in the update_mask are
       relative to each IndexDatapoint inside datapoints, not the full request.
      
       Updatable fields:
      
       * Use `all_restricts` to update both restricts and numeric_restricts.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Optional. Update mask is used to specify the fields to be overwritten in
       the datapoints by the update. The fields specified in the update_mask are
       relative to each IndexDatapoint inside datapoints, not the full request.
      
       Updatable fields:
      
       * Use `all_restricts` to update both restricts and numeric_restricts.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMaskOrBuilder in interface UpsertDatapointsRequestOrBuilder