Package viam.module.v1
Class Module.HandlerDefinition.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Module.HandlerDefinition,Module.HandlerDefinition.Builder>
viam.module.v1.Module.HandlerDefinition.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Module.HandlerDefinitionOrBuilder
- Enclosing class:
- Module.HandlerDefinition
public static final class Module.HandlerDefinition.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Module.HandlerDefinition,Module.HandlerDefinition.Builder>
implements Module.HandlerDefinitionOrBuilder
Protobuf type
viam.module.v1.HandlerDefinition
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllModels
(Iterable<String> values) repeated string models = 2 [json_name = "models"];
repeated string models = 2 [json_name = "models"];
addModelsBytes
(com.google.protobuf.ByteString value) repeated string models = 2 [json_name = "models"];
repeated string models = 2 [json_name = "models"];
.viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"];
getModels
(int index) repeated string models = 2 [json_name = "models"];
com.google.protobuf.ByteString
getModelsBytes
(int index) repeated string models = 2 [json_name = "models"];
int
repeated string models = 2 [json_name = "models"];
repeated string models = 2 [json_name = "models"];
.viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"];
boolean
.viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"];
.viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"];
repeated string models = 2 [json_name = "models"];
.viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"];
setSubtype
(Robot.ResourceRPCSubtype.Builder builderForValue) .viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"];
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
-
hasSubtype
public boolean hasSubtype().viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"];
- Specified by:
hasSubtype
in interfaceModule.HandlerDefinitionOrBuilder
- Returns:
- Whether the subtype field is set.
-
getSubtype
.viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"];
- Specified by:
getSubtype
in interfaceModule.HandlerDefinitionOrBuilder
- Returns:
- The subtype.
-
setSubtype
.viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"];
-
setSubtype
public Module.HandlerDefinition.Builder setSubtype(Robot.ResourceRPCSubtype.Builder builderForValue) .viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"];
-
mergeSubtype
.viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"];
-
clearSubtype
.viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"];
-
getModelsList
repeated string models = 2 [json_name = "models"];
- Specified by:
getModelsList
in interfaceModule.HandlerDefinitionOrBuilder
- Returns:
- A list containing the models.
-
getModelsCount
public int getModelsCount()repeated string models = 2 [json_name = "models"];
- Specified by:
getModelsCount
in interfaceModule.HandlerDefinitionOrBuilder
- Returns:
- The count of models.
-
getModels
repeated string models = 2 [json_name = "models"];
- Specified by:
getModels
in interfaceModule.HandlerDefinitionOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The models at the given index.
-
getModelsBytes
public com.google.protobuf.ByteString getModelsBytes(int index) repeated string models = 2 [json_name = "models"];
- Specified by:
getModelsBytes
in interfaceModule.HandlerDefinitionOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the models at the given index.
-
setModels
repeated string models = 2 [json_name = "models"];
- Parameters:
index
- The index to set the value at.value
- The models to set.- Returns:
- This builder for chaining.
-
addModels
repeated string models = 2 [json_name = "models"];
- Parameters:
value
- The models to add.- Returns:
- This builder for chaining.
-
addAllModels
repeated string models = 2 [json_name = "models"];
- Parameters:
values
- The models to add.- Returns:
- This builder for chaining.
-
clearModels
repeated string models = 2 [json_name = "models"];
- Returns:
- This builder for chaining.
-
addModelsBytes
repeated string models = 2 [json_name = "models"];
- Parameters:
value
- The bytes of the models to add.- Returns:
- This builder for chaining.
-