Class InefficientQueryInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InefficientQueryInfo.Builder>
com.google.cloud.databasecenter.v1beta.InefficientQueryInfo.Builder
All Implemented Interfaces:
InefficientQueryInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
InefficientQueryInfo

public static final class InefficientQueryInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<InefficientQueryInfo.Builder> implements InefficientQueryInfoOrBuilder
 Metadata about inefficient query signal info for a database resource.
 
Protobuf type google.cloud.databasecenter.v1beta.InefficientQueryInfo
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<InefficientQueryInfo.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<InefficientQueryInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<InefficientQueryInfo.Builder>
    • getDefaultInstanceForType

      public InefficientQueryInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public InefficientQueryInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public InefficientQueryInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public InefficientQueryInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InefficientQueryInfo.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<InefficientQueryInfo.Builder>
    • mergeFrom

      public InefficientQueryInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InefficientQueryInfo.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getDatabase in interface InefficientQueryInfoOrBuilder
      Returns:
      The database.
    • getDatabaseBytes

      public com.google.protobuf.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;
      Specified by:
      getDatabaseBytes in interface InefficientQueryInfoOrBuilder
      Returns:
      The bytes for database.
    • setDatabase

      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;
      Parameters:
      value - The database to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setDatabaseBytes

      public InefficientQueryInfo.Builder setDatabaseBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for database to set.
      Returns:
      This builder for chaining.
    • getTable

      public String getTable()
       Name of the table where index is required
       
      string table = 2;
      Specified by:
      getTable in interface InefficientQueryInfoOrBuilder
      Returns:
      The table.
    • getTableBytes

      public com.google.protobuf.ByteString getTableBytes()
       Name of the table where index is required
       
      string table = 2;
      Specified by:
      getTableBytes in interface InefficientQueryInfoOrBuilder
      Returns:
      The bytes for table.
    • setTable

      public InefficientQueryInfo.Builder setTable(String value)
       Name of the table where index is required
       
      string table = 2;
      Parameters:
      value - The table to set.
      Returns:
      This builder for chaining.
    • clearTable

      public InefficientQueryInfo.Builder clearTable()
       Name of the table where index is required
       
      string table = 2;
      Returns:
      This builder for chaining.
    • setTableBytes

      public InefficientQueryInfo.Builder setTableBytes(com.google.protobuf.ByteString value)
       Name of the table where index is required
       
      string table = 2;
      Parameters:
      value - The bytes for table to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getSqlIndexStatement in interface InefficientQueryInfoOrBuilder
      Returns:
      The sqlIndexStatement.
    • getSqlIndexStatementBytes

      public com.google.protobuf.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;
      Specified by:
      getSqlIndexStatementBytes in interface InefficientQueryInfoOrBuilder
      Returns:
      The bytes for sqlIndexStatement.
    • setSqlIndexStatement

      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;
      Parameters:
      value - The sqlIndexStatement to set.
      Returns:
      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:
      This builder for chaining.
    • setSqlIndexStatementBytes

      public InefficientQueryInfo.Builder setSqlIndexStatementBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for sqlIndexStatement to set.
      Returns:
      This builder for chaining.
    • getStorageCostBytes

      public long getStorageCostBytes()
       Cost of additional disk usage in bytes
       
      int64 storage_cost_bytes = 4;
      Specified by:
      getStorageCostBytes in interface InefficientQueryInfoOrBuilder
      Returns:
      The storageCostBytes.
    • setStorageCostBytes

      public InefficientQueryInfo.Builder setStorageCostBytes(long value)
       Cost of additional disk usage in bytes
       
      int64 storage_cost_bytes = 4;
      Parameters:
      value - The storageCostBytes to set.
      Returns:
      This builder for chaining.
    • clearStorageCostBytes

      public InefficientQueryInfo.Builder clearStorageCostBytes()
       Cost of additional disk usage in bytes
       
      int64 storage_cost_bytes = 4;
      Returns:
      This builder for chaining.
    • getImpactedQueriesCount

      public long getImpactedQueriesCount()
       Count of queries to be impacted if index is applied
       
      int64 impacted_queries_count = 5;
      Specified by:
      getImpactedQueriesCount in interface InefficientQueryInfoOrBuilder
      Returns:
      The impactedQueriesCount.
    • setImpactedQueriesCount

      public InefficientQueryInfo.Builder setImpactedQueriesCount(long value)
       Count of queries to be impacted if index is applied
       
      int64 impacted_queries_count = 5;
      Parameters:
      value - The impactedQueriesCount to set.
      Returns:
      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:
      This builder for chaining.