Package com.google.protobuf
Class SourceContext.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<SourceContext,SourceContext.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<SourceContext,SourceContext.Builder>
com.google.protobuf.SourceContext.Builder
- All Implemented Interfaces:
MessageLite.Builder
,MessageLiteOrBuilder
,SourceContextOrBuilder
,Cloneable
- Enclosing class:
SourceContext
public static final class SourceContext.Builder
extends GeneratedMessageLite.Builder<SourceContext,SourceContext.Builder>
implements SourceContextOrBuilder
`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.Protobuf type
google.protobuf.SourceContext
-
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 -
Method Summary
Modifier and TypeMethodDescriptionThe path-qualified name of the .proto file that contained the associated protobuf element.The path-qualified name of the .proto file that contained the associated protobuf element.The path-qualified name of the .proto file that contained the associated protobuf element.setFileName
(String value) The path-qualified name of the .proto file that contained the associated protobuf element.setFileNameBytes
(ByteString value) The path-qualified name of the .proto file that contained the associated protobuf element.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
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
getFileName
The path-qualified name of the .proto file that contained the associated protobuf element. For example: `"google/protobuf/source_context.proto"`.
string file_name = 1;
- Specified by:
getFileName
in interfaceSourceContextOrBuilder
- Returns:
- The fileName.
-
getFileNameBytes
The path-qualified name of the .proto file that contained the associated protobuf element. For example: `"google/protobuf/source_context.proto"`.
string file_name = 1;
- Specified by:
getFileNameBytes
in interfaceSourceContextOrBuilder
- Returns:
- The bytes for fileName.
-
setFileName
The path-qualified name of the .proto file that contained the associated protobuf element. For example: `"google/protobuf/source_context.proto"`.
string file_name = 1;
- Parameters:
value
- The fileName to set.- Returns:
- This builder for chaining.
-
clearFileName
The path-qualified name of the .proto file that contained the associated protobuf element. For example: `"google/protobuf/source_context.proto"`.
string file_name = 1;
- Returns:
- This builder for chaining.
-
setFileNameBytes
The path-qualified name of the .proto file that contained the associated protobuf element. For example: `"google/protobuf/source_context.proto"`.
string file_name = 1;
- Parameters:
value
- The bytes for fileName to set.- Returns:
- This builder for chaining.
-