Package p4.v1
Class P4RuntimeOuterClass.MasterArbitrationUpdate.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>
com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>
p4.v1.P4RuntimeOuterClass.MasterArbitrationUpdate.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,P4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
- Enclosing class:
P4RuntimeOuterClass.MasterArbitrationUpdate
public static final class P4RuntimeOuterClass.MasterArbitrationUpdate.Builder
extends com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>
implements P4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
Protobuf type
p4.v1.MasterArbitrationUpdate-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()uint64 device_id = 1;The stream RPC with the highest election_id is the primary.The role for which the primary client is being arbitrated.Switch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorlonguint64 device_id = 1;The stream RPC with the highest election_id is the primary.The stream RPC with the highest election_id is the primary.The stream RPC with the highest election_id is the primary.getRole()The role for which the primary client is being arbitrated.The role for which the primary client is being arbitrated.The role for which the primary client is being arbitrated.com.google.rpc.StatusSwitch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change).com.google.rpc.Status.BuilderSwitch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change).com.google.rpc.StatusOrBuilderSwitch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change).booleanThe stream RPC with the highest election_id is the primary.booleanhasRole()The role for which the primary client is being arbitrated.booleanSwitch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe stream RPC with the highest election_id is the primary.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The role for which the primary client is being arbitrated.mergeStatus(com.google.rpc.Status value) Switch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change).setDeviceId(long value) uint64 device_id = 1;The stream RPC with the highest election_id is the primary.setElectionId(P4RuntimeOuterClass.Uint128.Builder builderForValue) The stream RPC with the highest election_id is the primary.setRole(P4RuntimeOuterClass.Role value) The role for which the primary client is being arbitrated.setRole(P4RuntimeOuterClass.Role.Builder builderForValue) The role for which the primary client is being arbitrated.setStatus(com.google.rpc.Status value) Switch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change).setStatus(com.google.rpc.Status.Builder builderForValue) Switch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change).Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public P4RuntimeOuterClass.MasterArbitrationUpdate.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>
-
mergeFrom
public P4RuntimeOuterClass.MasterArbitrationUpdate.Builder mergeFrom(P4RuntimeOuterClass.MasterArbitrationUpdate other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>
-
mergeFrom
public P4RuntimeOuterClass.MasterArbitrationUpdate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>- Throws:
IOException
-
getDeviceId
public long getDeviceId()uint64 device_id = 1;- Specified by:
getDeviceIdin interfaceP4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder- Returns:
- The deviceId.
-
setDeviceId
uint64 device_id = 1;- Parameters:
value- The deviceId to set.- Returns:
- This builder for chaining.
-
clearDeviceId
uint64 device_id = 1;- Returns:
- This builder for chaining.
-
hasRole
public boolean hasRole()The role for which the primary client is being arbitrated. For use-cases where multiple roles are not needed, the controller can leave this unset, implying default role and full pipeline access.
.p4.v1.Role role = 2;- Specified by:
hasRolein interfaceP4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder- Returns:
- Whether the role field is set.
-
getRole
The role for which the primary client is being arbitrated. For use-cases where multiple roles are not needed, the controller can leave this unset, implying default role and full pipeline access.
.p4.v1.Role role = 2;- Specified by:
getRolein interfaceP4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder- Returns:
- The role.
-
setRole
The role for which the primary client is being arbitrated. For use-cases where multiple roles are not needed, the controller can leave this unset, implying default role and full pipeline access.
.p4.v1.Role role = 2; -
setRole
public P4RuntimeOuterClass.MasterArbitrationUpdate.Builder setRole(P4RuntimeOuterClass.Role.Builder builderForValue) The role for which the primary client is being arbitrated. For use-cases where multiple roles are not needed, the controller can leave this unset, implying default role and full pipeline access.
.p4.v1.Role role = 2; -
mergeRole
public P4RuntimeOuterClass.MasterArbitrationUpdate.Builder mergeRole(P4RuntimeOuterClass.Role value) The role for which the primary client is being arbitrated. For use-cases where multiple roles are not needed, the controller can leave this unset, implying default role and full pipeline access.
.p4.v1.Role role = 2; -
clearRole
The role for which the primary client is being arbitrated. For use-cases where multiple roles are not needed, the controller can leave this unset, implying default role and full pipeline access.
.p4.v1.Role role = 2; -
getRoleBuilder
The role for which the primary client is being arbitrated. For use-cases where multiple roles are not needed, the controller can leave this unset, implying default role and full pipeline access.
.p4.v1.Role role = 2; -
getRoleOrBuilder
The role for which the primary client is being arbitrated. For use-cases where multiple roles are not needed, the controller can leave this unset, implying default role and full pipeline access.
.p4.v1.Role role = 2;- Specified by:
getRoleOrBuilderin interfaceP4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
-
hasElectionId
public boolean hasElectionId()The stream RPC with the highest election_id is the primary. The 'primary' controller instance populates this with its latest election_id. Switch populates with the highest election ID it has received from all connected controllers.
.p4.v1.Uint128 election_id = 3;- Specified by:
hasElectionIdin interfaceP4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder- Returns:
- Whether the electionId field is set.
-
getElectionId
The stream RPC with the highest election_id is the primary. The 'primary' controller instance populates this with its latest election_id. Switch populates with the highest election ID it has received from all connected controllers.
.p4.v1.Uint128 election_id = 3;- Specified by:
getElectionIdin interfaceP4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder- Returns:
- The electionId.
-
setElectionId
public P4RuntimeOuterClass.MasterArbitrationUpdate.Builder setElectionId(P4RuntimeOuterClass.Uint128 value) The stream RPC with the highest election_id is the primary. The 'primary' controller instance populates this with its latest election_id. Switch populates with the highest election ID it has received from all connected controllers.
.p4.v1.Uint128 election_id = 3; -
setElectionId
public P4RuntimeOuterClass.MasterArbitrationUpdate.Builder setElectionId(P4RuntimeOuterClass.Uint128.Builder builderForValue) The stream RPC with the highest election_id is the primary. The 'primary' controller instance populates this with its latest election_id. Switch populates with the highest election ID it has received from all connected controllers.
.p4.v1.Uint128 election_id = 3; -
mergeElectionId
public P4RuntimeOuterClass.MasterArbitrationUpdate.Builder mergeElectionId(P4RuntimeOuterClass.Uint128 value) The stream RPC with the highest election_id is the primary. The 'primary' controller instance populates this with its latest election_id. Switch populates with the highest election ID it has received from all connected controllers.
.p4.v1.Uint128 election_id = 3; -
clearElectionId
The stream RPC with the highest election_id is the primary. The 'primary' controller instance populates this with its latest election_id. Switch populates with the highest election ID it has received from all connected controllers.
.p4.v1.Uint128 election_id = 3; -
getElectionIdBuilder
The stream RPC with the highest election_id is the primary. The 'primary' controller instance populates this with its latest election_id. Switch populates with the highest election ID it has received from all connected controllers.
.p4.v1.Uint128 election_id = 3; -
getElectionIdOrBuilder
The stream RPC with the highest election_id is the primary. The 'primary' controller instance populates this with its latest election_id. Switch populates with the highest election ID it has received from all connected controllers.
.p4.v1.Uint128 election_id = 3;- Specified by:
getElectionIdOrBuilderin interfaceP4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
-
hasStatus
public boolean hasStatus()Switch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change). The controller does not populate this field.
.google.rpc.Status status = 4;- Specified by:
hasStatusin interfaceP4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
public com.google.rpc.Status getStatus()Switch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change). The controller does not populate this field.
.google.rpc.Status status = 4;- Specified by:
getStatusin interfaceP4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder- Returns:
- The status.
-
setStatus
Switch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change). The controller does not populate this field.
.google.rpc.Status status = 4; -
setStatus
public P4RuntimeOuterClass.MasterArbitrationUpdate.Builder setStatus(com.google.rpc.Status.Builder builderForValue) Switch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change). The controller does not populate this field.
.google.rpc.Status status = 4; -
mergeStatus
Switch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change). The controller does not populate this field.
.google.rpc.Status status = 4; -
clearStatus
Switch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change). The controller does not populate this field.
.google.rpc.Status status = 4; -
getStatusBuilder
public com.google.rpc.Status.Builder getStatusBuilder()Switch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change). The controller does not populate this field.
.google.rpc.Status status = 4; -
getStatusOrBuilder
public com.google.rpc.StatusOrBuilder getStatusOrBuilder()Switch populates this with OK for the client that is the primary, and with an error status for all other connected clients (at every primary client change). The controller does not populate this field.
.google.rpc.Status status = 4;- Specified by:
getStatusOrBuilderin interfaceP4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
-