public static final class MatchField.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MatchField.Builder> implements MatchFieldOrBuilder
TODO(antonin): define inside the Table message?Protobuf type
p4.config.v1.MatchField| Modifier and Type | Method and Description | 
|---|---|
MatchField.Builder | 
addAllAnnotations(Iterable<String> values)
repeated string annotations = 3; | 
MatchField.Builder | 
addAnnotations(String value)
repeated string annotations = 3; | 
MatchField.Builder | 
addAnnotationsBytes(com.google.protobuf.ByteString value)
repeated string annotations = 3; | 
MatchField.Builder | 
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
                Object value)  | 
MatchField | 
build()  | 
MatchField | 
buildPartial()  | 
MatchField.Builder | 
clear()  | 
MatchField.Builder | 
clearAnnotations()
repeated string annotations = 3; | 
MatchField.Builder | 
clearBitwidth()
int32 bitwidth = 4; | 
MatchField.Builder | 
clearDoc()
 Documentation of the match field 
 | 
MatchField.Builder | 
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)  | 
MatchField.Builder | 
clearId()
uint32 id = 1; | 
MatchField.Builder | 
clearMatch()  | 
MatchField.Builder | 
clearMatchType()
.p4.config.v1.MatchField.MatchType match_type = 5; | 
MatchField.Builder | 
clearName()
string name = 2; | 
MatchField.Builder | 
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)  | 
MatchField.Builder | 
clearOtherMatchType()
 used for achitecture-specific match types which are not part of the core
 P4 language or of the PSA architecture. 
 | 
MatchField.Builder | 
clearTypeName()
 unset if not user-defined type 
 | 
MatchField.Builder | 
clone()  | 
String | 
getAnnotations(int index)
repeated string annotations = 3; | 
com.google.protobuf.ByteString | 
getAnnotationsBytes(int index)
repeated string annotations = 3; | 
int | 
getAnnotationsCount()
repeated string annotations = 3; | 
com.google.protobuf.ProtocolStringList | 
getAnnotationsList()
repeated string annotations = 3; | 
int | 
getBitwidth()
int32 bitwidth = 4; | 
MatchField | 
getDefaultInstanceForType()  | 
static com.google.protobuf.Descriptors.Descriptor | 
getDescriptor()  | 
com.google.protobuf.Descriptors.Descriptor | 
getDescriptorForType()  | 
Documentation | 
getDoc()
 Documentation of the match field 
 | 
Documentation.Builder | 
getDocBuilder()
 Documentation of the match field 
 | 
DocumentationOrBuilder | 
getDocOrBuilder()
 Documentation of the match field 
 | 
int | 
getId()
uint32 id = 1; | 
MatchField.MatchCase | 
getMatchCase()  | 
MatchField.MatchType | 
getMatchType()
.p4.config.v1.MatchField.MatchType match_type = 5; | 
int | 
getMatchTypeValue()
.p4.config.v1.MatchField.MatchType match_type = 5; | 
String | 
getName()
string name = 2; | 
com.google.protobuf.ByteString | 
getNameBytes()
string name = 2; | 
String | 
getOtherMatchType()
 used for achitecture-specific match types which are not part of the core
 P4 language or of the PSA architecture. 
 | 
com.google.protobuf.ByteString | 
getOtherMatchTypeBytes()
 used for achitecture-specific match types which are not part of the core
 P4 language or of the PSA architecture. 
 | 
P4NamedType | 
getTypeName()
 unset if not user-defined type 
 | 
P4NamedType.Builder | 
getTypeNameBuilder()
 unset if not user-defined type 
 | 
P4NamedTypeOrBuilder | 
getTypeNameOrBuilder()
 unset if not user-defined type 
 | 
boolean | 
hasDoc()
 Documentation of the match field 
 | 
boolean | 
hasTypeName()
 unset if not user-defined type 
 | 
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | 
internalGetFieldAccessorTable()  | 
boolean | 
isInitialized()  | 
MatchField.Builder | 
mergeDoc(Documentation value)
 Documentation of the match field 
 | 
MatchField.Builder | 
mergeFrom(com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)  | 
MatchField.Builder | 
mergeFrom(MatchField other)  | 
MatchField.Builder | 
mergeFrom(com.google.protobuf.Message other)  | 
MatchField.Builder | 
mergeTypeName(P4NamedType value)
 unset if not user-defined type 
 | 
MatchField.Builder | 
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)  | 
MatchField.Builder | 
setAnnotations(int index,
              String value)
repeated string annotations = 3; | 
MatchField.Builder | 
setBitwidth(int value)
int32 bitwidth = 4; | 
MatchField.Builder | 
setDoc(Documentation.Builder builderForValue)
 Documentation of the match field 
 | 
MatchField.Builder | 
setDoc(Documentation value)
 Documentation of the match field 
 | 
MatchField.Builder | 
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value)  | 
MatchField.Builder | 
setId(int value)
uint32 id = 1; | 
MatchField.Builder | 
setMatchType(MatchField.MatchType value)
.p4.config.v1.MatchField.MatchType match_type = 5; | 
MatchField.Builder | 
setMatchTypeValue(int value)
.p4.config.v1.MatchField.MatchType match_type = 5; | 
MatchField.Builder | 
setName(String value)
string name = 2; | 
MatchField.Builder | 
setNameBytes(com.google.protobuf.ByteString value)
string name = 2; | 
MatchField.Builder | 
setOtherMatchType(String value)
 used for achitecture-specific match types which are not part of the core
 P4 language or of the PSA architecture. 
 | 
MatchField.Builder | 
setOtherMatchTypeBytes(com.google.protobuf.ByteString value)
 used for achitecture-specific match types which are not part of the core
 P4 language or of the PSA architecture. 
 | 
MatchField.Builder | 
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
                int index,
                Object value)  | 
MatchField.Builder | 
setTypeName(P4NamedType.Builder builderForValue)
 unset if not user-defined type 
 | 
MatchField.Builder | 
setTypeName(P4NamedType value)
 unset if not user-defined type 
 | 
MatchField.Builder | 
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)  | 
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<MatchField.Builder>public MatchField.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<MatchField.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<MatchField.Builder>public MatchField getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MatchField build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MatchField buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MatchField.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<MatchField.Builder>public MatchField.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<MatchField.Builder>public MatchField.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<MatchField.Builder>public MatchField.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MatchField.Builder>public MatchField.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<MatchField.Builder>public MatchField.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<MatchField.Builder>public MatchField.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MatchField.Builder>public MatchField.Builder mergeFrom(MatchField other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MatchField.Builder>public MatchField.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<MatchField.Builder>IOExceptionpublic MatchField.MatchCase getMatchCase()
getMatchCase in interface MatchFieldOrBuilderpublic MatchField.Builder clearMatch()
public int getId()
uint32 id = 1;getId in interface MatchFieldOrBuilderpublic MatchField.Builder setId(int value)
uint32 id = 1;public MatchField.Builder clearId()
uint32 id = 1;public String getName()
string name = 2;getName in interface MatchFieldOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
string name = 2;getNameBytes in interface MatchFieldOrBuilderpublic MatchField.Builder setName(String value)
string name = 2;public MatchField.Builder clearName()
string name = 2;public MatchField.Builder setNameBytes(com.google.protobuf.ByteString value)
string name = 2;public com.google.protobuf.ProtocolStringList getAnnotationsList()
repeated string annotations = 3;getAnnotationsList in interface MatchFieldOrBuilderpublic int getAnnotationsCount()
repeated string annotations = 3;getAnnotationsCount in interface MatchFieldOrBuilderpublic String getAnnotations(int index)
repeated string annotations = 3;getAnnotations in interface MatchFieldOrBuilderpublic com.google.protobuf.ByteString getAnnotationsBytes(int index)
repeated string annotations = 3;getAnnotationsBytes in interface MatchFieldOrBuilderpublic MatchField.Builder setAnnotations(int index, String value)
repeated string annotations = 3;public MatchField.Builder addAnnotations(String value)
repeated string annotations = 3;public MatchField.Builder addAllAnnotations(Iterable<String> values)
repeated string annotations = 3;public MatchField.Builder clearAnnotations()
repeated string annotations = 3;public MatchField.Builder addAnnotationsBytes(com.google.protobuf.ByteString value)
repeated string annotations = 3;public int getBitwidth()
int32 bitwidth = 4;getBitwidth in interface MatchFieldOrBuilderpublic MatchField.Builder setBitwidth(int value)
int32 bitwidth = 4;public MatchField.Builder clearBitwidth()
int32 bitwidth = 4;public int getMatchTypeValue()
.p4.config.v1.MatchField.MatchType match_type = 5;getMatchTypeValue in interface MatchFieldOrBuilderpublic MatchField.Builder setMatchTypeValue(int value)
.p4.config.v1.MatchField.MatchType match_type = 5;public MatchField.MatchType getMatchType()
.p4.config.v1.MatchField.MatchType match_type = 5;getMatchType in interface MatchFieldOrBuilderpublic MatchField.Builder setMatchType(MatchField.MatchType value)
.p4.config.v1.MatchField.MatchType match_type = 5;public MatchField.Builder clearMatchType()
.p4.config.v1.MatchField.MatchType match_type = 5;public String getOtherMatchType()
used for achitecture-specific match types which are not part of the core P4 language or of the PSA architecture.
string other_match_type = 7;getOtherMatchType in interface MatchFieldOrBuilderpublic com.google.protobuf.ByteString getOtherMatchTypeBytes()
used for achitecture-specific match types which are not part of the core P4 language or of the PSA architecture.
string other_match_type = 7;getOtherMatchTypeBytes in interface MatchFieldOrBuilderpublic MatchField.Builder setOtherMatchType(String value)
used for achitecture-specific match types which are not part of the core P4 language or of the PSA architecture.
string other_match_type = 7;public MatchField.Builder clearOtherMatchType()
used for achitecture-specific match types which are not part of the core P4 language or of the PSA architecture.
string other_match_type = 7;public MatchField.Builder setOtherMatchTypeBytes(com.google.protobuf.ByteString value)
used for achitecture-specific match types which are not part of the core P4 language or of the PSA architecture.
string other_match_type = 7;public boolean hasDoc()
Documentation of the match field
.p4.config.v1.Documentation doc = 6;hasDoc in interface MatchFieldOrBuilderpublic Documentation getDoc()
Documentation of the match field
.p4.config.v1.Documentation doc = 6;getDoc in interface MatchFieldOrBuilderpublic MatchField.Builder setDoc(Documentation value)
Documentation of the match field
.p4.config.v1.Documentation doc = 6;public MatchField.Builder setDoc(Documentation.Builder builderForValue)
Documentation of the match field
.p4.config.v1.Documentation doc = 6;public MatchField.Builder mergeDoc(Documentation value)
Documentation of the match field
.p4.config.v1.Documentation doc = 6;public MatchField.Builder clearDoc()
Documentation of the match field
.p4.config.v1.Documentation doc = 6;public Documentation.Builder getDocBuilder()
Documentation of the match field
.p4.config.v1.Documentation doc = 6;public DocumentationOrBuilder getDocOrBuilder()
Documentation of the match field
.p4.config.v1.Documentation doc = 6;getDocOrBuilder in interface MatchFieldOrBuilderpublic boolean hasTypeName()
unset if not user-defined type
.p4.config.v1.P4NamedType type_name = 8;hasTypeName in interface MatchFieldOrBuilderpublic P4NamedType getTypeName()
unset if not user-defined type
.p4.config.v1.P4NamedType type_name = 8;getTypeName in interface MatchFieldOrBuilderpublic MatchField.Builder setTypeName(P4NamedType value)
unset if not user-defined type
.p4.config.v1.P4NamedType type_name = 8;public MatchField.Builder setTypeName(P4NamedType.Builder builderForValue)
unset if not user-defined type
.p4.config.v1.P4NamedType type_name = 8;public MatchField.Builder mergeTypeName(P4NamedType value)
unset if not user-defined type
.p4.config.v1.P4NamedType type_name = 8;public MatchField.Builder clearTypeName()
unset if not user-defined type
.p4.config.v1.P4NamedType type_name = 8;public P4NamedType.Builder getTypeNameBuilder()
unset if not user-defined type
.p4.config.v1.P4NamedType type_name = 8;public P4NamedTypeOrBuilder getTypeNameOrBuilder()
unset if not user-defined type
.p4.config.v1.P4NamedType type_name = 8;getTypeNameOrBuilder in interface MatchFieldOrBuilderpublic final MatchField.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MatchField.Builder>public final MatchField.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MatchField.Builder>Copyright © 2018 OpenDaylight. All rights reserved.