Class InefficientQueryInfo.Builder (0.6.0)

public static final class InefficientQueryInfo.Builder extends GeneratedMessage.Builder<InefficientQueryInfo.Builder> implements InefficientQueryInfoOrBuilder

Metadata about inefficient query signal info for a database resource.

Protobuf type google.cloud.databasecenter.v1beta.InefficientQueryInfo

Static Methods

getDescriptor()

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

Methods

build()

public InefficientQueryInfo build()
Returns
Type Description
InefficientQueryInfo

buildPartial()

public InefficientQueryInfo buildPartial()
Returns
Type Description
InefficientQueryInfo

clear()

public InefficientQueryInfo.Builder clear()
Returns
Type Description
InefficientQueryInfo.Builder
Overrides

clearDatabase()

public InefficientQueryInfo.Builder clearDatabase()

Name of the database where index is required. For example, "db1", which is the name of the database present in the instance.

string database = 1;

Returns
Type Description
InefficientQueryInfo.Builder

This builder for chaining.

clearImpactedQueriesCount()

public InefficientQueryInfo.Builder clearImpactedQueriesCount()

Count of queries to be impacted if index is applied

int64 impacted_queries_count = 5;

Returns
Type Description
InefficientQueryInfo.Builder

This builder for chaining.

clearSqlIndexStatement()

public InefficientQueryInfo.Builder clearSqlIndexStatement()

SQL statement of the index. Based on the ddl type, this will be either CREATE INDEX or DROP INDEX.

string sql_index_statement = 3;

Returns
Type Description
InefficientQueryInfo.Builder

This builder for chaining.

clearStorageCostBytes()

public InefficientQueryInfo.Builder clearStorageCostBytes()

Cost of additional disk usage in bytes

int64 storage_cost_bytes = 4;

Returns
Type Description
InefficientQueryInfo.Builder

This builder for chaining.

clearTable()

public InefficientQueryInfo.Builder clearTable()

Name of the table where index is required

string table = 2;

Returns
Type Description
InefficientQueryInfo.Builder

This builder for chaining.

getDatabase()

public String getDatabase()

Name of the database where index is required. For example, "db1", which is the name of the database present in the instance.

string database = 1;

Returns
Type Description
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

Name of the database where index is required. For example, "db1", which is the name of the database present in the instance.

string database = 1;

Returns
Type Description
ByteString

The bytes for database.

getDefaultInstanceForType()

public InefficientQueryInfo getDefaultInstanceForType()
Returns
Type Description
InefficientQueryInfo

getDescriptorForType()

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

getImpactedQueriesCount()

public long getImpactedQueriesCount()

Count of queries to be impacted if index is applied

int64 impacted_queries_count = 5;

Returns
Type Description
long

The impactedQueriesCount.

getSqlIndexStatement()

public String getSqlIndexStatement()

SQL statement of the index. Based on the ddl type, this will be either CREATE INDEX or DROP INDEX.

string sql_index_statement = 3;

Returns
Type Description
String

The sqlIndexStatement.

getSqlIndexStatementBytes()

public ByteString getSqlIndexStatementBytes()

SQL statement of the index. Based on the ddl type, this will be either CREATE INDEX or DROP INDEX.

string sql_index_statement = 3;

Returns
Type Description
ByteString

The bytes for sqlIndexStatement.

getStorageCostBytes()

public long getStorageCostBytes()

Cost of additional disk usage in bytes

int64 storage_cost_bytes = 4;

Returns
Type Description
long

The storageCostBytes.

getTable()

public String getTable()

Name of the table where index is required

string table = 2;

Returns
Type Description
String

The table.

getTableBytes()

public ByteString getTableBytes()

Name of the table where index is required

string table = 2;

Returns
Type Description
ByteString

The bytes for table.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InefficientQueryInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDatabase(String value)

public InefficientQueryInfo.Builder setDatabase(String value)

Name of the database where index is required. For example, "db1", which is the name of the database present in the instance.

string database = 1;

Parameter
Name Description
value String

The database to set.

Returns
Type Description
InefficientQueryInfo.Builder

This builder for chaining.

setDatabaseBytes(ByteString value)

public InefficientQueryInfo.Builder setDatabaseBytes(ByteString value)

Name of the database where index is required. For example, "db1", which is the name of the database present in the instance.

string database = 1;

Parameter
Name Description
value ByteString

The bytes for database to set.

Returns
Type Description
InefficientQueryInfo.Builder

This builder for chaining.

setImpactedQueriesCount(long value)

public InefficientQueryInfo.Builder setImpactedQueriesCount(long value)

Count of queries to be impacted if index is applied

int64 impacted_queries_count = 5;

Parameter
Name Description
value long

The impactedQueriesCount to set.

Returns
Type Description
InefficientQueryInfo.Builder

This builder for chaining.

setSqlIndexStatement(String value)

public InefficientQueryInfo.Builder setSqlIndexStatement(String value)

SQL statement of the index. Based on the ddl type, this will be either CREATE INDEX or DROP INDEX.

string sql_index_statement = 3;

Parameter
Name Description
value String

The sqlIndexStatement to set.

Returns
Type Description
InefficientQueryInfo.Builder

This builder for chaining.

setSqlIndexStatementBytes(ByteString value)

public InefficientQueryInfo.Builder setSqlIndexStatementBytes(ByteString value)

SQL statement of the index. Based on the ddl type, this will be either CREATE INDEX or DROP INDEX.

string sql_index_statement = 3;

Parameter
Name Description
value ByteString

The bytes for sqlIndexStatement to set.

Returns
Type Description
InefficientQueryInfo.Builder

This builder for chaining.

setStorageCostBytes(long value)

public InefficientQueryInfo.Builder setStorageCostBytes(long value)

Cost of additional disk usage in bytes

int64 storage_cost_bytes = 4;

Parameter
Name Description
value long

The storageCostBytes to set.

Returns
Type Description
InefficientQueryInfo.Builder

This builder for chaining.

setTable(String value)

public InefficientQueryInfo.Builder setTable(String value)

Name of the table where index is required

string table = 2;

Parameter
Name Description
value String

The table to set.

Returns
Type Description
InefficientQueryInfo.Builder

This builder for chaining.

setTableBytes(ByteString value)

public InefficientQueryInfo.Builder setTableBytes(ByteString value)

Name of the table where index is required

string table = 2;

Parameter
Name Description
value ByteString

The bytes for table to set.

Returns
Type Description
InefficientQueryInfo.Builder

This builder for chaining.