Class Instance.QueryInsightsInstanceInfo.Builder (0.92.0)

public static final class Instance.QueryInsightsInstanceInfo.Builder extends GeneratedMessage.Builder<Instance.QueryInsightsInstanceInfo.Builder> implements Instance.QueryInsightsInstanceInfoOrBuilder

Instance level Query Insights information, which is read-only and available in the output only.

Protobuf type google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo

Static Methods

getDescriptor()

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

Methods

build()

public Instance.QueryInsightsInstanceInfo build()
Returns
Type Description
Instance.QueryInsightsInstanceInfo

buildPartial()

public Instance.QueryInsightsInstanceInfo buildPartial()
Returns
Type Description
Instance.QueryInsightsInstanceInfo

clear()

public Instance.QueryInsightsInstanceInfo.Builder clear()
Returns
Type Description
Instance.QueryInsightsInstanceInfo.Builder
Overrides

clearEnabled()

public Instance.QueryInsightsInstanceInfo.Builder clearEnabled()

Output only. Whether Query Insights is enabled.

bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.QueryInsightsInstanceInfo.Builder

This builder for chaining.

clearQueryPlansPerMinute()

public Instance.QueryInsightsInstanceInfo.Builder clearQueryPlansPerMinute()

Output only. Number of query execution plans captured per minute.

uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.QueryInsightsInstanceInfo.Builder

This builder for chaining.

clearQueryStringLength()

public Instance.QueryInsightsInstanceInfo.Builder clearQueryStringLength()

Output only. Maximum query string length.

uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.QueryInsightsInstanceInfo.Builder

This builder for chaining.

clearRecordApplicationTags()

public Instance.QueryInsightsInstanceInfo.Builder clearRecordApplicationTags()

Output only. Whether to record application tags.

bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.QueryInsightsInstanceInfo.Builder

This builder for chaining.

clearRecordClientAddress()

public Instance.QueryInsightsInstanceInfo.Builder clearRecordClientAddress()

Output only. Whether to record client address.

bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.QueryInsightsInstanceInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public Instance.QueryInsightsInstanceInfo getDefaultInstanceForType()
Returns
Type Description
Instance.QueryInsightsInstanceInfo

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Output only. Whether Query Insights is enabled.

bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The enabled.

getQueryPlansPerMinute()

public int getQueryPlansPerMinute()

Output only. Number of query execution plans captured per minute.

uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The queryPlansPerMinute.

getQueryStringLength()

public int getQueryStringLength()

Output only. Maximum query string length.

uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The queryStringLength.

getRecordApplicationTags()

public boolean getRecordApplicationTags()

Output only. Whether to record application tags.

bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The recordApplicationTags.

getRecordClientAddress()

public boolean getRecordClientAddress()

Output only. Whether to record client address.

bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The recordClientAddress.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Instance.QueryInsightsInstanceInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEnabled(boolean value)

public Instance.QueryInsightsInstanceInfo.Builder setEnabled(boolean value)

Output only. Whether Query Insights is enabled.

bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
Instance.QueryInsightsInstanceInfo.Builder

This builder for chaining.

setQueryPlansPerMinute(int value)

public Instance.QueryInsightsInstanceInfo.Builder setQueryPlansPerMinute(int value)

Output only. Number of query execution plans captured per minute.

uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The queryPlansPerMinute to set.

Returns
Type Description
Instance.QueryInsightsInstanceInfo.Builder

This builder for chaining.

setQueryStringLength(int value)

public Instance.QueryInsightsInstanceInfo.Builder setQueryStringLength(int value)

Output only. Maximum query string length.

uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The queryStringLength to set.

Returns
Type Description
Instance.QueryInsightsInstanceInfo.Builder

This builder for chaining.

setRecordApplicationTags(boolean value)

public Instance.QueryInsightsInstanceInfo.Builder setRecordApplicationTags(boolean value)

Output only. Whether to record application tags.

bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The recordApplicationTags to set.

Returns
Type Description
Instance.QueryInsightsInstanceInfo.Builder

This builder for chaining.

setRecordClientAddress(boolean value)

public Instance.QueryInsightsInstanceInfo.Builder setRecordClientAddress(boolean value)

Output only. Whether to record client address.

bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The recordClientAddress to set.

Returns
Type Description
Instance.QueryInsightsInstanceInfo.Builder

This builder for chaining.