Class SourceContext.Builder (3.19.4)

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

Methods

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
valueString

The fileName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for fileName to set.

Returns
TypeDescription
SourceContext.Builder

This builder for chaining.