Class IndexConfig.Builder (3.15.17)

public static final class IndexConfig.Builder extends GeneratedMessageV3.Builder<IndexConfig.Builder> implements IndexConfigOrBuilder

Configuration for an indexed field.

Protobuf type google.logging.v2.IndexConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IndexConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IndexConfig.Builder
Overrides

build()

public IndexConfig build()
Returns
TypeDescription
IndexConfig

buildPartial()

public IndexConfig buildPartial()
Returns
TypeDescription
IndexConfig

clear()

public IndexConfig.Builder clear()
Returns
TypeDescription
IndexConfig.Builder
Overrides

clearCreateTime()

public IndexConfig.Builder clearCreateTime()

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.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
IndexConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public IndexConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
IndexConfig.Builder
Overrides

clearFieldPath()

public IndexConfig.Builder clearFieldPath()

Required. The LogEntry field path to index.

Note that some paths are automatically indexed, and other paths are not eligible for indexing. See indexing documentation for details.

For example: jsonPayload.request.status

string field_path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
IndexConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public IndexConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
IndexConfig.Builder
Overrides

clearType()

public IndexConfig.Builder clearType()

Required. The type of data in this index.

.google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
IndexConfig.Builder

This builder for chaining.

clone()

public IndexConfig.Builder clone()
Returns
TypeDescription
IndexConfig.Builder
Overrides

getCreateTime()

public Timestamp 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.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

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.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public IndexConfig getDefaultInstanceForType()
Returns
TypeDescription
IndexConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFieldPath()

public String getFieldPath()

Required. The LogEntry field path to index.

Note that some paths are automatically indexed, and other paths are not eligible for indexing. See indexing documentation for details.

For example: jsonPayload.request.status

string field_path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The fieldPath.

getFieldPathBytes()

public ByteString getFieldPathBytes()

Required. The LogEntry field path to index.

Note that some paths are automatically indexed, and other paths are not eligible for indexing. See indexing documentation for details.

For example: jsonPayload.request.status

string field_path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for fieldPath.

getType()

public IndexType getType()

Required. The type of data in this index.

.google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
IndexType

The type.

getTypeValue()

public int getTypeValue()

Required. The type of data in this index.

.google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for type.

hasCreateTime()

public boolean hasCreateTime()

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.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public IndexConfig.Builder mergeCreateTime(Timestamp value)

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.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
IndexConfig.Builder

mergeFrom(IndexConfig other)

public IndexConfig.Builder mergeFrom(IndexConfig other)
Parameter
NameDescription
otherIndexConfig
Returns
TypeDescription
IndexConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IndexConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IndexConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public IndexConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
IndexConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IndexConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IndexConfig.Builder
Overrides

setCreateTime(Timestamp value)

public IndexConfig.Builder setCreateTime(Timestamp value)

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.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
IndexConfig.Builder

setCreateTime(Timestamp.Builder builderForValue)

public IndexConfig.Builder setCreateTime(Timestamp.Builder builderForValue)

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.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
IndexConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public IndexConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IndexConfig.Builder
Overrides

setFieldPath(String value)

public IndexConfig.Builder setFieldPath(String value)

Required. The LogEntry field path to index.

Note that some paths are automatically indexed, and other paths are not eligible for indexing. See indexing documentation for details.

For example: jsonPayload.request.status

string field_path = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The fieldPath to set.

Returns
TypeDescription
IndexConfig.Builder

This builder for chaining.

setFieldPathBytes(ByteString value)

public IndexConfig.Builder setFieldPathBytes(ByteString value)

Required. The LogEntry field path to index.

Note that some paths are automatically indexed, and other paths are not eligible for indexing. See indexing documentation for details.

For example: jsonPayload.request.status

string field_path = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for fieldPath to set.

Returns
TypeDescription
IndexConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public IndexConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
IndexConfig.Builder
Overrides

setType(IndexType value)

public IndexConfig.Builder setType(IndexType value)

Required. The type of data in this index.

.google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueIndexType

The type to set.

Returns
TypeDescription
IndexConfig.Builder

This builder for chaining.

setTypeValue(int value)

public IndexConfig.Builder setTypeValue(int value)

Required. The type of data in this index.

.google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
IndexConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final IndexConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IndexConfig.Builder
Overrides