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 Summary
Modifier and TypeMethodDescriptionaddAllMatch(Iterable<? extends P4RuntimeOuterClass.FieldMatch> values) repeated .p4.v1.FieldMatch match = 2;addMatch(int index, P4RuntimeOuterClass.FieldMatch value) repeated .p4.v1.FieldMatch match = 2;addMatch(int index, P4RuntimeOuterClass.FieldMatch.Builder builderForValue) repeated .p4.v1.FieldMatch match = 2;repeated .p4.v1.FieldMatch match = 2;addMatch(P4RuntimeOuterClass.FieldMatch.Builder builderForValue) repeated .p4.v1.FieldMatch match = 2;repeated .p4.v1.FieldMatch match = 2;addMatchBuilder(int index) repeated .p4.v1.FieldMatch match = 2;build()clear().p4.v1.TableAction action = 3;Deprecated.p4.v1.TableEntry.controller_metadata is deprecated..p4.v1.CounterData counter_data = 7;The TTL for the entry, in nanoseconds.True if and only if the entry cannot be deleted or modified, i.e.Set to true if the table entry is being used to update the non-const default action of the table.repeated .p4.v1.FieldMatch match = 2;Arbitrary metadata from the controller that is opaque to the target.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.Per color counters for tables with a direct meter.Should only be set if the match implies a TCAM lookup, i.e.uint32 table_id = 1;Table write: this field should be left unset..p4.v1.TableAction action = 3;.p4.v1.TableAction action = 3;.p4.v1.TableAction action = 3;longDeprecated.p4.v1.TableEntry.controller_metadata is deprecated..p4.v1.CounterData counter_data = 7;.p4.v1.CounterData counter_data = 7;.p4.v1.CounterData counter_data = 7;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongThe TTL for the entry, in nanoseconds.booleanTrue if and only if the entry cannot be deleted or modified, i.e.booleanSet to true if the table entry is being used to update the non-const default action of the table.getMatch(int index) repeated .p4.v1.FieldMatch match = 2;getMatchBuilder(int index) repeated .p4.v1.FieldMatch match = 2;repeated .p4.v1.FieldMatch match = 2;intrepeated .p4.v1.FieldMatch match = 2;repeated .p4.v1.FieldMatch match = 2;getMatchOrBuilder(int index) repeated .p4.v1.FieldMatch match = 2;List<? extends P4RuntimeOuterClass.FieldMatchOrBuilder> repeated .p4.v1.FieldMatch match = 2;com.google.protobuf.ByteStringArbitrary metadata from the controller that is opaque to the target.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.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.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.Per color counters for tables with a direct meter.Per color counters for tables with a direct meter.Per color counters for tables with a direct meter.intShould only be set if the match implies a TCAM lookup, i.e.intuint32 table_id = 1;Table write: this field should be left unset.Table write: this field should be left unset.Table write: this field should be left unset.boolean.p4.v1.TableAction action = 3;boolean.p4.v1.CounterData counter_data = 7;booleanmeter_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.booleanPer color counters for tables with a direct meter.booleanTable write: this field should be left unset.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal boolean.p4.v1.TableAction action = 3;.p4.v1.CounterData counter_data = 7;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.Per color counters for tables with a direct meter.Table write: this field should be left unset.removeMatch(int index) repeated .p4.v1.FieldMatch match = 2;.p4.v1.TableAction action = 3;setAction(P4RuntimeOuterClass.TableAction.Builder builderForValue) .p4.v1.TableAction action = 3;setControllerMetadata(long value) Deprecated.p4.v1.TableEntry.controller_metadata is deprecated..p4.v1.CounterData counter_data = 7;setCounterData(P4RuntimeOuterClass.CounterData.Builder builderForValue) .p4.v1.CounterData counter_data = 7;setIdleTimeoutNs(long value) The TTL for the entry, in nanoseconds.setIsConst(boolean value) True if and only if the entry cannot be deleted or modified, i.e.setIsDefaultAction(boolean value) Set to true if the table entry is being used to update the non-const default action of the table.setMatch(int index, P4RuntimeOuterClass.FieldMatch value) repeated .p4.v1.FieldMatch match = 2;setMatch(int index, P4RuntimeOuterClass.FieldMatch.Builder builderForValue) repeated .p4.v1.FieldMatch match = 2;setMetadata(com.google.protobuf.ByteString value) Arbitrary metadata from the controller that is opaque to the target.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.setMeterConfig(P4RuntimeOuterClass.MeterConfig.Builder builderForValue) 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.Per color counters for tables with a direct meter.setMeterCounterData(P4RuntimeOuterClass.MeterCounterData.Builder builderForValue) Per color counters for tables with a direct meter.setPriority(int value) Should only be set if the match implies a TCAM lookup, i.e.setTableId(int value) uint32 table_id = 1;Table write: this field should be left unset.setTimeSinceLastHit(P4RuntimeOuterClass.TableEntry.IdleTimeout.Builder builderForValue) Table write: this field should be left unset.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.TableEntry.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.TableEntry.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.TableEntry.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.TableEntry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.TableEntry.Builder>- Throws:
IOException
-
getTableId
public int getTableId()uint32 table_id = 1;- Specified by:
getTableIdin interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- The tableId.
-
setTableId
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
repeated .p4.v1.FieldMatch match = 2;- Specified by:
getMatchListin interfaceP4RuntimeOuterClass.TableEntryOrBuilder
-
getMatchCount
public int getMatchCount()repeated .p4.v1.FieldMatch match = 2;- Specified by:
getMatchCountin interfaceP4RuntimeOuterClass.TableEntryOrBuilder
-
getMatch
repeated .p4.v1.FieldMatch match = 2;- Specified by:
getMatchin interfaceP4RuntimeOuterClass.TableEntryOrBuilder
-
setMatch
public P4RuntimeOuterClass.TableEntry.Builder setMatch(int index, P4RuntimeOuterClass.FieldMatch value) repeated .p4.v1.FieldMatch match = 2; -
setMatch
public P4RuntimeOuterClass.TableEntry.Builder setMatch(int index, P4RuntimeOuterClass.FieldMatch.Builder builderForValue) repeated .p4.v1.FieldMatch match = 2; -
addMatch
repeated .p4.v1.FieldMatch match = 2; -
addMatch
public P4RuntimeOuterClass.TableEntry.Builder addMatch(int index, P4RuntimeOuterClass.FieldMatch value) repeated .p4.v1.FieldMatch match = 2; -
addMatch
public P4RuntimeOuterClass.TableEntry.Builder addMatch(P4RuntimeOuterClass.FieldMatch.Builder builderForValue) repeated .p4.v1.FieldMatch match = 2; -
addMatch
public P4RuntimeOuterClass.TableEntry.Builder addMatch(int index, P4RuntimeOuterClass.FieldMatch.Builder builderForValue) repeated .p4.v1.FieldMatch match = 2; -
addAllMatch
public P4RuntimeOuterClass.TableEntry.Builder addAllMatch(Iterable<? extends P4RuntimeOuterClass.FieldMatch> values) repeated .p4.v1.FieldMatch match = 2; -
clearMatch
repeated .p4.v1.FieldMatch match = 2; -
removeMatch
repeated .p4.v1.FieldMatch match = 2; -
getMatchBuilder
repeated .p4.v1.FieldMatch match = 2; -
getMatchOrBuilder
repeated .p4.v1.FieldMatch match = 2;- Specified by:
getMatchOrBuilderin interfaceP4RuntimeOuterClass.TableEntryOrBuilder
-
getMatchOrBuilderList
repeated .p4.v1.FieldMatch match = 2;- Specified by:
getMatchOrBuilderListin interfaceP4RuntimeOuterClass.TableEntryOrBuilder
-
addMatchBuilder
repeated .p4.v1.FieldMatch match = 2; -
addMatchBuilder
repeated .p4.v1.FieldMatch match = 2; -
getMatchBuilderList
repeated .p4.v1.FieldMatch match = 2; -
hasAction
public boolean hasAction().p4.v1.TableAction action = 3;- Specified by:
hasActionin interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- Whether the action field is set.
-
getAction
.p4.v1.TableAction action = 3;- Specified by:
getActionin interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- The action.
-
setAction
.p4.v1.TableAction action = 3; -
setAction
public P4RuntimeOuterClass.TableEntry.Builder setAction(P4RuntimeOuterClass.TableAction.Builder builderForValue) .p4.v1.TableAction action = 3; -
mergeAction
.p4.v1.TableAction action = 3; -
clearAction
.p4.v1.TableAction action = 3; -
getActionBuilder
.p4.v1.TableAction action = 3; -
getActionOrBuilder
.p4.v1.TableAction action = 3;- Specified by:
getActionOrBuilderin interfaceP4RuntimeOuterClass.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:
getPriorityin interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- The priority.
-
setPriority
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.p4.v1.TableEntry.controller_metadata is deprecated. See p4/v1/p4runtime.proto;l=164Metadata (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:
getControllerMetadatain interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- The controllerMetadata.
-
setControllerMetadata
Deprecated.p4.v1.TableEntry.controller_metadata is deprecated. See p4/v1/p4runtime.proto;l=164Metadata (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.p4.v1.TableEntry.controller_metadata is deprecated. See p4/v1/p4runtime.proto;l=164Metadata (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:
hasMeterConfigin interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- Whether the meterConfig field is set.
-
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:
getMeterConfigin interfaceP4RuntimeOuterClass.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
public P4RuntimeOuterClass.TableEntry.Builder setMeterConfig(P4RuntimeOuterClass.MeterConfig.Builder builderForValue) 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
public P4RuntimeOuterClass.TableEntry.Builder mergeMeterConfig(P4RuntimeOuterClass.MeterConfig value) 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
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
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
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:
getMeterConfigOrBuilderin interfaceP4RuntimeOuterClass.TableEntryOrBuilder
-
hasCounterData
public boolean hasCounterData().p4.v1.CounterData counter_data = 7;- Specified by:
hasCounterDatain interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- Whether the counterData field is set.
-
getCounterData
.p4.v1.CounterData counter_data = 7;- Specified by:
getCounterDatain interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- The counterData.
-
setCounterData
.p4.v1.CounterData counter_data = 7; -
setCounterData
public P4RuntimeOuterClass.TableEntry.Builder setCounterData(P4RuntimeOuterClass.CounterData.Builder builderForValue) .p4.v1.CounterData counter_data = 7; -
mergeCounterData
public P4RuntimeOuterClass.TableEntry.Builder mergeCounterData(P4RuntimeOuterClass.CounterData value) .p4.v1.CounterData counter_data = 7; -
clearCounterData
.p4.v1.CounterData counter_data = 7; -
getCounterDataBuilder
.p4.v1.CounterData counter_data = 7; -
getCounterDataOrBuilder
.p4.v1.CounterData counter_data = 7;- Specified by:
getCounterDataOrBuilderin interfaceP4RuntimeOuterClass.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:
hasMeterCounterDatain interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- Whether the meterCounterData field is set.
-
getMeterCounterData
Per color counters for tables with a direct meter. Added in v1.4.0
.p4.v1.MeterCounterData meter_counter_data = 12;- Specified by:
getMeterCounterDatain interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- The meterCounterData.
-
setMeterCounterData
public P4RuntimeOuterClass.TableEntry.Builder setMeterCounterData(P4RuntimeOuterClass.MeterCounterData value) Per color counters for tables with a direct meter. Added in v1.4.0
.p4.v1.MeterCounterData meter_counter_data = 12; -
setMeterCounterData
public P4RuntimeOuterClass.TableEntry.Builder setMeterCounterData(P4RuntimeOuterClass.MeterCounterData.Builder builderForValue) Per color counters for tables with a direct meter. Added in v1.4.0
.p4.v1.MeterCounterData meter_counter_data = 12; -
mergeMeterCounterData
public P4RuntimeOuterClass.TableEntry.Builder mergeMeterCounterData(P4RuntimeOuterClass.MeterCounterData value) Per color counters for tables with a direct meter. Added in v1.4.0
.p4.v1.MeterCounterData meter_counter_data = 12; -
clearMeterCounterData
Per color counters for tables with a direct meter. Added in v1.4.0
.p4.v1.MeterCounterData meter_counter_data = 12; -
getMeterCounterDataBuilder
Per color counters for tables with a direct meter. Added in v1.4.0
.p4.v1.MeterCounterData meter_counter_data = 12; -
getMeterCounterDataOrBuilder
Per color counters for tables with a direct meter. Added in v1.4.0
.p4.v1.MeterCounterData meter_counter_data = 12;- Specified by:
getMeterCounterDataOrBuilderin interfaceP4RuntimeOuterClass.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:
getIsDefaultActionin interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- The isDefaultAction.
-
setIsDefaultAction
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
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:
getIdleTimeoutNsin interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- The idleTimeoutNs.
-
setIdleTimeoutNs
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
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:
hasTimeSinceLastHitin interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- Whether the timeSinceLastHit field is set.
-
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:
getTimeSinceLastHitin interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- The timeSinceLastHit.
-
setTimeSinceLastHit
public P4RuntimeOuterClass.TableEntry.Builder setTimeSinceLastHit(P4RuntimeOuterClass.TableEntry.IdleTimeout value) 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
public P4RuntimeOuterClass.TableEntry.Builder setTimeSinceLastHit(P4RuntimeOuterClass.TableEntry.IdleTimeout.Builder builderForValue) 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
public P4RuntimeOuterClass.TableEntry.Builder mergeTimeSinceLastHit(P4RuntimeOuterClass.TableEntry.IdleTimeout value) 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
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
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
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:
getTimeSinceLastHitOrBuilderin interfaceP4RuntimeOuterClass.TableEntryOrBuilder
-
getMetadata
public com.google.protobuf.ByteString getMetadata()Arbitrary metadata from the controller that is opaque to the target.
bytes metadata = 11;- Specified by:
getMetadatain interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- The metadata.
-
setMetadata
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:
getIsConstin interfaceP4RuntimeOuterClass.TableEntryOrBuilder- Returns:
- The isConst.
-
setIsConst
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.
-