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,
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() |
String |
getFile()
Optional.
|
com.google.protobuf.ByteString |
getFileBytes()
Optional.
|
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,
Object value) |
LogEntrySourceLocation.Builder |
setFile(String value)
Optional.
|
LogEntrySourceLocation.Builder |
setFileBytes(com.google.protobuf.ByteString value)
Optional.
|
LogEntrySourceLocation.Builder |
setFunction(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,
Object value) |
LogEntrySourceLocation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
public LogEntrySourceLocation getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LogEntrySourceLocation build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LogEntrySourceLocation buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LogEntrySourceLocation.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
public LogEntrySourceLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
public LogEntrySourceLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
public LogEntrySourceLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
public LogEntrySourceLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LogEntrySourceLocation.Builder>
IOException
public 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 [(.google.api.field_behavior) = OPTIONAL];
getFile
in interface LogEntrySourceLocationOrBuilder
public 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 [(.google.api.field_behavior) = OPTIONAL];
getFileBytes
in interface LogEntrySourceLocationOrBuilder
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 [(.google.api.field_behavior) = OPTIONAL];
value
- The file to set.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 [(.google.api.field_behavior) = OPTIONAL];
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 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for file to set.public long getLine()
Optional. Line within the source file. 1-based; 0 indicates no line number available.
int64 line = 2 [(.google.api.field_behavior) = OPTIONAL];
getLine
in interface LogEntrySourceLocationOrBuilder
public LogEntrySourceLocation.Builder setLine(long value)
Optional. Line within the source file. 1-based; 0 indicates no line number available.
int64 line = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The line to set.public LogEntrySourceLocation.Builder clearLine()
Optional. Line within the source file. 1-based; 0 indicates no line number available.
int64 line = 2 [(.google.api.field_behavior) = OPTIONAL];
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 [(.google.api.field_behavior) = OPTIONAL];
getFunction
in interface LogEntrySourceLocationOrBuilder
public 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 [(.google.api.field_behavior) = OPTIONAL];
getFunctionBytes
in interface LogEntrySourceLocationOrBuilder
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 [(.google.api.field_behavior) = OPTIONAL];
value
- The function to set.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 [(.google.api.field_behavior) = OPTIONAL];
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 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for function to set.public final LogEntrySourceLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
Copyright © 2023 Google LLC. All rights reserved.