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
,MessageLite.Builder
,MessageLiteOrBuilder
,java.lang.Cloneable
- Enclosing class:
- DescriptorProtos.FileDescriptorProto
public static final class DescriptorProtos.FileDescriptorProto.Builder extends GeneratedMessageLite.Builder<DescriptorProtos.FileDescriptorProto,DescriptorProtos.FileDescriptorProto.Builder> implements DescriptorProtos.FileDescriptorProtoOrBuilder
Describes a complete .proto file.
Protobuf typegoogle.protobuf.FileDescriptorProto
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite.Builder
AbstractMessageLite.Builder.LimitedInputStream
-
-
Field Summary
-
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescriptorProtos.FileDescriptorProto.Builder
addAllDependency(java.lang.Iterable<java.lang.String> values)
Names of files imported by this file.DescriptorProtos.FileDescriptorProto.Builder
addAllEnumType(java.lang.Iterable<? extends DescriptorProtos.EnumDescriptorProto> values)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
DescriptorProtos.FileDescriptorProto.Builder
addAllExtension(java.lang.Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
DescriptorProtos.FileDescriptorProto.Builder
addAllMessageType(java.lang.Iterable<? extends DescriptorProtos.DescriptorProto> values)
All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.Builder
addAllPublicDependency(java.lang.Iterable<? extends java.lang.Integer> values)
Indexes of the public imported files in the dependency list above.DescriptorProtos.FileDescriptorProto.Builder
addAllService(java.lang.Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
DescriptorProtos.FileDescriptorProto.Builder
addAllWeakDependency(java.lang.Iterable<? extends java.lang.Integer> values)
Indexes of the weak imported files in the dependency list.DescriptorProtos.FileDescriptorProto.Builder
addDependency(java.lang.String value)
Names of files imported by this file.DescriptorProtos.FileDescriptorProto.Builder
addDependencyBytes(ByteString value)
Names of files imported by this file.DescriptorProtos.FileDescriptorProto.Builder
addEnumType(int index, DescriptorProtos.EnumDescriptorProto value)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
DescriptorProtos.FileDescriptorProto.Builder
addEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
DescriptorProtos.FileDescriptorProto.Builder
addEnumType(DescriptorProtos.EnumDescriptorProto value)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
DescriptorProtos.FileDescriptorProto.Builder
addEnumType(DescriptorProtos.EnumDescriptorProto.Builder builderForValue)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
DescriptorProtos.FileDescriptorProto.Builder
addExtension(int index, DescriptorProtos.FieldDescriptorProto value)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
DescriptorProtos.FileDescriptorProto.Builder
addExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
DescriptorProtos.FileDescriptorProto.Builder
addExtension(DescriptorProtos.FieldDescriptorProto value)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
DescriptorProtos.FileDescriptorProto.Builder
addExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
DescriptorProtos.FileDescriptorProto.Builder
addMessageType(int index, DescriptorProtos.DescriptorProto value)
All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.Builder
addMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)
All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.Builder
addMessageType(DescriptorProtos.DescriptorProto value)
All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.Builder
addMessageType(DescriptorProtos.DescriptorProto.Builder builderForValue)
All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.Builder
addPublicDependency(int value)
Indexes of the public imported files in the dependency list above.DescriptorProtos.FileDescriptorProto.Builder
addService(int index, DescriptorProtos.ServiceDescriptorProto value)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
DescriptorProtos.FileDescriptorProto.Builder
addService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
DescriptorProtos.FileDescriptorProto.Builder
addService(DescriptorProtos.ServiceDescriptorProto value)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
DescriptorProtos.FileDescriptorProto.Builder
addService(DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
DescriptorProtos.FileDescriptorProto.Builder
addWeakDependency(int value)
Indexes of the weak imported files in the dependency list.DescriptorProtos.FileDescriptorProto.Builder
clearDependency()
Names of files imported by this file.DescriptorProtos.FileDescriptorProto.Builder
clearEdition()
The edition of the proto file.DescriptorProtos.FileDescriptorProto.Builder
clearEnumType()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
DescriptorProtos.FileDescriptorProto.Builder
clearExtension()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
DescriptorProtos.FileDescriptorProto.Builder
clearMessageType()
All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.Builder
clearName()
file name, relative to root of source treeDescriptorProtos.FileDescriptorProto.Builder
clearOptions()
optional .google.protobuf.FileOptions options = 8;
DescriptorProtos.FileDescriptorProto.Builder
clearPackage()
e.g.DescriptorProtos.FileDescriptorProto.Builder
clearPublicDependency()
Indexes of the public imported files in the dependency list above.DescriptorProtos.FileDescriptorProto.Builder
clearService()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
DescriptorProtos.FileDescriptorProto.Builder
clearSourceCodeInfo()
This field contains optional information about the original source code.DescriptorProtos.FileDescriptorProto.Builder
clearSyntax()
The syntax of the proto file.DescriptorProtos.FileDescriptorProto.Builder
clearWeakDependency()
Indexes of the weak imported files in the dependency list.java.lang.String
getDependency(int index)
Names of files imported by this file.ByteString
getDependencyBytes(int index)
Names of files imported by this file.int
getDependencyCount()
Names of files imported by this file.java.util.List<java.lang.String>
getDependencyList()
Names of files imported by this file.DescriptorProtos.Edition
getEdition()
The edition of the proto file.DescriptorProtos.EnumDescriptorProto
getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
int
getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
java.util.List<DescriptorProtos.EnumDescriptorProto>
getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
DescriptorProtos.FieldDescriptorProto
getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
int
getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
java.util.List<DescriptorProtos.FieldDescriptorProto>
getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
DescriptorProtos.DescriptorProto
getMessageType(int index)
All top-level definitions in this file.int
getMessageTypeCount()
All top-level definitions in this file.java.util.List<DescriptorProtos.DescriptorProto>
getMessageTypeList()
All top-level definitions in this file.java.lang.String
getName()
file name, relative to root of source treeByteString
getNameBytes()
file name, relative to root of source treeDescriptorProtos.FileOptions
getOptions()
optional .google.protobuf.FileOptions options = 8;
java.lang.String
getPackage()
e.g.ByteString
getPackageBytes()
e.g.int
getPublicDependency(int index)
Indexes of the public imported files in the dependency list above.int
getPublicDependencyCount()
Indexes of the public imported files in the dependency list above.java.util.List<java.lang.Integer>
getPublicDependencyList()
Indexes of the public imported files in the dependency list above.DescriptorProtos.ServiceDescriptorProto
getService(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
int
getServiceCount()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
java.util.List<DescriptorProtos.ServiceDescriptorProto>
getServiceList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
DescriptorProtos.SourceCodeInfo
getSourceCodeInfo()
This field contains optional information about the original source code.java.lang.String
getSyntax()
The syntax of the proto file.ByteString
getSyntaxBytes()
The syntax of the proto file.int
getWeakDependency(int index)
Indexes of the weak imported files in the dependency list.int
getWeakDependencyCount()
Indexes of the weak imported files in the dependency list.java.util.List<java.lang.Integer>
getWeakDependencyList()
Indexes of the weak imported files in the dependency list.boolean
hasEdition()
The edition of the proto file.boolean
hasName()
file name, relative to root of source treeboolean
hasOptions()
optional .google.protobuf.FileOptions options = 8;
boolean
hasPackage()
e.g.boolean
hasSourceCodeInfo()
This field contains optional information about the original source code.boolean
hasSyntax()
The syntax of the proto file.DescriptorProtos.FileDescriptorProto.Builder
mergeOptions(DescriptorProtos.FileOptions value)
optional .google.protobuf.FileOptions options = 8;
DescriptorProtos.FileDescriptorProto.Builder
mergeSourceCodeInfo(DescriptorProtos.SourceCodeInfo value)
This field contains optional information about the original source code.DescriptorProtos.FileDescriptorProto.Builder
removeEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
DescriptorProtos.FileDescriptorProto.Builder
removeExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
DescriptorProtos.FileDescriptorProto.Builder
removeMessageType(int index)
All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.Builder
removeService(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
DescriptorProtos.FileDescriptorProto.Builder
setDependency(int index, java.lang.String value)
Names of files imported by this file.DescriptorProtos.FileDescriptorProto.Builder
setEdition(DescriptorProtos.Edition value)
The edition of the proto file.DescriptorProtos.FileDescriptorProto.Builder
setEnumType(int index, DescriptorProtos.EnumDescriptorProto value)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
DescriptorProtos.FileDescriptorProto.Builder
setEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
DescriptorProtos.FileDescriptorProto.Builder
setExtension(int index, DescriptorProtos.FieldDescriptorProto value)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
DescriptorProtos.FileDescriptorProto.Builder
setExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
DescriptorProtos.FileDescriptorProto.Builder
setMessageType(int index, DescriptorProtos.DescriptorProto value)
All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.Builder
setMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)
All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.Builder
setName(java.lang.String value)
file name, relative to root of source treeDescriptorProtos.FileDescriptorProto.Builder
setNameBytes(ByteString value)
file name, relative to root of source treeDescriptorProtos.FileDescriptorProto.Builder
setOptions(DescriptorProtos.FileOptions value)
optional .google.protobuf.FileOptions options = 8;
DescriptorProtos.FileDescriptorProto.Builder
setOptions(DescriptorProtos.FileOptions.Builder builderForValue)
optional .google.protobuf.FileOptions options = 8;
DescriptorProtos.FileDescriptorProto.Builder
setPackage(java.lang.String value)
e.g.DescriptorProtos.FileDescriptorProto.Builder
setPackageBytes(ByteString value)
e.g.DescriptorProtos.FileDescriptorProto.Builder
setPublicDependency(int index, int value)
Indexes of the public imported files in the dependency list above.DescriptorProtos.FileDescriptorProto.Builder
setService(int index, DescriptorProtos.ServiceDescriptorProto value)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
DescriptorProtos.FileDescriptorProto.Builder
setService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
DescriptorProtos.FileDescriptorProto.Builder
setSourceCodeInfo(DescriptorProtos.SourceCodeInfo value)
This field contains optional information about the original source code.DescriptorProtos.FileDescriptorProto.Builder
setSourceCodeInfo(DescriptorProtos.SourceCodeInfo.Builder builderForValue)
This field contains optional information about the original source code.DescriptorProtos.FileDescriptorProto.Builder
setSyntax(java.lang.String value)
The syntax of the proto file.DescriptorProtos.FileDescriptorProto.Builder
setSyntaxBytes(ByteString value)
The syntax of the proto file.DescriptorProtos.FileDescriptorProto.Builder
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, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Method Detail
-
hasName
public boolean hasName()
file name, relative to root of source tree
optional string name = 1;
- Specified by:
hasName
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
file name, relative to root of source tree
optional string name = 1;
- Specified by:
getName
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
file name, relative to root of source tree
optional string name = 1;
- Specified by:
getNameBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The bytes for name.
-
setName
public DescriptorProtos.FileDescriptorProto.Builder setName(java.lang.String value)
file name, relative to root of source tree
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public DescriptorProtos.FileDescriptorProto.Builder clearName()
file name, relative to root of source tree
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public DescriptorProtos.FileDescriptorProto.Builder setNameBytes(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:
hasPackage
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the package field is set.
-
getPackage
public java.lang.String getPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Specified by:
getPackage
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The package.
-
getPackageBytes
public ByteString getPackageBytes()
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Specified by:
getPackageBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The bytes for package.
-
setPackage
public DescriptorProtos.FileDescriptorProto.Builder setPackage(java.lang.String value)
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Parameters:
value
- The package to set.- Returns:
- This builder for chaining.
-
clearPackage
public DescriptorProtos.FileDescriptorProto.Builder clearPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Returns:
- This builder for chaining.
-
setPackageBytes
public DescriptorProtos.FileDescriptorProto.Builder setPackageBytes(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 java.util.List<java.lang.String> getDependencyList()
Names of files imported by this file.
repeated string dependency = 3;
- Specified by:
getDependencyList
in 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:
getDependencyCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The count of dependency.
-
getDependency
public java.lang.String getDependency(int index)
Names of files imported by this file.
repeated string dependency = 3;
- Specified by:
getDependency
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The dependency at the given index.
-
getDependencyBytes
public ByteString getDependencyBytes(int index)
Names of files imported by this file.
repeated string dependency = 3;
- Specified by:
getDependencyBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the dependency at the given index.
-
setDependency
public DescriptorProtos.FileDescriptorProto.Builder setDependency(int index, java.lang.String value)
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
public DescriptorProtos.FileDescriptorProto.Builder addDependency(java.lang.String value)
Names of files imported by this file.
repeated string dependency = 3;
- Parameters:
value
- The dependency to add.- Returns:
- This builder for chaining.
-
addAllDependency
public DescriptorProtos.FileDescriptorProto.Builder addAllDependency(java.lang.Iterable<java.lang.String> values)
Names of files imported by this file.
repeated string dependency = 3;
- Parameters:
values
- The dependency to add.- Returns:
- This builder for chaining.
-
clearDependency
public DescriptorProtos.FileDescriptorProto.Builder clearDependency()
Names of files imported by this file.
repeated string dependency = 3;
- Returns:
- This builder for chaining.
-
addDependencyBytes
public DescriptorProtos.FileDescriptorProto.Builder addDependencyBytes(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
public java.util.List<java.lang.Integer> getPublicDependencyList()
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
- Specified by:
getPublicDependencyList
in 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:
getPublicDependencyCount
in 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:
getPublicDependency
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The publicDependency at the given index.
-
setPublicDependency
public DescriptorProtos.FileDescriptorProto.Builder setPublicDependency(int index, int value)
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
- Parameters:
value
- The publicDependency to set.- Returns:
- This builder for chaining.
-
addPublicDependency
public DescriptorProtos.FileDescriptorProto.Builder addPublicDependency(int value)
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(java.lang.Iterable<? extends java.lang.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
public DescriptorProtos.FileDescriptorProto.Builder clearPublicDependency()
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
- Returns:
- This builder for chaining.
-
getWeakDependencyList
public java.util.List<java.lang.Integer> 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:
getWeakDependencyList
in 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:
getWeakDependencyCount
in 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:
getWeakDependency
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The weakDependency at the given index.
-
setWeakDependency
public DescriptorProtos.FileDescriptorProto.Builder setWeakDependency(int index, int value)
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 set.- Returns:
- This builder for chaining.
-
addWeakDependency
public DescriptorProtos.FileDescriptorProto.Builder addWeakDependency(int value)
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(java.lang.Iterable<? extends java.lang.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
public DescriptorProtos.FileDescriptorProto.Builder 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
public java.util.List<DescriptorProtos.DescriptorProto> getMessageTypeList()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
- Specified by:
getMessageTypeList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeCount
public int getMessageTypeCount()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
- Specified by:
getMessageTypeCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageType
public DescriptorProtos.DescriptorProto getMessageType(int index)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
- Specified by:
getMessageType
in 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(java.lang.Iterable<? extends DescriptorProtos.DescriptorProto> values)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
clearMessageType
public DescriptorProtos.FileDescriptorProto.Builder clearMessageType()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
removeMessageType
public DescriptorProtos.FileDescriptorProto.Builder removeMessageType(int index)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getEnumTypeList
public java.util.List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- Specified by:
getEnumTypeList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeCount
public int getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- Specified by:
getEnumTypeCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumType
public DescriptorProtos.EnumDescriptorProto getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- Specified by:
getEnumType
in 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(java.lang.Iterable<? extends DescriptorProtos.EnumDescriptorProto> values)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
clearEnumType
public DescriptorProtos.FileDescriptorProto.Builder clearEnumType()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
removeEnumType
public DescriptorProtos.FileDescriptorProto.Builder removeEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getServiceList
public java.util.List<DescriptorProtos.ServiceDescriptorProto> getServiceList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
- Specified by:
getServiceList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceCount
public int getServiceCount()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
- Specified by:
getServiceCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getService
public DescriptorProtos.ServiceDescriptorProto getService(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
- Specified by:
getService
in 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(java.lang.Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
clearService
public DescriptorProtos.FileDescriptorProto.Builder clearService()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
removeService
public DescriptorProtos.FileDescriptorProto.Builder removeService(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getExtensionList
public java.util.List<DescriptorProtos.FieldDescriptorProto> getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
- Specified by:
getExtensionList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionCount
public int getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
- Specified by:
getExtensionCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtension
public DescriptorProtos.FieldDescriptorProto getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
- Specified by:
getExtension
in 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(java.lang.Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
clearExtension
public DescriptorProtos.FileDescriptorProto.Builder clearExtension()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
removeExtension
public DescriptorProtos.FileDescriptorProto.Builder removeExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.FileOptions options = 8;
- Specified by:
hasOptions
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.FileOptions getOptions()
optional .google.protobuf.FileOptions options = 8;
- Specified by:
getOptions
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The options.
-
setOptions
public DescriptorProtos.FileDescriptorProto.Builder setOptions(DescriptorProtos.FileOptions value)
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
public DescriptorProtos.FileDescriptorProto.Builder clearOptions()
optional .google.protobuf.FileOptions options = 8;
-
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:
hasSourceCodeInfo
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the sourceCodeInfo field is set.
-
getSourceCodeInfo
public DescriptorProtos.SourceCodeInfo 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:
getSourceCodeInfo
in 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
public DescriptorProtos.FileDescriptorProto.Builder 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;
-
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:
hasSyntax
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the syntax field is set.
-
getSyntax
public java.lang.String 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:
getSyntax
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The syntax.
-
getSyntaxBytes
public 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:
getSyntaxBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The bytes for syntax.
-
setSyntax
public DescriptorProtos.FileDescriptorProto.Builder setSyntax(java.lang.String 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 syntax to set.- Returns:
- This builder for chaining.
-
clearSyntax
public DescriptorProtos.FileDescriptorProto.Builder 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(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.
optional .google.protobuf.Edition edition = 14;
- Specified by:
hasEdition
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the edition field is set.
-
getEdition
public DescriptorProtos.Edition getEdition()
The edition of the proto file.
optional .google.protobuf.Edition edition = 14;
- Specified by:
getEdition
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The edition.
-
setEdition
public DescriptorProtos.FileDescriptorProto.Builder setEdition(DescriptorProtos.Edition value)
The edition of the proto file.
optional .google.protobuf.Edition edition = 14;
- Parameters:
value
- The enum numeric value on the wire for edition to set.- Returns:
- This builder for chaining.
-
clearEdition
public DescriptorProtos.FileDescriptorProto.Builder clearEdition()
The edition of the proto file.
optional .google.protobuf.Edition edition = 14;
- Returns:
- This builder for chaining.
-
-