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, 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<MatchField.Builder>
public MatchField.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<MatchField.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<MatchField.Builder>
public MatchField getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public MatchField build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public MatchField buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public MatchField.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<MatchField.Builder>
public MatchField.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<MatchField.Builder>
public MatchField.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MatchField.Builder>
IOException
public MatchField.MatchCase getMatchCase()
getMatchCase
in interface MatchFieldOrBuilder
public MatchField.Builder clearMatch()
public int getId()
uint32 id = 1;
getId
in interface MatchFieldOrBuilder
public MatchField.Builder setId(int value)
uint32 id = 1;
public MatchField.Builder clearId()
uint32 id = 1;
public String getName()
string name = 2;
getName
in interface MatchFieldOrBuilder
public com.google.protobuf.ByteString getNameBytes()
string name = 2;
getNameBytes
in interface MatchFieldOrBuilder
public 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 MatchFieldOrBuilder
public int getAnnotationsCount()
repeated string annotations = 3;
getAnnotationsCount
in interface MatchFieldOrBuilder
public String getAnnotations(int index)
repeated string annotations = 3;
getAnnotations
in interface MatchFieldOrBuilder
public com.google.protobuf.ByteString getAnnotationsBytes(int index)
repeated string annotations = 3;
getAnnotationsBytes
in interface MatchFieldOrBuilder
public 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 MatchFieldOrBuilder
public 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 MatchFieldOrBuilder
public 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 MatchFieldOrBuilder
public 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 MatchFieldOrBuilder
public 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 MatchFieldOrBuilder
public 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 MatchFieldOrBuilder
public Documentation getDoc()
Documentation of the match field
.p4.config.v1.Documentation doc = 6;
getDoc
in interface MatchFieldOrBuilder
public 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 MatchFieldOrBuilder
public boolean hasTypeName()
unset if not user-defined type
.p4.config.v1.P4NamedType type_name = 8;
hasTypeName
in interface MatchFieldOrBuilder
public P4NamedType getTypeName()
unset if not user-defined type
.p4.config.v1.P4NamedType type_name = 8;
getTypeName
in interface MatchFieldOrBuilder
public 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 MatchFieldOrBuilder
public final MatchField.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<MatchField.Builder>
Copyright © 2018 OpenDaylight. All rights reserved.