Package com.viam.component.nswitch.v1
Class Switch.GetNumberOfPositionsResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Switch.GetNumberOfPositionsResponse,Switch.GetNumberOfPositionsResponse.Builder>
com.viam.component.nswitch.v1.Switch.GetNumberOfPositionsResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Switch.GetNumberOfPositionsResponseOrBuilder
,Cloneable
- Enclosing class:
- Switch.GetNumberOfPositionsResponse
public static final class Switch.GetNumberOfPositionsResponse.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Switch.GetNumberOfPositionsResponse,Switch.GetNumberOfPositionsResponse.Builder>
implements Switch.GetNumberOfPositionsResponseOrBuilder
Protobuf type
viam.component.switch.v1.GetNumberOfPositionsResponse
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllLabels
(Iterable<String> values) repeated string labels = 2 [json_name = "labels"];
repeated string labels = 2 [json_name = "labels"];
addLabelsBytes
(com.google.protobuf.ByteString value) repeated string labels = 2 [json_name = "labels"];
repeated string labels = 2 [json_name = "labels"];
uint32 number_of_positions = 1 [json_name = "numberOfPositions"];
getLabels
(int index) repeated string labels = 2 [json_name = "labels"];
com.google.protobuf.ByteString
getLabelsBytes
(int index) repeated string labels = 2 [json_name = "labels"];
int
repeated string labels = 2 [json_name = "labels"];
repeated string labels = 2 [json_name = "labels"];
int
uint32 number_of_positions = 1 [json_name = "numberOfPositions"];
repeated string labels = 2 [json_name = "labels"];
setNumberOfPositions
(int value) uint32 number_of_positions = 1 [json_name = "numberOfPositions"];
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
-
getNumberOfPositions
public int getNumberOfPositions()uint32 number_of_positions = 1 [json_name = "numberOfPositions"];
- Specified by:
getNumberOfPositions
in interfaceSwitch.GetNumberOfPositionsResponseOrBuilder
- Returns:
- The numberOfPositions.
-
setNumberOfPositions
uint32 number_of_positions = 1 [json_name = "numberOfPositions"];
- Parameters:
value
- The numberOfPositions to set.- Returns:
- This builder for chaining.
-
clearNumberOfPositions
uint32 number_of_positions = 1 [json_name = "numberOfPositions"];
- Returns:
- This builder for chaining.
-
getLabelsList
repeated string labels = 2 [json_name = "labels"];
- Specified by:
getLabelsList
in interfaceSwitch.GetNumberOfPositionsResponseOrBuilder
- Returns:
- A list containing the labels.
-
getLabelsCount
public int getLabelsCount()repeated string labels = 2 [json_name = "labels"];
- Specified by:
getLabelsCount
in interfaceSwitch.GetNumberOfPositionsResponseOrBuilder
- Returns:
- The count of labels.
-
getLabels
repeated string labels = 2 [json_name = "labels"];
- Specified by:
getLabels
in interfaceSwitch.GetNumberOfPositionsResponseOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The labels at the given index.
-
getLabelsBytes
public com.google.protobuf.ByteString getLabelsBytes(int index) repeated string labels = 2 [json_name = "labels"];
- Specified by:
getLabelsBytes
in interfaceSwitch.GetNumberOfPositionsResponseOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the labels at the given index.
-
setLabels
repeated string labels = 2 [json_name = "labels"];
- Parameters:
index
- The index to set the value at.value
- The labels to set.- Returns:
- This builder for chaining.
-
addLabels
repeated string labels = 2 [json_name = "labels"];
- Parameters:
value
- The labels to add.- Returns:
- This builder for chaining.
-
addAllLabels
repeated string labels = 2 [json_name = "labels"];
- Parameters:
values
- The labels to add.- Returns:
- This builder for chaining.
-
clearLabels
repeated string labels = 2 [json_name = "labels"];
- Returns:
- This builder for chaining.
-
addLabelsBytes
public Switch.GetNumberOfPositionsResponse.Builder addLabelsBytes(com.google.protobuf.ByteString value) repeated string labels = 2 [json_name = "labels"];
- Parameters:
value
- The bytes of the labels to add.- Returns:
- This builder for chaining.
-