Class InsightsConfig (0.1.0)

public final class InsightsConfig extends GeneratedMessage implements InsightsConfigOrBuilder

Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration.

Protobuf type google.cloud.sql.v1.InsightsConfig

Static Fields

ENHANCED_QUERY_INSIGHTS_ENABLED_FIELD_NUMBER

public static final int ENHANCED_QUERY_INSIGHTS_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

QUERY_INSIGHTS_ENABLED_FIELD_NUMBER

public static final int QUERY_INSIGHTS_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

QUERY_PLANS_PER_MINUTE_FIELD_NUMBER

public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER
Field Value
Type Description
int

QUERY_STRING_LENGTH_FIELD_NUMBER

public static final int QUERY_STRING_LENGTH_FIELD_NUMBER
Field Value
Type Description
int

RECORD_APPLICATION_TAGS_FIELD_NUMBER

public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER
Field Value
Type Description
int

RECORD_CLIENT_ADDRESS_FIELD_NUMBER

public static final int RECORD_CLIENT_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InsightsConfig getDefaultInstance()
Returns
Type Description
InsightsConfig

getDescriptor()

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

newBuilder()

public static InsightsConfig.Builder newBuilder()
Returns
Type Description
InsightsConfig.Builder

newBuilder(InsightsConfig prototype)

public static InsightsConfig.Builder newBuilder(InsightsConfig prototype)
Parameter
Name Description
prototype InsightsConfig
Returns
Type Description
InsightsConfig.Builder

parseDelimitedFrom(InputStream input)

public static InsightsConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InsightsConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InsightsConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InsightsConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static InsightsConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
InsightsConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InsightsConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InsightsConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InsightsConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
InsightsConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InsightsConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InsightsConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InsightsConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
InsightsConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InsightsConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InsightsConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static InsightsConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InsightsConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InsightsConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InsightsConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static InsightsConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
InsightsConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InsightsConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InsightsConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<InsightsConfig> parser()
Returns
Type Description
Parser<InsightsConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public InsightsConfig getDefaultInstanceForType()
Returns
Type Description
InsightsConfig

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.

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

getParserForType()

public Parser<InsightsConfig> getParserForType()
Returns
Type Description
Parser<InsightsConfig>
Overrides

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.

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.

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public InsightsConfig.Builder newBuilderForType()
Returns
Type Description
InsightsConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected InsightsConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
InsightsConfig.Builder
Overrides

toBuilder()

public InsightsConfig.Builder toBuilder()
Returns
Type Description
InsightsConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException