Class ExplainOptions.Builder (2.19.1)

public static final class ExplainOptions.Builder extends GeneratedMessageV3.Builder<ExplainOptions.Builder> implements ExplainOptionsOrBuilder

Explain options for the query.

Protobuf type google.datastore.v1.ExplainOptions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExplainOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExplainOptions.Builder
Overrides

build()

public ExplainOptions build()
Returns
Type Description
ExplainOptions

buildPartial()

public ExplainOptions buildPartial()
Returns
Type Description
ExplainOptions

clear()

public ExplainOptions.Builder clear()
Returns
Type Description
ExplainOptions.Builder
Overrides

clearAnalyze()

public ExplainOptions.Builder clearAnalyze()

Optional. Whether to execute this query.

When false (the default), the query will be planned, returning only metrics from the planning stages.

When true, the query will be planned and executed, returning the full query results along with both planning and execution stage metrics.

bool analyze = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExplainOptions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ExplainOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExplainOptions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExplainOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExplainOptions.Builder
Overrides

clone()

public ExplainOptions.Builder clone()
Returns
Type Description
ExplainOptions.Builder
Overrides

getAnalyze()

public boolean getAnalyze()

Optional. Whether to execute this query.

When false (the default), the query will be planned, returning only metrics from the planning stages.

When true, the query will be planned and executed, returning the full query results along with both planning and execution stage metrics.

bool analyze = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The analyze.

getDefaultInstanceForType()

public ExplainOptions getDefaultInstanceForType()
Returns
Type Description
ExplainOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExplainOptions other)

public ExplainOptions.Builder mergeFrom(ExplainOptions other)
Parameter
Name Description
other ExplainOptions
Returns
Type Description
ExplainOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExplainOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExplainOptions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExplainOptions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExplainOptions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExplainOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExplainOptions.Builder
Overrides

setAnalyze(boolean value)

public ExplainOptions.Builder setAnalyze(boolean value)

Optional. Whether to execute this query.

When false (the default), the query will be planned, returning only metrics from the planning stages.

When true, the query will be planned and executed, returning the full query results along with both planning and execution stage metrics.

bool analyze = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The analyze to set.

Returns
Type Description
ExplainOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExplainOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExplainOptions.Builder
Overrides

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

public ExplainOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExplainOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExplainOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExplainOptions.Builder
Overrides