public static final class InefficientQueryInfo.Builder extends GeneratedMessage.Builder<InefficientQueryInfo.Builder> implements InefficientQueryInfoOrBuilderMetadata about inefficient query signal info for a database resource.
Protobuf type google.cloud.databasecenter.v1beta.InefficientQueryInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > InefficientQueryInfo.BuilderImplements
InefficientQueryInfoOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public InefficientQueryInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
InefficientQueryInfo.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
longThe 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 |
StringThe 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 |
ByteStringThe 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 |
longThe 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 |
StringThe 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 |
ByteStringThe bytes for table to set. |
| Returns | |
|---|---|
| Type | Description |
InefficientQueryInfo.Builder |
This builder for chaining. |