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.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(LogEntrySourceLocation other)
LogEntrySourceLocation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
clear
public LogEntrySourceLocation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
getDefaultInstanceForType
public LogEntrySourceLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LogEntrySourceLocation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LogEntrySourceLocation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LogEntrySourceLocation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
setField
public LogEntrySourceLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
clearField
public LogEntrySourceLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
clearOneof
public LogEntrySourceLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
setRepeatedField
public LogEntrySourceLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
addRepeatedField
public LogEntrySourceLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
mergeFrom
public LogEntrySourceLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LogEntrySourceLocation.Builder>
-
mergeFrom
public LogEntrySourceLocation.Builder mergeFrom(LogEntrySourceLocation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getFile
in 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:
getFileBytes
in 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:
getLine
in 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:
getFunction
in 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:
getFunctionBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
mergeUnknownFields
public final LogEntrySourceLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntrySourceLocation.Builder>
-
-