Reference documentation and code samples for the Stackdriver Logging V2 Client class IndexConfig.
Configuration for an indexed field.
Generated from protobuf messagegoogle.logging.v2.IndexConfig
Namespace
Google \ Cloud \ Logging \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ field_path
string
Required. The LogEntry field path to index. Note that some paths are automatically indexed, and other paths are not eligible for indexing. Seeindexing documentationfor details. For example:jsonPayload.request.status
Output only. The timestamp when the index was last modified. This is used to return the timestamp, and will be ignored if supplied during update.
getFieldPath
Required. The LogEntry field path to index.
Note that some paths are automatically indexed, and other paths are not
eligible for indexing. Seeindexing documentationfor details.
For example:jsonPayload.request.status
Returns
Type
Description
string
setFieldPath
Required. The LogEntry field path to index.
Note that some paths are automatically indexed, and other paths are not
eligible for indexing. Seeindexing documentationfor details.
For example:jsonPayload.request.status
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getType
Required. The type of data in this index.
Returns
Type
Description
int
setType
Required. The type of data in this index.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getCreateTime
Output only. The timestamp when the index was last modified.
This is used to return the timestamp, and will be ignored if supplied
during update.
[[["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,["# Stackdriver Logging V2 Client - Class IndexConfig (1.32.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.32.3 (latest)](/php/docs/reference/cloud-logging/latest/V2.IndexConfig)\n- [1.32.2](/php/docs/reference/cloud-logging/1.32.2/V2.IndexConfig)\n- [1.31.3](/php/docs/reference/cloud-logging/1.31.3/V2.IndexConfig)\n- [1.30.3](/php/docs/reference/cloud-logging/1.30.3/V2.IndexConfig)\n- [1.29.0](/php/docs/reference/cloud-logging/1.29.0/V2.IndexConfig)\n- [1.28.5](/php/docs/reference/cloud-logging/1.28.5/V2.IndexConfig)\n- [1.27.1](/php/docs/reference/cloud-logging/1.27.1/V2.IndexConfig)\n- [1.26.0](/php/docs/reference/cloud-logging/1.26.0/V2.IndexConfig)\n- [1.25.5](/php/docs/reference/cloud-logging/1.25.5/V2.IndexConfig)\n- [1.24.10](/php/docs/reference/cloud-logging/1.24.10/V2.IndexConfig) \nReference documentation and code samples for the Stackdriver Logging V2 Client class IndexConfig.\n\nConfiguration for an indexed field.\n\nGenerated from protobuf message `google.logging.v2.IndexConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Logging \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getFieldPath\n\nRequired. The LogEntry field path to index.\n\nNote that some paths are automatically indexed, and other paths are not\neligible for indexing. See [indexing documentation](https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)\nfor details.\nFor example: `jsonPayload.request.status`\n\n### setFieldPath\n\nRequired. The LogEntry field path to index.\n\nNote that some paths are automatically indexed, and other paths are not\neligible for indexing. See [indexing documentation](https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)\nfor details.\nFor example: `jsonPayload.request.status`\n\n### getType\n\nRequired. The type of data in this index.\n\n### setType\n\nRequired. The type of data in this index.\n\n### getCreateTime\n\nOutput only. The timestamp when the index was last modified.\n\nThis is used to return the timestamp, and will be ignored if supplied\nduring update.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The timestamp when the index was last modified.\n\nThis is used to return the timestamp, and will be ignored if supplied\nduring update."]]