Package p4.config.v1
Class P4InfoOuterClass.ActionProfile
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
p4.config.v1.P4InfoOuterClass.ActionProfile
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,P4InfoOuterClass.ActionProfileOrBuilder
- Enclosing class:
P4InfoOuterClass
public static final class P4InfoOuterClass.ActionProfile
extends com.google.protobuf.GeneratedMessage
implements P4InfoOuterClass.ActionProfileOrBuilder
Protobuf type
p4.config.v1.ActionProfile- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typep4.config.v1.ActionProfilestatic enumstatic final classindicates that `size` and `max_group_size` represent the maximum number of members that can be present across all selector groups and within a single selector group respectively.static interfacestatic final classindicates that `size` and `max_group_size` represent the maximum sum of weights that can be present across all selector groups and within a single selector group respectively.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorint0 if the action profile does not have a selector.com.google.protobuf.Parser<P4InfoOuterClass.ActionProfile> .p4.config.v1.Preamble preamble = 1;.p4.config.v1.Preamble preamble = 1;intlonggetSize()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 selectioninthashCode()boolean.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 booleannewBuilder(P4InfoOuterClass.ActionProfile prototype) protected P4InfoOuterClass.ActionProfile.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<P4InfoOuterClass.ActionProfile> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
PREAMBLE_FIELD_NUMBER
public static final int PREAMBLE_FIELD_NUMBER- See Also:
-
TABLE_IDS_FIELD_NUMBER
public static final int TABLE_IDS_FIELD_NUMBER- See Also:
-
WITH_SELECTOR_FIELD_NUMBER
public static final int WITH_SELECTOR_FIELD_NUMBER- See Also:
-
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER- See Also:
-
MAX_GROUP_SIZE_FIELD_NUMBER
public static final int MAX_GROUP_SIZE_FIELD_NUMBER- See Also:
-
SUM_OF_WEIGHTS_FIELD_NUMBER
public static final int SUM_OF_WEIGHTS_FIELD_NUMBER- See Also:
-
SUM_OF_MEMBERS_FIELD_NUMBER
public static final int SUM_OF_MEMBERS_FIELD_NUMBER- See Also:
-
WEIGHTS_DISALLOWED_FIELD_NUMBER
public static final int WEIGHTS_DISALLOWED_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getSelectorSizeSemanticsCase
- Specified by:
getSelectorSizeSemanticsCasein interfaceP4InfoOuterClass.ActionProfileOrBuilder
-
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.
-
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.
-
getWithSelector
public boolean getWithSelector()true iff the action profile used dynamic selection
bool with_selector = 3;- Specified by:
getWithSelectorin interfaceP4InfoOuterClass.ActionProfileOrBuilder- Returns:
- The withSelector.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static P4InfoOuterClass.ActionProfile parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4InfoOuterClass.ActionProfile parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4InfoOuterClass.ActionProfile parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4InfoOuterClass.ActionProfile parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4InfoOuterClass.ActionProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4InfoOuterClass.ActionProfile parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static P4InfoOuterClass.ActionProfile parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static P4InfoOuterClass.ActionProfile parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static P4InfoOuterClass.ActionProfile parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static P4InfoOuterClass.ActionProfile parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static P4InfoOuterClass.ActionProfile parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static P4InfoOuterClass.ActionProfile.Builder newBuilder(P4InfoOuterClass.ActionProfile prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected P4InfoOuterClass.ActionProfile.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-