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 ReadRequestProtobuf 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, 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<ValueSetEntry.Builder>
public ValueSetEntry.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<ValueSetEntry.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<ValueSetEntry.Builder>
public ValueSetEntry getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ValueSetEntry build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ValueSetEntry buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ValueSetEntry.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<ValueSetEntry.Builder>
public ValueSetEntry.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<ValueSetEntry.Builder>
public ValueSetEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ValueSetEntry.Builder>
IOException
public int getValueSetId()
uint32 value_set_id = 1;
getValueSetId
in interface ValueSetEntryOrBuilder
public 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 ValueSetEntryOrBuilder
public int getMatchCount()
repeated .p4.v1.FieldMatch match = 2;
getMatchCount
in interface ValueSetEntryOrBuilder
public FieldMatch getMatch(int index)
repeated .p4.v1.FieldMatch match = 2;
getMatch
in interface ValueSetEntryOrBuilder
public 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 ValueSetEntryOrBuilder
public List<? extends FieldMatchOrBuilder> getMatchOrBuilderList()
repeated .p4.v1.FieldMatch match = 2;
getMatchOrBuilderList
in interface ValueSetEntryOrBuilder
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 final ValueSetEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ValueSetEntry.Builder>
Copyright © 2018 OpenDaylight. All rights reserved.