Package p4.v1

Class P4RuntimeOuterClass.Replica.Builder

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

public static final class P4RuntimeOuterClass.Replica.Builder extends com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.Replica.Builder> implements P4RuntimeOuterClass.ReplicaOrBuilder
 Used for replicas created for cloning and multicasting actions.
 
Protobuf type p4.v1.Replica
  • 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.Replica.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.Replica.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.Replica.Builder>
    • getDefaultInstanceForType

      public P4RuntimeOuterClass.Replica 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

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

      public P4RuntimeOuterClass.Replica.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.Replica.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.Replica.Builder>
    • mergeFrom

      public P4RuntimeOuterClass.Replica.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.Replica.Builder>
      Throws:
      IOException
    • getPortKindCase

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

      public P4RuntimeOuterClass.Replica.Builder clearPortKind()
    • 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.
    • setEgressPort

      @Deprecated public P4RuntimeOuterClass.Replica.Builder setEgressPort(int value)
      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];
      Parameters:
      value - The egressPort to set.
      Returns:
      This builder for chaining.
    • clearEgressPort

      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];
      Returns:
      This builder for chaining.
    • 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.
    • setPort

      public P4RuntimeOuterClass.Replica.Builder setPort(com.google.protobuf.ByteString value)
       Added in v1.4.0
       
      bytes port = 3;
      Parameters:
      value - The port to set.
      Returns:
      This builder for chaining.
    • clearPort

       Added in v1.4.0
       
      bytes port = 3;
      Returns:
      This builder for chaining.
    • getInstance

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

      public P4RuntimeOuterClass.Replica.Builder setInstance(int value)
      uint32 instance = 2;
      Parameters:
      value - The instance to set.
      Returns:
      This builder for chaining.
    • clearInstance

      public P4RuntimeOuterClass.Replica.Builder clearInstance()
      uint32 instance = 2;
      Returns:
      This builder for chaining.
    • 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
    • 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
    • setBackupReplicas

      public P4RuntimeOuterClass.Replica.Builder setBackupReplicas(int index, P4RuntimeOuterClass.BackupReplica value)
       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;
    • setBackupReplicas

      public P4RuntimeOuterClass.Replica.Builder setBackupReplicas(int index, P4RuntimeOuterClass.BackupReplica.Builder builderForValue)
       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;
    • addBackupReplicas

       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;
    • addBackupReplicas

      public P4RuntimeOuterClass.Replica.Builder addBackupReplicas(int index, P4RuntimeOuterClass.BackupReplica value)
       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;
    • addBackupReplicas

       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;
    • addBackupReplicas

      public P4RuntimeOuterClass.Replica.Builder addBackupReplicas(int index, P4RuntimeOuterClass.BackupReplica.Builder builderForValue)
       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;
    • addAllBackupReplicas

      public P4RuntimeOuterClass.Replica.Builder addAllBackupReplicas(Iterable<? extends P4RuntimeOuterClass.BackupReplica> values)
       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;
    • clearBackupReplicas

      public P4RuntimeOuterClass.Replica.Builder clearBackupReplicas()
       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;
    • removeBackupReplicas

      public P4RuntimeOuterClass.Replica.Builder removeBackupReplicas(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;
    • getBackupReplicasBuilder

      public P4RuntimeOuterClass.BackupReplica.Builder getBackupReplicasBuilder(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;
    • 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
    • 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
    • addBackupReplicasBuilder

      public P4RuntimeOuterClass.BackupReplica.Builder addBackupReplicasBuilder()
       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;
    • addBackupReplicasBuilder

      public P4RuntimeOuterClass.BackupReplica.Builder addBackupReplicasBuilder(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;
    • getBackupReplicasBuilderList

      public List<P4RuntimeOuterClass.BackupReplica.Builder> getBackupReplicasBuilderList()
       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;