Interface DescriptorProtos.FileDescriptorProtoOrBuilder

    • Method Detail

      • hasName

        boolean hasName()
         file name, relative to root of source tree
         
        optional string name = 1;
        Returns:
        Whether the name field is set.
      • getName

        java.lang.String getName()
         file name, relative to root of source tree
         
        optional string name = 1;
        Returns:
        The name.
      • getNameBytes

        ByteString getNameBytes()
         file name, relative to root of source tree
         
        optional string name = 1;
        Returns:
        The bytes for name.
      • hasPackage

        boolean hasPackage()
         e.g. "foo", "foo.bar", etc.
         
        optional string package = 2;
        Returns:
        Whether the package field is set.
      • getPackage

        java.lang.String getPackage()
         e.g. "foo", "foo.bar", etc.
         
        optional string package = 2;
        Returns:
        The package.
      • getPackageBytes

        ByteString getPackageBytes()
         e.g. "foo", "foo.bar", etc.
         
        optional string package = 2;
        Returns:
        The bytes for package.
      • getDependencyList

        java.util.List<java.lang.String> getDependencyList()
         Names of files imported by this file.
         
        repeated string dependency = 3;
        Returns:
        A list containing the dependency.
      • getDependencyCount

        int getDependencyCount()
         Names of files imported by this file.
         
        repeated string dependency = 3;
        Returns:
        The count of dependency.
      • getDependency

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

        ByteString getDependencyBytes​(int index)
         Names of files imported by this file.
         
        repeated string dependency = 3;
        Parameters:
        index - The index of the element to return.
        Returns:
        The dependency at the given index.
      • getPublicDependencyList

        java.util.List<java.lang.Integer> getPublicDependencyList()
         Indexes of the public imported files in the dependency list above.
         
        repeated int32 public_dependency = 10;
        Returns:
        A list containing the publicDependency.
      • getPublicDependencyCount

        int getPublicDependencyCount()
         Indexes of the public imported files in the dependency list above.
         
        repeated int32 public_dependency = 10;
        Returns:
        The count of publicDependency.
      • getPublicDependency

        int getPublicDependency​(int index)
         Indexes of the public imported files in the dependency list above.
         
        repeated int32 public_dependency = 10;
        Parameters:
        index - The index of the element to return.
        Returns:
        The publicDependency at the given index.
      • getWeakDependencyList

        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;
        Returns:
        A list containing the weakDependency.
      • getWeakDependencyCount

        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;
        Returns:
        The count of weakDependency.
      • getWeakDependency

        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;
        Parameters:
        index - The index of the element to return.
        Returns:
        The weakDependency at the given index.
      • getOptionDependencyList

        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;
        Returns:
        A list containing the optionDependency.
      • getOptionDependencyCount

        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;
        Returns:
        The count of optionDependency.
      • getOptionDependency

        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;
        Parameters:
        index - The index of the element to return.
        Returns:
        The optionDependency at the given index.
      • getOptionDependencyBytes

        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;
        Parameters:
        index - The index of the element to return.
        Returns:
        The optionDependency at the given index.
      • getMessageTypeList

        java.util.List<DescriptorProtos.DescriptorProto> getMessageTypeList()
         All top-level definitions in this file.
         
        repeated .google.protobuf.DescriptorProto message_type = 4;
      • getMessageType

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

        int getMessageTypeCount()
         All top-level definitions in this file.
         
        repeated .google.protobuf.DescriptorProto message_type = 4;
      • getEnumTypeCount

        int getEnumTypeCount()
        repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
      • getServiceCount

        int getServiceCount()
        repeated .google.protobuf.ServiceDescriptorProto service = 6;
      • getExtensionCount

        int getExtensionCount()
        repeated .google.protobuf.FieldDescriptorProto extension = 7;
      • hasOptions

        boolean hasOptions()
        optional .google.protobuf.FileOptions options = 8;
        Returns:
        Whether the options field is set.
      • hasSourceCodeInfo

        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;
        Returns:
        Whether the sourceCodeInfo field is set.
      • getSourceCodeInfo

        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;
        Returns:
        The sourceCodeInfo.
      • hasSyntax

        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;
        Returns:
        Whether the syntax field is set.
      • getSyntax

        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;
        Returns:
        The syntax.
      • getSyntaxBytes

        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;
        Returns:
        The bytes for syntax.
      • hasEdition

        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;
        Returns:
        Whether the edition field is set.
      • getEdition

        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;
        Returns:
        The edition.