Package p4.config.v1
Class P4Types.P4EnumTypeSpec.Member.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<P4Types.P4EnumTypeSpec.Member.Builder>
com.google.protobuf.GeneratedMessage.Builder<P4Types.P4EnumTypeSpec.Member.Builder>
p4.config.v1.P4Types.P4EnumTypeSpec.Member.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,P4Types.P4EnumTypeSpec.MemberOrBuilder
- Enclosing class:
P4Types.P4EnumTypeSpec.Member
public static final class P4Types.P4EnumTypeSpec.Member.Builder
extends com.google.protobuf.GeneratedMessage.Builder<P4Types.P4EnumTypeSpec.Member.Builder>
implements P4Types.P4EnumTypeSpec.MemberOrBuilder
Protobuf type
p4.config.v1.P4EnumTypeSpec.Member-
Method Summary
Modifier and TypeMethodDescriptionaddAllAnnotationLocations(Iterable<? extends P4Types.SourceLocation> values) Optional.addAllAnnotations(Iterable<String> values) repeated string annotations = 2;addAllStructuredAnnotations(Iterable<? extends P4Types.StructuredAnnotation> values) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;addAnnotationLocations(int index, P4Types.SourceLocation value) Optional.addAnnotationLocations(int index, P4Types.SourceLocation.Builder builderForValue) Optional.Optional.addAnnotationLocations(P4Types.SourceLocation.Builder builderForValue) Optional.Optional.addAnnotationLocationsBuilder(int index) Optional.addAnnotations(String value) repeated string annotations = 2;addAnnotationsBytes(com.google.protobuf.ByteString value) repeated string annotations = 2;addStructuredAnnotations(int index, P4Types.StructuredAnnotation value) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;addStructuredAnnotations(int index, P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;addStructuredAnnotations(P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;addStructuredAnnotationsBuilder(int index) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;build()clear()Optional.repeated string annotations = 2;string name = 1;repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;getAnnotationLocations(int index) Optional.getAnnotationLocationsBuilder(int index) Optional.Optional.intOptional.Optional.getAnnotationLocationsOrBuilder(int index) Optional.List<? extends P4Types.SourceLocationOrBuilder> Optional.getAnnotations(int index) repeated string annotations = 2;com.google.protobuf.ByteStringgetAnnotationsBytes(int index) repeated string annotations = 2;intrepeated string annotations = 2;com.google.protobuf.ProtocolStringListrepeated string annotations = 2;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()string name = 1;com.google.protobuf.ByteStringstring name = 1;getStructuredAnnotations(int index) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;getStructuredAnnotationsBuilder(int index) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;intrepeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;getStructuredAnnotationsOrBuilder(int index) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;List<? extends P4Types.StructuredAnnotationOrBuilder> repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeAnnotationLocations(int index) Optional.removeStructuredAnnotations(int index) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;setAnnotationLocations(int index, P4Types.SourceLocation value) Optional.setAnnotationLocations(int index, P4Types.SourceLocation.Builder builderForValue) Optional.setAnnotations(int index, String value) repeated string annotations = 2;string name = 1;setNameBytes(com.google.protobuf.ByteString value) string name = 1;setStructuredAnnotations(int index, P4Types.StructuredAnnotation value) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;setStructuredAnnotations(int index, P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 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<P4Types.P4EnumTypeSpec.Member.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.P4EnumTypeSpec.Member.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.P4EnumTypeSpec.Member.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.P4EnumTypeSpec.Member.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<P4Types.P4EnumTypeSpec.Member.Builder>
-
mergeFrom
public P4Types.P4EnumTypeSpec.Member.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.P4EnumTypeSpec.Member.Builder>- Throws:
IOException
-
getName
string name = 1;- Specified by:
getNamein interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 1;- Specified by:
getNameBytesin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder- Returns:
- The bytes for name.
-
setName
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getAnnotationsList
public com.google.protobuf.ProtocolStringList getAnnotationsList()repeated string annotations = 2;- Specified by:
getAnnotationsListin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder- Returns:
- A list containing the annotations.
-
getAnnotationsCount
public int getAnnotationsCount()repeated string annotations = 2;- Specified by:
getAnnotationsCountin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder- Returns:
- The count of annotations.
-
getAnnotations
repeated string annotations = 2;- Specified by:
getAnnotationsin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The annotations at the given index.
-
getAnnotationsBytes
public com.google.protobuf.ByteString getAnnotationsBytes(int index) repeated string annotations = 2;- Specified by:
getAnnotationsBytesin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the annotations at the given index.
-
setAnnotations
repeated string annotations = 2;- Parameters:
index- The index to set the value at.value- The annotations to set.- Returns:
- This builder for chaining.
-
addAnnotations
repeated string annotations = 2;- Parameters:
value- The annotations to add.- Returns:
- This builder for chaining.
-
addAllAnnotations
repeated string annotations = 2;- Parameters:
values- The annotations to add.- Returns:
- This builder for chaining.
-
clearAnnotations
repeated string annotations = 2;- Returns:
- This builder for chaining.
-
addAnnotationsBytes
public P4Types.P4EnumTypeSpec.Member.Builder addAnnotationsBytes(com.google.protobuf.ByteString value) repeated string annotations = 2;- Parameters:
value- The bytes of the annotations to add.- Returns:
- This builder for chaining.
-
getAnnotationLocationsList
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4;- Specified by:
getAnnotationLocationsListin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder
-
getAnnotationLocationsCount
public int getAnnotationLocationsCount()Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4;- Specified by:
getAnnotationLocationsCountin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder
-
getAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4;- Specified by:
getAnnotationLocationsin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder
-
setAnnotationLocations
public P4Types.P4EnumTypeSpec.Member.Builder setAnnotationLocations(int index, P4Types.SourceLocation value) Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4; -
setAnnotationLocations
public P4Types.P4EnumTypeSpec.Member.Builder setAnnotationLocations(int index, P4Types.SourceLocation.Builder builderForValue) Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4; -
addAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4; -
addAnnotationLocations
public P4Types.P4EnumTypeSpec.Member.Builder addAnnotationLocations(int index, P4Types.SourceLocation value) Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4; -
addAnnotationLocations
public P4Types.P4EnumTypeSpec.Member.Builder addAnnotationLocations(P4Types.SourceLocation.Builder builderForValue) Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4; -
addAnnotationLocations
public P4Types.P4EnumTypeSpec.Member.Builder addAnnotationLocations(int index, P4Types.SourceLocation.Builder builderForValue) Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4; -
addAllAnnotationLocations
public P4Types.P4EnumTypeSpec.Member.Builder addAllAnnotationLocations(Iterable<? extends P4Types.SourceLocation> values) Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4; -
clearAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4; -
removeAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4; -
getAnnotationLocationsBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4; -
getAnnotationLocationsOrBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4;- Specified by:
getAnnotationLocationsOrBuilderin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder
-
getAnnotationLocationsOrBuilderList
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4;- Specified by:
getAnnotationLocationsOrBuilderListin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder
-
addAnnotationLocationsBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4; -
addAnnotationLocationsBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4; -
getAnnotationLocationsBuilderList
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 4; -
getStructuredAnnotationsList
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;- Specified by:
getStructuredAnnotationsListin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder
-
getStructuredAnnotationsCount
public int getStructuredAnnotationsCount()repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;- Specified by:
getStructuredAnnotationsCountin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder
-
getStructuredAnnotations
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;- Specified by:
getStructuredAnnotationsin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder
-
setStructuredAnnotations
public P4Types.P4EnumTypeSpec.Member.Builder setStructuredAnnotations(int index, P4Types.StructuredAnnotation value) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3; -
setStructuredAnnotations
public P4Types.P4EnumTypeSpec.Member.Builder setStructuredAnnotations(int index, P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3; -
addStructuredAnnotations
public P4Types.P4EnumTypeSpec.Member.Builder addStructuredAnnotations(P4Types.StructuredAnnotation value) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3; -
addStructuredAnnotations
public P4Types.P4EnumTypeSpec.Member.Builder addStructuredAnnotations(int index, P4Types.StructuredAnnotation value) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3; -
addStructuredAnnotations
public P4Types.P4EnumTypeSpec.Member.Builder addStructuredAnnotations(P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3; -
addStructuredAnnotations
public P4Types.P4EnumTypeSpec.Member.Builder addStructuredAnnotations(int index, P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3; -
addAllStructuredAnnotations
public P4Types.P4EnumTypeSpec.Member.Builder addAllStructuredAnnotations(Iterable<? extends P4Types.StructuredAnnotation> values) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3; -
clearStructuredAnnotations
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3; -
removeStructuredAnnotations
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3; -
getStructuredAnnotationsBuilder
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3; -
getStructuredAnnotationsOrBuilder
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;- Specified by:
getStructuredAnnotationsOrBuilderin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder
-
getStructuredAnnotationsOrBuilderList
public List<? extends P4Types.StructuredAnnotationOrBuilder> getStructuredAnnotationsOrBuilderList()repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;- Specified by:
getStructuredAnnotationsOrBuilderListin interfaceP4Types.P4EnumTypeSpec.MemberOrBuilder
-
addStructuredAnnotationsBuilder
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3; -
addStructuredAnnotationsBuilder
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3; -
getStructuredAnnotationsBuilderList
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 3;
-