Package p4.config.v1
Class P4Types.P4StructTypeSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<P4Types.P4StructTypeSpec.Builder>
com.google.protobuf.GeneratedMessage.Builder<P4Types.P4StructTypeSpec.Builder>
p4.config.v1.P4Types.P4StructTypeSpec.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,P4Types.P4StructTypeSpecOrBuilder
- Enclosing class:
P4Types.P4StructTypeSpec
public static final class P4Types.P4StructTypeSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<P4Types.P4StructTypeSpec.Builder>
implements P4Types.P4StructTypeSpecOrBuilder
Protobuf type
p4.config.v1.P4StructTypeSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAllAnnotationLocations(Iterable<? extends P4Types.SourceLocation> values) Optional.addAllAnnotations(Iterable<String> values) repeated string annotations = 2;addAllMembers(Iterable<? extends P4Types.P4StructTypeSpec.Member> values) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;addAllStructuredAnnotations(Iterable<? extends P4Types.StructuredAnnotation> values) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;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;addMembers(int index, P4Types.P4StructTypeSpec.Member value) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;addMembers(int index, P4Types.P4StructTypeSpec.Member.Builder builderForValue) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;addMembers(P4Types.P4StructTypeSpec.Member.Builder builderForValue) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;addMembersBuilder(int index) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;addStructuredAnnotations(int index, P4Types.StructuredAnnotation value) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;addStructuredAnnotations(int index, P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;addStructuredAnnotations(P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;addStructuredAnnotationsBuilder(int index) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;build()clear()Optional.repeated string annotations = 2;repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;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.DescriptorgetMembers(int index) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;getMembersBuilder(int index) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;intrepeated .p4.config.v1.P4StructTypeSpec.Member members = 1;repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;getMembersOrBuilder(int index) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;List<? extends P4Types.P4StructTypeSpec.MemberOrBuilder> repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;getStructuredAnnotations(int index) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;getStructuredAnnotationsBuilder(int index) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;intrepeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;getStructuredAnnotationsOrBuilder(int index) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;List<? extends P4Types.StructuredAnnotationOrBuilder> repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;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.removeMembers(int index) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;removeStructuredAnnotations(int index) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;setAnnotationLocations(int index, P4Types.SourceLocation value) Optional.setAnnotationLocations(int index, P4Types.SourceLocation.Builder builderForValue) Optional.setAnnotations(int index, String value) repeated string annotations = 2;setMembers(int index, P4Types.P4StructTypeSpec.Member value) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;setMembers(int index, P4Types.P4StructTypeSpec.Member.Builder builderForValue) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;setStructuredAnnotations(int index, P4Types.StructuredAnnotation value) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;setStructuredAnnotations(int index, P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;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.P4StructTypeSpec.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.P4StructTypeSpec.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.P4StructTypeSpec.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.P4StructTypeSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<P4Types.P4StructTypeSpec.Builder>
-
mergeFrom
public P4Types.P4StructTypeSpec.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.P4StructTypeSpec.Builder>- Throws:
IOException
-
getMembersList
repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;- Specified by:
getMembersListin interfaceP4Types.P4StructTypeSpecOrBuilder
-
getMembersCount
public int getMembersCount()repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;- Specified by:
getMembersCountin interfaceP4Types.P4StructTypeSpecOrBuilder
-
getMembers
repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;- Specified by:
getMembersin interfaceP4Types.P4StructTypeSpecOrBuilder
-
setMembers
public P4Types.P4StructTypeSpec.Builder setMembers(int index, P4Types.P4StructTypeSpec.Member value) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1; -
setMembers
public P4Types.P4StructTypeSpec.Builder setMembers(int index, P4Types.P4StructTypeSpec.Member.Builder builderForValue) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1; -
addMembers
repeated .p4.config.v1.P4StructTypeSpec.Member members = 1; -
addMembers
public P4Types.P4StructTypeSpec.Builder addMembers(int index, P4Types.P4StructTypeSpec.Member value) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1; -
addMembers
public P4Types.P4StructTypeSpec.Builder addMembers(P4Types.P4StructTypeSpec.Member.Builder builderForValue) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1; -
addMembers
public P4Types.P4StructTypeSpec.Builder addMembers(int index, P4Types.P4StructTypeSpec.Member.Builder builderForValue) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1; -
addAllMembers
public P4Types.P4StructTypeSpec.Builder addAllMembers(Iterable<? extends P4Types.P4StructTypeSpec.Member> values) repeated .p4.config.v1.P4StructTypeSpec.Member members = 1; -
clearMembers
repeated .p4.config.v1.P4StructTypeSpec.Member members = 1; -
removeMembers
repeated .p4.config.v1.P4StructTypeSpec.Member members = 1; -
getMembersBuilder
repeated .p4.config.v1.P4StructTypeSpec.Member members = 1; -
getMembersOrBuilder
repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;- Specified by:
getMembersOrBuilderin interfaceP4Types.P4StructTypeSpecOrBuilder
-
getMembersOrBuilderList
repeated .p4.config.v1.P4StructTypeSpec.Member members = 1;- Specified by:
getMembersOrBuilderListin interfaceP4Types.P4StructTypeSpecOrBuilder
-
addMembersBuilder
repeated .p4.config.v1.P4StructTypeSpec.Member members = 1; -
addMembersBuilder
repeated .p4.config.v1.P4StructTypeSpec.Member members = 1; -
getMembersBuilderList
repeated .p4.config.v1.P4StructTypeSpec.Member members = 1; -
getAnnotationsList
public com.google.protobuf.ProtocolStringList getAnnotationsList()repeated string annotations = 2;- Specified by:
getAnnotationsListin interfaceP4Types.P4StructTypeSpecOrBuilder- Returns:
- A list containing the annotations.
-
getAnnotationsCount
public int getAnnotationsCount()repeated string annotations = 2;- Specified by:
getAnnotationsCountin interfaceP4Types.P4StructTypeSpecOrBuilder- Returns:
- The count of annotations.
-
getAnnotations
repeated string annotations = 2;- Specified by:
getAnnotationsin interfaceP4Types.P4StructTypeSpecOrBuilder- 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.P4StructTypeSpecOrBuilder- 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
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 = 3;- Specified by:
getAnnotationLocationsListin interfaceP4Types.P4StructTypeSpecOrBuilder
-
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 = 3;- Specified by:
getAnnotationLocationsCountin interfaceP4Types.P4StructTypeSpecOrBuilder
-
getAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 3;- Specified by:
getAnnotationLocationsin interfaceP4Types.P4StructTypeSpecOrBuilder
-
setAnnotationLocations
public P4Types.P4StructTypeSpec.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 = 3; -
setAnnotationLocations
public P4Types.P4StructTypeSpec.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 = 3; -
addAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 3; -
addAnnotationLocations
public P4Types.P4StructTypeSpec.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 = 3; -
addAnnotationLocations
public P4Types.P4StructTypeSpec.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 = 3; -
addAnnotationLocations
public P4Types.P4StructTypeSpec.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 = 3; -
addAllAnnotationLocations
public P4Types.P4StructTypeSpec.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 = 3; -
clearAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 3; -
removeAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 3; -
getAnnotationLocationsBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 3; -
getAnnotationLocationsOrBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 3;- Specified by:
getAnnotationLocationsOrBuilderin interfaceP4Types.P4StructTypeSpecOrBuilder
-
getAnnotationLocationsOrBuilderList
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 3;- Specified by:
getAnnotationLocationsOrBuilderListin interfaceP4Types.P4StructTypeSpecOrBuilder
-
addAnnotationLocationsBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 3; -
addAnnotationLocationsBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 3; -
getAnnotationLocationsBuilderList
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 3; -
getStructuredAnnotationsList
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;- Specified by:
getStructuredAnnotationsListin interfaceP4Types.P4StructTypeSpecOrBuilder
-
getStructuredAnnotationsCount
public int getStructuredAnnotationsCount()repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;- Specified by:
getStructuredAnnotationsCountin interfaceP4Types.P4StructTypeSpecOrBuilder
-
getStructuredAnnotations
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;- Specified by:
getStructuredAnnotationsin interfaceP4Types.P4StructTypeSpecOrBuilder
-
setStructuredAnnotations
public P4Types.P4StructTypeSpec.Builder setStructuredAnnotations(int index, P4Types.StructuredAnnotation value) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
setStructuredAnnotations
public P4Types.P4StructTypeSpec.Builder setStructuredAnnotations(int index, P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
addStructuredAnnotations
public P4Types.P4StructTypeSpec.Builder addStructuredAnnotations(P4Types.StructuredAnnotation value) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
addStructuredAnnotations
public P4Types.P4StructTypeSpec.Builder addStructuredAnnotations(int index, P4Types.StructuredAnnotation value) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
addStructuredAnnotations
public P4Types.P4StructTypeSpec.Builder addStructuredAnnotations(P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
addStructuredAnnotations
public P4Types.P4StructTypeSpec.Builder addStructuredAnnotations(int index, P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
addAllStructuredAnnotations
public P4Types.P4StructTypeSpec.Builder addAllStructuredAnnotations(Iterable<? extends P4Types.StructuredAnnotation> values) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
clearStructuredAnnotations
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
removeStructuredAnnotations
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
getStructuredAnnotationsBuilder
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
getStructuredAnnotationsOrBuilder
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;- Specified by:
getStructuredAnnotationsOrBuilderin interfaceP4Types.P4StructTypeSpecOrBuilder
-
getStructuredAnnotationsOrBuilderList
public List<? extends P4Types.StructuredAnnotationOrBuilder> getStructuredAnnotationsOrBuilderList()repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;- Specified by:
getStructuredAnnotationsOrBuilderListin interfaceP4Types.P4StructTypeSpecOrBuilder
-
addStructuredAnnotationsBuilder
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
addStructuredAnnotationsBuilder
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
getStructuredAnnotationsBuilderList
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;
-