Package viam.app.data.v1
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 buildProtobuf type
viam.app.data.v1.CreateIndexRequest
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllIndexSpec
(Iterable<? extends com.google.protobuf.ByteString> values) index_spec accepts a MongoDB index specification defined in JSON formataddIndexSpec
(com.google.protobuf.ByteString value) index_spec accepts a MongoDB index specification defined in JSON format.viam.app.data.v1.IndexableCollection collection_type = 2 [json_name = "collectionType"];
index_spec accepts a MongoDB index specification defined in JSON formatstring organization_id = 1 [json_name = "organizationId"];
optional string pipeline_name = 3 [json_name = "pipelineName"];
.viam.app.data.v1.IndexableCollection collection_type = 2 [json_name = "collectionType"];
int
.viam.app.data.v1.IndexableCollection collection_type = 2 [json_name = "collectionType"];
com.google.protobuf.ByteString
getIndexSpec
(int index) index_spec accepts a MongoDB index specification defined in JSON formatint
index_spec accepts a MongoDB index specification defined in JSON formatList<com.google.protobuf.ByteString>
index_spec accepts a MongoDB index specification defined in JSON formatstring organization_id = 1 [json_name = "organizationId"];
com.google.protobuf.ByteString
string organization_id = 1 [json_name = "organizationId"];
optional string pipeline_name = 3 [json_name = "pipelineName"];
com.google.protobuf.ByteString
optional string pipeline_name = 3 [json_name = "pipelineName"];
boolean
optional string pipeline_name = 3 [json_name = "pipelineName"];
.viam.app.data.v1.IndexableCollection collection_type = 2 [json_name = "collectionType"];
setCollectionTypeValue
(int value) .viam.app.data.v1.IndexableCollection collection_type = 2 [json_name = "collectionType"];
setIndexSpec
(int index, com.google.protobuf.ByteString value) index_spec accepts a MongoDB index specification defined in JSON formatsetOrganizationId
(String value) string organization_id = 1 [json_name = "organizationId"];
setOrganizationIdBytes
(com.google.protobuf.ByteString value) string organization_id = 1 [json_name = "organizationId"];
setPipelineName
(String value) optional string pipeline_name = 3 [json_name = "pipelineName"];
setPipelineNameBytes
(com.google.protobuf.ByteString value) optional string pipeline_name = 3 [json_name = "pipelineName"];
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getOrganizationId
string organization_id = 1 [json_name = "organizationId"];
- Specified by:
getOrganizationId
in interfaceData.CreateIndexRequestOrBuilder
- Returns:
- The organizationId.
-
getOrganizationIdBytes
public com.google.protobuf.ByteString getOrganizationIdBytes()string organization_id = 1 [json_name = "organizationId"];
- Specified by:
getOrganizationIdBytes
in interfaceData.CreateIndexRequestOrBuilder
- Returns:
- The bytes for organizationId.
-
setOrganizationId
string organization_id = 1 [json_name = "organizationId"];
- Parameters:
value
- The organizationId to set.- Returns:
- This builder for chaining.
-
clearOrganizationId
string organization_id = 1 [json_name = "organizationId"];
- Returns:
- This builder for chaining.
-
setOrganizationIdBytes
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 interfaceData.CreateIndexRequestOrBuilder
- Returns:
- The enum numeric value on the wire for collectionType.
-
setCollectionTypeValue
.viam.app.data.v1.IndexableCollection collection_type = 2 [json_name = "collectionType"];
- Parameters:
value
- The collectionType to set.- Returns:
- This builder for chaining.
-
getCollectionType
.viam.app.data.v1.IndexableCollection collection_type = 2 [json_name = "collectionType"];
- Specified by:
getCollectionType
in interfaceData.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
.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 interfaceData.CreateIndexRequestOrBuilder
- Returns:
- Whether the pipelineName field is set.
-
getPipelineName
optional string pipeline_name = 3 [json_name = "pipelineName"];
- Specified by:
getPipelineName
in interfaceData.CreateIndexRequestOrBuilder
- Returns:
- The pipelineName.
-
getPipelineNameBytes
public com.google.protobuf.ByteString getPipelineNameBytes()optional string pipeline_name = 3 [json_name = "pipelineName"];
- Specified by:
getPipelineNameBytes
in interfaceData.CreateIndexRequestOrBuilder
- Returns:
- The bytes for pipelineName.
-
setPipelineName
optional string pipeline_name = 3 [json_name = "pipelineName"];
- Parameters:
value
- The pipelineName to set.- Returns:
- This builder for chaining.
-
clearPipelineName
optional string pipeline_name = 3 [json_name = "pipelineName"];
- Returns:
- This builder for chaining.
-
setPipelineNameBytes
optional string pipeline_name = 3 [json_name = "pipelineName"];
- Parameters:
value
- The bytes for pipelineName to set.- Returns:
- This builder for chaining.
-
getIndexSpecList
index_spec accepts a MongoDB index specification defined in JSON format
repeated bytes index_spec = 4 [json_name = "indexSpec"];
- Specified by:
getIndexSpecList
in interfaceData.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 interfaceData.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 interfaceData.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
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
index_spec accepts a MongoDB index specification defined in JSON format
repeated bytes index_spec = 4 [json_name = "indexSpec"];
- Returns:
- This builder for chaining.
-