Package p4.v1
Class P4RuntimeOuterClass.FieldMatch.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.FieldMatch.Builder>
com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.FieldMatch.Builder>
p4.v1.P4RuntimeOuterClass.FieldMatch.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,P4RuntimeOuterClass.FieldMatchOrBuilder
- Enclosing class:
P4RuntimeOuterClass.FieldMatch
public static final class P4RuntimeOuterClass.FieldMatch.Builder
extends com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.FieldMatch.Builder>
implements P4RuntimeOuterClass.FieldMatchOrBuilder
field_match_type ::= exact | ternary | lpm | range | optionalProtobuf type
p4.v1.FieldMatch-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear().p4.v1.FieldMatch.Exact exact = 2;uint32 field_id = 1;clearLpm().p4.v1.FieldMatch.LPM lpm = 4;.p4.v1.FieldMatch.Optional optional = 7;Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message..p4.v1.FieldMatch.Range range = 6;.p4.v1.FieldMatch.Ternary ternary = 3;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExact().p4.v1.FieldMatch.Exact exact = 2;.p4.v1.FieldMatch.Exact exact = 2;.p4.v1.FieldMatch.Exact exact = 2;intuint32 field_id = 1;getLpm().p4.v1.FieldMatch.LPM lpm = 4;.p4.v1.FieldMatch.LPM lpm = 4;.p4.v1.FieldMatch.LPM lpm = 4;.p4.v1.FieldMatch.Optional optional = 7;.p4.v1.FieldMatch.Optional optional = 7;.p4.v1.FieldMatch.Optional optional = 7;com.google.protobuf.AnygetOther()Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message.com.google.protobuf.Any.BuilderArchitecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message.com.google.protobuf.AnyOrBuilderArchitecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message.getRange().p4.v1.FieldMatch.Range range = 6;.p4.v1.FieldMatch.Range range = 6;.p4.v1.FieldMatch.Range range = 6;.p4.v1.FieldMatch.Ternary ternary = 3;.p4.v1.FieldMatch.Ternary ternary = 3;.p4.v1.FieldMatch.Ternary ternary = 3;booleanhasExact().p4.v1.FieldMatch.Exact exact = 2;booleanhasLpm().p4.v1.FieldMatch.LPM lpm = 4;boolean.p4.v1.FieldMatch.Optional optional = 7;booleanhasOther()Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message.booleanhasRange().p4.v1.FieldMatch.Range range = 6;boolean.p4.v1.FieldMatch.Ternary ternary = 3;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal boolean.p4.v1.FieldMatch.Exact exact = 2;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) .p4.v1.FieldMatch.LPM lpm = 4;.p4.v1.FieldMatch.Optional optional = 7;mergeOther(com.google.protobuf.Any value) Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message..p4.v1.FieldMatch.Range range = 6;.p4.v1.FieldMatch.Ternary ternary = 3;.p4.v1.FieldMatch.Exact exact = 2;setExact(P4RuntimeOuterClass.FieldMatch.Exact.Builder builderForValue) .p4.v1.FieldMatch.Exact exact = 2;setFieldId(int value) uint32 field_id = 1;.p4.v1.FieldMatch.LPM lpm = 4;setLpm(P4RuntimeOuterClass.FieldMatch.LPM.Builder builderForValue) .p4.v1.FieldMatch.LPM lpm = 4;.p4.v1.FieldMatch.Optional optional = 7;setOptional(P4RuntimeOuterClass.FieldMatch.Optional.Builder builderForValue) .p4.v1.FieldMatch.Optional optional = 7;setOther(com.google.protobuf.Any value) Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message.setOther(com.google.protobuf.Any.Builder builderForValue) Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message..p4.v1.FieldMatch.Range range = 6;setRange(P4RuntimeOuterClass.FieldMatch.Range.Builder builderForValue) .p4.v1.FieldMatch.Range range = 6;.p4.v1.FieldMatch.Ternary ternary = 3;setTernary(P4RuntimeOuterClass.FieldMatch.Ternary.Builder builderForValue) .p4.v1.FieldMatch.Ternary ternary = 3;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.FieldMatch.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.FieldMatch.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.FieldMatch.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.FieldMatch.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.FieldMatch.Builder>
-
mergeFrom
public P4RuntimeOuterClass.FieldMatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.FieldMatch.Builder>- Throws:
IOException
-
getFieldMatchTypeCase
- Specified by:
getFieldMatchTypeCasein interfaceP4RuntimeOuterClass.FieldMatchOrBuilder
-
clearFieldMatchType
-
getFieldId
public int getFieldId()uint32 field_id = 1;- Specified by:
getFieldIdin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder- Returns:
- The fieldId.
-
setFieldId
uint32 field_id = 1;- Parameters:
value- The fieldId to set.- Returns:
- This builder for chaining.
-
clearFieldId
uint32 field_id = 1;- Returns:
- This builder for chaining.
-
hasExact
public boolean hasExact().p4.v1.FieldMatch.Exact exact = 2;- Specified by:
hasExactin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder- Returns:
- Whether the exact field is set.
-
getExact
.p4.v1.FieldMatch.Exact exact = 2;- Specified by:
getExactin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder- Returns:
- The exact.
-
setExact
.p4.v1.FieldMatch.Exact exact = 2; -
setExact
public P4RuntimeOuterClass.FieldMatch.Builder setExact(P4RuntimeOuterClass.FieldMatch.Exact.Builder builderForValue) .p4.v1.FieldMatch.Exact exact = 2; -
mergeExact
public P4RuntimeOuterClass.FieldMatch.Builder mergeExact(P4RuntimeOuterClass.FieldMatch.Exact value) .p4.v1.FieldMatch.Exact exact = 2; -
clearExact
.p4.v1.FieldMatch.Exact exact = 2; -
getExactBuilder
.p4.v1.FieldMatch.Exact exact = 2; -
getExactOrBuilder
.p4.v1.FieldMatch.Exact exact = 2;- Specified by:
getExactOrBuilderin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder
-
hasTernary
public boolean hasTernary().p4.v1.FieldMatch.Ternary ternary = 3;- Specified by:
hasTernaryin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder- Returns:
- Whether the ternary field is set.
-
getTernary
.p4.v1.FieldMatch.Ternary ternary = 3;- Specified by:
getTernaryin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder- Returns:
- The ternary.
-
setTernary
public P4RuntimeOuterClass.FieldMatch.Builder setTernary(P4RuntimeOuterClass.FieldMatch.Ternary value) .p4.v1.FieldMatch.Ternary ternary = 3; -
setTernary
public P4RuntimeOuterClass.FieldMatch.Builder setTernary(P4RuntimeOuterClass.FieldMatch.Ternary.Builder builderForValue) .p4.v1.FieldMatch.Ternary ternary = 3; -
mergeTernary
public P4RuntimeOuterClass.FieldMatch.Builder mergeTernary(P4RuntimeOuterClass.FieldMatch.Ternary value) .p4.v1.FieldMatch.Ternary ternary = 3; -
clearTernary
.p4.v1.FieldMatch.Ternary ternary = 3; -
getTernaryBuilder
.p4.v1.FieldMatch.Ternary ternary = 3; -
getTernaryOrBuilder
.p4.v1.FieldMatch.Ternary ternary = 3;- Specified by:
getTernaryOrBuilderin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder
-
hasLpm
public boolean hasLpm().p4.v1.FieldMatch.LPM lpm = 4;- Specified by:
hasLpmin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder- Returns:
- Whether the lpm field is set.
-
getLpm
.p4.v1.FieldMatch.LPM lpm = 4;- Specified by:
getLpmin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder- Returns:
- The lpm.
-
setLpm
.p4.v1.FieldMatch.LPM lpm = 4; -
setLpm
public P4RuntimeOuterClass.FieldMatch.Builder setLpm(P4RuntimeOuterClass.FieldMatch.LPM.Builder builderForValue) .p4.v1.FieldMatch.LPM lpm = 4; -
mergeLpm
.p4.v1.FieldMatch.LPM lpm = 4; -
clearLpm
.p4.v1.FieldMatch.LPM lpm = 4; -
getLpmBuilder
.p4.v1.FieldMatch.LPM lpm = 4; -
getLpmOrBuilder
.p4.v1.FieldMatch.LPM lpm = 4;- Specified by:
getLpmOrBuilderin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder
-
hasRange
public boolean hasRange().p4.v1.FieldMatch.Range range = 6;- Specified by:
hasRangein interfaceP4RuntimeOuterClass.FieldMatchOrBuilder- Returns:
- Whether the range field is set.
-
getRange
.p4.v1.FieldMatch.Range range = 6;- Specified by:
getRangein interfaceP4RuntimeOuterClass.FieldMatchOrBuilder- Returns:
- The range.
-
setRange
.p4.v1.FieldMatch.Range range = 6; -
setRange
public P4RuntimeOuterClass.FieldMatch.Builder setRange(P4RuntimeOuterClass.FieldMatch.Range.Builder builderForValue) .p4.v1.FieldMatch.Range range = 6; -
mergeRange
public P4RuntimeOuterClass.FieldMatch.Builder mergeRange(P4RuntimeOuterClass.FieldMatch.Range value) .p4.v1.FieldMatch.Range range = 6; -
clearRange
.p4.v1.FieldMatch.Range range = 6; -
getRangeBuilder
.p4.v1.FieldMatch.Range range = 6; -
getRangeOrBuilder
.p4.v1.FieldMatch.Range range = 6;- Specified by:
getRangeOrBuilderin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder
-
hasOptional
public boolean hasOptional().p4.v1.FieldMatch.Optional optional = 7;- Specified by:
hasOptionalin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder- Returns:
- Whether the optional field is set.
-
getOptional
.p4.v1.FieldMatch.Optional optional = 7;- Specified by:
getOptionalin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder- Returns:
- The optional.
-
setOptional
public P4RuntimeOuterClass.FieldMatch.Builder setOptional(P4RuntimeOuterClass.FieldMatch.Optional value) .p4.v1.FieldMatch.Optional optional = 7; -
setOptional
public P4RuntimeOuterClass.FieldMatch.Builder setOptional(P4RuntimeOuterClass.FieldMatch.Optional.Builder builderForValue) .p4.v1.FieldMatch.Optional optional = 7; -
mergeOptional
public P4RuntimeOuterClass.FieldMatch.Builder mergeOptional(P4RuntimeOuterClass.FieldMatch.Optional value) .p4.v1.FieldMatch.Optional optional = 7; -
clearOptional
.p4.v1.FieldMatch.Optional optional = 7; -
getOptionalBuilder
.p4.v1.FieldMatch.Optional optional = 7; -
getOptionalOrBuilder
.p4.v1.FieldMatch.Optional optional = 7;- Specified by:
getOptionalOrBuilderin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder
-
hasOther
public boolean hasOther()Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message.
.google.protobuf.Any other = 100;- Specified by:
hasOtherin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder- Returns:
- Whether the other field is set.
-
getOther
public com.google.protobuf.Any getOther()Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message.
.google.protobuf.Any other = 100;- Specified by:
getOtherin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder- Returns:
- The other.
-
setOther
Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message.
.google.protobuf.Any other = 100; -
setOther
public P4RuntimeOuterClass.FieldMatch.Builder setOther(com.google.protobuf.Any.Builder builderForValue) Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message.
.google.protobuf.Any other = 100; -
mergeOther
Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message.
.google.protobuf.Any other = 100; -
clearOther
Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message.
.google.protobuf.Any other = 100; -
getOtherBuilder
public com.google.protobuf.Any.Builder getOtherBuilder()Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message.
.google.protobuf.Any other = 100; -
getOtherOrBuilder
public com.google.protobuf.AnyOrBuilder getOtherOrBuilder()Architecture-specific match value; it corresponds to the other_match_type in the P4Info MatchField message.
.google.protobuf.Any other = 100;- Specified by:
getOtherOrBuilderin interfaceP4RuntimeOuterClass.FieldMatchOrBuilder
-