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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public P4RuntimeOuterClass.MasterArbitrationUpdate.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.MasterArbitrationUpdate.Builder>
      Throws:
      IOException
    • getDeviceId

      public long getDeviceId()
      uint64 device_id = 1;
      Specified by:
      getDeviceId in interface P4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder
      Returns:
      The deviceId.
    • setDeviceId

      public P4RuntimeOuterClass.MasterArbitrationUpdate.Builder setDeviceId(long value)
      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:
      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.
    • 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

       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

       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

      public P4RuntimeOuterClass.Role.Builder 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

      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.
    • setElectionId

       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

       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

       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

      public P4RuntimeOuterClass.Uint128.Builder 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

      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.
    • setStatus

      public P4RuntimeOuterClass.MasterArbitrationUpdate.Builder 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). 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

      public P4RuntimeOuterClass.MasterArbitrationUpdate.Builder 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). 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:
      getStatusOrBuilder in interface P4RuntimeOuterClass.MasterArbitrationUpdateOrBuilder