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.SourceContextinstance, 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, mergeFromaddAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultInstanceForType, isInitializedpublic 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 SourceContextOrBuilderpublic 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 SourceContextOrBuilderpublic 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.