Package com.google.protobuf
Class SourceContext.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<SourceContext,SourceContext.Builder>
-
- com.google.protobuf.SourceContext.Builder
-
- All Implemented Interfaces:
MessageLite.Builder
,MessageLiteOrBuilder
,SourceContextOrBuilder
,java.lang.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 typegoogle.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 Modifier Constructor Description private
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceContext.Builder
clearFileName()
The path-qualified name of the .proto file that contained the associated protobuf element.java.lang.String
getFileName()
The path-qualified name of the .proto file that contained the associated protobuf element.ByteString
getFileNameBytes()
The path-qualified name of the .proto file that contained the associated protobuf element.SourceContext.Builder
setFileName(java.lang.String value)
The path-qualified name of the .proto file that contained the associated protobuf element.SourceContext.Builder
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
-
-
-
-
Method Detail
-
getFileName
public java.lang.String 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
public ByteString 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
public SourceContext.Builder setFileName(java.lang.String value)
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
public SourceContext.Builder 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
public SourceContext.Builder setFileNameBytes(ByteString value)
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.
-
-