Package p4.v1

Class P4RuntimeOuterClass.TableEntry.Builder

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

public static final class P4RuntimeOuterClass.TableEntry.Builder extends com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.TableEntry.Builder> implements P4RuntimeOuterClass.TableEntryOrBuilder
Protobuf type p4.v1.TableEntry
  • 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.TableEntry.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.TableEntry.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.TableEntry.Builder>
    • getDefaultInstanceForType

      public P4RuntimeOuterClass.TableEntry 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.TableEntry buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      public int getTableId()
      uint32 table_id = 1;
      Specified by:
      getTableId in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      The tableId.
    • setTableId

      public P4RuntimeOuterClass.TableEntry.Builder setTableId(int value)
      uint32 table_id = 1;
      Parameters:
      value - The tableId to set.
      Returns:
      This builder for chaining.
    • clearTableId

      uint32 table_id = 1;
      Returns:
      This builder for chaining.
    • getMatchList

      public List<P4RuntimeOuterClass.FieldMatch> getMatchList()
      repeated .p4.v1.FieldMatch match = 2;
      Specified by:
      getMatchList in interface P4RuntimeOuterClass.TableEntryOrBuilder
    • getMatchCount

      public int getMatchCount()
      repeated .p4.v1.FieldMatch match = 2;
      Specified by:
      getMatchCount in interface P4RuntimeOuterClass.TableEntryOrBuilder
    • getMatch

      public P4RuntimeOuterClass.FieldMatch getMatch(int index)
      repeated .p4.v1.FieldMatch match = 2;
      Specified by:
      getMatch in interface P4RuntimeOuterClass.TableEntryOrBuilder
    • setMatch

      repeated .p4.v1.FieldMatch match = 2;
    • setMatch

      repeated .p4.v1.FieldMatch match = 2;
    • addMatch

      repeated .p4.v1.FieldMatch match = 2;
    • addMatch

      repeated .p4.v1.FieldMatch match = 2;
    • addMatch

      repeated .p4.v1.FieldMatch match = 2;
    • addMatch

      repeated .p4.v1.FieldMatch match = 2;
    • addAllMatch

      repeated .p4.v1.FieldMatch match = 2;
    • clearMatch

      repeated .p4.v1.FieldMatch match = 2;
    • removeMatch

      public P4RuntimeOuterClass.TableEntry.Builder removeMatch(int index)
      repeated .p4.v1.FieldMatch match = 2;
    • getMatchBuilder

      public P4RuntimeOuterClass.FieldMatch.Builder getMatchBuilder(int index)
      repeated .p4.v1.FieldMatch match = 2;
    • getMatchOrBuilder

      public P4RuntimeOuterClass.FieldMatchOrBuilder getMatchOrBuilder(int index)
      repeated .p4.v1.FieldMatch match = 2;
      Specified by:
      getMatchOrBuilder in interface P4RuntimeOuterClass.TableEntryOrBuilder
    • getMatchOrBuilderList

      public List<? extends P4RuntimeOuterClass.FieldMatchOrBuilder> getMatchOrBuilderList()
      repeated .p4.v1.FieldMatch match = 2;
      Specified by:
      getMatchOrBuilderList in interface P4RuntimeOuterClass.TableEntryOrBuilder
    • addMatchBuilder

      public P4RuntimeOuterClass.FieldMatch.Builder addMatchBuilder()
      repeated .p4.v1.FieldMatch match = 2;
    • addMatchBuilder

      public P4RuntimeOuterClass.FieldMatch.Builder addMatchBuilder(int index)
      repeated .p4.v1.FieldMatch match = 2;
    • getMatchBuilderList

      public List<P4RuntimeOuterClass.FieldMatch.Builder> getMatchBuilderList()
      repeated .p4.v1.FieldMatch match = 2;
    • hasAction

      public boolean hasAction()
      .p4.v1.TableAction action = 3;
      Specified by:
      hasAction in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      Whether the action field is set.
    • getAction

      public P4RuntimeOuterClass.TableAction getAction()
      .p4.v1.TableAction action = 3;
      Specified by:
      getAction in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      The action.
    • setAction

      .p4.v1.TableAction action = 3;
    • setAction

      .p4.v1.TableAction action = 3;
    • mergeAction

      .p4.v1.TableAction action = 3;
    • clearAction

      .p4.v1.TableAction action = 3;
    • getActionBuilder

      public P4RuntimeOuterClass.TableAction.Builder getActionBuilder()
      .p4.v1.TableAction action = 3;
    • getActionOrBuilder

      public P4RuntimeOuterClass.TableActionOrBuilder getActionOrBuilder()
      .p4.v1.TableAction action = 3;
      Specified by:
      getActionOrBuilder in interface P4RuntimeOuterClass.TableEntryOrBuilder
    • getPriority

      public int getPriority()
       Should only be set if the match implies a TCAM lookup, i.e. at least one of
       the match fields is Optional, Ternary or Range.  A higher number indicates
       higher priority.  Only a highest priority entry that matches the packet
       must be selected.  Multiple entries in the same table with the same
       priority value are permitted.  See Section "TableEntry" in the
       specification for details of the behavior.
       
      int32 priority = 4;
      Specified by:
      getPriority in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      The priority.
    • setPriority

      public P4RuntimeOuterClass.TableEntry.Builder setPriority(int value)
       Should only be set if the match implies a TCAM lookup, i.e. at least one of
       the match fields is Optional, Ternary or Range.  A higher number indicates
       higher priority.  Only a highest priority entry that matches the packet
       must be selected.  Multiple entries in the same table with the same
       priority value are permitted.  See Section "TableEntry" in the
       specification for details of the behavior.
       
      int32 priority = 4;
      Parameters:
      value - The priority to set.
      Returns:
      This builder for chaining.
    • clearPriority

       Should only be set if the match implies a TCAM lookup, i.e. at least one of
       the match fields is Optional, Ternary or Range.  A higher number indicates
       higher priority.  Only a highest priority entry that matches the packet
       must be selected.  Multiple entries in the same table with the same
       priority value are permitted.  See Section "TableEntry" in the
       specification for details of the behavior.
       
      int32 priority = 4;
      Returns:
      This builder for chaining.
    • getControllerMetadata

      @Deprecated public long getControllerMetadata()
      Deprecated.
      p4.v1.TableEntry.controller_metadata is deprecated. See p4/v1/p4runtime.proto;l=164
       Metadata (cookie) opaque to the target. There is no requirement of where
       this is stored, as long as it is returned with the rest of the entry in
       a Read RPC. This is deprecated in favor of the more flexible metadata
       field.
       
      uint64 controller_metadata = 5 [deprecated = true];
      Specified by:
      getControllerMetadata in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      The controllerMetadata.
    • setControllerMetadata

      @Deprecated public P4RuntimeOuterClass.TableEntry.Builder setControllerMetadata(long value)
      Deprecated.
      p4.v1.TableEntry.controller_metadata is deprecated. See p4/v1/p4runtime.proto;l=164
       Metadata (cookie) opaque to the target. There is no requirement of where
       this is stored, as long as it is returned with the rest of the entry in
       a Read RPC. This is deprecated in favor of the more flexible metadata
       field.
       
      uint64 controller_metadata = 5 [deprecated = true];
      Parameters:
      value - The controllerMetadata to set.
      Returns:
      This builder for chaining.
    • clearControllerMetadata

      @Deprecated public P4RuntimeOuterClass.TableEntry.Builder clearControllerMetadata()
      Deprecated.
      p4.v1.TableEntry.controller_metadata is deprecated. See p4/v1/p4runtime.proto;l=164
       Metadata (cookie) opaque to the target. There is no requirement of where
       this is stored, as long as it is returned with the rest of the entry in
       a Read RPC. This is deprecated in favor of the more flexible metadata
       field.
       
      uint64 controller_metadata = 5 [deprecated = true];
      Returns:
      This builder for chaining.
    • hasMeterConfig

      public boolean hasMeterConfig()
       meter_config, counter_data and meter_counter_data are convenience fields
       that enable the controller to configure the direct resources associated
       with the table at the same time as a match-action entry is inserted or
       modified.
       Table write:
       - If the table does not contain a direct resource, then setting the
       corresponding direct resource field in any table write operation will
       return an error.
       - When inserting a new table entry, leaving these fields unset means that
       the direct resources of this table (if any) will assume default values.
       For counters, the default value is 0, and for meters, the default value
       is always green.
       - When updating a table entry, leaving meter_config unset will reset the
       meter (if any) to its default configuration, while leaving counter_data
       or meter_counter_data unset means that the counter (if any) will not be
       updated.
       Table read:
       - If the table does not contain a direct resource, then the corresponding
       field will not be set in the read table entry.
       - If meter_config is unset in the request, or if the meter has a default
       configuration, meter_config will not be set in the response.
       - If counter_data or meter_counter_data is unset in the request, it will
       be unset in the response as well.
       
      .p4.v1.MeterConfig meter_config = 6;
      Specified by:
      hasMeterConfig in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      Whether the meterConfig field is set.
    • getMeterConfig

      public P4RuntimeOuterClass.MeterConfig getMeterConfig()
       meter_config, counter_data and meter_counter_data are convenience fields
       that enable the controller to configure the direct resources associated
       with the table at the same time as a match-action entry is inserted or
       modified.
       Table write:
       - If the table does not contain a direct resource, then setting the
       corresponding direct resource field in any table write operation will
       return an error.
       - When inserting a new table entry, leaving these fields unset means that
       the direct resources of this table (if any) will assume default values.
       For counters, the default value is 0, and for meters, the default value
       is always green.
       - When updating a table entry, leaving meter_config unset will reset the
       meter (if any) to its default configuration, while leaving counter_data
       or meter_counter_data unset means that the counter (if any) will not be
       updated.
       Table read:
       - If the table does not contain a direct resource, then the corresponding
       field will not be set in the read table entry.
       - If meter_config is unset in the request, or if the meter has a default
       configuration, meter_config will not be set in the response.
       - If counter_data or meter_counter_data is unset in the request, it will
       be unset in the response as well.
       
      .p4.v1.MeterConfig meter_config = 6;
      Specified by:
      getMeterConfig in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      The meterConfig.
    • setMeterConfig

       meter_config, counter_data and meter_counter_data are convenience fields
       that enable the controller to configure the direct resources associated
       with the table at the same time as a match-action entry is inserted or
       modified.
       Table write:
       - If the table does not contain a direct resource, then setting the
       corresponding direct resource field in any table write operation will
       return an error.
       - When inserting a new table entry, leaving these fields unset means that
       the direct resources of this table (if any) will assume default values.
       For counters, the default value is 0, and for meters, the default value
       is always green.
       - When updating a table entry, leaving meter_config unset will reset the
       meter (if any) to its default configuration, while leaving counter_data
       or meter_counter_data unset means that the counter (if any) will not be
       updated.
       Table read:
       - If the table does not contain a direct resource, then the corresponding
       field will not be set in the read table entry.
       - If meter_config is unset in the request, or if the meter has a default
       configuration, meter_config will not be set in the response.
       - If counter_data or meter_counter_data is unset in the request, it will
       be unset in the response as well.
       
      .p4.v1.MeterConfig meter_config = 6;
    • setMeterConfig

       meter_config, counter_data and meter_counter_data are convenience fields
       that enable the controller to configure the direct resources associated
       with the table at the same time as a match-action entry is inserted or
       modified.
       Table write:
       - If the table does not contain a direct resource, then setting the
       corresponding direct resource field in any table write operation will
       return an error.
       - When inserting a new table entry, leaving these fields unset means that
       the direct resources of this table (if any) will assume default values.
       For counters, the default value is 0, and for meters, the default value
       is always green.
       - When updating a table entry, leaving meter_config unset will reset the
       meter (if any) to its default configuration, while leaving counter_data
       or meter_counter_data unset means that the counter (if any) will not be
       updated.
       Table read:
       - If the table does not contain a direct resource, then the corresponding
       field will not be set in the read table entry.
       - If meter_config is unset in the request, or if the meter has a default
       configuration, meter_config will not be set in the response.
       - If counter_data or meter_counter_data is unset in the request, it will
       be unset in the response as well.
       
      .p4.v1.MeterConfig meter_config = 6;
    • mergeMeterConfig

       meter_config, counter_data and meter_counter_data are convenience fields
       that enable the controller to configure the direct resources associated
       with the table at the same time as a match-action entry is inserted or
       modified.
       Table write:
       - If the table does not contain a direct resource, then setting the
       corresponding direct resource field in any table write operation will
       return an error.
       - When inserting a new table entry, leaving these fields unset means that
       the direct resources of this table (if any) will assume default values.
       For counters, the default value is 0, and for meters, the default value
       is always green.
       - When updating a table entry, leaving meter_config unset will reset the
       meter (if any) to its default configuration, while leaving counter_data
       or meter_counter_data unset means that the counter (if any) will not be
       updated.
       Table read:
       - If the table does not contain a direct resource, then the corresponding
       field will not be set in the read table entry.
       - If meter_config is unset in the request, or if the meter has a default
       configuration, meter_config will not be set in the response.
       - If counter_data or meter_counter_data is unset in the request, it will
       be unset in the response as well.
       
      .p4.v1.MeterConfig meter_config = 6;
    • clearMeterConfig

      public P4RuntimeOuterClass.TableEntry.Builder clearMeterConfig()
       meter_config, counter_data and meter_counter_data are convenience fields
       that enable the controller to configure the direct resources associated
       with the table at the same time as a match-action entry is inserted or
       modified.
       Table write:
       - If the table does not contain a direct resource, then setting the
       corresponding direct resource field in any table write operation will
       return an error.
       - When inserting a new table entry, leaving these fields unset means that
       the direct resources of this table (if any) will assume default values.
       For counters, the default value is 0, and for meters, the default value
       is always green.
       - When updating a table entry, leaving meter_config unset will reset the
       meter (if any) to its default configuration, while leaving counter_data
       or meter_counter_data unset means that the counter (if any) will not be
       updated.
       Table read:
       - If the table does not contain a direct resource, then the corresponding
       field will not be set in the read table entry.
       - If meter_config is unset in the request, or if the meter has a default
       configuration, meter_config will not be set in the response.
       - If counter_data or meter_counter_data is unset in the request, it will
       be unset in the response as well.
       
      .p4.v1.MeterConfig meter_config = 6;
    • getMeterConfigBuilder

      public P4RuntimeOuterClass.MeterConfig.Builder getMeterConfigBuilder()
       meter_config, counter_data and meter_counter_data are convenience fields
       that enable the controller to configure the direct resources associated
       with the table at the same time as a match-action entry is inserted or
       modified.
       Table write:
       - If the table does not contain a direct resource, then setting the
       corresponding direct resource field in any table write operation will
       return an error.
       - When inserting a new table entry, leaving these fields unset means that
       the direct resources of this table (if any) will assume default values.
       For counters, the default value is 0, and for meters, the default value
       is always green.
       - When updating a table entry, leaving meter_config unset will reset the
       meter (if any) to its default configuration, while leaving counter_data
       or meter_counter_data unset means that the counter (if any) will not be
       updated.
       Table read:
       - If the table does not contain a direct resource, then the corresponding
       field will not be set in the read table entry.
       - If meter_config is unset in the request, or if the meter has a default
       configuration, meter_config will not be set in the response.
       - If counter_data or meter_counter_data is unset in the request, it will
       be unset in the response as well.
       
      .p4.v1.MeterConfig meter_config = 6;
    • getMeterConfigOrBuilder

      public P4RuntimeOuterClass.MeterConfigOrBuilder getMeterConfigOrBuilder()
       meter_config, counter_data and meter_counter_data are convenience fields
       that enable the controller to configure the direct resources associated
       with the table at the same time as a match-action entry is inserted or
       modified.
       Table write:
       - If the table does not contain a direct resource, then setting the
       corresponding direct resource field in any table write operation will
       return an error.
       - When inserting a new table entry, leaving these fields unset means that
       the direct resources of this table (if any) will assume default values.
       For counters, the default value is 0, and for meters, the default value
       is always green.
       - When updating a table entry, leaving meter_config unset will reset the
       meter (if any) to its default configuration, while leaving counter_data
       or meter_counter_data unset means that the counter (if any) will not be
       updated.
       Table read:
       - If the table does not contain a direct resource, then the corresponding
       field will not be set in the read table entry.
       - If meter_config is unset in the request, or if the meter has a default
       configuration, meter_config will not be set in the response.
       - If counter_data or meter_counter_data is unset in the request, it will
       be unset in the response as well.
       
      .p4.v1.MeterConfig meter_config = 6;
      Specified by:
      getMeterConfigOrBuilder in interface P4RuntimeOuterClass.TableEntryOrBuilder
    • hasCounterData

      public boolean hasCounterData()
      .p4.v1.CounterData counter_data = 7;
      Specified by:
      hasCounterData in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      Whether the counterData field is set.
    • getCounterData

      public P4RuntimeOuterClass.CounterData getCounterData()
      .p4.v1.CounterData counter_data = 7;
      Specified by:
      getCounterData in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      The counterData.
    • setCounterData

      .p4.v1.CounterData counter_data = 7;
    • setCounterData

      .p4.v1.CounterData counter_data = 7;
    • mergeCounterData

      .p4.v1.CounterData counter_data = 7;
    • clearCounterData

      public P4RuntimeOuterClass.TableEntry.Builder clearCounterData()
      .p4.v1.CounterData counter_data = 7;
    • getCounterDataBuilder

      public P4RuntimeOuterClass.CounterData.Builder getCounterDataBuilder()
      .p4.v1.CounterData counter_data = 7;
    • getCounterDataOrBuilder

      public P4RuntimeOuterClass.CounterDataOrBuilder getCounterDataOrBuilder()
      .p4.v1.CounterData counter_data = 7;
      Specified by:
      getCounterDataOrBuilder in interface P4RuntimeOuterClass.TableEntryOrBuilder
    • hasMeterCounterData

      public boolean hasMeterCounterData()
       Per color counters for tables with a direct meter.
       Added in v1.4.0
       
      .p4.v1.MeterCounterData meter_counter_data = 12;
      Specified by:
      hasMeterCounterData in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      Whether the meterCounterData field is set.
    • getMeterCounterData

      public P4RuntimeOuterClass.MeterCounterData getMeterCounterData()
       Per color counters for tables with a direct meter.
       Added in v1.4.0
       
      .p4.v1.MeterCounterData meter_counter_data = 12;
      Specified by:
      getMeterCounterData in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      The meterCounterData.
    • setMeterCounterData

       Per color counters for tables with a direct meter.
       Added in v1.4.0
       
      .p4.v1.MeterCounterData meter_counter_data = 12;
    • setMeterCounterData

       Per color counters for tables with a direct meter.
       Added in v1.4.0
       
      .p4.v1.MeterCounterData meter_counter_data = 12;
    • mergeMeterCounterData

       Per color counters for tables with a direct meter.
       Added in v1.4.0
       
      .p4.v1.MeterCounterData meter_counter_data = 12;
    • clearMeterCounterData

      public P4RuntimeOuterClass.TableEntry.Builder clearMeterCounterData()
       Per color counters for tables with a direct meter.
       Added in v1.4.0
       
      .p4.v1.MeterCounterData meter_counter_data = 12;
    • getMeterCounterDataBuilder

      public P4RuntimeOuterClass.MeterCounterData.Builder getMeterCounterDataBuilder()
       Per color counters for tables with a direct meter.
       Added in v1.4.0
       
      .p4.v1.MeterCounterData meter_counter_data = 12;
    • getMeterCounterDataOrBuilder

      public P4RuntimeOuterClass.MeterCounterDataOrBuilder getMeterCounterDataOrBuilder()
       Per color counters for tables with a direct meter.
       Added in v1.4.0
       
      .p4.v1.MeterCounterData meter_counter_data = 12;
      Specified by:
      getMeterCounterDataOrBuilder in interface P4RuntimeOuterClass.TableEntryOrBuilder
    • getIsDefaultAction

      public boolean getIsDefaultAction()
       Set to true if the table entry is being used to update the non-const
       default action of the table. If true, the "match" field must be empty and
       the "action" field must be populated with a valid direct action.
       
      bool is_default_action = 8;
      Specified by:
      getIsDefaultAction in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      The isDefaultAction.
    • setIsDefaultAction

      public P4RuntimeOuterClass.TableEntry.Builder setIsDefaultAction(boolean value)
       Set to true if the table entry is being used to update the non-const
       default action of the table. If true, the "match" field must be empty and
       the "action" field must be populated with a valid direct action.
       
      bool is_default_action = 8;
      Parameters:
      value - The isDefaultAction to set.
      Returns:
      This builder for chaining.
    • clearIsDefaultAction

      public P4RuntimeOuterClass.TableEntry.Builder clearIsDefaultAction()
       Set to true if the table entry is being used to update the non-const
       default action of the table. If true, the "match" field must be empty and
       the "action" field must be populated with a valid direct action.
       
      bool is_default_action = 8;
      Returns:
      This builder for chaining.
    • getIdleTimeoutNs

      public long getIdleTimeoutNs()
       The TTL for the entry, in nanoseconds. A value of 0 means that the table
       entry never "expires".
       
      int64 idle_timeout_ns = 9;
      Specified by:
      getIdleTimeoutNs in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      The idleTimeoutNs.
    • setIdleTimeoutNs

      public P4RuntimeOuterClass.TableEntry.Builder setIdleTimeoutNs(long value)
       The TTL for the entry, in nanoseconds. A value of 0 means that the table
       entry never "expires".
       
      int64 idle_timeout_ns = 9;
      Parameters:
      value - The idleTimeoutNs to set.
      Returns:
      This builder for chaining.
    • clearIdleTimeoutNs

      public P4RuntimeOuterClass.TableEntry.Builder clearIdleTimeoutNs()
       The TTL for the entry, in nanoseconds. A value of 0 means that the table
       entry never "expires".
       
      int64 idle_timeout_ns = 9;
      Returns:
      This builder for chaining.
    • hasTimeSinceLastHit

      public boolean hasTimeSinceLastHit()
       Table write: this field should be left unset.
       Table read: if the table supports idle timeout and time_since_last_hit is
       set in the request, this field will be set in the response.
       
      .p4.v1.TableEntry.IdleTimeout time_since_last_hit = 10;
      Specified by:
      hasTimeSinceLastHit in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      Whether the timeSinceLastHit field is set.
    • getTimeSinceLastHit

      public P4RuntimeOuterClass.TableEntry.IdleTimeout getTimeSinceLastHit()
       Table write: this field should be left unset.
       Table read: if the table supports idle timeout and time_since_last_hit is
       set in the request, this field will be set in the response.
       
      .p4.v1.TableEntry.IdleTimeout time_since_last_hit = 10;
      Specified by:
      getTimeSinceLastHit in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      The timeSinceLastHit.
    • setTimeSinceLastHit

       Table write: this field should be left unset.
       Table read: if the table supports idle timeout and time_since_last_hit is
       set in the request, this field will be set in the response.
       
      .p4.v1.TableEntry.IdleTimeout time_since_last_hit = 10;
    • setTimeSinceLastHit

       Table write: this field should be left unset.
       Table read: if the table supports idle timeout and time_since_last_hit is
       set in the request, this field will be set in the response.
       
      .p4.v1.TableEntry.IdleTimeout time_since_last_hit = 10;
    • mergeTimeSinceLastHit

       Table write: this field should be left unset.
       Table read: if the table supports idle timeout and time_since_last_hit is
       set in the request, this field will be set in the response.
       
      .p4.v1.TableEntry.IdleTimeout time_since_last_hit = 10;
    • clearTimeSinceLastHit

      public P4RuntimeOuterClass.TableEntry.Builder clearTimeSinceLastHit()
       Table write: this field should be left unset.
       Table read: if the table supports idle timeout and time_since_last_hit is
       set in the request, this field will be set in the response.
       
      .p4.v1.TableEntry.IdleTimeout time_since_last_hit = 10;
    • getTimeSinceLastHitBuilder

      public P4RuntimeOuterClass.TableEntry.IdleTimeout.Builder getTimeSinceLastHitBuilder()
       Table write: this field should be left unset.
       Table read: if the table supports idle timeout and time_since_last_hit is
       set in the request, this field will be set in the response.
       
      .p4.v1.TableEntry.IdleTimeout time_since_last_hit = 10;
    • getTimeSinceLastHitOrBuilder

      public P4RuntimeOuterClass.TableEntry.IdleTimeoutOrBuilder getTimeSinceLastHitOrBuilder()
       Table write: this field should be left unset.
       Table read: if the table supports idle timeout and time_since_last_hit is
       set in the request, this field will be set in the response.
       
      .p4.v1.TableEntry.IdleTimeout time_since_last_hit = 10;
      Specified by:
      getTimeSinceLastHitOrBuilder in interface P4RuntimeOuterClass.TableEntryOrBuilder
    • getMetadata

      public com.google.protobuf.ByteString getMetadata()
       Arbitrary metadata from the controller that is opaque to the target.
       
      bytes metadata = 11;
      Specified by:
      getMetadata in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public P4RuntimeOuterClass.TableEntry.Builder setMetadata(com.google.protobuf.ByteString value)
       Arbitrary metadata from the controller that is opaque to the target.
       
      bytes metadata = 11;
      Parameters:
      value - The metadata to set.
      Returns:
      This builder for chaining.
    • clearMetadata

       Arbitrary metadata from the controller that is opaque to the target.
       
      bytes metadata = 11;
      Returns:
      This builder for chaining.
    • getIsConst

      public boolean getIsConst()
       True if and only if the entry cannot be deleted or modified,
       i.e. any of the following:
       + Any entry read from a table declared with `const entries`
       + The default entry read from a table declared with `const
       default_action`
       + Any entry declared with `entries` without the `const` qualifier
       before `entries`, where the individual entry has the `const`
       qualifier on it in the P4 source code.
       Note: Older P4Runtime API servers before the `is_const` field was
       added to this message will not return a value for `is_const` in
       the first two cases above, but newer P4Runtime API servers will.
       Added in 1.4.0.
       
      bool is_const = 13;
      Specified by:
      getIsConst in interface P4RuntimeOuterClass.TableEntryOrBuilder
      Returns:
      The isConst.
    • setIsConst

      public P4RuntimeOuterClass.TableEntry.Builder setIsConst(boolean value)
       True if and only if the entry cannot be deleted or modified,
       i.e. any of the following:
       + Any entry read from a table declared with `const entries`
       + The default entry read from a table declared with `const
       default_action`
       + Any entry declared with `entries` without the `const` qualifier
       before `entries`, where the individual entry has the `const`
       qualifier on it in the P4 source code.
       Note: Older P4Runtime API servers before the `is_const` field was
       added to this message will not return a value for `is_const` in
       the first two cases above, but newer P4Runtime API servers will.
       Added in 1.4.0.
       
      bool is_const = 13;
      Parameters:
      value - The isConst to set.
      Returns:
      This builder for chaining.
    • clearIsConst

       True if and only if the entry cannot be deleted or modified,
       i.e. any of the following:
       + Any entry read from a table declared with `const entries`
       + The default entry read from a table declared with `const
       default_action`
       + Any entry declared with `entries` without the `const` qualifier
       before `entries`, where the individual entry has the `const`
       qualifier on it in the P4 source code.
       Note: Older P4Runtime API servers before the `is_const` field was
       added to this message will not return a value for `is_const` in
       the first two cases above, but newer P4Runtime API servers will.
       Added in 1.4.0.
       
      bool is_const = 13;
      Returns:
      This builder for chaining.