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,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
-
-
Field Summary
-
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceContext.BuilderclearFileName()The path-qualified name of the .proto file that contained the associated protobuf element.StringgetFileName()The path-qualified name of the .proto file that contained the associated protobuf element.ByteStringgetFileNameBytes()The path-qualified name of the .proto file that contained the associated protobuf element.SourceContext.BuildersetFileName(String value)The path-qualified name of the .proto file that contained the associated protobuf element.SourceContext.BuildersetFileNameBytes(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 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:
getFileNamein 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:
getFileNameBytesin interfaceSourceContextOrBuilder- Returns:
- The bytes for fileName.
-
setFileName
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"`.
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.
-
-