Package p4.config.v1
Class P4Types.P4NewTypeTranslation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<P4Types.P4NewTypeTranslation.Builder>
com.google.protobuf.GeneratedMessage.Builder<P4Types.P4NewTypeTranslation.Builder>
p4.config.v1.P4Types.P4NewTypeTranslation.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,P4Types.P4NewTypeTranslationOrBuilder
- Enclosing class:
P4Types.P4NewTypeTranslation
public static final class P4Types.P4NewTypeTranslation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<P4Types.P4NewTypeTranslation.Builder>
implements P4Types.P4NewTypeTranslationOrBuilder
Protobuf type
p4.config.v1.P4NewTypeTranslation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()int32 sdn_bitwidth = 2;.p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3;clearUri()the URI uniquely identifies the translation in order to enable the P4Runtime agent to perform value-mapping appropriately when required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorintint32 sdn_bitwidth = 2;.p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3;.p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3;.p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3;getUri()the URI uniquely identifies the translation in order to enable the P4Runtime agent to perform value-mapping appropriately when required.com.google.protobuf.ByteStringthe URI uniquely identifies the translation in order to enable the P4Runtime agent to perform value-mapping appropriately when required.booleanint32 sdn_bitwidth = 2;boolean.p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) .p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3;setSdnBitwidth(int value) int32 sdn_bitwidth = 2;.p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3;setSdnString(P4Types.P4NewTypeTranslation.SdnString.Builder builderForValue) .p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3;the URI uniquely identifies the translation in order to enable the P4Runtime agent to perform value-mapping appropriately when required.setUriBytes(com.google.protobuf.ByteString value) the URI uniquely identifies the translation in order to enable the P4Runtime agent to perform value-mapping appropriately when required.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<P4Types.P4NewTypeTranslation.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<P4Types.P4NewTypeTranslation.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<P4Types.P4NewTypeTranslation.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<P4Types.P4NewTypeTranslation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<P4Types.P4NewTypeTranslation.Builder>
-
mergeFrom
public P4Types.P4NewTypeTranslation.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<P4Types.P4NewTypeTranslation.Builder>- Throws:
IOException
-
getSdnTypeCase
- Specified by:
getSdnTypeCasein interfaceP4Types.P4NewTypeTranslationOrBuilder
-
clearSdnType
-
getUri
the URI uniquely identifies the translation in order to enable the P4Runtime agent to perform value-mapping appropriately when required. It is recommended that the URI includes at least the P4 architecture name and the type name.
string uri = 1;- Specified by:
getUriin interfaceP4Types.P4NewTypeTranslationOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()the URI uniquely identifies the translation in order to enable the P4Runtime agent to perform value-mapping appropriately when required. It is recommended that the URI includes at least the P4 architecture name and the type name.
string uri = 1;- Specified by:
getUriBytesin interfaceP4Types.P4NewTypeTranslationOrBuilder- Returns:
- The bytes for uri.
-
setUri
the URI uniquely identifies the translation in order to enable the P4Runtime agent to perform value-mapping appropriately when required. It is recommended that the URI includes at least the P4 architecture name and the type name.
string uri = 1;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
the URI uniquely identifies the translation in order to enable the P4Runtime agent to perform value-mapping appropriately when required. It is recommended that the URI includes at least the P4 architecture name and the type name.
string uri = 1;- Returns:
- This builder for chaining.
-
setUriBytes
the URI uniquely identifies the translation in order to enable the P4Runtime agent to perform value-mapping appropriately when required. It is recommended that the URI includes at least the P4 architecture name and the type name.
string uri = 1;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
hasSdnBitwidth
public boolean hasSdnBitwidth()int32 sdn_bitwidth = 2;- Specified by:
hasSdnBitwidthin interfaceP4Types.P4NewTypeTranslationOrBuilder- Returns:
- Whether the sdnBitwidth field is set.
-
getSdnBitwidth
public int getSdnBitwidth()int32 sdn_bitwidth = 2;- Specified by:
getSdnBitwidthin interfaceP4Types.P4NewTypeTranslationOrBuilder- Returns:
- The sdnBitwidth.
-
setSdnBitwidth
int32 sdn_bitwidth = 2;- Parameters:
value- The sdnBitwidth to set.- Returns:
- This builder for chaining.
-
clearSdnBitwidth
int32 sdn_bitwidth = 2;- Returns:
- This builder for chaining.
-
hasSdnString
public boolean hasSdnString().p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3;- Specified by:
hasSdnStringin interfaceP4Types.P4NewTypeTranslationOrBuilder- Returns:
- Whether the sdnString field is set.
-
getSdnString
.p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3;- Specified by:
getSdnStringin interfaceP4Types.P4NewTypeTranslationOrBuilder- Returns:
- The sdnString.
-
setSdnString
public P4Types.P4NewTypeTranslation.Builder setSdnString(P4Types.P4NewTypeTranslation.SdnString value) .p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3; -
setSdnString
public P4Types.P4NewTypeTranslation.Builder setSdnString(P4Types.P4NewTypeTranslation.SdnString.Builder builderForValue) .p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3; -
mergeSdnString
public P4Types.P4NewTypeTranslation.Builder mergeSdnString(P4Types.P4NewTypeTranslation.SdnString value) .p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3; -
clearSdnString
.p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3; -
getSdnStringBuilder
.p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3; -
getSdnStringOrBuilder
.p4.config.v1.P4NewTypeTranslation.SdnString sdn_string = 3;- Specified by:
getSdnStringOrBuilderin interfaceP4Types.P4NewTypeTranslationOrBuilder
-