Package p4.v1
Interface P4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
P4RuntimeOuterClass.MasterArbitrationUpdate,P4RuntimeOuterClass.MasterArbitrationUpdate.Builder
- Enclosing class:
P4RuntimeOuterClass
public static interface P4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlonguint64 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.getRole()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.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).Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDeviceId
long getDeviceId()uint64 device_id = 1;- Returns:
- The deviceId.
-
hasRole
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;- Returns:
- Whether the role field is set.
-
getRole
P4RuntimeOuterClass.Role 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;- Returns:
- The role.
-
getRoleOrBuilder
P4RuntimeOuterClass.RoleOrBuilder 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; -
hasElectionId
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;- Returns:
- Whether the electionId field is set.
-
getElectionId
P4RuntimeOuterClass.Uint128 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;- Returns:
- The electionId.
-
getElectionIdOrBuilder
P4RuntimeOuterClass.Uint128OrBuilder 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; -
hasStatus
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;- Returns:
- Whether the status field is set.
-
getStatus
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;- Returns:
- The status.
-
getStatusOrBuilder
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;
-