Package com.viam.component.nswitch.v1
Class Switch.SetPositionRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Switch.SetPositionRequest,Switch.SetPositionRequest.Builder>
com.viam.component.nswitch.v1.Switch.SetPositionRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Switch.SetPositionRequestOrBuilder
,Cloneable
- Enclosing class:
- Switch.SetPositionRequest
public static final class Switch.SetPositionRequest.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Switch.SetPositionRequest,Switch.SetPositionRequest.Builder>
implements Switch.SetPositionRequestOrBuilder
Protobuf type
viam.component.switch.v1.SetPositionRequest
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescription.google.protobuf.Struct extra = 99 [json_name = "extra"];
string name = 1 [json_name = "name"];
uint32 position = 2 [json_name = "position"];
com.google.protobuf.Struct
getExtra()
.google.protobuf.Struct extra = 99 [json_name = "extra"];
getName()
string name = 1 [json_name = "name"];
com.google.protobuf.ByteString
string name = 1 [json_name = "name"];
int
uint32 position = 2 [json_name = "position"];
boolean
hasExtra()
.google.protobuf.Struct extra = 99 [json_name = "extra"];
mergeExtra
(com.google.protobuf.Struct value) .google.protobuf.Struct extra = 99 [json_name = "extra"];
setExtra
(com.google.protobuf.Struct value) .google.protobuf.Struct extra = 99 [json_name = "extra"];
setExtra
(com.google.protobuf.Struct.Builder builderForValue) .google.protobuf.Struct extra = 99 [json_name = "extra"];
string name = 1 [json_name = "name"];
setNameBytes
(com.google.protobuf.ByteString value) string name = 1 [json_name = "name"];
setPosition
(int value) uint32 position = 2 [json_name = "position"];
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
-
getName
string name = 1 [json_name = "name"];
- Specified by:
getName
in interfaceSwitch.SetPositionRequestOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 1 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceSwitch.SetPositionRequestOrBuilder
- Returns:
- The bytes for name.
-
setName
string name = 1 [json_name = "name"];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
string name = 1 [json_name = "name"];
- Returns:
- This builder for chaining.
-
setNameBytes
string name = 1 [json_name = "name"];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getPosition
public int getPosition()uint32 position = 2 [json_name = "position"];
- Specified by:
getPosition
in interfaceSwitch.SetPositionRequestOrBuilder
- Returns:
- The position.
-
setPosition
uint32 position = 2 [json_name = "position"];
- Parameters:
value
- The position to set.- Returns:
- This builder for chaining.
-
clearPosition
uint32 position = 2 [json_name = "position"];
- Returns:
- This builder for chaining.
-
hasExtra
public boolean hasExtra().google.protobuf.Struct extra = 99 [json_name = "extra"];
- Specified by:
hasExtra
in interfaceSwitch.SetPositionRequestOrBuilder
- Returns:
- Whether the extra field is set.
-
getExtra
public com.google.protobuf.Struct getExtra().google.protobuf.Struct extra = 99 [json_name = "extra"];
- Specified by:
getExtra
in interfaceSwitch.SetPositionRequestOrBuilder
- Returns:
- The extra.
-
setExtra
.google.protobuf.Struct extra = 99 [json_name = "extra"];
-
setExtra
public Switch.SetPositionRequest.Builder setExtra(com.google.protobuf.Struct.Builder builderForValue) .google.protobuf.Struct extra = 99 [json_name = "extra"];
-
mergeExtra
.google.protobuf.Struct extra = 99 [json_name = "extra"];
-
clearExtra
.google.protobuf.Struct extra = 99 [json_name = "extra"];
-