Class DescriptorProtos.FileDescriptorProto

    • Constructor Detail

      • FileDescriptorProto

        private FileDescriptorProto()
    • Method Detail

      • setName

        private void setName​(java.lang.String value)
         file name, relative to root of source tree
         
        optional string name = 1;
        Parameters:
        value - The name to set.
      • clearName

        private void clearName()
         file name, relative to root of source tree
         
        optional string name = 1;
      • setNameBytes

        private void setNameBytes​(ByteString value)
         file name, relative to root of source tree
         
        optional string name = 1;
        Parameters:
        value - The bytes for name to set.
      • setPackage

        private void setPackage​(java.lang.String value)
         e.g. "foo", "foo.bar", etc.
         
        optional string package = 2;
        Parameters:
        value - The package to set.
      • clearPackage

        private void clearPackage()
         e.g. "foo", "foo.bar", etc.
         
        optional string package = 2;
      • setPackageBytes

        private void setPackageBytes​(ByteString value)
         e.g. "foo", "foo.bar", etc.
         
        optional string package = 2;
        Parameters:
        value - The bytes for package to set.
      • getDependency

        public java.lang.String getDependency​(int index)
         Names of files imported by this file.
         
        repeated string dependency = 3;
        Specified by:
        getDependency in interface DescriptorProtos.FileDescriptorProtoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The dependency at the given index.
      • ensureDependencyIsMutable

        private void ensureDependencyIsMutable()
      • setDependency

        private void 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.
      • addDependency

        private void addDependency​(java.lang.String value)
         Names of files imported by this file.
         
        repeated string dependency = 3;
        Parameters:
        value - The dependency to add.
      • addAllDependency

        private void 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.
      • clearDependency

        private void clearDependency()
         Names of files imported by this file.
         
        repeated string dependency = 3;
      • addDependencyBytes

        private void addDependencyBytes​(ByteString value)
         Names of files imported by this file.
         
        repeated string dependency = 3;
        Parameters:
        value - The bytes of the dependency to add.
      • 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 interface DescriptorProtos.FileDescriptorProtoOrBuilder
        Returns:
        A list containing the 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 interface DescriptorProtos.FileDescriptorProtoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The publicDependency at the given index.
      • ensurePublicDependencyIsMutable

        private void ensurePublicDependencyIsMutable()
      • setPublicDependency

        private void setPublicDependency​(int index,
                                         int value)
         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.
      • addPublicDependency

        private void 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.
      • addAllPublicDependency

        private void 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.
      • clearPublicDependency

        private void clearPublicDependency()
         Indexes of the public imported files in the dependency list above.
         
        repeated int32 public_dependency = 10;
      • 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 interface DescriptorProtos.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 interface DescriptorProtos.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 interface DescriptorProtos.FileDescriptorProtoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The weakDependency at the given index.
      • ensureWeakDependencyIsMutable

        private void ensureWeakDependencyIsMutable()
      • setWeakDependency

        private void 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:
        index - The index to set the value at.
        value - The weakDependency to set.
      • addWeakDependency

        private void 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.
      • addAllWeakDependency

        private void 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.
      • clearWeakDependency

        private void clearWeakDependency()
         Indexes of the weak imported files in the dependency list.
         For Google-internal migration only. Do not use.
         
        repeated int32 weak_dependency = 11;
      • getOptionDependencyList

        public java.util.List<java.lang.String> getOptionDependencyList()
         Names of files imported by this file purely for the purpose of providing
         option extensions. These are excluded from the dependency list above.
         
        repeated string option_dependency = 15;
        Specified by:
        getOptionDependencyList in interface DescriptorProtos.FileDescriptorProtoOrBuilder
        Returns:
        A list containing the optionDependency.
      • getOptionDependencyCount

        public int getOptionDependencyCount()
         Names of files imported by this file purely for the purpose of providing
         option extensions. These are excluded from the dependency list above.
         
        repeated string option_dependency = 15;
        Specified by:
        getOptionDependencyCount in interface DescriptorProtos.FileDescriptorProtoOrBuilder
        Returns:
        The count of optionDependency.
      • getOptionDependency

        public java.lang.String getOptionDependency​(int index)
         Names of files imported by this file purely for the purpose of providing
         option extensions. These are excluded from the dependency list above.
         
        repeated string option_dependency = 15;
        Specified by:
        getOptionDependency in interface DescriptorProtos.FileDescriptorProtoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The optionDependency at the given index.
      • getOptionDependencyBytes

        public ByteString getOptionDependencyBytes​(int index)
         Names of files imported by this file purely for the purpose of providing
         option extensions. These are excluded from the dependency list above.
         
        repeated string option_dependency = 15;
        Specified by:
        getOptionDependencyBytes in interface DescriptorProtos.FileDescriptorProtoOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the optionDependency at the given index.
      • ensureOptionDependencyIsMutable

        private void ensureOptionDependencyIsMutable()
      • setOptionDependency

        private void setOptionDependency​(int index,
                                         java.lang.String value)
         Names of files imported by this file purely for the purpose of providing
         option extensions. These are excluded from the dependency list above.
         
        repeated string option_dependency = 15;
        Parameters:
        index - The index to set the value at.
        value - The optionDependency to set.
      • addOptionDependency

        private void addOptionDependency​(java.lang.String value)
         Names of files imported by this file purely for the purpose of providing
         option extensions. These are excluded from the dependency list above.
         
        repeated string option_dependency = 15;
        Parameters:
        value - The optionDependency to add.
      • addAllOptionDependency

        private void addAllOptionDependency​(java.lang.Iterable<java.lang.String> values)
         Names of files imported by this file purely for the purpose of providing
         option extensions. These are excluded from the dependency list above.
         
        repeated string option_dependency = 15;
        Parameters:
        values - The optionDependency to add.
      • clearOptionDependency

        private void clearOptionDependency()
         Names of files imported by this file purely for the purpose of providing
         option extensions. These are excluded from the dependency list above.
         
        repeated string option_dependency = 15;
      • addOptionDependencyBytes

        private void addOptionDependencyBytes​(ByteString value)
         Names of files imported by this file purely for the purpose of providing
         option extensions. These are excluded from the dependency list above.
         
        repeated string option_dependency = 15;
        Parameters:
        value - The bytes of the optionDependency to add.
      • getMessageTypeOrBuilderList

        public java.util.List<? extends DescriptorProtos.DescriptorProtoOrBuilder> getMessageTypeOrBuilderList()
         All top-level definitions in this file.
         
        repeated .google.protobuf.DescriptorProto message_type = 4;
      • getMessageTypeOrBuilder

        public DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder​(int index)
         All top-level definitions in this file.
         
        repeated .google.protobuf.DescriptorProto message_type = 4;
      • ensureMessageTypeIsMutable

        private void ensureMessageTypeIsMutable()
      • setMessageType

        private void setMessageType​(int index,
                                    DescriptorProtos.DescriptorProto value)
         All top-level definitions in this file.
         
        repeated .google.protobuf.DescriptorProto message_type = 4;
      • addMessageType

        private void addMessageType​(DescriptorProtos.DescriptorProto value)
         All top-level definitions in this file.
         
        repeated .google.protobuf.DescriptorProto message_type = 4;
      • addMessageType

        private void addMessageType​(int index,
                                    DescriptorProtos.DescriptorProto value)
         All top-level definitions in this file.
         
        repeated .google.protobuf.DescriptorProto message_type = 4;
      • addAllMessageType

        private void addAllMessageType​(java.lang.Iterable<? extends DescriptorProtos.DescriptorProto> values)
         All top-level definitions in this file.
         
        repeated .google.protobuf.DescriptorProto message_type = 4;
      • clearMessageType

        private void clearMessageType()
         All top-level definitions in this file.
         
        repeated .google.protobuf.DescriptorProto message_type = 4;
      • removeMessageType

        private void removeMessageType​(int index)
         All top-level definitions in this file.
         
        repeated .google.protobuf.DescriptorProto message_type = 4;
      • ensureEnumTypeIsMutable

        private void ensureEnumTypeIsMutable()
      • addAllEnumType

        private void addAllEnumType​(java.lang.Iterable<? extends DescriptorProtos.EnumDescriptorProto> values)
        repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
      • clearEnumType

        private void clearEnumType()
        repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
      • removeEnumType

        private void removeEnumType​(int index)
        repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
      • ensureServiceIsMutable

        private void ensureServiceIsMutable()
      • clearService

        private void clearService()
        repeated .google.protobuf.ServiceDescriptorProto service = 6;
      • removeService

        private void removeService​(int index)
        repeated .google.protobuf.ServiceDescriptorProto service = 6;
      • ensureExtensionIsMutable

        private void ensureExtensionIsMutable()
      • addAllExtension

        private void addAllExtension​(java.lang.Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)
        repeated .google.protobuf.FieldDescriptorProto extension = 7;
      • clearExtension

        private void clearExtension()
        repeated .google.protobuf.FieldDescriptorProto extension = 7;
      • removeExtension

        private void removeExtension​(int index)
        repeated .google.protobuf.FieldDescriptorProto extension = 7;
      • clearOptions

        private void 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 interface DescriptorProtos.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 interface DescriptorProtos.FileDescriptorProtoOrBuilder
        Returns:
        The sourceCodeInfo.
      • setSourceCodeInfo

        private void 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;
      • mergeSourceCodeInfo

        private void 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

        private void 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".
         WARNING: This field should only be used by protobuf plugins or special
         cases like the proto compiler. Other uses are discouraged and
         developers should rely on the protoreflect APIs for their client language.
         
        optional string syntax = 12;
        Specified by:
        hasSyntax in interface DescriptorProtos.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".
         WARNING: This field should only be used by protobuf plugins or special
         cases like the proto compiler. Other uses are discouraged and
         developers should rely on the protoreflect APIs for their client language.
         
        optional string syntax = 12;
        Specified by:
        getSyntax in interface DescriptorProtos.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".
         WARNING: This field should only be used by protobuf plugins or special
         cases like the proto compiler. Other uses are discouraged and
         developers should rely on the protoreflect APIs for their client language.
         
        optional string syntax = 12;
        Specified by:
        getSyntaxBytes in interface DescriptorProtos.FileDescriptorProtoOrBuilder
        Returns:
        The bytes for syntax.
      • setSyntax

        private void 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".
         WARNING: This field should only be used by protobuf plugins or special
         cases like the proto compiler. Other uses are discouraged and
         developers should rely on the protoreflect APIs for their client language.
         
        optional string syntax = 12;
        Parameters:
        value - The syntax to set.
      • clearSyntax

        private void clearSyntax()
         The syntax of the proto file.
         The supported values are "proto2", "proto3", and "editions".
        
         If `edition` is present, this value must be "editions".
         WARNING: This field should only be used by protobuf plugins or special
         cases like the proto compiler. Other uses are discouraged and
         developers should rely on the protoreflect APIs for their client language.
         
        optional string syntax = 12;
      • setSyntaxBytes

        private void 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".
         WARNING: This field should only be used by protobuf plugins or special
         cases like the proto compiler. Other uses are discouraged and
         developers should rely on the protoreflect APIs for their client language.
         
        optional string syntax = 12;
        Parameters:
        value - The bytes for syntax to set.
      • hasEdition

        public boolean hasEdition()
         The edition of the proto file.
         WARNING: This field should only be used by protobuf plugins or special
         cases like the proto compiler. Other uses are discouraged and
         developers should rely on the protoreflect APIs for their client language.
         
        optional .google.protobuf.Edition edition = 14;
        Specified by:
        hasEdition in interface DescriptorProtos.FileDescriptorProtoOrBuilder
        Returns:
        Whether the edition field is set.
      • getEdition

        public DescriptorProtos.Edition getEdition()
         The edition of the proto file.
         WARNING: This field should only be used by protobuf plugins or special
         cases like the proto compiler. Other uses are discouraged and
         developers should rely on the protoreflect APIs for their client language.
         
        optional .google.protobuf.Edition edition = 14;
        Specified by:
        getEdition in interface DescriptorProtos.FileDescriptorProtoOrBuilder
        Returns:
        The edition.
      • setEdition

        private void setEdition​(DescriptorProtos.Edition value)
         The edition of the proto file.
         WARNING: This field should only be used by protobuf plugins or special
         cases like the proto compiler. Other uses are discouraged and
         developers should rely on the protoreflect APIs for their client language.
         
        optional .google.protobuf.Edition edition = 14;
        Parameters:
        value - The edition to set.
      • clearEdition

        private void clearEdition()
         The edition of the proto file.
         WARNING: This field should only be used by protobuf plugins or special
         cases like the proto compiler. Other uses are discouraged and
         developers should rely on the protoreflect APIs for their client language.
         
        optional .google.protobuf.Edition edition = 14;
      • dynamicMethod

        protected final java.lang.Object dynamicMethod​(GeneratedMessageLite.MethodToInvoke method,
                                                       java.lang.Object arg0,
                                                       java.lang.Object arg1)
        Description copied from class: GeneratedMessageLite
        A method that implements different types of operations described in GeneratedMessageLite.MethodToInvoke. These different kinds of operations are required to implement message-level operations for builders in the runtime. This method bundles those operations to reduce the generated methods count.
        • NEW_INSTANCE returns a new instance of the protocol buffer that has not yet been made immutable. See MAKE_IMMUTABLE.
        • IS_INITIALIZED returns null for false and the default instance for true. It doesn't use or modify any memoized value.
        • GET_MEMOIZED_IS_INITIALIZED returns the memoized isInitialized byte value.
        • SET_MEMOIZED_IS_INITIALIZED sets the memoized isInitialized byte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.
        • NEW_BUILDER returns a BuilderType instance.
        This method, plus the implementation of the Builder, enables the Builder class to be proguarded away entirely on Android.

        For use by generated code only.

        Specified by:
        dynamicMethod in class GeneratedMessageLite<DescriptorProtos.FileDescriptorProto,​DescriptorProtos.FileDescriptorProto.Builder>