Package p4.config.v1
Class P4InfoOuterClass.ActionRef.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<P4InfoOuterClass.ActionRef.Builder>
com.google.protobuf.GeneratedMessage.Builder<P4InfoOuterClass.ActionRef.Builder>
p4.config.v1.P4InfoOuterClass.ActionRef.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,P4InfoOuterClass.ActionRefOrBuilder
- Enclosing class:
P4InfoOuterClass.ActionRef
public static final class P4InfoOuterClass.ActionRef.Builder
extends com.google.protobuf.GeneratedMessage.Builder<P4InfoOuterClass.ActionRef.Builder>
implements P4InfoOuterClass.ActionRefOrBuilder
used to list all possible actions in a TableProtobuf type
p4.config.v1.ActionRef-
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 = 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;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;clearId()uint32 id = 1;.p4.config.v1.ActionRef.Scope scope = 3;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.DescriptorintgetId()uint32 id = 1;getScope().p4.config.v1.ActionRef.Scope scope = 3;int.p4.config.v1.ActionRef.Scope scope = 3;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.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;setId(int value) uint32 id = 1;.p4.config.v1.ActionRef.Scope scope = 3;setScopeValue(int value) .p4.config.v1.ActionRef.Scope scope = 3;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<P4InfoOuterClass.ActionRef.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<P4InfoOuterClass.ActionRef.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<P4InfoOuterClass.ActionRef.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<P4InfoOuterClass.ActionRef.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<P4InfoOuterClass.ActionRef.Builder>
-
mergeFrom
public P4InfoOuterClass.ActionRef.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<P4InfoOuterClass.ActionRef.Builder>- Throws:
IOException
-
getId
public int getId()uint32 id = 1;- Specified by:
getIdin interfaceP4InfoOuterClass.ActionRefOrBuilder- Returns:
- The id.
-
setId
uint32 id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
uint32 id = 1;- Returns:
- This builder for chaining.
-
getScopeValue
public int getScopeValue().p4.config.v1.ActionRef.Scope scope = 3;- Specified by:
getScopeValuein interfaceP4InfoOuterClass.ActionRefOrBuilder- Returns:
- The enum numeric value on the wire for scope.
-
setScopeValue
.p4.config.v1.ActionRef.Scope scope = 3;- Parameters:
value- The enum numeric value on the wire for scope to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getScope
.p4.config.v1.ActionRef.Scope scope = 3;- Specified by:
getScopein interfaceP4InfoOuterClass.ActionRefOrBuilder- Returns:
- The scope.
-
setScope
.p4.config.v1.ActionRef.Scope scope = 3;- Parameters:
value- The scope to set.- Returns:
- This builder for chaining.
-
clearScope
.p4.config.v1.ActionRef.Scope scope = 3;- Returns:
- This builder for chaining.
-
getAnnotationsList
public com.google.protobuf.ProtocolStringList getAnnotationsList()repeated string annotations = 2;- Specified by:
getAnnotationsListin interfaceP4InfoOuterClass.ActionRefOrBuilder- Returns:
- A list containing the annotations.
-
getAnnotationsCount
public int getAnnotationsCount()repeated string annotations = 2;- Specified by:
getAnnotationsCountin interfaceP4InfoOuterClass.ActionRefOrBuilder- Returns:
- The count of annotations.
-
getAnnotations
repeated string annotations = 2;- Specified by:
getAnnotationsin interfaceP4InfoOuterClass.ActionRefOrBuilder- 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 interfaceP4InfoOuterClass.ActionRefOrBuilder- 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 = 5;- Specified by:
getAnnotationLocationsListin interfaceP4InfoOuterClass.ActionRefOrBuilder
-
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 = 5;- Specified by:
getAnnotationLocationsCountin interfaceP4InfoOuterClass.ActionRefOrBuilder
-
getAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 5;- Specified by:
getAnnotationLocationsin interfaceP4InfoOuterClass.ActionRefOrBuilder
-
setAnnotationLocations
public P4InfoOuterClass.ActionRef.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 = 5; -
setAnnotationLocations
public P4InfoOuterClass.ActionRef.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 = 5; -
addAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 5; -
addAnnotationLocations
public P4InfoOuterClass.ActionRef.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 = 5; -
addAnnotationLocations
public P4InfoOuterClass.ActionRef.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 = 5; -
addAnnotationLocations
public P4InfoOuterClass.ActionRef.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 = 5; -
addAllAnnotationLocations
public P4InfoOuterClass.ActionRef.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 = 5; -
clearAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 5; -
removeAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 5; -
getAnnotationLocationsBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 5; -
getAnnotationLocationsOrBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 5;- Specified by:
getAnnotationLocationsOrBuilderin interfaceP4InfoOuterClass.ActionRefOrBuilder
-
getAnnotationLocationsOrBuilderList
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 5;- Specified by:
getAnnotationLocationsOrBuilderListin interfaceP4InfoOuterClass.ActionRefOrBuilder
-
addAnnotationLocationsBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 5; -
addAnnotationLocationsBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 5; -
getAnnotationLocationsBuilderList
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 5; -
getStructuredAnnotationsList
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;- Specified by:
getStructuredAnnotationsListin interfaceP4InfoOuterClass.ActionRefOrBuilder
-
getStructuredAnnotationsCount
public int getStructuredAnnotationsCount()repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;- Specified by:
getStructuredAnnotationsCountin interfaceP4InfoOuterClass.ActionRefOrBuilder
-
getStructuredAnnotations
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;- Specified by:
getStructuredAnnotationsin interfaceP4InfoOuterClass.ActionRefOrBuilder
-
setStructuredAnnotations
public P4InfoOuterClass.ActionRef.Builder setStructuredAnnotations(int index, P4Types.StructuredAnnotation value) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
setStructuredAnnotations
public P4InfoOuterClass.ActionRef.Builder setStructuredAnnotations(int index, P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
addStructuredAnnotations
public P4InfoOuterClass.ActionRef.Builder addStructuredAnnotations(P4Types.StructuredAnnotation value) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
addStructuredAnnotations
public P4InfoOuterClass.ActionRef.Builder addStructuredAnnotations(int index, P4Types.StructuredAnnotation value) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
addStructuredAnnotations
public P4InfoOuterClass.ActionRef.Builder addStructuredAnnotations(P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
addStructuredAnnotations
public P4InfoOuterClass.ActionRef.Builder addStructuredAnnotations(int index, P4Types.StructuredAnnotation.Builder builderForValue) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4; -
addAllStructuredAnnotations
public P4InfoOuterClass.ActionRef.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 interfaceP4InfoOuterClass.ActionRefOrBuilder
-
getStructuredAnnotationsOrBuilderList
public List<? extends P4Types.StructuredAnnotationOrBuilder> getStructuredAnnotationsOrBuilderList()repeated .p4.config.v1.StructuredAnnotation structured_annotations = 4;- Specified by:
getStructuredAnnotationsOrBuilderListin interfaceP4InfoOuterClass.ActionRefOrBuilder
-
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;
-