Class Data.CreateIndexRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Data.CreateIndexRequest,Data.CreateIndexRequest.Builder>
viam.app.data.v1.Data.CreateIndexRequest.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Data.CreateIndexRequestOrBuilder
Enclosing class:
Data.CreateIndexRequest

public static final class Data.CreateIndexRequest.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Data.CreateIndexRequest,Data.CreateIndexRequest.Builder> implements Data.CreateIndexRequestOrBuilder
 CreateIndexRequest starts a custom index build
 
Protobuf type viam.app.data.v1.CreateIndexRequest
  • Method Details

    • getOrganizationId

      public String getOrganizationId()
      string organization_id = 1 [json_name = "organizationId"];
      Specified by:
      getOrganizationId in interface Data.CreateIndexRequestOrBuilder
      Returns:
      The organizationId.
    • getOrganizationIdBytes

      public com.google.protobuf.ByteString getOrganizationIdBytes()
      string organization_id = 1 [json_name = "organizationId"];
      Specified by:
      getOrganizationIdBytes in interface Data.CreateIndexRequestOrBuilder
      Returns:
      The bytes for organizationId.
    • setOrganizationId

      public Data.CreateIndexRequest.Builder setOrganizationId(String value)
      string organization_id = 1 [json_name = "organizationId"];
      Parameters:
      value - The organizationId to set.
      Returns:
      This builder for chaining.
    • clearOrganizationId

      public Data.CreateIndexRequest.Builder clearOrganizationId()
      string organization_id = 1 [json_name = "organizationId"];
      Returns:
      This builder for chaining.
    • setOrganizationIdBytes

      public Data.CreateIndexRequest.Builder setOrganizationIdBytes(com.google.protobuf.ByteString value)
      string organization_id = 1 [json_name = "organizationId"];
      Parameters:
      value - The bytes for organizationId to set.
      Returns:
      This builder for chaining.
    • getCollectionTypeValue

      public int getCollectionTypeValue()
      .viam.app.data.v1.IndexableCollection collection_type = 2 [json_name = "collectionType"];
      Specified by:
      getCollectionTypeValue in interface Data.CreateIndexRequestOrBuilder
      Returns:
      The enum numeric value on the wire for collectionType.
    • setCollectionTypeValue

      public Data.CreateIndexRequest.Builder setCollectionTypeValue(int value)
      .viam.app.data.v1.IndexableCollection collection_type = 2 [json_name = "collectionType"];
      Parameters:
      value - The collectionType to set.
      Returns:
      This builder for chaining.
    • getCollectionType

      public Data.IndexableCollection getCollectionType()
      .viam.app.data.v1.IndexableCollection collection_type = 2 [json_name = "collectionType"];
      Specified by:
      getCollectionType in interface Data.CreateIndexRequestOrBuilder
      Returns:
      The collectionType.
    • setCollectionType

      .viam.app.data.v1.IndexableCollection collection_type = 2 [json_name = "collectionType"];
      Parameters:
      value - The enum numeric value on the wire for collectionType to set.
      Returns:
      This builder for chaining.
    • clearCollectionType

      public Data.CreateIndexRequest.Builder clearCollectionType()
      .viam.app.data.v1.IndexableCollection collection_type = 2 [json_name = "collectionType"];
      Returns:
      This builder for chaining.
    • hasPipelineName

      public boolean hasPipelineName()
      optional string pipeline_name = 3 [json_name = "pipelineName"];
      Specified by:
      hasPipelineName in interface Data.CreateIndexRequestOrBuilder
      Returns:
      Whether the pipelineName field is set.
    • getPipelineName

      public String getPipelineName()
      optional string pipeline_name = 3 [json_name = "pipelineName"];
      Specified by:
      getPipelineName in interface Data.CreateIndexRequestOrBuilder
      Returns:
      The pipelineName.
    • getPipelineNameBytes

      public com.google.protobuf.ByteString getPipelineNameBytes()
      optional string pipeline_name = 3 [json_name = "pipelineName"];
      Specified by:
      getPipelineNameBytes in interface Data.CreateIndexRequestOrBuilder
      Returns:
      The bytes for pipelineName.
    • setPipelineName

      public Data.CreateIndexRequest.Builder setPipelineName(String value)
      optional string pipeline_name = 3 [json_name = "pipelineName"];
      Parameters:
      value - The pipelineName to set.
      Returns:
      This builder for chaining.
    • clearPipelineName

      public Data.CreateIndexRequest.Builder clearPipelineName()
      optional string pipeline_name = 3 [json_name = "pipelineName"];
      Returns:
      This builder for chaining.
    • setPipelineNameBytes

      public Data.CreateIndexRequest.Builder setPipelineNameBytes(com.google.protobuf.ByteString value)
      optional string pipeline_name = 3 [json_name = "pipelineName"];
      Parameters:
      value - The bytes for pipelineName to set.
      Returns:
      This builder for chaining.
    • getIndexSpecList

      public List<com.google.protobuf.ByteString> getIndexSpecList()
       index_spec accepts a MongoDB index specification defined in JSON format
       
      repeated bytes index_spec = 4 [json_name = "indexSpec"];
      Specified by:
      getIndexSpecList in interface Data.CreateIndexRequestOrBuilder
      Returns:
      A list containing the indexSpec.
    • getIndexSpecCount

      public int getIndexSpecCount()
       index_spec accepts a MongoDB index specification defined in JSON format
       
      repeated bytes index_spec = 4 [json_name = "indexSpec"];
      Specified by:
      getIndexSpecCount in interface Data.CreateIndexRequestOrBuilder
      Returns:
      The count of indexSpec.
    • getIndexSpec

      public com.google.protobuf.ByteString getIndexSpec(int index)
       index_spec accepts a MongoDB index specification defined in JSON format
       
      repeated bytes index_spec = 4 [json_name = "indexSpec"];
      Specified by:
      getIndexSpec in interface Data.CreateIndexRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The indexSpec at the given index.
    • setIndexSpec

      public Data.CreateIndexRequest.Builder setIndexSpec(int index, com.google.protobuf.ByteString value)
       index_spec accepts a MongoDB index specification defined in JSON format
       
      repeated bytes index_spec = 4 [json_name = "indexSpec"];
      Parameters:
      value - The indexSpec to set.
      Returns:
      This builder for chaining.
    • addIndexSpec

      public Data.CreateIndexRequest.Builder addIndexSpec(com.google.protobuf.ByteString value)
       index_spec accepts a MongoDB index specification defined in JSON format
       
      repeated bytes index_spec = 4 [json_name = "indexSpec"];
      Parameters:
      value - The indexSpec to add.
      Returns:
      This builder for chaining.
    • addAllIndexSpec

      public Data.CreateIndexRequest.Builder addAllIndexSpec(Iterable<? extends com.google.protobuf.ByteString> values)
       index_spec accepts a MongoDB index specification defined in JSON format
       
      repeated bytes index_spec = 4 [json_name = "indexSpec"];
      Parameters:
      values - The indexSpec to add.
      Returns:
      This builder for chaining.
    • clearIndexSpec

      public Data.CreateIndexRequest.Builder clearIndexSpec()
       index_spec accepts a MongoDB index specification defined in JSON format
       
      repeated bytes index_spec = 4 [json_name = "indexSpec"];
      Returns:
      This builder for chaining.