public static final class ValueSetEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder> implements ValueSetEntryOrBuilder
------------------------------------------------------------------------------
For writing and reading matches in a parser value set. A state transition
on an empty value set will never be taken. The number of matches must be at
most the size of the value set as specified by the @size annotation in P4
program.
For Write Requests:
INSERT will write the given matches in the repeated field to the value
set.
MODIFY will replace all matches in the value set with the given matches
in the repeated field.
DELETE should only specify the value_set_id and will delete all matches
in the value set.
For Read Requests:
All matches for all value-set entries if value_set_id = 0
All matches of the value-set if a valid value_set_id is specified
The 'match' field must never be set in the ReadRequest
Protobuf type p4.v1.ValueSetEntry| Modifier and Type | Method and Description |
|---|---|
ValueSetEntry.Builder |
addAllMatch(Iterable<? extends FieldMatch> values)
repeated .p4.v1.FieldMatch match = 2; |
ValueSetEntry.Builder |
addMatch(FieldMatch.Builder builderForValue)
repeated .p4.v1.FieldMatch match = 2; |
ValueSetEntry.Builder |
addMatch(FieldMatch value)
repeated .p4.v1.FieldMatch match = 2; |
ValueSetEntry.Builder |
addMatch(int index,
FieldMatch.Builder builderForValue)
repeated .p4.v1.FieldMatch match = 2; |
ValueSetEntry.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; |
ValueSetEntry.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ValueSetEntry |
build() |
ValueSetEntry |
buildPartial() |
ValueSetEntry.Builder |
clear() |
ValueSetEntry.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ValueSetEntry.Builder |
clearMatch()
repeated .p4.v1.FieldMatch match = 2; |
ValueSetEntry.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ValueSetEntry.Builder |
clearValueSetId()
uint32 value_set_id = 1; |
ValueSetEntry.Builder |
clone() |
ValueSetEntry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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; |
int |
getValueSetId()
uint32 value_set_id = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ValueSetEntry.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ValueSetEntry.Builder |
mergeFrom(com.google.protobuf.Message other) |
ValueSetEntry.Builder |
mergeFrom(ValueSetEntry other) |
ValueSetEntry.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ValueSetEntry.Builder |
removeMatch(int index)
repeated .p4.v1.FieldMatch match = 2; |
ValueSetEntry.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ValueSetEntry.Builder |
setMatch(int index,
FieldMatch.Builder builderForValue)
repeated .p4.v1.FieldMatch match = 2; |
ValueSetEntry.Builder |
setMatch(int index,
FieldMatch value)
repeated .p4.v1.FieldMatch match = 2; |
ValueSetEntry.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ValueSetEntry.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ValueSetEntry.Builder |
setValueSetId(int value)
uint32 value_set_id = 1; |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder>public ValueSetEntry.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder>public ValueSetEntry getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ValueSetEntry build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ValueSetEntry buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ValueSetEntry.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder>public ValueSetEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder>public ValueSetEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder>public ValueSetEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder>public ValueSetEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder>public ValueSetEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder>public ValueSetEntry.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ValueSetEntry.Builder>public ValueSetEntry.Builder mergeFrom(ValueSetEntry other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder>public ValueSetEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ValueSetEntry.Builder>IOExceptionpublic int getValueSetId()
uint32 value_set_id = 1;getValueSetId in interface ValueSetEntryOrBuilderpublic ValueSetEntry.Builder setValueSetId(int value)
uint32 value_set_id = 1;public ValueSetEntry.Builder clearValueSetId()
uint32 value_set_id = 1;public List<FieldMatch> getMatchList()
repeated .p4.v1.FieldMatch match = 2;getMatchList in interface ValueSetEntryOrBuilderpublic int getMatchCount()
repeated .p4.v1.FieldMatch match = 2;getMatchCount in interface ValueSetEntryOrBuilderpublic FieldMatch getMatch(int index)
repeated .p4.v1.FieldMatch match = 2;getMatch in interface ValueSetEntryOrBuilderpublic ValueSetEntry.Builder setMatch(int index, FieldMatch value)
repeated .p4.v1.FieldMatch match = 2;public ValueSetEntry.Builder setMatch(int index, FieldMatch.Builder builderForValue)
repeated .p4.v1.FieldMatch match = 2;public ValueSetEntry.Builder addMatch(FieldMatch value)
repeated .p4.v1.FieldMatch match = 2;public ValueSetEntry.Builder addMatch(int index, FieldMatch value)
repeated .p4.v1.FieldMatch match = 2;public ValueSetEntry.Builder addMatch(FieldMatch.Builder builderForValue)
repeated .p4.v1.FieldMatch match = 2;public ValueSetEntry.Builder addMatch(int index, FieldMatch.Builder builderForValue)
repeated .p4.v1.FieldMatch match = 2;public ValueSetEntry.Builder addAllMatch(Iterable<? extends FieldMatch> values)
repeated .p4.v1.FieldMatch match = 2;public ValueSetEntry.Builder clearMatch()
repeated .p4.v1.FieldMatch match = 2;public ValueSetEntry.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 ValueSetEntryOrBuilderpublic List<? extends FieldMatchOrBuilder> getMatchOrBuilderList()
repeated .p4.v1.FieldMatch match = 2;getMatchOrBuilderList in interface ValueSetEntryOrBuilderpublic 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 final ValueSetEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder>public final ValueSetEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder>Copyright © 2018 OpenDaylight. All rights reserved.