Reference documentation and code samples for the Google Cloud Service Control V1 Client class LogEntrySourceLocation.
Additional information about the source code location that produced the log
entry.
Generated from protobuf message google.api.servicecontrol.v1.LogEntrySourceLocation
Namespace
Google \ Cloud \ ServiceControl \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ file
string
Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.
↳ line
int|string
Optional. Line within the source file. 1-based; 0 indicates no line number available.
↳ function
string
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).
getFile
Optional. Source file name. Depending on the runtime environment, this
might be a simple name or a fully-qualified name.
Returns
Type
Description
string
setFile
Optional. Source file name. Depending on the runtime environment, this
might be a simple name or a fully-qualified name.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getLine
Optional. Line within the source file. 1-based; 0 indicates no line number
available.
Returns
Type
Description
int|string
setLine
Optional. Line within the source file. 1-based; 0 indicates no line number
available.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
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).
Returns
Type
Description
string
setFunction
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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Service Control V1 Client - Class LogEntrySourceLocation (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-service-control/latest/V1.LogEntrySourceLocation)\n- [2.0.3](/php/docs/reference/cloud-service-control/2.0.3/V1.LogEntrySourceLocation)\n- [1.4.4](/php/docs/reference/cloud-service-control/1.4.4/V1.LogEntrySourceLocation)\n- [1.3.0](/php/docs/reference/cloud-service-control/1.3.0/V1.LogEntrySourceLocation)\n- [1.2.1](/php/docs/reference/cloud-service-control/1.2.1/V1.LogEntrySourceLocation)\n- [1.1.1](/php/docs/reference/cloud-service-control/1.1.1/V1.LogEntrySourceLocation)\n- [1.0.6](/php/docs/reference/cloud-service-control/1.0.6/V1.LogEntrySourceLocation) \nReference documentation and code samples for the Google Cloud Service Control V1 Client class LogEntrySourceLocation.\n\nAdditional information about the source code location that produced the log\nentry.\n\nGenerated from protobuf message `google.api.servicecontrol.v1.LogEntrySourceLocation`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ServiceControl \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getFile\n\nOptional. Source file name. Depending on the runtime environment, this\nmight be a simple name or a fully-qualified name.\n\n### setFile\n\nOptional. Source file name. Depending on the runtime environment, this\nmight be a simple name or a fully-qualified name.\n\n### getLine\n\nOptional. Line within the source file. 1-based; 0 indicates no line number\navailable.\n\n### setLine\n\nOptional. Line within the source file. 1-based; 0 indicates no line number\navailable.\n\n### getFunction\n\nOptional. Human-readable name of the function or method being invoked, with\noptional context such as the class or package name. This information may be\nused in contexts such as the logs viewer, where a file and line number are\nless meaningful. The format can vary by language. For example:\n`qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`\n(Python).\n\n### setFunction\n\nOptional. Human-readable name of the function or method being invoked, with\noptional context such as the class or package name. This information may be\nused in contexts such as the logs viewer, where a file and line number are\nless meaningful. The format can vary by language. For example:\n`qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`\n(Python)."]]