Class LogEntrySourceLocation (1.64.0)

publicfinalclass LogEntrySourceLocationextendsGeneratedMessageV3implementsLogEntrySourceLocationOrBuilder

Additional information about the source code location that produced the log entry.

Protobuf type google.api.servicecontrol.v1.LogEntrySourceLocation

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

FILE_FIELD_NUMBER

publicstaticfinalintFILE_FIELD_NUMBER
Field Value
Type Description
int

FUNCTION_FIELD_NUMBER

publicstaticfinalintFUNCTION_FIELD_NUMBER
Field Value
Type Description
int

LINE_FIELD_NUMBER

publicstaticfinalintLINE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticLogEntrySourceLocationgetDefaultInstance()
Returns
Type Description
LogEntrySourceLocation

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticLogEntrySourceLocation.BuildernewBuilder()
Returns
Type Description
LogEntrySourceLocation.Builder

newBuilder(LogEntrySourceLocation prototype)

publicstaticLogEntrySourceLocation.BuildernewBuilder(LogEntrySourceLocationprototype)
Parameter
Name Description
prototype LogEntrySourceLocation
Returns
Type Description
LogEntrySourceLocation.Builder

parseDelimitedFrom(InputStream input)

publicstaticLogEntrySourceLocationparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
LogEntrySourceLocation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticLogEntrySourceLocationparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogEntrySourceLocation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticLogEntrySourceLocationparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
LogEntrySourceLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticLogEntrySourceLocationparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogEntrySourceLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticLogEntrySourceLocationparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
LogEntrySourceLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticLogEntrySourceLocationparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogEntrySourceLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticLogEntrySourceLocationparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LogEntrySourceLocation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticLogEntrySourceLocationparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogEntrySourceLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticLogEntrySourceLocationparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
LogEntrySourceLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticLogEntrySourceLocationparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogEntrySourceLocation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticLogEntrySourceLocationparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LogEntrySourceLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticLogEntrySourceLocationparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogEntrySourceLocation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<LogEntrySourceLocation>parser()
Returns
Type Description
Parser<LogEntrySourceLocation>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicLogEntrySourceLocationgetDefaultInstanceForType()
Returns
Type Description
LogEntrySourceLocation

getFile()

publicStringgetFile()

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()

publicByteStringgetFileBytes()

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
ByteString

The bytes for file.

getFunction()

publicStringgetFunction()

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()

publicByteStringgetFunctionBytes()

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
ByteString

The bytes for function.

getLine()

publiclonggetLine()

Optional. Line within the source file. 1-based; 0 indicates no line number available.

int64 line = 2;

Returns
Type Description
long

The line.

getParserForType()

publicParser<LogEntrySourceLocation>getParserForType()
Returns
Type Description
Parser<LogEntrySourceLocation>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicLogEntrySourceLocation.BuildernewBuilderForType()
Returns
Type Description
LogEntrySourceLocation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedLogEntrySourceLocation.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LogEntrySourceLocation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicLogEntrySourceLocation.BuildertoBuilder()
Returns
Type Description
LogEntrySourceLocation.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.