Package p4.v1

Class P4RuntimeOuterClass.Replica

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
p4.v1.P4RuntimeOuterClass.Replica
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, P4RuntimeOuterClass.ReplicaOrBuilder
Enclosing class:
P4RuntimeOuterClass

public static final class P4RuntimeOuterClass.Replica extends com.google.protobuf.GeneratedMessage implements P4RuntimeOuterClass.ReplicaOrBuilder
 Used for replicas created for cloning and multicasting actions.
 
Protobuf type p4.v1.Replica
See Also:
  • Field Details

    • EGRESS_PORT_FIELD_NUMBER

      public static final int EGRESS_PORT_FIELD_NUMBER
      See Also:
    • PORT_FIELD_NUMBER

      public static final int PORT_FIELD_NUMBER
      See Also:
    • INSTANCE_FIELD_NUMBER

      public static final int INSTANCE_FIELD_NUMBER
      See Also:
    • BACKUP_REPLICAS_FIELD_NUMBER

      public static final int BACKUP_REPLICAS_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:
      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
    • getPortKindCase

      public P4RuntimeOuterClass.Replica.PortKindCase getPortKindCase()
      Specified by:
      getPortKindCase in interface P4RuntimeOuterClass.ReplicaOrBuilder
    • hasEgressPort

      @Deprecated public boolean hasEgressPort()
      Deprecated.
      p4.v1.Replica.egress_port is deprecated. See p4/v1/p4runtime.proto;l=493
       Using uint32 as ports is deprecated, use port field instead.
       Deprecated in v1.4.0
       
      uint32 egress_port = 1 [deprecated = true];
      Specified by:
      hasEgressPort in interface P4RuntimeOuterClass.ReplicaOrBuilder
      Returns:
      Whether the egressPort field is set.
    • getEgressPort

      @Deprecated public int getEgressPort()
      Deprecated.
      p4.v1.Replica.egress_port is deprecated. See p4/v1/p4runtime.proto;l=493
       Using uint32 as ports is deprecated, use port field instead.
       Deprecated in v1.4.0
       
      uint32 egress_port = 1 [deprecated = true];
      Specified by:
      getEgressPort in interface P4RuntimeOuterClass.ReplicaOrBuilder
      Returns:
      The egressPort.
    • hasPort

      public boolean hasPort()
       Added in v1.4.0
       
      bytes port = 3;
      Specified by:
      hasPort in interface P4RuntimeOuterClass.ReplicaOrBuilder
      Returns:
      Whether the port field is set.
    • getPort

      public com.google.protobuf.ByteString getPort()
       Added in v1.4.0
       
      bytes port = 3;
      Specified by:
      getPort in interface P4RuntimeOuterClass.ReplicaOrBuilder
      Returns:
      The port.
    • getInstance

      public int getInstance()
      uint32 instance = 2;
      Specified by:
      getInstance in interface P4RuntimeOuterClass.ReplicaOrBuilder
      Returns:
      The instance.
    • getBackupReplicasList

      public List<P4RuntimeOuterClass.BackupReplica> getBackupReplicasList()
       List of backup replicas used as a fallback when the primary replica port
       (and all higher-preference backup replica ports) are down.
       Added in v1.5.0.
       
      repeated .p4.v1.BackupReplica backup_replicas = 4;
      Specified by:
      getBackupReplicasList in interface P4RuntimeOuterClass.ReplicaOrBuilder
    • getBackupReplicasOrBuilderList

      public List<? extends P4RuntimeOuterClass.BackupReplicaOrBuilder> getBackupReplicasOrBuilderList()
       List of backup replicas used as a fallback when the primary replica port
       (and all higher-preference backup replica ports) are down.
       Added in v1.5.0.
       
      repeated .p4.v1.BackupReplica backup_replicas = 4;
      Specified by:
      getBackupReplicasOrBuilderList in interface P4RuntimeOuterClass.ReplicaOrBuilder
    • getBackupReplicasCount

      public int getBackupReplicasCount()
       List of backup replicas used as a fallback when the primary replica port
       (and all higher-preference backup replica ports) are down.
       Added in v1.5.0.
       
      repeated .p4.v1.BackupReplica backup_replicas = 4;
      Specified by:
      getBackupReplicasCount in interface P4RuntimeOuterClass.ReplicaOrBuilder
    • getBackupReplicas

      public P4RuntimeOuterClass.BackupReplica getBackupReplicas(int index)
       List of backup replicas used as a fallback when the primary replica port
       (and all higher-preference backup replica ports) are down.
       Added in v1.5.0.
       
      repeated .p4.v1.BackupReplica backup_replicas = 4;
      Specified by:
      getBackupReplicas in interface P4RuntimeOuterClass.ReplicaOrBuilder
    • getBackupReplicasOrBuilder

      public P4RuntimeOuterClass.BackupReplicaOrBuilder getBackupReplicasOrBuilder(int index)
       List of backup replicas used as a fallback when the primary replica port
       (and all higher-preference backup replica ports) are down.
       Added in v1.5.0.
       
      repeated .p4.v1.BackupReplica backup_replicas = 4;
      Specified by:
      getBackupReplicasOrBuilder in interface P4RuntimeOuterClass.ReplicaOrBuilder
    • 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.Replica parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static P4RuntimeOuterClass.Replica parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static P4RuntimeOuterClass.Replica parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static P4RuntimeOuterClass.Replica 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.Replica parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static P4RuntimeOuterClass.Replica parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static P4RuntimeOuterClass.Replica parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static P4RuntimeOuterClass.Replica parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static P4RuntimeOuterClass.Replica parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static P4RuntimeOuterClass.Replica parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static P4RuntimeOuterClass.Replica parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static P4RuntimeOuterClass.Replica parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public P4RuntimeOuterClass.Replica.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static P4RuntimeOuterClass.Replica.Builder newBuilder()
    • newBuilder

    • toBuilder

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

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

      public static P4RuntimeOuterClass.Replica getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<P4RuntimeOuterClass.Replica> 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.Replica getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder