Package com.google.turbine.proto
Class ManifestProto.CompilationUnit.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
-
- com.google.turbine.proto.ManifestProto.CompilationUnit.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ManifestProto.CompilationUnitOrBuilder,java.lang.Cloneable
- Enclosing class:
- ManifestProto.CompilationUnit
public static final class ManifestProto.CompilationUnit.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder> implements ManifestProto.CompilationUnitOrBuilder
Information about a single compilation unit (.java file)
Protobuf typeCompilationUnit
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ManifestProto.CompilationUnit.BuilderaddAllTopLevel(java.lang.Iterable<java.lang.String> values)The list of top-level types in the compilation unitManifestProto.CompilationUnit.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ManifestProto.CompilationUnit.BuilderaddTopLevel(java.lang.String value)The list of top-level types in the compilation unitManifestProto.CompilationUnit.BuilderaddTopLevelBytes(com.google.protobuf.ByteString value)The list of top-level types in the compilation unitManifestProto.CompilationUnitbuild()ManifestProto.CompilationUnitbuildPartial()ManifestProto.CompilationUnit.Builderclear()ManifestProto.CompilationUnit.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ManifestProto.CompilationUnit.BuilderclearGeneratedByAnnotationProcessor()Whether the source was generated by an annotation processorManifestProto.CompilationUnit.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ManifestProto.CompilationUnit.BuilderclearPath()The path to the compilation unitManifestProto.CompilationUnit.BuilderclearPkg()The package of the source fileManifestProto.CompilationUnit.BuilderclearTopLevel()The list of top-level types in the compilation unitManifestProto.CompilationUnit.Builderclone()ManifestProto.CompilationUnitgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetGeneratedByAnnotationProcessor()Whether the source was generated by an annotation processorjava.lang.StringgetPath()The path to the compilation unitcom.google.protobuf.ByteStringgetPathBytes()The path to the compilation unitjava.lang.StringgetPkg()The package of the source filecom.google.protobuf.ByteStringgetPkgBytes()The package of the source filejava.lang.StringgetTopLevel(int index)The list of top-level types in the compilation unitcom.google.protobuf.ByteStringgetTopLevelBytes(int index)The list of top-level types in the compilation unitintgetTopLevelCount()The list of top-level types in the compilation unitcom.google.protobuf.ProtocolStringListgetTopLevelList()The list of top-level types in the compilation unitbooleanhasGeneratedByAnnotationProcessor()Whether the source was generated by an annotation processorbooleanhasPath()The path to the compilation unitbooleanhasPkg()The package of the source fileprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ManifestProto.CompilationUnit.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ManifestProto.CompilationUnit.BuildermergeFrom(com.google.protobuf.Message other)ManifestProto.CompilationUnit.BuildermergeFrom(ManifestProto.CompilationUnit other)ManifestProto.CompilationUnit.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ManifestProto.CompilationUnit.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ManifestProto.CompilationUnit.BuildersetGeneratedByAnnotationProcessor(boolean value)Whether the source was generated by an annotation processorManifestProto.CompilationUnit.BuildersetPath(java.lang.String value)The path to the compilation unitManifestProto.CompilationUnit.BuildersetPathBytes(com.google.protobuf.ByteString value)The path to the compilation unitManifestProto.CompilationUnit.BuildersetPkg(java.lang.String value)The package of the source fileManifestProto.CompilationUnit.BuildersetPkgBytes(com.google.protobuf.ByteString value)The package of the source fileManifestProto.CompilationUnit.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)ManifestProto.CompilationUnit.BuildersetTopLevel(int index, java.lang.String value)The list of top-level types in the compilation unitManifestProto.CompilationUnit.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
-
clear
public ManifestProto.CompilationUnit.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
-
getDefaultInstanceForType
public ManifestProto.CompilationUnit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ManifestProto.CompilationUnit build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ManifestProto.CompilationUnit buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ManifestProto.CompilationUnit.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
-
setField
public ManifestProto.CompilationUnit.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
-
clearField
public ManifestProto.CompilationUnit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
-
clearOneof
public ManifestProto.CompilationUnit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
-
setRepeatedField
public ManifestProto.CompilationUnit.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.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:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
-
mergeFrom
public ManifestProto.CompilationUnit.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ManifestProto.CompilationUnit.Builder>
-
mergeFrom
public ManifestProto.CompilationUnit.Builder mergeFrom(ManifestProto.CompilationUnit other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ManifestProto.CompilationUnit.Builder>- Throws:
java.io.IOException
-
hasPath
public boolean hasPath()
The path to the compilation unit
optional string path = 1;- Specified by:
hasPathin interfaceManifestProto.CompilationUnitOrBuilder- Returns:
- Whether the path field is set.
-
getPath
public java.lang.String getPath()
The path to the compilation unit
optional string path = 1;- Specified by:
getPathin interfaceManifestProto.CompilationUnitOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
The path to the compilation unit
optional string path = 1;- Specified by:
getPathBytesin interfaceManifestProto.CompilationUnitOrBuilder- Returns:
- The bytes for path.
-
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.
-
clearPath
public ManifestProto.CompilationUnit.Builder clearPath()
The path to the compilation unit
optional string path = 1;- 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.
-
hasPkg
public boolean hasPkg()
The package of the source file
optional string pkg = 2;- Specified by:
hasPkgin interfaceManifestProto.CompilationUnitOrBuilder- Returns:
- Whether the pkg field is set.
-
getPkg
public java.lang.String getPkg()
The package of the source file
optional string pkg = 2;- Specified by:
getPkgin interfaceManifestProto.CompilationUnitOrBuilder- Returns:
- The pkg.
-
getPkgBytes
public com.google.protobuf.ByteString getPkgBytes()
The package of the source file
optional string pkg = 2;- Specified by:
getPkgBytesin interfaceManifestProto.CompilationUnitOrBuilder- Returns:
- The bytes for pkg.
-
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.
-
clearPkg
public ManifestProto.CompilationUnit.Builder clearPkg()
The package of the source file
optional string pkg = 2;- 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:
hasGeneratedByAnnotationProcessorin interfaceManifestProto.CompilationUnitOrBuilder- Returns:
- Whether the generatedByAnnotationProcessor field is set.
-
getGeneratedByAnnotationProcessor
public boolean getGeneratedByAnnotationProcessor()
Whether the source was generated by an annotation processor
optional bool generated_by_annotation_processor = 3;- Specified by:
getGeneratedByAnnotationProcessorin interfaceManifestProto.CompilationUnitOrBuilder- Returns:
- The generatedByAnnotationProcessor.
-
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:
getTopLevelListin interfaceManifestProto.CompilationUnitOrBuilder- Returns:
- A list containing the topLevel.
-
getTopLevelCount
public int getTopLevelCount()
The list of top-level types in the compilation unit
repeated string top_level = 4;- Specified by:
getTopLevelCountin interfaceManifestProto.CompilationUnitOrBuilder- Returns:
- The count of 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:
getTopLevelin interfaceManifestProto.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:
getTopLevelBytesin interfaceManifestProto.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.
-
setUnknownFields
public final ManifestProto.CompilationUnit.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
-
mergeUnknownFields
public final ManifestProto.CompilationUnit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ManifestProto.CompilationUnit.Builder>
-
-