Package p4.config.v1
Class P4InfoOuterClass.ActionProfile.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<P4InfoOuterClass.ActionProfile.Builder>
com.google.protobuf.GeneratedMessage.Builder<P4InfoOuterClass.ActionProfile.Builder>
p4.config.v1.P4InfoOuterClass.ActionProfile.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,P4InfoOuterClass.ActionProfileOrBuilder
- Enclosing class:
P4InfoOuterClass.ActionProfile
public static final class P4InfoOuterClass.ActionProfile.Builder
extends com.google.protobuf.GeneratedMessage.Builder<P4InfoOuterClass.ActionProfile.Builder>
implements P4InfoOuterClass.ActionProfileOrBuilder
Protobuf type
p4.config.v1.ActionProfile-
Method Summary
Modifier and TypeMethodDescriptionaddAllTableIds(Iterable<? extends Integer> values) the ids of the tables sharing this action profileaddTableIds(int value) the ids of the tables sharing this action profilebuild()clear()0 if the action profile does not have a selector..p4.config.v1.Preamble preamble = 1;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 weights.the ids of the tables sharing this action profileDictates whether the controller can specify weights for groups programmed in this ActionProfile.true iff the action profile used dynamic selectionstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorint0 if the action profile does not have a selector..p4.config.v1.Preamble preamble = 1;.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 members.group size is the sum of the group's weights.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) .p4.config.v1.Preamble preamble = 1;group size is the sum of the group's members.group size is the sum of the group's weights.setMaxGroupSize(int value) 0 if the action profile does not have a selector..p4.config.v1.Preamble preamble = 1;setPreamble(P4InfoOuterClass.Preamble.Builder builderForValue) .p4.config.v1.Preamble preamble = 1;setSize(long value) 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.setSumOfMembers(P4InfoOuterClass.ActionProfile.SumOfMembers.Builder builderForValue) group size is the sum of the group's members.group size is the sum of the group's weights.setSumOfWeights(P4InfoOuterClass.ActionProfile.SumOfWeights.Builder builderForValue) group size is the sum of the group's weights.setTableIds(int index, int value) the ids of the tables sharing this action profilesetWeightsDisallowed(boolean value) Dictates whether the controller can specify weights for groups programmed in this ActionProfile.setWithSelector(boolean value) true iff the action profile used dynamic selectionMethods 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<P4InfoOuterClass.ActionProfile.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<P4InfoOuterClass.ActionProfile.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<P4InfoOuterClass.ActionProfile.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<P4InfoOuterClass.ActionProfile.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<P4InfoOuterClass.ActionProfile.Builder>
-
mergeFrom
public P4InfoOuterClass.ActionProfile.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<P4InfoOuterClass.ActionProfile.Builder>- Throws:
IOException
-
getSelectorSizeSemanticsCase
- Specified by:
getSelectorSizeSemanticsCasein interfaceP4InfoOuterClass.ActionProfileOrBuilder
-
clearSelectorSizeSemantics
-
hasPreamble
public boolean hasPreamble().p4.config.v1.Preamble preamble = 1;- Specified by:
hasPreamblein interfaceP4InfoOuterClass.ActionProfileOrBuilder- Returns:
- Whether the preamble field is set.
-
getPreamble
.p4.config.v1.Preamble preamble = 1;- Specified by:
getPreamblein interfaceP4InfoOuterClass.ActionProfileOrBuilder- Returns:
- The preamble.
-
setPreamble
.p4.config.v1.Preamble preamble = 1; -
setPreamble
public P4InfoOuterClass.ActionProfile.Builder setPreamble(P4InfoOuterClass.Preamble.Builder builderForValue) .p4.config.v1.Preamble preamble = 1; -
mergePreamble
.p4.config.v1.Preamble preamble = 1; -
clearPreamble
.p4.config.v1.Preamble preamble = 1; -
getPreambleBuilder
.p4.config.v1.Preamble preamble = 1; -
getPreambleOrBuilder
.p4.config.v1.Preamble preamble = 1;- Specified by:
getPreambleOrBuilderin interfaceP4InfoOuterClass.ActionProfileOrBuilder
-
getTableIdsList
the ids of the tables sharing this action profile
repeated uint32 table_ids = 2;- Specified by:
getTableIdsListin interfaceP4InfoOuterClass.ActionProfileOrBuilder- Returns:
- A list containing the tableIds.
-
getTableIdsCount
public int getTableIdsCount()the ids of the tables sharing this action profile
repeated uint32 table_ids = 2;- Specified by:
getTableIdsCountin interfaceP4InfoOuterClass.ActionProfileOrBuilder- Returns:
- The count of tableIds.
-
getTableIds
public int getTableIds(int index) the ids of the tables sharing this action profile
repeated uint32 table_ids = 2;- Specified by:
getTableIdsin interfaceP4InfoOuterClass.ActionProfileOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tableIds at the given index.
-
setTableIds
the ids of the tables sharing this action profile
repeated uint32 table_ids = 2;- Parameters:
index- The index to set the value at.value- The tableIds to set.- Returns:
- This builder for chaining.
-
addTableIds
the ids of the tables sharing this action profile
repeated uint32 table_ids = 2;- Parameters:
value- The tableIds to add.- Returns:
- This builder for chaining.
-
addAllTableIds
the ids of the tables sharing this action profile
repeated uint32 table_ids = 2;- Parameters:
values- The tableIds to add.- Returns:
- This builder for chaining.
-
clearTableIds
the ids of the tables sharing this action profile
repeated uint32 table_ids = 2;- Returns:
- This builder for chaining.
-
getWithSelector
public boolean getWithSelector()true iff the action profile used dynamic selection
bool with_selector = 3;- Specified by:
getWithSelectorin interfaceP4InfoOuterClass.ActionProfileOrBuilder- Returns:
- The withSelector.
-
setWithSelector
true iff the action profile used dynamic selection
bool with_selector = 3;- Parameters:
value- The withSelector to set.- Returns:
- This builder for chaining.
-
clearWithSelector
true iff the action profile used dynamic selection
bool with_selector = 3;- Returns:
- This builder for chaining.
-
getSize
public 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;- Specified by:
getSizein interfaceP4InfoOuterClass.ActionProfileOrBuilder- Returns:
- The size.
-
setSize
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;- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
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:
- This builder for chaining.
-
getMaxGroupSize
public 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;- Specified by:
getMaxGroupSizein interfaceP4InfoOuterClass.ActionProfileOrBuilder- Returns:
- The maxGroupSize.
-
setMaxGroupSize
0 if the action profile does not have a selector. Otherwise, semantics as specified by `selector_size_semantics` below.
int32 max_group_size = 5;- Parameters:
value- The maxGroupSize to set.- Returns:
- This builder for chaining.
-
clearMaxGroupSize
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:
- This builder for chaining.
-
hasSumOfWeights
public 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;- Specified by:
hasSumOfWeightsin interfaceP4InfoOuterClass.ActionProfileOrBuilder- Returns:
- Whether the sumOfWeights field is set.
-
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;- Specified by:
getSumOfWeightsin interfaceP4InfoOuterClass.ActionProfileOrBuilder- Returns:
- The sumOfWeights.
-
setSumOfWeights
public P4InfoOuterClass.ActionProfile.Builder setSumOfWeights(P4InfoOuterClass.ActionProfile.SumOfWeights value) group size is the sum of the group's weights. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfWeights sum_of_weights = 6; -
setSumOfWeights
public P4InfoOuterClass.ActionProfile.Builder setSumOfWeights(P4InfoOuterClass.ActionProfile.SumOfWeights.Builder builderForValue) group size is the sum of the group's weights. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfWeights sum_of_weights = 6; -
mergeSumOfWeights
public P4InfoOuterClass.ActionProfile.Builder mergeSumOfWeights(P4InfoOuterClass.ActionProfile.SumOfWeights value) group size is the sum of the group's weights. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfWeights sum_of_weights = 6; -
clearSumOfWeights
group size is the sum of the group's weights. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfWeights sum_of_weights = 6; -
getSumOfWeightsBuilder
group size is the sum of the group's weights. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfWeights sum_of_weights = 6; -
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;- Specified by:
getSumOfWeightsOrBuilderin interfaceP4InfoOuterClass.ActionProfileOrBuilder
-
hasSumOfMembers
public 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;- Specified by:
hasSumOfMembersin interfaceP4InfoOuterClass.ActionProfileOrBuilder- Returns:
- Whether the sumOfMembers field is set.
-
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;- Specified by:
getSumOfMembersin interfaceP4InfoOuterClass.ActionProfileOrBuilder- Returns:
- The sumOfMembers.
-
setSumOfMembers
public P4InfoOuterClass.ActionProfile.Builder setSumOfMembers(P4InfoOuterClass.ActionProfile.SumOfMembers value) group size is the sum of the group's members. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfMembers sum_of_members = 7; -
setSumOfMembers
public P4InfoOuterClass.ActionProfile.Builder setSumOfMembers(P4InfoOuterClass.ActionProfile.SumOfMembers.Builder builderForValue) group size is the sum of the group's members. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfMembers sum_of_members = 7; -
mergeSumOfMembers
public P4InfoOuterClass.ActionProfile.Builder mergeSumOfMembers(P4InfoOuterClass.ActionProfile.SumOfMembers value) group size is the sum of the group's members. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfMembers sum_of_members = 7; -
clearSumOfMembers
group size is the sum of the group's members. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfMembers sum_of_members = 7; -
getSumOfMembersBuilder
group size is the sum of the group's members. Added in v1.4.0.
.p4.config.v1.ActionProfile.SumOfMembers sum_of_members = 7; -
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;- Specified by:
getSumOfMembersOrBuilderin interfaceP4InfoOuterClass.ActionProfileOrBuilder
-
getWeightsDisallowed
public 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;- Specified by:
getWeightsDisallowedin interfaceP4InfoOuterClass.ActionProfileOrBuilder- Returns:
- The weightsDisallowed.
-
setWeightsDisallowed
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;- Parameters:
value- The weightsDisallowed to set.- Returns:
- This builder for chaining.
-
clearWeightsDisallowed
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:
- This builder for chaining.
-