public static final class TableEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder> implements TableEntryOrBuilder
From Section 11 of P4_14 spec: At run time, the table entry insert operation (not part of P4) must specify: - Values for each field specified in the reads entry. - The name of the action from the action_specification or the action_profile_specification and the parameters to be passed to the action function when it is called.Protobuf type
p4.v1.TableEntry
Modifier and Type | Method and Description |
---|---|
TableEntry.Builder |
addAllMatch(Iterable<? extends FieldMatch> values)
repeated .p4.v1.FieldMatch match = 2; |
TableEntry.Builder |
addMatch(FieldMatch.Builder builderForValue)
repeated .p4.v1.FieldMatch match = 2; |
TableEntry.Builder |
addMatch(FieldMatch value)
repeated .p4.v1.FieldMatch match = 2; |
TableEntry.Builder |
addMatch(int index,
FieldMatch.Builder builderForValue)
repeated .p4.v1.FieldMatch match = 2; |
TableEntry.Builder |
addMatch(int index,
FieldMatch value)
repeated .p4.v1.FieldMatch match = 2; |
FieldMatch.Builder |
addMatchBuilder()
repeated .p4.v1.FieldMatch match = 2; |
FieldMatch.Builder |
addMatchBuilder(int index)
repeated .p4.v1.FieldMatch match = 2; |
TableEntry.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TableEntry |
build() |
TableEntry |
buildPartial() |
TableEntry.Builder |
clear() |
TableEntry.Builder |
clearAction()
.p4.v1.TableAction action = 3; |
TableEntry.Builder |
clearControllerMetadata()
Metadata (cookie) opaque to the target.
|
TableEntry.Builder |
clearCounterData()
.p4.v1.CounterData counter_data = 7; |
TableEntry.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TableEntry.Builder |
clearIdleTimeoutNs()
The TTL for the entry, in nanoseconds.
|
TableEntry.Builder |
clearIsDefaultAction()
Set to true if the table entry is being used to update the non-const
default action of the table.
|
TableEntry.Builder |
clearMatch()
repeated .p4.v1.FieldMatch match = 2; |
TableEntry.Builder |
clearMeterConfig()
meter_config and 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.
|
TableEntry.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TableEntry.Builder |
clearPriority()
Should only be set if the match implies a TCAM lookup, i.e.
|
TableEntry.Builder |
clearTableId()
uint32 table_id = 1; |
TableEntry.Builder |
clearTimeSinceLastHit()
Table wite: this field should be left unset.
|
TableEntry.Builder |
clone() |
TableAction |
getAction()
.p4.v1.TableAction action = 3; |
TableAction.Builder |
getActionBuilder()
.p4.v1.TableAction action = 3; |
TableActionOrBuilder |
getActionOrBuilder()
.p4.v1.TableAction action = 3; |
long |
getControllerMetadata()
Metadata (cookie) opaque to the target.
|
CounterData |
getCounterData()
.p4.v1.CounterData counter_data = 7; |
CounterData.Builder |
getCounterDataBuilder()
.p4.v1.CounterData counter_data = 7; |
CounterDataOrBuilder |
getCounterDataOrBuilder()
.p4.v1.CounterData counter_data = 7; |
TableEntry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getIdleTimeoutNs()
The TTL for the entry, in nanoseconds.
|
boolean |
getIsDefaultAction()
Set to true if the table entry is being used to update the non-const
default action of the table.
|
FieldMatch |
getMatch(int index)
repeated .p4.v1.FieldMatch match = 2; |
FieldMatch.Builder |
getMatchBuilder(int index)
repeated .p4.v1.FieldMatch match = 2; |
List<FieldMatch.Builder> |
getMatchBuilderList()
repeated .p4.v1.FieldMatch match = 2; |
int |
getMatchCount()
repeated .p4.v1.FieldMatch match = 2; |
List<FieldMatch> |
getMatchList()
repeated .p4.v1.FieldMatch match = 2; |
FieldMatchOrBuilder |
getMatchOrBuilder(int index)
repeated .p4.v1.FieldMatch match = 2; |
List<? extends FieldMatchOrBuilder> |
getMatchOrBuilderList()
repeated .p4.v1.FieldMatch match = 2; |
MeterConfig |
getMeterConfig()
meter_config and 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.
|
MeterConfig.Builder |
getMeterConfigBuilder()
meter_config and 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.
|
MeterConfigOrBuilder |
getMeterConfigOrBuilder()
meter_config and 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.
|
int |
getPriority()
Should only be set if the match implies a TCAM lookup, i.e.
|
int |
getTableId()
uint32 table_id = 1; |
TableEntry.IdleTimeout |
getTimeSinceLastHit()
Table wite: this field should be left unset.
|
TableEntry.IdleTimeout.Builder |
getTimeSinceLastHitBuilder()
Table wite: this field should be left unset.
|
TableEntry.IdleTimeoutOrBuilder |
getTimeSinceLastHitOrBuilder()
Table wite: this field should be left unset.
|
boolean |
hasAction()
.p4.v1.TableAction action = 3; |
boolean |
hasCounterData()
.p4.v1.CounterData counter_data = 7; |
boolean |
hasMeterConfig()
meter_config and 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.
|
boolean |
hasTimeSinceLastHit()
Table wite: this field should be left unset.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TableEntry.Builder |
mergeAction(TableAction value)
.p4.v1.TableAction action = 3; |
TableEntry.Builder |
mergeCounterData(CounterData value)
.p4.v1.CounterData counter_data = 7; |
TableEntry.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TableEntry.Builder |
mergeFrom(com.google.protobuf.Message other) |
TableEntry.Builder |
mergeFrom(TableEntry other) |
TableEntry.Builder |
mergeMeterConfig(MeterConfig value)
meter_config and 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.
|
TableEntry.Builder |
mergeTimeSinceLastHit(TableEntry.IdleTimeout value)
Table wite: this field should be left unset.
|
TableEntry.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TableEntry.Builder |
removeMatch(int index)
repeated .p4.v1.FieldMatch match = 2; |
TableEntry.Builder |
setAction(TableAction.Builder builderForValue)
.p4.v1.TableAction action = 3; |
TableEntry.Builder |
setAction(TableAction value)
.p4.v1.TableAction action = 3; |
TableEntry.Builder |
setControllerMetadata(long value)
Metadata (cookie) opaque to the target.
|
TableEntry.Builder |
setCounterData(CounterData.Builder builderForValue)
.p4.v1.CounterData counter_data = 7; |
TableEntry.Builder |
setCounterData(CounterData value)
.p4.v1.CounterData counter_data = 7; |
TableEntry.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TableEntry.Builder |
setIdleTimeoutNs(long value)
The TTL for the entry, in nanoseconds.
|
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.
|
TableEntry.Builder |
setMatch(int index,
FieldMatch.Builder builderForValue)
repeated .p4.v1.FieldMatch match = 2; |
TableEntry.Builder |
setMatch(int index,
FieldMatch value)
repeated .p4.v1.FieldMatch match = 2; |
TableEntry.Builder |
setMeterConfig(MeterConfig.Builder builderForValue)
meter_config and 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.
|
TableEntry.Builder |
setMeterConfig(MeterConfig value)
meter_config and 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.
|
TableEntry.Builder |
setPriority(int value)
Should only be set if the match implies a TCAM lookup, i.e.
|
TableEntry.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TableEntry.Builder |
setTableId(int value)
uint32 table_id = 1; |
TableEntry.Builder |
setTimeSinceLastHit(TableEntry.IdleTimeout.Builder builderForValue)
Table wite: this field should be left unset.
|
TableEntry.Builder |
setTimeSinceLastHit(TableEntry.IdleTimeout value)
Table wite: this field should be left unset.
|
TableEntry.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>
public TableEntry.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>
public TableEntry getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TableEntry build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TableEntry buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TableEntry.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>
public TableEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>
public TableEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>
public TableEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>
public TableEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>
public TableEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>
public TableEntry.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TableEntry.Builder>
public TableEntry.Builder mergeFrom(TableEntry other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>
public TableEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TableEntry.Builder>
IOException
public int getTableId()
uint32 table_id = 1;
getTableId
in interface TableEntryOrBuilder
public TableEntry.Builder setTableId(int value)
uint32 table_id = 1;
public TableEntry.Builder clearTableId()
uint32 table_id = 1;
public List<FieldMatch> getMatchList()
repeated .p4.v1.FieldMatch match = 2;
getMatchList
in interface TableEntryOrBuilder
public int getMatchCount()
repeated .p4.v1.FieldMatch match = 2;
getMatchCount
in interface TableEntryOrBuilder
public FieldMatch getMatch(int index)
repeated .p4.v1.FieldMatch match = 2;
getMatch
in interface TableEntryOrBuilder
public TableEntry.Builder setMatch(int index, FieldMatch value)
repeated .p4.v1.FieldMatch match = 2;
public TableEntry.Builder setMatch(int index, FieldMatch.Builder builderForValue)
repeated .p4.v1.FieldMatch match = 2;
public TableEntry.Builder addMatch(FieldMatch value)
repeated .p4.v1.FieldMatch match = 2;
public TableEntry.Builder addMatch(int index, FieldMatch value)
repeated .p4.v1.FieldMatch match = 2;
public TableEntry.Builder addMatch(FieldMatch.Builder builderForValue)
repeated .p4.v1.FieldMatch match = 2;
public TableEntry.Builder addMatch(int index, FieldMatch.Builder builderForValue)
repeated .p4.v1.FieldMatch match = 2;
public TableEntry.Builder addAllMatch(Iterable<? extends FieldMatch> values)
repeated .p4.v1.FieldMatch match = 2;
public TableEntry.Builder clearMatch()
repeated .p4.v1.FieldMatch match = 2;
public TableEntry.Builder removeMatch(int index)
repeated .p4.v1.FieldMatch match = 2;
public FieldMatch.Builder getMatchBuilder(int index)
repeated .p4.v1.FieldMatch match = 2;
public FieldMatchOrBuilder getMatchOrBuilder(int index)
repeated .p4.v1.FieldMatch match = 2;
getMatchOrBuilder
in interface TableEntryOrBuilder
public List<? extends FieldMatchOrBuilder> getMatchOrBuilderList()
repeated .p4.v1.FieldMatch match = 2;
getMatchOrBuilderList
in interface TableEntryOrBuilder
public FieldMatch.Builder addMatchBuilder()
repeated .p4.v1.FieldMatch match = 2;
public FieldMatch.Builder addMatchBuilder(int index)
repeated .p4.v1.FieldMatch match = 2;
public List<FieldMatch.Builder> getMatchBuilderList()
repeated .p4.v1.FieldMatch match = 2;
public boolean hasAction()
.p4.v1.TableAction action = 3;
hasAction
in interface TableEntryOrBuilder
public TableAction getAction()
.p4.v1.TableAction action = 3;
getAction
in interface TableEntryOrBuilder
public TableEntry.Builder setAction(TableAction value)
.p4.v1.TableAction action = 3;
public TableEntry.Builder setAction(TableAction.Builder builderForValue)
.p4.v1.TableAction action = 3;
public TableEntry.Builder mergeAction(TableAction value)
.p4.v1.TableAction action = 3;
public TableEntry.Builder clearAction()
.p4.v1.TableAction action = 3;
public TableAction.Builder getActionBuilder()
.p4.v1.TableAction action = 3;
public TableActionOrBuilder getActionOrBuilder()
.p4.v1.TableAction action = 3;
getActionOrBuilder
in interface TableEntryOrBuilder
public int getPriority()
Should only be set if the match implies a TCAM lookup, i.e. at least one of the match fields is Ternary or Range. A higher number indicates higher priority. Only the highest priority entry that matches the packet must be selected. Given an existing entry with prority k, if the controller tries to insert or modify another entry with priority k such that a packet may match both entries, an error is returned. This will be the case if the overlap is strict (entries are identical) or not. In the future, if there is a use-case, a table-level annotation may be introduced to make the overlap check non-strict. In that case, if there are multiple matching entries with the same highest priority, the selected entry will be explicitly undefined.
int32 priority = 4;
getPriority
in interface TableEntryOrBuilder
public 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 Ternary or Range. A higher number indicates higher priority. Only the highest priority entry that matches the packet must be selected. Given an existing entry with prority k, if the controller tries to insert or modify another entry with priority k such that a packet may match both entries, an error is returned. This will be the case if the overlap is strict (entries are identical) or not. In the future, if there is a use-case, a table-level annotation may be introduced to make the overlap check non-strict. In that case, if there are multiple matching entries with the same highest priority, the selected entry will be explicitly undefined.
int32 priority = 4;
public TableEntry.Builder clearPriority()
Should only be set if the match implies a TCAM lookup, i.e. at least one of the match fields is Ternary or Range. A higher number indicates higher priority. Only the highest priority entry that matches the packet must be selected. Given an existing entry with prority k, if the controller tries to insert or modify another entry with priority k such that a packet may match both entries, an error is returned. This will be the case if the overlap is strict (entries are identical) or not. In the future, if there is a use-case, a table-level annotation may be introduced to make the overlap check non-strict. In that case, if there are multiple matching entries with the same highest priority, the selected entry will be explicitly undefined.
int32 priority = 4;
public long getControllerMetadata()
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.
uint64 controller_metadata = 5;
getControllerMetadata
in interface TableEntryOrBuilder
public TableEntry.Builder setControllerMetadata(long value)
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.
uint64 controller_metadata = 5;
public TableEntry.Builder clearControllerMetadata()
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.
uint64 controller_metadata = 5;
public boolean hasMeterConfig()
meter_config and 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 these fields unset means that the direct resources (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 the meter_config field has default value, it will not be set in the read table entry. - The counter_data field will always be set in a read table entry if the table contains a direct counter.
.p4.v1.MeterConfig meter_config = 6;
hasMeterConfig
in interface TableEntryOrBuilder
public MeterConfig getMeterConfig()
meter_config and 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 these fields unset means that the direct resources (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 the meter_config field has default value, it will not be set in the read table entry. - The counter_data field will always be set in a read table entry if the table contains a direct counter.
.p4.v1.MeterConfig meter_config = 6;
getMeterConfig
in interface TableEntryOrBuilder
public TableEntry.Builder setMeterConfig(MeterConfig value)
meter_config and 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 these fields unset means that the direct resources (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 the meter_config field has default value, it will not be set in the read table entry. - The counter_data field will always be set in a read table entry if the table contains a direct counter.
.p4.v1.MeterConfig meter_config = 6;
public TableEntry.Builder setMeterConfig(MeterConfig.Builder builderForValue)
meter_config and 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 these fields unset means that the direct resources (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 the meter_config field has default value, it will not be set in the read table entry. - The counter_data field will always be set in a read table entry if the table contains a direct counter.
.p4.v1.MeterConfig meter_config = 6;
public TableEntry.Builder mergeMeterConfig(MeterConfig value)
meter_config and 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 these fields unset means that the direct resources (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 the meter_config field has default value, it will not be set in the read table entry. - The counter_data field will always be set in a read table entry if the table contains a direct counter.
.p4.v1.MeterConfig meter_config = 6;
public TableEntry.Builder clearMeterConfig()
meter_config and 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 these fields unset means that the direct resources (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 the meter_config field has default value, it will not be set in the read table entry. - The counter_data field will always be set in a read table entry if the table contains a direct counter.
.p4.v1.MeterConfig meter_config = 6;
public MeterConfig.Builder getMeterConfigBuilder()
meter_config and 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 these fields unset means that the direct resources (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 the meter_config field has default value, it will not be set in the read table entry. - The counter_data field will always be set in a read table entry if the table contains a direct counter.
.p4.v1.MeterConfig meter_config = 6;
public MeterConfigOrBuilder getMeterConfigOrBuilder()
meter_config and 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 these fields unset means that the direct resources (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 the meter_config field has default value, it will not be set in the read table entry. - The counter_data field will always be set in a read table entry if the table contains a direct counter.
.p4.v1.MeterConfig meter_config = 6;
getMeterConfigOrBuilder
in interface TableEntryOrBuilder
public boolean hasCounterData()
.p4.v1.CounterData counter_data = 7;
hasCounterData
in interface TableEntryOrBuilder
public CounterData getCounterData()
.p4.v1.CounterData counter_data = 7;
getCounterData
in interface TableEntryOrBuilder
public TableEntry.Builder setCounterData(CounterData value)
.p4.v1.CounterData counter_data = 7;
public TableEntry.Builder setCounterData(CounterData.Builder builderForValue)
.p4.v1.CounterData counter_data = 7;
public TableEntry.Builder mergeCounterData(CounterData value)
.p4.v1.CounterData counter_data = 7;
public TableEntry.Builder clearCounterData()
.p4.v1.CounterData counter_data = 7;
public CounterData.Builder getCounterDataBuilder()
.p4.v1.CounterData counter_data = 7;
public CounterDataOrBuilder getCounterDataOrBuilder()
.p4.v1.CounterData counter_data = 7;
getCounterDataOrBuilder
in interface TableEntryOrBuilder
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;
getIsDefaultAction
in interface TableEntryOrBuilder
public 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;
public 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;
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;
getIdleTimeoutNs
in interface TableEntryOrBuilder
public 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;
public 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;
public boolean hasTimeSinceLastHit()
Table wite: 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;
hasTimeSinceLastHit
in interface TableEntryOrBuilder
public TableEntry.IdleTimeout getTimeSinceLastHit()
Table wite: 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;
getTimeSinceLastHit
in interface TableEntryOrBuilder
public TableEntry.Builder setTimeSinceLastHit(TableEntry.IdleTimeout value)
Table wite: 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;
public TableEntry.Builder setTimeSinceLastHit(TableEntry.IdleTimeout.Builder builderForValue)
Table wite: 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;
public TableEntry.Builder mergeTimeSinceLastHit(TableEntry.IdleTimeout value)
Table wite: 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;
public TableEntry.Builder clearTimeSinceLastHit()
Table wite: 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;
public TableEntry.IdleTimeout.Builder getTimeSinceLastHitBuilder()
Table wite: 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;
public TableEntry.IdleTimeoutOrBuilder getTimeSinceLastHitOrBuilder()
Table wite: 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
in interface TableEntryOrBuilder
public final TableEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>
public final TableEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TableEntry.Builder>
Copyright © 2018 OpenDaylight. All rights reserved.