Class ExplainOptions.Builder (2.19.0)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExplainOptions build()
Returns
TypeDescription
ExplainOptions

buildPartial()

public ExplainOptions buildPartial()
Returns
TypeDescription
ExplainOptions

clear()

public ExplainOptions.Builder clear()
Returns
TypeDescription
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
TypeDescription
ExplainOptions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ExplainOptions.Builder clone()
Returns
TypeDescription
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
TypeDescription
boolean

The analyze.

getDefaultInstanceForType()

public ExplainOptions getDefaultInstanceForType()
Returns
TypeDescription
ExplainOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExplainOptions other)

public ExplainOptions.Builder mergeFrom(ExplainOptions other)
Parameter
NameDescription
otherExplainOptions
Returns
TypeDescription
ExplainOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExplainOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The analyze to set.

Returns
TypeDescription
ExplainOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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