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:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getDeviceId

      public long getDeviceId()
      uint64 device_id = 1;
      Specified by:
      getDeviceId in interface P4RuntimeOuterClass.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:
      hasRole in interface P4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
      Returns:
      Whether the role field is set.
    • getRole

      public 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;
      Specified by:
      getRole in interface P4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
      Returns:
      The role.
    • getRoleOrBuilder

      public 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;
      Specified by:
      getRoleOrBuilder in interface P4RuntimeOuterClass.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:
      hasElectionId in interface P4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
      Returns:
      Whether the electionId field is set.
    • getElectionId

      public 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;
      Specified by:
      getElectionId in interface P4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
      Returns:
      The electionId.
    • getElectionIdOrBuilder

      public 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;
      Specified by:
      getElectionIdOrBuilder in interface P4RuntimeOuterClass.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:
      hasStatus in interface P4RuntimeOuterClass.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:
      getStatus in interface P4RuntimeOuterClass.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:
      getStatusOrBuilder in interface P4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      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:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected P4RuntimeOuterClass.MasterArbitrationUpdate.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static P4RuntimeOuterClass.MasterArbitrationUpdate getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<P4RuntimeOuterClass.MasterArbitrationUpdate> parser()
    • getParserForType

      public com.google.protobuf.Parser<P4RuntimeOuterClass.MasterArbitrationUpdate> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public P4RuntimeOuterClass.MasterArbitrationUpdate getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder