Class ManifestProto.CompilationUnit.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
      • getDefaultInstanceForType

        public ManifestProto.CompilationUnit getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ManifestProto.CompilationUnit build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ManifestProto.CompilationUnit buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public ManifestProto.CompilationUnit.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                      int index,
                                                                      java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
      • addRepeatedField

        public ManifestProto.CompilationUnit.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                      java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
      • mergeFrom

        public ManifestProto.CompilationUnit.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ManifestProto.CompilationUnit.Builder>
        Throws:
        java.io.IOException
      • setPath

        public ManifestProto.CompilationUnit.Builder setPath​(java.lang.String value)
         The path to the compilation unit
         
        optional string path = 1;
        Parameters:
        value - The path to set.
        Returns:
        This builder for chaining.
      • setPathBytes

        public ManifestProto.CompilationUnit.Builder setPathBytes​(com.google.protobuf.ByteString value)
         The path to the compilation unit
         
        optional string path = 1;
        Parameters:
        value - The bytes for path to set.
        Returns:
        This builder for chaining.
      • setPkg

        public ManifestProto.CompilationUnit.Builder setPkg​(java.lang.String value)
         The package of the source file
         
        optional string pkg = 2;
        Parameters:
        value - The pkg to set.
        Returns:
        This builder for chaining.
      • setPkgBytes

        public ManifestProto.CompilationUnit.Builder setPkgBytes​(com.google.protobuf.ByteString value)
         The package of the source file
         
        optional string pkg = 2;
        Parameters:
        value - The bytes for pkg to set.
        Returns:
        This builder for chaining.
      • hasGeneratedByAnnotationProcessor

        public boolean hasGeneratedByAnnotationProcessor()
         Whether the source was generated by an annotation processor
         
        optional bool generated_by_annotation_processor = 3;
        Specified by:
        hasGeneratedByAnnotationProcessor in interface ManifestProto.CompilationUnitOrBuilder
        Returns:
        Whether the generatedByAnnotationProcessor field is set.
      • setGeneratedByAnnotationProcessor

        public ManifestProto.CompilationUnit.Builder setGeneratedByAnnotationProcessor​(boolean value)
         Whether the source was generated by an annotation processor
         
        optional bool generated_by_annotation_processor = 3;
        Parameters:
        value - The generatedByAnnotationProcessor to set.
        Returns:
        This builder for chaining.
      • clearGeneratedByAnnotationProcessor

        public ManifestProto.CompilationUnit.Builder clearGeneratedByAnnotationProcessor()
         Whether the source was generated by an annotation processor
         
        optional bool generated_by_annotation_processor = 3;
        Returns:
        This builder for chaining.
      • getTopLevelList

        public com.google.protobuf.ProtocolStringList getTopLevelList()
         The list of top-level types in the compilation unit
         
        repeated string top_level = 4;
        Specified by:
        getTopLevelList in interface ManifestProto.CompilationUnitOrBuilder
        Returns:
        A list containing the topLevel.
      • getTopLevel

        public java.lang.String getTopLevel​(int index)
         The list of top-level types in the compilation unit
         
        repeated string top_level = 4;
        Specified by:
        getTopLevel in interface ManifestProto.CompilationUnitOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The topLevel at the given index.
      • getTopLevelBytes

        public com.google.protobuf.ByteString getTopLevelBytes​(int index)
         The list of top-level types in the compilation unit
         
        repeated string top_level = 4;
        Specified by:
        getTopLevelBytes in interface ManifestProto.CompilationUnitOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the topLevel at the given index.
      • setTopLevel

        public ManifestProto.CompilationUnit.Builder setTopLevel​(int index,
                                                                 java.lang.String value)
         The list of top-level types in the compilation unit
         
        repeated string top_level = 4;
        Parameters:
        index - The index to set the value at.
        value - The topLevel to set.
        Returns:
        This builder for chaining.
      • addTopLevel

        public ManifestProto.CompilationUnit.Builder addTopLevel​(java.lang.String value)
         The list of top-level types in the compilation unit
         
        repeated string top_level = 4;
        Parameters:
        value - The topLevel to add.
        Returns:
        This builder for chaining.
      • addAllTopLevel

        public ManifestProto.CompilationUnit.Builder addAllTopLevel​(java.lang.Iterable<java.lang.String> values)
         The list of top-level types in the compilation unit
         
        repeated string top_level = 4;
        Parameters:
        values - The topLevel to add.
        Returns:
        This builder for chaining.
      • clearTopLevel

        public ManifestProto.CompilationUnit.Builder clearTopLevel()
         The list of top-level types in the compilation unit
         
        repeated string top_level = 4;
        Returns:
        This builder for chaining.
      • addTopLevelBytes

        public ManifestProto.CompilationUnit.Builder addTopLevelBytes​(com.google.protobuf.ByteString value)
         The list of top-level types in the compilation unit
         
        repeated string top_level = 4;
        Parameters:
        value - The bytes of the topLevel to add.
        Returns:
        This builder for chaining.