public static final class LogEntrySourceLocation.Builder extends GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder> implements LogEntrySourceLocationOrBuilder
Additional information about the source code location that produced the log
entry.
Protobuf type google.api.servicecontrol.v1.LogEntrySourceLocation
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LogEntrySourceLocation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public LogEntrySourceLocation build()
Returns
buildPartial()
public LogEntrySourceLocation buildPartial()
Returns
clear()
public LogEntrySourceLocation.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public LogEntrySourceLocation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearFile()
public LogEntrySourceLocation.Builder clearFile()
Optional. Source file name. Depending on the runtime environment, this
might be a simple name or a fully-qualified name.
string file = 1;
Returns
clearFunction()
public LogEntrySourceLocation.Builder clearFunction()
Optional. Human-readable name of the function or method being invoked, with
optional context such as the class or package name. This information may be
used in contexts such as the logs viewer, where a file and line number are
less meaningful. The format can vary by language. For example:
qual.if.ied.Class.method
(Java), dir/package.func
(Go), function
(Python).
string function = 3;
Returns
clearLine()
public LogEntrySourceLocation.Builder clearLine()
Optional. Line within the source file. 1-based; 0 indicates no line number
available.
int64 line = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public LogEntrySourceLocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public LogEntrySourceLocation.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public LogEntrySourceLocation getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getFile()
Optional. Source file name. Depending on the runtime environment, this
might be a simple name or a fully-qualified name.
string file = 1;
Returns
Type | Description |
String | The file.
|
getFileBytes()
public ByteString getFileBytes()
Optional. Source file name. Depending on the runtime environment, this
might be a simple name or a fully-qualified name.
string file = 1;
Returns
getFunction()
public String getFunction()
Optional. Human-readable name of the function or method being invoked, with
optional context such as the class or package name. This information may be
used in contexts such as the logs viewer, where a file and line number are
less meaningful. The format can vary by language. For example:
qual.if.ied.Class.method
(Java), dir/package.func
(Go), function
(Python).
string function = 3;
Returns
Type | Description |
String | The function.
|
getFunctionBytes()
public ByteString getFunctionBytes()
Optional. Human-readable name of the function or method being invoked, with
optional context such as the class or package name. This information may be
used in contexts such as the logs viewer, where a file and line number are
less meaningful. The format can vary by language. For example:
qual.if.ied.Class.method
(Java), dir/package.func
(Go), function
(Python).
string function = 3;
Returns
getLine()
Optional. Line within the source file. 1-based; 0 indicates no line number
available.
int64 line = 2;
Returns
Type | Description |
long | The line.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(LogEntrySourceLocation other)
public LogEntrySourceLocation.Builder mergeFrom(LogEntrySourceLocation other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LogEntrySourceLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LogEntrySourceLocation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LogEntrySourceLocation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public LogEntrySourceLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setFile(String value)
public LogEntrySourceLocation.Builder setFile(String value)
Optional. Source file name. Depending on the runtime environment, this
might be a simple name or a fully-qualified name.
string file = 1;
Parameter
Name | Description |
value | String
The file to set.
|
Returns
setFileBytes(ByteString value)
public LogEntrySourceLocation.Builder setFileBytes(ByteString value)
Optional. Source file name. Depending on the runtime environment, this
might be a simple name or a fully-qualified name.
string file = 1;
Parameter
Name | Description |
value | ByteString
The bytes for file to set.
|
Returns
setFunction(String value)
public LogEntrySourceLocation.Builder setFunction(String value)
Optional. Human-readable name of the function or method being invoked, with
optional context such as the class or package name. This information may be
used in contexts such as the logs viewer, where a file and line number are
less meaningful. The format can vary by language. For example:
qual.if.ied.Class.method
(Java), dir/package.func
(Go), function
(Python).
string function = 3;
Parameter
Name | Description |
value | String
The function to set.
|
Returns
setFunctionBytes(ByteString value)
public LogEntrySourceLocation.Builder setFunctionBytes(ByteString value)
Optional. Human-readable name of the function or method being invoked, with
optional context such as the class or package name. This information may be
used in contexts such as the logs viewer, where a file and line number are
less meaningful. The format can vary by language. For example:
qual.if.ied.Class.method
(Java), dir/package.func
(Go), function
(Python).
string function = 3;
Parameter
Name | Description |
value | ByteString
The bytes for function to set.
|
Returns
setLine(long value)
public LogEntrySourceLocation.Builder setLine(long value)
Optional. Line within the source file. 1-based; 0 indicates no line number
available.
int64 line = 2;
Parameter
Name | Description |
value | long
The line to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LogEntrySourceLocation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LogEntrySourceLocation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides