Package com.google.protobuf
Class DescriptorProtos.FileDescriptorProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder
- All Implemented Interfaces:
DescriptorProtos.FileDescriptorProtoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DescriptorProtos.FileDescriptorProto
public static final class DescriptorProtos.FileDescriptorProto.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
implements DescriptorProtos.FileDescriptorProtoOrBuilder
Describes a complete .proto file.Protobuf type
google.protobuf.FileDescriptorProto-
Method Summary
Modifier and TypeMethodDescriptionaddAllDependency(Iterable<String> values) Names of files imported by this file.addAllEnumType(Iterable<? extends DescriptorProtos.EnumDescriptorProto> values) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;addAllExtension(Iterable<? extends DescriptorProtos.FieldDescriptorProto> values) repeated .google.protobuf.FieldDescriptorProto extension = 7;addAllMessageType(Iterable<? extends DescriptorProtos.DescriptorProto> values) All top-level definitions in this file.addAllPublicDependency(Iterable<? extends Integer> values) Indexes of the public imported files in the dependency list above.addAllService(Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values) repeated .google.protobuf.ServiceDescriptorProto service = 6;addAllWeakDependency(Iterable<? extends Integer> values) Indexes of the weak imported files in the dependency list.addDependency(String value) Names of files imported by this file.addDependencyBytes(com.google.protobuf.ByteString value) Names of files imported by this file.addEnumType(int index, DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;addEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;repeated .google.protobuf.EnumDescriptorProto enum_type = 5;addEnumType(DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;repeated .google.protobuf.EnumDescriptorProto enum_type = 5;addEnumTypeBuilder(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;addExtension(int index, DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7;addExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7;repeated .google.protobuf.FieldDescriptorProto extension = 7;addExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7;repeated .google.protobuf.FieldDescriptorProto extension = 7;addExtensionBuilder(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7;addMessageType(int index, DescriptorProtos.DescriptorProto value) All top-level definitions in this file.addMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue) All top-level definitions in this file.All top-level definitions in this file.addMessageType(DescriptorProtos.DescriptorProto.Builder builderForValue) All top-level definitions in this file.All top-level definitions in this file.addMessageTypeBuilder(int index) All top-level definitions in this file.addPublicDependency(int value) Indexes of the public imported files in the dependency list above.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addService(int index, DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6;addService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6;repeated .google.protobuf.ServiceDescriptorProto service = 6;addService(DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6;repeated .google.protobuf.ServiceDescriptorProto service = 6;addServiceBuilder(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6;addWeakDependency(int value) Indexes of the weak imported files in the dependency list.build()clear()Names of files imported by this file.The edition of the proto file, which is an opaque string.repeated .google.protobuf.EnumDescriptorProto enum_type = 5;repeated .google.protobuf.FieldDescriptorProto extension = 7;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) All top-level definitions in this file.file name, relative to root of source treeclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional .google.protobuf.FileOptions options = 8;e.g.Indexes of the public imported files in the dependency list above.repeated .google.protobuf.ServiceDescriptorProto service = 6;This field contains optional information about the original source code.The syntax of the proto file.Indexes of the weak imported files in the dependency list.clone()getDependency(int index) Names of files imported by this file.com.google.protobuf.ByteStringgetDependencyBytes(int index) Names of files imported by this file.intNames of files imported by this file.com.google.protobuf.ProtocolStringListNames of files imported by this file.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe edition of the proto file, which is an opaque string.com.google.protobuf.ByteStringThe edition of the proto file, which is an opaque string.getEnumType(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;getEnumTypeBuilder(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;repeated .google.protobuf.EnumDescriptorProto enum_type = 5;intrepeated .google.protobuf.EnumDescriptorProto enum_type = 5;repeated .google.protobuf.EnumDescriptorProto enum_type = 5;getEnumTypeOrBuilder(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;repeated .google.protobuf.EnumDescriptorProto enum_type = 5;getExtension(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7;getExtensionBuilder(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7;repeated .google.protobuf.FieldDescriptorProto extension = 7;intrepeated .google.protobuf.FieldDescriptorProto extension = 7;repeated .google.protobuf.FieldDescriptorProto extension = 7;getExtensionOrBuilder(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7;repeated .google.protobuf.FieldDescriptorProto extension = 7;getMessageType(int index) All top-level definitions in this file.getMessageTypeBuilder(int index) All top-level definitions in this file.All top-level definitions in this file.intAll top-level definitions in this file.All top-level definitions in this file.getMessageTypeOrBuilder(int index) All top-level definitions in this file.List<? extends DescriptorProtos.DescriptorProtoOrBuilder>All top-level definitions in this file.getName()file name, relative to root of source treecom.google.protobuf.ByteStringfile name, relative to root of source treeoptional .google.protobuf.FileOptions options = 8;optional .google.protobuf.FileOptions options = 8;optional .google.protobuf.FileOptions options = 8;e.g.com.google.protobuf.ByteStringe.g.intgetPublicDependency(int index) Indexes of the public imported files in the dependency list above.intIndexes of the public imported files in the dependency list above.Indexes of the public imported files in the dependency list above.getService(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6;getServiceBuilder(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6;repeated .google.protobuf.ServiceDescriptorProto service = 6;intrepeated .google.protobuf.ServiceDescriptorProto service = 6;repeated .google.protobuf.ServiceDescriptorProto service = 6;getServiceOrBuilder(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6;repeated .google.protobuf.ServiceDescriptorProto service = 6;This field contains optional information about the original source code.This field contains optional information about the original source code.This field contains optional information about the original source code.The syntax of the proto file.com.google.protobuf.ByteStringThe syntax of the proto file.intgetWeakDependency(int index) Indexes of the weak imported files in the dependency list.intIndexes of the weak imported files in the dependency list.Indexes of the weak imported files in the dependency list.booleanThe edition of the proto file, which is an opaque string.booleanhasName()file name, relative to root of source treebooleanoptional .google.protobuf.FileOptions options = 8;booleane.g.booleanThis field contains optional information about the original source code.booleanThe syntax of the proto file.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) optional .google.protobuf.FileOptions options = 8;This field contains optional information about the original source code.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeEnumType(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;removeExtension(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7;removeMessageType(int index) All top-level definitions in this file.removeService(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6;setDependency(int index, String value) Names of files imported by this file.setEdition(String value) The edition of the proto file, which is an opaque string.setEditionBytes(com.google.protobuf.ByteString value) The edition of the proto file, which is an opaque string.setEnumType(int index, DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;setEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;setExtension(int index, DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7;setExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7;setMessageType(int index, DescriptorProtos.DescriptorProto value) All top-level definitions in this file.setMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue) All top-level definitions in this file.file name, relative to root of source treesetNameBytes(com.google.protobuf.ByteString value) file name, relative to root of source treeoptional .google.protobuf.FileOptions options = 8;setOptions(DescriptorProtos.FileOptions.Builder builderForValue) optional .google.protobuf.FileOptions options = 8;setPackage(String value) e.g.setPackageBytes(com.google.protobuf.ByteString value) e.g.setPublicDependency(int index, int value) Indexes of the public imported files in the dependency list above.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setService(int index, DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6;setService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6;This field contains optional information about the original source code.setSourceCodeInfo(DescriptorProtos.SourceCodeInfo.Builder builderForValue) This field contains optional information about the original source code.The syntax of the proto file.setSyntaxBytes(com.google.protobuf.ByteString value) The syntax of the proto file.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWeakDependency(int index, int value) Indexes of the weak imported files in the dependency list.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.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.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
setField
public DescriptorProtos.FileDescriptorProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
clearField
public DescriptorProtos.FileDescriptorProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
clearOneof
public DescriptorProtos.FileDescriptorProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
setRepeatedField
public DescriptorProtos.FileDescriptorProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
addRepeatedField
public DescriptorProtos.FileDescriptorProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
mergeFrom
public DescriptorProtos.FileDescriptorProto.Builder mergeFrom(DescriptorProtos.FileDescriptorProto other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
mergeFrom
public DescriptorProtos.FileDescriptorProto.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<DescriptorProtos.FileDescriptorProto.Builder>- Throws:
IOException
-
hasName
public boolean hasName()file name, relative to root of source tree
optional string name = 1;- Specified by:
hasNamein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
file name, relative to root of source tree
optional string name = 1;- Specified by:
getNamein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()file name, relative to root of source tree
optional string name = 1;- Specified by:
getNameBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The bytes for name.
-
setName
file name, relative to root of source tree
optional string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
file name, relative to root of source tree
optional string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public DescriptorProtos.FileDescriptorProto.Builder setNameBytes(com.google.protobuf.ByteString value) file name, relative to root of source tree
optional string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasPackage
public boolean hasPackage()e.g. "foo", "foo.bar", etc.
optional string package = 2;- Specified by:
hasPackagein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the package field is set.
-
getPackage
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Specified by:
getPackagein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The package.
-
getPackageBytes
public com.google.protobuf.ByteString getPackageBytes()e.g. "foo", "foo.bar", etc.
optional string package = 2;- Specified by:
getPackageBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The bytes for package.
-
setPackage
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Parameters:
value- The package to set.- Returns:
- This builder for chaining.
-
clearPackage
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Returns:
- This builder for chaining.
-
setPackageBytes
public DescriptorProtos.FileDescriptorProto.Builder setPackageBytes(com.google.protobuf.ByteString value) e.g. "foo", "foo.bar", etc.
optional string package = 2;- Parameters:
value- The bytes for package to set.- Returns:
- This builder for chaining.
-
getDependencyList
public com.google.protobuf.ProtocolStringList getDependencyList()Names of files imported by this file.
repeated string dependency = 3;- Specified by:
getDependencyListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- A list containing the dependency.
-
getDependencyCount
public int getDependencyCount()Names of files imported by this file.
repeated string dependency = 3;- Specified by:
getDependencyCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The count of dependency.
-
getDependency
Names of files imported by this file.
repeated string dependency = 3;- Specified by:
getDependencyin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The dependency at the given index.
-
getDependencyBytes
public com.google.protobuf.ByteString getDependencyBytes(int index) Names of files imported by this file.
repeated string dependency = 3;- Specified by:
getDependencyBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the dependency at the given index.
-
setDependency
Names of files imported by this file.
repeated string dependency = 3;- Parameters:
index- The index to set the value at.value- The dependency to set.- Returns:
- This builder for chaining.
-
addDependency
Names of files imported by this file.
repeated string dependency = 3;- Parameters:
value- The dependency to add.- Returns:
- This builder for chaining.
-
addAllDependency
Names of files imported by this file.
repeated string dependency = 3;- Parameters:
values- The dependency to add.- Returns:
- This builder for chaining.
-
clearDependency
Names of files imported by this file.
repeated string dependency = 3;- Returns:
- This builder for chaining.
-
addDependencyBytes
public DescriptorProtos.FileDescriptorProto.Builder addDependencyBytes(com.google.protobuf.ByteString value) Names of files imported by this file.
repeated string dependency = 3;- Parameters:
value- The bytes of the dependency to add.- Returns:
- This builder for chaining.
-
getPublicDependencyList
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- Specified by:
getPublicDependencyListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- A list containing the publicDependency.
-
getPublicDependencyCount
public int getPublicDependencyCount()Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- Specified by:
getPublicDependencyCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The count of publicDependency.
-
getPublicDependency
public int getPublicDependency(int index) Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- Specified by:
getPublicDependencyin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The publicDependency at the given index.
-
setPublicDependency
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- Parameters:
index- The index to set the value at.value- The publicDependency to set.- Returns:
- This builder for chaining.
-
addPublicDependency
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- Parameters:
value- The publicDependency to add.- Returns:
- This builder for chaining.
-
addAllPublicDependency
public DescriptorProtos.FileDescriptorProto.Builder addAllPublicDependency(Iterable<? extends Integer> values) Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- Parameters:
values- The publicDependency to add.- Returns:
- This builder for chaining.
-
clearPublicDependency
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- Returns:
- This builder for chaining.
-
getWeakDependencyList
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- Specified by:
getWeakDependencyListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- A list containing the weakDependency.
-
getWeakDependencyCount
public int getWeakDependencyCount()Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- Specified by:
getWeakDependencyCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The count of weakDependency.
-
getWeakDependency
public int getWeakDependency(int index) Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- Specified by:
getWeakDependencyin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The weakDependency at the given index.
-
setWeakDependency
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- Parameters:
index- The index to set the value at.value- The weakDependency to set.- Returns:
- This builder for chaining.
-
addWeakDependency
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- Parameters:
value- The weakDependency to add.- Returns:
- This builder for chaining.
-
addAllWeakDependency
public DescriptorProtos.FileDescriptorProto.Builder addAllWeakDependency(Iterable<? extends Integer> values) Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- Parameters:
values- The weakDependency to add.- Returns:
- This builder for chaining.
-
clearWeakDependency
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- Returns:
- This builder for chaining.
-
getMessageTypeList
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;- Specified by:
getMessageTypeListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeCount
public int getMessageTypeCount()All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;- Specified by:
getMessageTypeCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageType
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;- Specified by:
getMessageTypein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
setMessageType
public DescriptorProtos.FileDescriptorProto.Builder setMessageType(int index, DescriptorProtos.DescriptorProto value) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4; -
setMessageType
public DescriptorProtos.FileDescriptorProto.Builder setMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4; -
addMessageType
public DescriptorProtos.FileDescriptorProto.Builder addMessageType(DescriptorProtos.DescriptorProto value) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4; -
addMessageType
public DescriptorProtos.FileDescriptorProto.Builder addMessageType(int index, DescriptorProtos.DescriptorProto value) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4; -
addMessageType
public DescriptorProtos.FileDescriptorProto.Builder addMessageType(DescriptorProtos.DescriptorProto.Builder builderForValue) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4; -
addMessageType
public DescriptorProtos.FileDescriptorProto.Builder addMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4; -
addAllMessageType
public DescriptorProtos.FileDescriptorProto.Builder addAllMessageType(Iterable<? extends DescriptorProtos.DescriptorProto> values) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4; -
clearMessageType
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4; -
removeMessageType
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4; -
getMessageTypeBuilder
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4; -
getMessageTypeOrBuilder
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;- Specified by:
getMessageTypeOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeOrBuilderList
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;- Specified by:
getMessageTypeOrBuilderListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addMessageTypeBuilder
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4; -
addMessageTypeBuilder
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4; -
getMessageTypeBuilderList
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4; -
getEnumTypeList
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypeListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeCount
public int getEnumTypeCount()repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypeCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumType
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
setEnumType
public DescriptorProtos.FileDescriptorProto.Builder setEnumType(int index, DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5; -
setEnumType
public DescriptorProtos.FileDescriptorProto.Builder setEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5; -
addEnumType
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5; -
addEnumType
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(int index, DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5; -
addEnumType
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5; -
addEnumType
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5; -
addAllEnumType
public DescriptorProtos.FileDescriptorProto.Builder addAllEnumType(Iterable<? extends DescriptorProtos.EnumDescriptorProto> values) repeated .google.protobuf.EnumDescriptorProto enum_type = 5; -
clearEnumType
repeated .google.protobuf.EnumDescriptorProto enum_type = 5; -
removeEnumType
repeated .google.protobuf.EnumDescriptorProto enum_type = 5; -
getEnumTypeBuilder
repeated .google.protobuf.EnumDescriptorProto enum_type = 5; -
getEnumTypeOrBuilder
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypeOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeOrBuilderList
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypeOrBuilderListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addEnumTypeBuilder
repeated .google.protobuf.EnumDescriptorProto enum_type = 5; -
addEnumTypeBuilder
repeated .google.protobuf.EnumDescriptorProto enum_type = 5; -
getEnumTypeBuilderList
repeated .google.protobuf.EnumDescriptorProto enum_type = 5; -
getServiceList
repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServiceListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceCount
public int getServiceCount()repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServiceCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getService
repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServicein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
setService
public DescriptorProtos.FileDescriptorProto.Builder setService(int index, DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6; -
setService
public DescriptorProtos.FileDescriptorProto.Builder setService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6; -
addService
public DescriptorProtos.FileDescriptorProto.Builder addService(DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6; -
addService
public DescriptorProtos.FileDescriptorProto.Builder addService(int index, DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6; -
addService
public DescriptorProtos.FileDescriptorProto.Builder addService(DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6; -
addService
public DescriptorProtos.FileDescriptorProto.Builder addService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6; -
addAllService
public DescriptorProtos.FileDescriptorProto.Builder addAllService(Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values) repeated .google.protobuf.ServiceDescriptorProto service = 6; -
clearService
repeated .google.protobuf.ServiceDescriptorProto service = 6; -
removeService
repeated .google.protobuf.ServiceDescriptorProto service = 6; -
getServiceBuilder
repeated .google.protobuf.ServiceDescriptorProto service = 6; -
getServiceOrBuilder
repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServiceOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceOrBuilderList
repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServiceOrBuilderListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addServiceBuilder
repeated .google.protobuf.ServiceDescriptorProto service = 6; -
addServiceBuilder
repeated .google.protobuf.ServiceDescriptorProto service = 6; -
getServiceBuilderList
repeated .google.protobuf.ServiceDescriptorProto service = 6; -
getExtensionList
repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionCount
public int getExtensionCount()repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtension
repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
setExtension
public DescriptorProtos.FileDescriptorProto.Builder setExtension(int index, DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7; -
setExtension
public DescriptorProtos.FileDescriptorProto.Builder setExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7; -
addExtension
public DescriptorProtos.FileDescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7; -
addExtension
public DescriptorProtos.FileDescriptorProto.Builder addExtension(int index, DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7; -
addExtension
public DescriptorProtos.FileDescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7; -
addExtension
public DescriptorProtos.FileDescriptorProto.Builder addExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7; -
addAllExtension
public DescriptorProtos.FileDescriptorProto.Builder addAllExtension(Iterable<? extends DescriptorProtos.FieldDescriptorProto> values) repeated .google.protobuf.FieldDescriptorProto extension = 7; -
clearExtension
repeated .google.protobuf.FieldDescriptorProto extension = 7; -
removeExtension
repeated .google.protobuf.FieldDescriptorProto extension = 7; -
getExtensionBuilder
repeated .google.protobuf.FieldDescriptorProto extension = 7; -
getExtensionOrBuilder
repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionOrBuilderList
repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionOrBuilderListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addExtensionBuilder
repeated .google.protobuf.FieldDescriptorProto extension = 7; -
addExtensionBuilder
repeated .google.protobuf.FieldDescriptorProto extension = 7; -
getExtensionBuilderList
repeated .google.protobuf.FieldDescriptorProto extension = 7; -
hasOptions
public boolean hasOptions()optional .google.protobuf.FileOptions options = 8;- Specified by:
hasOptionsin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
optional .google.protobuf.FileOptions options = 8;- Specified by:
getOptionsin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The options.
-
setOptions
optional .google.protobuf.FileOptions options = 8; -
setOptions
public DescriptorProtos.FileDescriptorProto.Builder setOptions(DescriptorProtos.FileOptions.Builder builderForValue) optional .google.protobuf.FileOptions options = 8; -
mergeOptions
public DescriptorProtos.FileDescriptorProto.Builder mergeOptions(DescriptorProtos.FileOptions value) optional .google.protobuf.FileOptions options = 8; -
clearOptions
optional .google.protobuf.FileOptions options = 8; -
getOptionsBuilder
optional .google.protobuf.FileOptions options = 8; -
getOptionsOrBuilder
optional .google.protobuf.FileOptions options = 8;- Specified by:
getOptionsOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
hasSourceCodeInfo
public boolean hasSourceCodeInfo()This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;- Specified by:
hasSourceCodeInfoin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the sourceCodeInfo field is set.
-
getSourceCodeInfo
This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;- Specified by:
getSourceCodeInfoin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The sourceCodeInfo.
-
setSourceCodeInfo
public DescriptorProtos.FileDescriptorProto.Builder setSourceCodeInfo(DescriptorProtos.SourceCodeInfo value) This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9; -
setSourceCodeInfo
public DescriptorProtos.FileDescriptorProto.Builder setSourceCodeInfo(DescriptorProtos.SourceCodeInfo.Builder builderForValue) This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9; -
mergeSourceCodeInfo
public DescriptorProtos.FileDescriptorProto.Builder mergeSourceCodeInfo(DescriptorProtos.SourceCodeInfo value) This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9; -
clearSourceCodeInfo
This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9; -
getSourceCodeInfoBuilder
This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9; -
getSourceCodeInfoOrBuilder
This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;- Specified by:
getSourceCodeInfoOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
hasSyntax
public boolean hasSyntax()The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".
optional string syntax = 12;- Specified by:
hasSyntaxin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the syntax field is set.
-
getSyntax
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".
optional string syntax = 12;- Specified by:
getSyntaxin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The syntax.
-
getSyntaxBytes
public com.google.protobuf.ByteString getSyntaxBytes()The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".
optional string syntax = 12;- Specified by:
getSyntaxBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The bytes for syntax.
-
setSyntax
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".
optional string syntax = 12;- Parameters:
value- The syntax to set.- Returns:
- This builder for chaining.
-
clearSyntax
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".
optional string syntax = 12;- Returns:
- This builder for chaining.
-
setSyntaxBytes
public DescriptorProtos.FileDescriptorProto.Builder setSyntaxBytes(com.google.protobuf.ByteString value) The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".
optional string syntax = 12;- Parameters:
value- The bytes for syntax to set.- Returns:
- This builder for chaining.
-
hasEdition
public boolean hasEdition()The edition of the proto file, which is an opaque string.
optional string edition = 13;- Specified by:
hasEditionin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the edition field is set.
-
getEdition
The edition of the proto file, which is an opaque string.
optional string edition = 13;- Specified by:
getEditionin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The edition.
-
getEditionBytes
public com.google.protobuf.ByteString getEditionBytes()The edition of the proto file, which is an opaque string.
optional string edition = 13;- Specified by:
getEditionBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The bytes for edition.
-
setEdition
The edition of the proto file, which is an opaque string.
optional string edition = 13;- Parameters:
value- The edition to set.- Returns:
- This builder for chaining.
-
clearEdition
The edition of the proto file, which is an opaque string.
optional string edition = 13;- Returns:
- This builder for chaining.
-
setEditionBytes
public DescriptorProtos.FileDescriptorProto.Builder setEditionBytes(com.google.protobuf.ByteString value) The edition of the proto file, which is an opaque string.
optional string edition = 13;- Parameters:
value- The bytes for edition to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final DescriptorProtos.FileDescriptorProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
mergeUnknownFields
public final DescriptorProtos.FileDescriptorProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-