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
instance, isBuilt
Modifier and Type | Method and Description |
---|---|
SourceContext.Builder |
clearFileName()
The path-qualified name of the .proto file that contained the associated
protobuf element.
|
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(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.
|
build, buildPartial, clear, clone, copyOnWrite, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom
addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultInstanceForType, isInitialized
public String getFileName()
The path-qualified name of the .proto file that contained the associated protobuf element. For example: `"google/protobuf/source_context.proto"`.
optional string file_name = 1;
getFileName
in interface SourceContextOrBuilder
public ByteString getFileNameBytes()
The path-qualified name of the .proto file that contained the associated protobuf element. For example: `"google/protobuf/source_context.proto"`.
optional string file_name = 1;
getFileNameBytes
in interface SourceContextOrBuilder
public SourceContext.Builder setFileName(String value)
The path-qualified name of the .proto file that contained the associated protobuf element. For example: `"google/protobuf/source_context.proto"`.
optional string file_name = 1;
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"`.
optional string file_name = 1;
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"`.
optional string file_name = 1;
Copyright © 2008–2016 Google. All rights reserved.