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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > GeneratedMessageLite.Builder > SourceContext.BuilderImplements
SourceContextOrBuilderMethods
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 | |
---|---|
Type | Description |
SourceContext.Builder | This builder for chaining. |
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;
Returns | |
---|---|
Type | Description |
String | 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;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for fileName. |
setFileName(String value)
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;
Parameter | |
---|---|
Name | Description |
value | String The fileName to set. |
Returns | |
---|---|
Type | Description |
SourceContext.Builder | This builder for chaining. |
setFileNameBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for fileName to set. |
Returns | |
---|---|
Type | Description |
SourceContext.Builder | This builder for chaining. |