public static final class InsightsConfig.Builder extends GeneratedMessage.Builder<InsightsConfig.Builder> implements InsightsConfigOrBuilderInsights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration.
Protobuf type google.cloud.sql.v1.InsightsConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > InsightsConfig.BuilderImplements
InsightsConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public InsightsConfig build()| Returns | |
|---|---|
| Type | Description |
InsightsConfig |
|
buildPartial()
public InsightsConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
InsightsConfig |
|
clear()
public InsightsConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
clearEnhancedQueryInsightsEnabled()
public InsightsConfig.Builder clearEnhancedQueryInsightsEnabled()Optional. Whether enhanced query insights feature is enabled.
.google.protobuf.BoolValue enhanced_query_insights_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
clearQueryInsightsEnabled()
public InsightsConfig.Builder clearQueryInsightsEnabled()Whether Query Insights feature is enabled.
bool query_insights_enabled = 1;
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
This builder for chaining. |
clearQueryPlansPerMinute()
public InsightsConfig.Builder clearQueryPlansPerMinute()Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
.google.protobuf.Int32Value query_plans_per_minute = 5;
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
clearQueryStringLength()
public InsightsConfig.Builder clearQueryStringLength()Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
.google.protobuf.Int32Value query_string_length = 4;
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
clearRecordApplicationTags()
public InsightsConfig.Builder clearRecordApplicationTags()Whether Query Insights will record application tags from query when enabled.
bool record_application_tags = 3;
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
This builder for chaining. |
clearRecordClientAddress()
public InsightsConfig.Builder clearRecordClientAddress()Whether Query Insights will record client address when enabled.
bool record_client_address = 2;
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public InsightsConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
InsightsConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnhancedQueryInsightsEnabled()
public BoolValue getEnhancedQueryInsightsEnabled()Optional. Whether enhanced query insights feature is enabled.
.google.protobuf.BoolValue enhanced_query_insights_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BoolValue |
The enhancedQueryInsightsEnabled. |
getEnhancedQueryInsightsEnabledBuilder()
public BoolValue.Builder getEnhancedQueryInsightsEnabledBuilder()Optional. Whether enhanced query insights feature is enabled.
.google.protobuf.BoolValue enhanced_query_insights_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getEnhancedQueryInsightsEnabledOrBuilder()
public BoolValueOrBuilder getEnhancedQueryInsightsEnabledOrBuilder()Optional. Whether enhanced query insights feature is enabled.
.google.protobuf.BoolValue enhanced_query_insights_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BoolValueOrBuilder |
|
getQueryInsightsEnabled()
public boolean getQueryInsightsEnabled()Whether Query Insights feature is enabled.
bool query_insights_enabled = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
The queryInsightsEnabled. |
getQueryPlansPerMinute()
public Int32Value getQueryPlansPerMinute()Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
.google.protobuf.Int32Value query_plans_per_minute = 5;
| Returns | |
|---|---|
| Type | Description |
Int32Value |
The queryPlansPerMinute. |
getQueryPlansPerMinuteBuilder()
public Int32Value.Builder getQueryPlansPerMinuteBuilder()Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
.google.protobuf.Int32Value query_plans_per_minute = 5;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getQueryPlansPerMinuteOrBuilder()
public Int32ValueOrBuilder getQueryPlansPerMinuteOrBuilder()Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
.google.protobuf.Int32Value query_plans_per_minute = 5;
| Returns | |
|---|---|
| Type | Description |
Int32ValueOrBuilder |
|
getQueryStringLength()
public Int32Value getQueryStringLength()Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
.google.protobuf.Int32Value query_string_length = 4;
| Returns | |
|---|---|
| Type | Description |
Int32Value |
The queryStringLength. |
getQueryStringLengthBuilder()
public Int32Value.Builder getQueryStringLengthBuilder()Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
.google.protobuf.Int32Value query_string_length = 4;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getQueryStringLengthOrBuilder()
public Int32ValueOrBuilder getQueryStringLengthOrBuilder()Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
.google.protobuf.Int32Value query_string_length = 4;
| Returns | |
|---|---|
| Type | Description |
Int32ValueOrBuilder |
|
getRecordApplicationTags()
public boolean getRecordApplicationTags()Whether Query Insights will record application tags from query when enabled.
bool record_application_tags = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
The recordApplicationTags. |
getRecordClientAddress()
public boolean getRecordClientAddress()Whether Query Insights will record client address when enabled.
bool record_client_address = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
The recordClientAddress. |
hasEnhancedQueryInsightsEnabled()
public boolean hasEnhancedQueryInsightsEnabled()Optional. Whether enhanced query insights feature is enabled.
.google.protobuf.BoolValue enhanced_query_insights_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the enhancedQueryInsightsEnabled field is set. |
hasQueryPlansPerMinute()
public boolean hasQueryPlansPerMinute()Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
.google.protobuf.Int32Value query_plans_per_minute = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the queryPlansPerMinute field is set. |
hasQueryStringLength()
public boolean hasQueryStringLength()Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
.google.protobuf.Int32Value query_string_length = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the queryStringLength field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEnhancedQueryInsightsEnabled(BoolValue value)
public InsightsConfig.Builder mergeEnhancedQueryInsightsEnabled(BoolValue value)Optional. Whether enhanced query insights feature is enabled.
.google.protobuf.BoolValue enhanced_query_insights_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
mergeFrom(InsightsConfig other)
public InsightsConfig.Builder mergeFrom(InsightsConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
InsightsConfig |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InsightsConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public InsightsConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
mergeQueryPlansPerMinute(Int32Value value)
public InsightsConfig.Builder mergeQueryPlansPerMinute(Int32Value value)Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
.google.protobuf.Int32Value query_plans_per_minute = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
mergeQueryStringLength(Int32Value value)
public InsightsConfig.Builder mergeQueryStringLength(Int32Value value)Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
.google.protobuf.Int32Value query_string_length = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
setEnhancedQueryInsightsEnabled(BoolValue value)
public InsightsConfig.Builder setEnhancedQueryInsightsEnabled(BoolValue value)Optional. Whether enhanced query insights feature is enabled.
.google.protobuf.BoolValue enhanced_query_insights_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
setEnhancedQueryInsightsEnabled(BoolValue.Builder builderForValue)
public InsightsConfig.Builder setEnhancedQueryInsightsEnabled(BoolValue.Builder builderForValue)Optional. Whether enhanced query insights feature is enabled.
.google.protobuf.BoolValue enhanced_query_insights_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
setQueryInsightsEnabled(boolean value)
public InsightsConfig.Builder setQueryInsightsEnabled(boolean value)Whether Query Insights feature is enabled.
bool query_insights_enabled = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe queryInsightsEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
This builder for chaining. |
setQueryPlansPerMinute(Int32Value value)
public InsightsConfig.Builder setQueryPlansPerMinute(Int32Value value)Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
.google.protobuf.Int32Value query_plans_per_minute = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
setQueryPlansPerMinute(Int32Value.Builder builderForValue)
public InsightsConfig.Builder setQueryPlansPerMinute(Int32Value.Builder builderForValue)Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
.google.protobuf.Int32Value query_plans_per_minute = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
setQueryStringLength(Int32Value value)
public InsightsConfig.Builder setQueryStringLength(Int32Value value)Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
.google.protobuf.Int32Value query_string_length = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
setQueryStringLength(Int32Value.Builder builderForValue)
public InsightsConfig.Builder setQueryStringLength(Int32Value.Builder builderForValue)Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
.google.protobuf.Int32Value query_string_length = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
|
setRecordApplicationTags(boolean value)
public InsightsConfig.Builder setRecordApplicationTags(boolean value)Whether Query Insights will record application tags from query when enabled.
bool record_application_tags = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe recordApplicationTags to set. |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
This builder for chaining. |
setRecordClientAddress(boolean value)
public InsightsConfig.Builder setRecordClientAddress(boolean value)Whether Query Insights will record client address when enabled.
bool record_client_address = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe recordClientAddress to set. |
| Returns | |
|---|---|
| Type | Description |
InsightsConfig.Builder |
This builder for chaining. |