Package com.google.protobuf
Class DescriptorProtos.FileDescriptorProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<DescriptorProtos.FileDescriptorProto,DescriptorProtos.FileDescriptorProto.Builder>
com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder
- All Implemented Interfaces:
DescriptorProtos.FileDescriptorProtoOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable
- Enclosing class:
- DescriptorProtos.FileDescriptorProto
public static final class DescriptorProtos.FileDescriptorProto.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<DescriptorProtos.FileDescriptorProto,DescriptorProtos.FileDescriptorProto.Builder>
implements DescriptorProtos.FileDescriptorProtoOrBuilder
Describes a complete .proto file.Protobuf type
google.protobuf.FileDescriptorProto-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
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 [json_name = "enumType"];addAllExtension(Iterable<? extends DescriptorProtos.FieldDescriptorProto> values) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];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 [json_name = "service"];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 [json_name = "enumType"];addEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];addEnumType(DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];addExtension(int index, DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];addExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];addExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];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.addPublicDependency(int value) Indexes of the public imported files in the dependency list above.addService(int index, DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];addService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];addService(DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];addWeakDependency(int value) Indexes of the weak imported files in the dependency list.Names of files imported by this file.The edition of the proto file.repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];All top-level definitions in this file.file name, relative to root of source treeoptional .google.protobuf.FileOptions options = 8 [json_name = "options"];e.g.Indexes of the public imported files in the dependency list above.repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];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.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.Names of files imported by this file.The edition of the proto file.getEnumType(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];intrepeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];getExtension(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];intrepeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];getMessageType(int index) All top-level definitions in this file.intAll top-level definitions in this file.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 [json_name = "options"];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 [json_name = "service"];intrepeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];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.booleanhasName()file name, relative to root of source treebooleanoptional .google.protobuf.FileOptions options = 8 [json_name = "options"];booleane.g.booleanThis field contains optional information about the original source code.booleanThe syntax of the proto file.optional .google.protobuf.FileOptions options = 8 [json_name = "options"];This field contains optional information about the original source code.removeEnumType(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];removeExtension(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];removeMessageType(int index) All top-level definitions in this file.removeService(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];setDependency(int index, String value) Names of files imported by this file.The edition of the proto file.setEnumType(int index, DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];setEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];setExtension(int index, DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];setExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];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 [json_name = "options"];setOptions(DescriptorProtos.FileOptions.Builder builderForValue) optional .google.protobuf.FileOptions options = 8 [json_name = "options"];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.setService(int index, DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];setService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];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.setWeakDependency(int index, int value) Indexes of the weak imported files in the dependency list.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasName
public boolean hasName()file name, relative to root of source tree
optional string name = 1 [json_name = "name"];- 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 [json_name = "name"];- 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 [json_name = "name"];- Specified by:
getNameBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The bytes for name.
-
setName
file name, relative to root of source tree
optional string name = 1 [json_name = "name"];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
file name, relative to root of source tree
optional string name = 1 [json_name = "name"];- 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 [json_name = "name"];- 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 [json_name = "package"];- Specified by:
hasPackagein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the package field is set.
-
getPackage
e.g. "foo", "foo.bar", etc.
optional string package = 2 [json_name = "package"];- 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 [json_name = "package"];- Specified by:
getPackageBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The bytes for package.
-
setPackage
e.g. "foo", "foo.bar", etc.
optional string package = 2 [json_name = "package"];- Parameters:
value- The package to set.- Returns:
- This builder for chaining.
-
clearPackage
e.g. "foo", "foo.bar", etc.
optional string package = 2 [json_name = "package"];- 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 [json_name = "package"];- Parameters:
value- The bytes for package to set.- Returns:
- This builder for chaining.
-
getDependencyList
Names of files imported by this file.
repeated string dependency = 3 [json_name = "dependency"];- 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 [json_name = "dependency"];- Specified by:
getDependencyCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The count of dependency.
-
getDependency
Names of files imported by this file.
repeated string dependency = 3 [json_name = "dependency"];- 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 [json_name = "dependency"];- 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 [json_name = "dependency"];- 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 [json_name = "dependency"];- Parameters:
value- The dependency to add.- Returns:
- This builder for chaining.
-
addAllDependency
Names of files imported by this file.
repeated string dependency = 3 [json_name = "dependency"];- Parameters:
values- The dependency to add.- Returns:
- This builder for chaining.
-
clearDependency
Names of files imported by this file.
repeated string dependency = 3 [json_name = "dependency"];- 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 [json_name = "dependency"];- 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 [json_name = "publicDependency"];- 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 [json_name = "publicDependency"];- 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 [json_name = "publicDependency"];- 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 [json_name = "publicDependency"];- Parameters:
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 [json_name = "publicDependency"];- 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 [json_name = "publicDependency"];- 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 [json_name = "publicDependency"];- 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 [json_name = "weakDependency"];- 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 [json_name = "weakDependency"];- 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 [json_name = "weakDependency"];- 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 [json_name = "weakDependency"];- Parameters:
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 [json_name = "weakDependency"];- 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 [json_name = "weakDependency"];- 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 [json_name = "weakDependency"];- Returns:
- This builder for chaining.
-
getMessageTypeList
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"];- Specified by:
getMessageTypeListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeCount
public int getMessageTypeCount()All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"];- Specified by:
getMessageTypeCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageType
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"];- 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 [json_name = "messageType"]; -
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 [json_name = "messageType"]; -
addMessageType
public DescriptorProtos.FileDescriptorProto.Builder addMessageType(DescriptorProtos.DescriptorProto value) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"]; -
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 [json_name = "messageType"]; -
addMessageType
public DescriptorProtos.FileDescriptorProto.Builder addMessageType(DescriptorProtos.DescriptorProto.Builder builderForValue) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"]; -
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 [json_name = "messageType"]; -
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 [json_name = "messageType"]; -
clearMessageType
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"]; -
removeMessageType
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"]; -
getEnumTypeList
repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];- Specified by:
getEnumTypeListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeCount
public int getEnumTypeCount()repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];- Specified by:
getEnumTypeCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumType
repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];- Specified by:
getEnumTypein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
setEnumType
public DescriptorProtos.FileDescriptorProto.Builder setEnumType(int index, DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"]; -
setEnumType
public DescriptorProtos.FileDescriptorProto.Builder setEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"]; -
addEnumType
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"]; -
addEnumType
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(int index, DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"]; -
addEnumType
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"]; -
addEnumType
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"]; -
addAllEnumType
public DescriptorProtos.FileDescriptorProto.Builder addAllEnumType(Iterable<? extends DescriptorProtos.EnumDescriptorProto> values) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"]; -
clearEnumType
repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"]; -
removeEnumType
repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"]; -
getServiceList
repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];- Specified by:
getServiceListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceCount
public int getServiceCount()repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];- Specified by:
getServiceCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getService
repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];- Specified by:
getServicein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
setService
public DescriptorProtos.FileDescriptorProto.Builder setService(int index, DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"]; -
setService
public DescriptorProtos.FileDescriptorProto.Builder setService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"]; -
addService
public DescriptorProtos.FileDescriptorProto.Builder addService(DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"]; -
addService
public DescriptorProtos.FileDescriptorProto.Builder addService(int index, DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"]; -
addService
public DescriptorProtos.FileDescriptorProto.Builder addService(DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"]; -
addService
public DescriptorProtos.FileDescriptorProto.Builder addService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"]; -
addAllService
public DescriptorProtos.FileDescriptorProto.Builder addAllService(Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"]; -
clearService
repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"]; -
removeService
repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"]; -
getExtensionList
repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];- Specified by:
getExtensionListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionCount
public int getExtensionCount()repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];- Specified by:
getExtensionCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtension
repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];- Specified by:
getExtensionin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
setExtension
public DescriptorProtos.FileDescriptorProto.Builder setExtension(int index, DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"]; -
setExtension
public DescriptorProtos.FileDescriptorProto.Builder setExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"]; -
addExtension
public DescriptorProtos.FileDescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"]; -
addExtension
public DescriptorProtos.FileDescriptorProto.Builder addExtension(int index, DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"]; -
addExtension
public DescriptorProtos.FileDescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"]; -
addExtension
public DescriptorProtos.FileDescriptorProto.Builder addExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"]; -
addAllExtension
public DescriptorProtos.FileDescriptorProto.Builder addAllExtension(Iterable<? extends DescriptorProtos.FieldDescriptorProto> values) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"]; -
clearExtension
repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"]; -
removeExtension
repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"]; -
hasOptions
public boolean hasOptions()optional .google.protobuf.FileOptions options = 8 [json_name = "options"];- Specified by:
hasOptionsin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
optional .google.protobuf.FileOptions options = 8 [json_name = "options"];- Specified by:
getOptionsin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The options.
-
setOptions
optional .google.protobuf.FileOptions options = 8 [json_name = "options"]; -
setOptions
public DescriptorProtos.FileDescriptorProto.Builder setOptions(DescriptorProtos.FileOptions.Builder builderForValue) optional .google.protobuf.FileOptions options = 8 [json_name = "options"]; -
mergeOptions
public DescriptorProtos.FileDescriptorProto.Builder mergeOptions(DescriptorProtos.FileOptions value) optional .google.protobuf.FileOptions options = 8 [json_name = "options"]; -
clearOptions
optional .google.protobuf.FileOptions options = 8 [json_name = "options"]; -
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 [json_name = "sourceCodeInfo"];- 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 [json_name = "sourceCodeInfo"];- 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 [json_name = "sourceCodeInfo"]; -
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 [json_name = "sourceCodeInfo"]; -
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 [json_name = "sourceCodeInfo"]; -
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 [json_name = "sourceCodeInfo"]; -
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 [json_name = "syntax"];- 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 [json_name = "syntax"];- 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 [json_name = "syntax"];- 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 [json_name = "syntax"];- 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 [json_name = "syntax"];- 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 [json_name = "syntax"];- Parameters:
value- The bytes for syntax to set.- Returns:
- This builder for chaining.
-
hasEdition
public boolean hasEdition()The edition of the proto file.
optional .google.protobuf.Edition edition = 14 [json_name = "edition"];- Specified by:
hasEditionin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the edition field is set.
-
getEdition
The edition of the proto file.
optional .google.protobuf.Edition edition = 14 [json_name = "edition"];- Specified by:
getEditionin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The edition.
-
setEdition
The edition of the proto file.
optional .google.protobuf.Edition edition = 14 [json_name = "edition"];- Parameters:
value- The enum numeric value on the wire for edition to set.- Returns:
- This builder for chaining.
-
clearEdition
The edition of the proto file.
optional .google.protobuf.Edition edition = 14 [json_name = "edition"];- Returns:
- This builder for chaining.
-