public static final class DescriptorProtos.GeneratedCodeInfo.Annotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder> implements DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
google.protobuf.GeneratedCodeInfo.Annotation
Modifier and Type | Method and Description |
---|---|
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
addAllPath(Iterable<? extends Integer> values)
Identifies the element in the original source .proto file.
|
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
addPath(int value)
Identifies the element in the original source .proto file.
|
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DescriptorProtos.GeneratedCodeInfo.Annotation |
build() |
DescriptorProtos.GeneratedCodeInfo.Annotation |
buildPartial() |
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
clear() |
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
clearBegin()
Identifies the starting offset in bytes in the generated code
that relates to the identified object.
|
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
clearEnd()
Identifies the ending offset in bytes in the generated code that
relates to the identified offset.
|
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
clearPath()
Identifies the element in the original source .proto file.
|
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
clearSourceFile()
Identifies the filesystem path to the original source .proto.
|
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
clone() |
int |
getBegin()
Identifies the starting offset in bytes in the generated code
that relates to the identified object.
|
DescriptorProtos.GeneratedCodeInfo.Annotation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getEnd()
Identifies the ending offset in bytes in the generated code that
relates to the identified offset.
|
int |
getPath(int index)
Identifies the element in the original source .proto file.
|
int |
getPathCount()
Identifies the element in the original source .proto file.
|
List<Integer> |
getPathList()
Identifies the element in the original source .proto file.
|
String |
getSourceFile()
Identifies the filesystem path to the original source .proto.
|
com.google.protobuf.ByteString |
getSourceFileBytes()
Identifies the filesystem path to the original source .proto.
|
boolean |
hasBegin()
Identifies the starting offset in bytes in the generated code
that relates to the identified object.
|
boolean |
hasEnd()
Identifies the ending offset in bytes in the generated code that
relates to the identified offset.
|
boolean |
hasSourceFile()
Identifies the filesystem path to the original source .proto.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
mergeFrom(DescriptorProtos.GeneratedCodeInfo.Annotation other) |
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
mergeFrom(com.google.protobuf.Message other) |
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
setBegin(int value)
Identifies the starting offset in bytes in the generated code
that relates to the identified object.
|
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
setEnd(int value)
Identifies the ending offset in bytes in the generated code that
relates to the identified offset.
|
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
setPath(int index,
int value)
Identifies the element in the original source .proto file.
|
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
setSourceFile(String value)
Identifies the filesystem path to the original source .proto.
|
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
setSourceFileBytes(com.google.protobuf.ByteString value)
Identifies the filesystem path to the original source .proto.
|
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
public DescriptorProtos.GeneratedCodeInfo.Annotation getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public DescriptorProtos.GeneratedCodeInfo.Annotation build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public DescriptorProtos.GeneratedCodeInfo.Annotation buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder mergeFrom(DescriptorProtos.GeneratedCodeInfo.Annotation other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
IOException
public List<Integer> getPathList()
Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
getPathList
in interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
public int getPathCount()
Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
getPathCount
in interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
public int getPath(int index)
Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
getPath
in interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
index
- The index of the element to return.public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder setPath(int index, int value)
Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
index
- The index to set the value at.value
- The path to set.public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder addPath(int value)
Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
value
- The path to add.public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder addAllPath(Iterable<? extends Integer> values)
Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
values
- The path to add.public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder clearPath()
Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [packed = true];
public boolean hasSourceFile()
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
hasSourceFile
in interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
public String getSourceFile()
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
getSourceFile
in interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
public com.google.protobuf.ByteString getSourceFileBytes()
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
getSourceFileBytes
in interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder setSourceFile(String value)
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
value
- The sourceFile to set.public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder clearSourceFile()
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder setSourceFileBytes(com.google.protobuf.ByteString value)
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
value
- The bytes for sourceFile to set.public boolean hasBegin()
Identifies the starting offset in bytes in the generated code that relates to the identified object.
optional int32 begin = 3;
hasBegin
in interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
public int getBegin()
Identifies the starting offset in bytes in the generated code that relates to the identified object.
optional int32 begin = 3;
getBegin
in interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder setBegin(int value)
Identifies the starting offset in bytes in the generated code that relates to the identified object.
optional int32 begin = 3;
value
- The begin to set.public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder clearBegin()
Identifies the starting offset in bytes in the generated code that relates to the identified object.
optional int32 begin = 3;
public boolean hasEnd()
Identifies the ending offset in bytes in the generated code that relates to the identified offset. The end offset should be one past the last relevant byte (so the length of the text = end - begin).
optional int32 end = 4;
hasEnd
in interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
public int getEnd()
Identifies the ending offset in bytes in the generated code that relates to the identified offset. The end offset should be one past the last relevant byte (so the length of the text = end - begin).
optional int32 end = 4;
getEnd
in interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder setEnd(int value)
Identifies the ending offset in bytes in the generated code that relates to the identified offset. The end offset should be one past the last relevant byte (so the length of the text = end - begin).
optional int32 end = 4;
value
- The end to set.public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder clearEnd()
Identifies the ending offset in bytes in the generated code that relates to the identified offset. The end offset should be one past the last relevant byte (so the length of the text = end - begin).
optional int32 end = 4;
public final DescriptorProtos.GeneratedCodeInfo.Annotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
public final DescriptorProtos.GeneratedCodeInfo.Annotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
Copyright © 2008–2022. All rights reserved.