Package p4.v1
Class P4RuntimeOuterClass.MasterArbitrationUpdate
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
p4.v1.P4RuntimeOuterClass.MasterArbitrationUpdate
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,P4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
- Enclosing class:
P4RuntimeOuterClass
public static final class P4RuntimeOuterClass.MasterArbitrationUpdate
extends com.google.protobuf.GeneratedMessage
implements P4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
Protobuf type
p4.v1.MasterArbitrationUpdate- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typep4.v1.MasterArbitrationUpdateNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic 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.com.google.protobuf.Parser<P4RuntimeOuterClass.MasterArbitrationUpdate> getRole()The role for which the primary client is being arbitrated.The role for which the primary client is being arbitrated.intcom.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.inthashCode()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 booleannewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<P4RuntimeOuterClass.MasterArbitrationUpdate> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DEVICE_ID_FIELD_NUMBER
public static final int DEVICE_ID_FIELD_NUMBER- See Also:
-
ROLE_FIELD_NUMBER
public static final int ROLE_FIELD_NUMBER- See Also:
-
ELECTION_ID_FIELD_NUMBER
public static final int ELECTION_ID_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getDeviceId
public long getDeviceId()uint64 device_id = 1;- Specified by:
getDeviceIdin interfaceP4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder- Returns:
- The deviceId.
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static P4RuntimeOuterClass.MasterArbitrationUpdate parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.MasterArbitrationUpdate parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.MasterArbitrationUpdate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.MasterArbitrationUpdate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.MasterArbitrationUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.MasterArbitrationUpdate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.MasterArbitrationUpdate parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static P4RuntimeOuterClass.MasterArbitrationUpdate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static P4RuntimeOuterClass.MasterArbitrationUpdate parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static P4RuntimeOuterClass.MasterArbitrationUpdate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static P4RuntimeOuterClass.MasterArbitrationUpdate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static P4RuntimeOuterClass.MasterArbitrationUpdate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static P4RuntimeOuterClass.MasterArbitrationUpdate.Builder newBuilder(P4RuntimeOuterClass.MasterArbitrationUpdate prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected P4RuntimeOuterClass.MasterArbitrationUpdate.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-