Class Data.Index.Builder

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

public static final class Data.Index.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Data.Index,Data.Index.Builder> implements Data.IndexOrBuilder
Protobuf type viam.app.data.v1.Index
  • Method Details

    • getCollectionTypeValue

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

      public Data.Index.Builder setCollectionTypeValue(int value)
      .viam.app.data.v1.IndexableCollection collection_type = 1 [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 = 1 [json_name = "collectionType"];
      Specified by:
      getCollectionType in interface Data.IndexOrBuilder
      Returns:
      The collectionType.
    • setCollectionType

      public Data.Index.Builder setCollectionType(Data.IndexableCollection value)
      .viam.app.data.v1.IndexableCollection collection_type = 1 [json_name = "collectionType"];
      Parameters:
      value - The enum numeric value on the wire for collectionType to set.
      Returns:
      This builder for chaining.
    • clearCollectionType

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

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

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

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

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

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

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

      public String getIndexName()
      string index_name = 3 [json_name = "indexName"];
      Specified by:
      getIndexName in interface Data.IndexOrBuilder
      Returns:
      The indexName.
    • getIndexNameBytes

      public com.google.protobuf.ByteString getIndexNameBytes()
      string index_name = 3 [json_name = "indexName"];
      Specified by:
      getIndexNameBytes in interface Data.IndexOrBuilder
      Returns:
      The bytes for indexName.
    • setIndexName

      public Data.Index.Builder setIndexName(String value)
      string index_name = 3 [json_name = "indexName"];
      Parameters:
      value - The indexName to set.
      Returns:
      This builder for chaining.
    • clearIndexName

      public Data.Index.Builder clearIndexName()
      string index_name = 3 [json_name = "indexName"];
      Returns:
      This builder for chaining.
    • setIndexNameBytes

      public Data.Index.Builder setIndexNameBytes(com.google.protobuf.ByteString value)
      string index_name = 3 [json_name = "indexName"];
      Parameters:
      value - The bytes for indexName to set.
      Returns:
      This builder for chaining.
    • getIndexSpecList

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

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

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

      public Data.Index.Builder setIndexSpec(int index, com.google.protobuf.ByteString value)
       index_spec defines a MongoDB index 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.Index.Builder addIndexSpec(com.google.protobuf.ByteString value)
       index_spec defines a MongoDB index 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.Index.Builder addAllIndexSpec(Iterable<? extends com.google.protobuf.ByteString> values)
       index_spec defines a MongoDB index 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.Index.Builder clearIndexSpec()
       index_spec defines a MongoDB index in JSON format
       
      repeated bytes index_spec = 4 [json_name = "indexSpec"];
      Returns:
      This builder for chaining.
    • getCreatedByValue

      public int getCreatedByValue()
      .viam.app.data.v1.IndexCreator created_by = 5 [json_name = "createdBy"];
      Specified by:
      getCreatedByValue in interface Data.IndexOrBuilder
      Returns:
      The enum numeric value on the wire for createdBy.
    • setCreatedByValue

      public Data.Index.Builder setCreatedByValue(int value)
      .viam.app.data.v1.IndexCreator created_by = 5 [json_name = "createdBy"];
      Parameters:
      value - The createdBy to set.
      Returns:
      This builder for chaining.
    • getCreatedBy

      public Data.IndexCreator getCreatedBy()
      .viam.app.data.v1.IndexCreator created_by = 5 [json_name = "createdBy"];
      Specified by:
      getCreatedBy in interface Data.IndexOrBuilder
      Returns:
      The createdBy.
    • setCreatedBy

      public Data.Index.Builder setCreatedBy(Data.IndexCreator value)
      .viam.app.data.v1.IndexCreator created_by = 5 [json_name = "createdBy"];
      Parameters:
      value - The enum numeric value on the wire for createdBy to set.
      Returns:
      This builder for chaining.
    • clearCreatedBy

      public Data.Index.Builder clearCreatedBy()
      .viam.app.data.v1.IndexCreator created_by = 5 [json_name = "createdBy"];
      Returns:
      This builder for chaining.