Class Instance.QueryInsightsInstanceConfig.Builder (0.13.0)

public static final class Instance.QueryInsightsInstanceConfig.Builder extends GeneratedMessageV3.Builder<Instance.QueryInsightsInstanceConfig.Builder> implements Instance.QueryInsightsInstanceConfigOrBuilder

QueryInsights Instance specific configuration.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQueryPlansPerMinute()

public Instance.QueryInsightsInstanceConfig.Builder clearQueryPlansPerMinute()

Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.

optional uint32 query_plans_per_minute = 5;

Returns
Type Description
Instance.QueryInsightsInstanceConfig.Builder

This builder for chaining.

clearQueryStringLength()

public Instance.QueryInsightsInstanceConfig.Builder clearQueryStringLength()

Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.

uint32 query_string_length = 4;

Returns
Type Description
Instance.QueryInsightsInstanceConfig.Builder

This builder for chaining.

clearRecordApplicationTags()

public Instance.QueryInsightsInstanceConfig.Builder clearRecordApplicationTags()

Record application tags for an instance. This flag is turned "on" by default.

optional bool record_application_tags = 2;

Returns
Type Description
Instance.QueryInsightsInstanceConfig.Builder

This builder for chaining.

clearRecordClientAddress()

public Instance.QueryInsightsInstanceConfig.Builder clearRecordClientAddress()

Record client address for an instance. Client address is PII information. This flag is turned "on" by default.

optional bool record_client_address = 3;

Returns
Type Description
Instance.QueryInsightsInstanceConfig.Builder

This builder for chaining.

clone()

public Instance.QueryInsightsInstanceConfig.Builder clone()
Returns
Type Description
Instance.QueryInsightsInstanceConfig.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

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

getQueryPlansPerMinute()

public int getQueryPlansPerMinute()

Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.

optional uint32 query_plans_per_minute = 5;

Returns
Type Description
int

The queryPlansPerMinute.

getQueryStringLength()

public int getQueryStringLength()

Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.

uint32 query_string_length = 4;

Returns
Type Description
int

The queryStringLength.

getRecordApplicationTags()

public boolean getRecordApplicationTags()

Record application tags for an instance. This flag is turned "on" by default.

optional bool record_application_tags = 2;

Returns
Type Description
boolean

The recordApplicationTags.

getRecordClientAddress()

public boolean getRecordClientAddress()

Record client address for an instance. Client address is PII information. This flag is turned "on" by default.

optional bool record_client_address = 3;

Returns
Type Description
boolean

The recordClientAddress.

hasQueryPlansPerMinute()

public boolean hasQueryPlansPerMinute()

Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.

optional uint32 query_plans_per_minute = 5;

Returns
Type Description
boolean

Whether the queryPlansPerMinute field is set.

hasRecordApplicationTags()

public boolean hasRecordApplicationTags()

Record application tags for an instance. This flag is turned "on" by default.

optional bool record_application_tags = 2;

Returns
Type Description
boolean

Whether the recordApplicationTags field is set.

hasRecordClientAddress()

public boolean hasRecordClientAddress()

Record client address for an instance. Client address is PII information. This flag is turned "on" by default.

optional bool record_client_address = 3;

Returns
Type Description
boolean

Whether the recordClientAddress field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Instance.QueryInsightsInstanceConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setQueryPlansPerMinute(int value)

public Instance.QueryInsightsInstanceConfig.Builder setQueryPlansPerMinute(int value)

Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.

optional uint32 query_plans_per_minute = 5;

Parameter
Name Description
value int

The queryPlansPerMinute to set.

Returns
Type Description
Instance.QueryInsightsInstanceConfig.Builder

This builder for chaining.

setQueryStringLength(int value)

public Instance.QueryInsightsInstanceConfig.Builder setQueryStringLength(int value)

Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.

uint32 query_string_length = 4;

Parameter
Name Description
value int

The queryStringLength to set.

Returns
Type Description
Instance.QueryInsightsInstanceConfig.Builder

This builder for chaining.

setRecordApplicationTags(boolean value)

public Instance.QueryInsightsInstanceConfig.Builder setRecordApplicationTags(boolean value)

Record application tags for an instance. This flag is turned "on" by default.

optional bool record_application_tags = 2;

Parameter
Name Description
value boolean

The recordApplicationTags to set.

Returns
Type Description
Instance.QueryInsightsInstanceConfig.Builder

This builder for chaining.

setRecordClientAddress(boolean value)

public Instance.QueryInsightsInstanceConfig.Builder setRecordClientAddress(boolean value)

Record client address for an instance. Client address is PII information. This flag is turned "on" by default.

optional bool record_client_address = 3;

Parameter
Name Description
value boolean

The recordClientAddress to set.

Returns
Type Description
Instance.QueryInsightsInstanceConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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