Package p4.config.v1
Interface P4InfoOuterClass.ActionProfileOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
P4InfoOuterClass.ActionProfile,P4InfoOuterClass.ActionProfile.Builder
- Enclosing class:
P4InfoOuterClass
public static interface P4InfoOuterClass.ActionProfileOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionint0 if the action profile does not have a selector..p4.config.v1.Preamble preamble = 1;.p4.config.v1.Preamble preamble = 1;longgetSize()max number of member entries across all groups if the action profile does not have a selector.group size is the sum of the group's members.group size is the sum of the group's members.group size is the sum of the group's weights.group size is the sum of the group's weights.intgetTableIds(int index) the ids of the tables sharing this action profileintthe ids of the tables sharing this action profilethe ids of the tables sharing this action profilebooleanDictates whether the controller can specify weights for groups programmed in this ActionProfile.booleantrue iff the action profile used dynamic selectionboolean.p4.config.v1.Preamble preamble = 1;booleangroup size is the sum of the group's members.booleangroup size is the sum of the group's weights.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasPreamble
boolean hasPreamble().p4.config.v1.Preamble preamble = 1;- Returns:
- Whether the preamble field is set.
-
getPreamble
P4InfoOuterClass.Preamble getPreamble().p4.config.v1.Preamble preamble = 1;- Returns:
- The preamble.
-
getPreambleOrBuilder
P4InfoOuterClass.PreambleOrBuilder getPreambleOrBuilder().p4.config.v1.Preamble preamble = 1; -
getTableIdsList
the ids of the tables sharing this action profile
repeated uint32 table_ids = 2;- Returns:
- A list containing the tableIds.
-
getTableIdsCount
int getTableIdsCount()the ids of the tables sharing this action profile
repeated uint32 table_ids = 2;- Returns:
- The count of tableIds.
-
getTableIds
int getTableIds(int index) the ids of the tables sharing this action profile
repeated uint32 table_ids = 2;- Parameters:
index- The index of the element to return.- Returns:
- The tableIds at the given index.
-
getWithSelector
boolean getWithSelector()true iff the action profile used dynamic selection
bool with_selector = 3;- Returns:
- The withSelector.
-
getSize
long getSize()max number of member entries across all groups if the action profile does not have a selector. Otherwise, semantics as specified by `selector_size_semantics` below.
int64 size = 4;- Returns:
- The size.
-
getMaxGroupSize
int getMaxGroupSize()0 if the action profile does not have a selector. Otherwise, semantics as specified by `selector_size_semantics` below.
int32 max_group_size = 5;- Returns:
- The maxGroupSize.
-
hasSumOfWeights
boolean hasSumOfWeights()group size is the sum of the group's weights. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfWeights sum_of_weights = 6;- Returns:
- Whether the sumOfWeights field is set.
-
getSumOfWeights
P4InfoOuterClass.ActionProfile.SumOfWeights getSumOfWeights()group size is the sum of the group's weights. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfWeights sum_of_weights = 6;- Returns:
- The sumOfWeights.
-
getSumOfWeightsOrBuilder
P4InfoOuterClass.ActionProfile.SumOfWeightsOrBuilder getSumOfWeightsOrBuilder()group size is the sum of the group's weights. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfWeights sum_of_weights = 6; -
hasSumOfMembers
boolean hasSumOfMembers()group size is the sum of the group's members. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfMembers sum_of_members = 7;- Returns:
- Whether the sumOfMembers field is set.
-
getSumOfMembers
P4InfoOuterClass.ActionProfile.SumOfMembers getSumOfMembers()group size is the sum of the group's members. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfMembers sum_of_members = 7;- Returns:
- The sumOfMembers.
-
getSumOfMembersOrBuilder
P4InfoOuterClass.ActionProfile.SumOfMembersOrBuilder getSumOfMembersOrBuilder()group size is the sum of the group's members. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfMembers sum_of_members = 7; -
getWeightsDisallowed
boolean getWeightsDisallowed()Dictates whether the controller can specify weights for groups programmed in this ActionProfile. If `weights_disallowed` is true, then all weights must be absent. Unset (false) in action profiles without selectors. Added in v1.5.0.
bool weights_disallowed = 8;- Returns:
- The weightsDisallowed.
-
getSelectorSizeSemanticsCase
P4InfoOuterClass.ActionProfile.SelectorSizeSemanticsCase getSelectorSizeSemanticsCase()
-