Package com.google.logging.v2
Class LogEntrySourceLocation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
- com.google.logging.v2.LogEntrySourceLocation.Builder
-
- All Implemented Interfaces:
LogEntrySourceLocationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LogEntrySourceLocation
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 typegoogle.logging.v2.LogEntrySourceLocation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LogEntrySourceLocation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LogEntrySourceLocationbuild()LogEntrySourceLocationbuildPartial()LogEntrySourceLocation.Builderclear()LogEntrySourceLocation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LogEntrySourceLocation.BuilderclearFile()Optional.LogEntrySourceLocation.BuilderclearFunction()Optional.LogEntrySourceLocation.BuilderclearLine()Optional.LogEntrySourceLocation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LogEntrySourceLocation.Builderclone()LogEntrySourceLocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFile()Optional.com.google.protobuf.ByteStringgetFileBytes()Optional.StringgetFunction()Optional.com.google.protobuf.ByteStringgetFunctionBytes()Optional.longgetLine()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LogEntrySourceLocation.BuildermergeFrom(LogEntrySourceLocation other)LogEntrySourceLocation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LogEntrySourceLocation.BuildermergeFrom(com.google.protobuf.Message other)LogEntrySourceLocation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LogEntrySourceLocation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LogEntrySourceLocation.BuildersetFile(String value)Optional.LogEntrySourceLocation.BuildersetFileBytes(com.google.protobuf.ByteString value)Optional.LogEntrySourceLocation.BuildersetFunction(String value)Optional.LogEntrySourceLocation.BuildersetFunctionBytes(com.google.protobuf.ByteString value)Optional.LogEntrySourceLocation.BuildersetLine(long value)Optional.LogEntrySourceLocation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LogEntrySourceLocation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
clear
public LogEntrySourceLocation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
getDefaultInstanceForType
public LogEntrySourceLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LogEntrySourceLocation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LogEntrySourceLocation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LogEntrySourceLocation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
setField
public LogEntrySourceLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
clearField
public LogEntrySourceLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
clearOneof
public LogEntrySourceLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
setRepeatedField
public LogEntrySourceLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
addRepeatedField
public LogEntrySourceLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
mergeFrom
public LogEntrySourceLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogEntrySourceLocation.Builder>
-
mergeFrom
public LogEntrySourceLocation.Builder mergeFrom(LogEntrySourceLocation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
mergeFrom
public LogEntrySourceLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogEntrySourceLocation.Builder>- Throws:
IOException
-
getFile
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];- Specified by:
getFilein interfaceLogEntrySourceLocationOrBuilder- Returns:
- The file.
-
getFileBytes
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];- Specified by:
getFileBytesin interfaceLogEntrySourceLocationOrBuilder- Returns:
- The bytes for file.
-
setFile
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];- Parameters:
value- The file to set.- Returns:
- This builder for chaining.
-
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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setFileBytes
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];- Parameters:
value- The bytes for file to set.- Returns:
- This builder for chaining.
-
getLine
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];- Specified by:
getLinein interfaceLogEntrySourceLocationOrBuilder- Returns:
- The line.
-
setLine
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];- Parameters:
value- The line to set.- Returns:
- This builder for chaining.
-
clearLine
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];- Returns:
- This builder for chaining.
-
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFunctionin interfaceLogEntrySourceLocationOrBuilder- Returns:
- The function.
-
getFunctionBytes
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];- Specified by:
getFunctionBytesin interfaceLogEntrySourceLocationOrBuilder- Returns:
- The bytes for function.
-
setFunction
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];- Parameters:
value- The function to set.- Returns:
- This builder for chaining.
-
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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setFunctionBytes
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];- Parameters:
value- The bytes for function to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final LogEntrySourceLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
mergeUnknownFields
public final LogEntrySourceLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
-