public static final class LogEntrySourceLocation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder> implements LogEntrySourceLocationOrBuilder
Additional information about the source code location that produced the log entry.Protobuf type
google.logging.v2.LogEntrySourceLocation| Modifier and Type | Method and Description |
|---|---|
LogEntrySourceLocation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
LogEntrySourceLocation |
build() |
LogEntrySourceLocation |
buildPartial() |
LogEntrySourceLocation.Builder |
clear() |
LogEntrySourceLocation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
LogEntrySourceLocation.Builder |
clearFile()
Optional.
|
LogEntrySourceLocation.Builder |
clearFunction()
Optional.
|
LogEntrySourceLocation.Builder |
clearLine()
Optional.
|
LogEntrySourceLocation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
LogEntrySourceLocation.Builder |
clone() |
LogEntrySourceLocation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getFile()
Optional.
|
com.google.protobuf.ByteString |
getFileBytes()
Optional.
|
java.lang.String |
getFunction()
Optional.
|
com.google.protobuf.ByteString |
getFunctionBytes()
Optional.
|
long |
getLine()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LogEntrySourceLocation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LogEntrySourceLocation.Builder |
mergeFrom(LogEntrySourceLocation other) |
LogEntrySourceLocation.Builder |
mergeFrom(com.google.protobuf.Message other) |
LogEntrySourceLocation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LogEntrySourceLocation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
LogEntrySourceLocation.Builder |
setFile(java.lang.String value)
Optional.
|
LogEntrySourceLocation.Builder |
setFileBytes(com.google.protobuf.ByteString value)
Optional.
|
LogEntrySourceLocation.Builder |
setFunction(java.lang.String value)
Optional.
|
LogEntrySourceLocation.Builder |
setFunctionBytes(com.google.protobuf.ByteString value)
Optional.
|
LogEntrySourceLocation.Builder |
setLine(long value)
Optional.
|
LogEntrySourceLocation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
LogEntrySourceLocation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>public LogEntrySourceLocation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>public LogEntrySourceLocation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LogEntrySourceLocation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LogEntrySourceLocation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LogEntrySourceLocation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>public LogEntrySourceLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>public LogEntrySourceLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>public LogEntrySourceLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>public LogEntrySourceLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>public LogEntrySourceLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>public LogEntrySourceLocation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogEntrySourceLocation.Builder>public LogEntrySourceLocation.Builder mergeFrom(LogEntrySourceLocation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>public LogEntrySourceLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogEntrySourceLocation.Builder>java.io.IOExceptionpublic java.lang.String getFile()
Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.
string file = 1;getFile in interface LogEntrySourceLocationOrBuilderpublic com.google.protobuf.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;getFileBytes in interface LogEntrySourceLocationOrBuilderpublic LogEntrySourceLocation.Builder setFile(java.lang.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;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;public LogEntrySourceLocation.Builder setFileBytes(com.google.protobuf.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;public long getLine()
Optional. Line within the source file. 1-based; 0 indicates no line number available.
int64 line = 2;getLine in interface LogEntrySourceLocationOrBuilderpublic LogEntrySourceLocation.Builder setLine(long value)
Optional. Line within the source file. 1-based; 0 indicates no line number available.
int64 line = 2;public LogEntrySourceLocation.Builder clearLine()
Optional. Line within the source file. 1-based; 0 indicates no line number available.
int64 line = 2;public java.lang.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;getFunction in interface LogEntrySourceLocationOrBuilderpublic com.google.protobuf.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;getFunctionBytes in interface LogEntrySourceLocationOrBuilderpublic LogEntrySourceLocation.Builder setFunction(java.lang.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;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;public LogEntrySourceLocation.Builder setFunctionBytes(com.google.protobuf.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;public final LogEntrySourceLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>public final LogEntrySourceLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>