public static final class Database.Builder extends GeneratedMessage.Builder<Database.Builder> implements DatabaseOrBuilderRepresents a SQL database on the Cloud SQL instance.
Protobuf type google.cloud.sql.v1.Database
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Database.BuilderImplements
DatabaseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Database build()| Returns | |
|---|---|
| Type | Description |
Database |
|
buildPartial()
public Database buildPartial()| Returns | |
|---|---|
| Type | Description |
Database |
|
clear()
public Database.Builder clear()| Returns | |
|---|---|
| Type | Description |
Database.Builder |
|
clearCharset()
public Database.Builder clearCharset()The Cloud SQL charset value.
string charset = 2;
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
clearCollation()
public Database.Builder clearCollation()The Cloud SQL collation value.
string collation = 3;
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
clearDatabaseDetails()
public Database.Builder clearDatabaseDetails()| Returns | |
|---|---|
| Type | Description |
Database.Builder |
|
clearEtag()
public Database.Builder clearEtag()This field is deprecated and will be removed from a future version of the API.
string etag = 4;
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
clearInstance()
public Database.Builder clearInstance()The name of the Cloud SQL instance. This does not include the project ID.
string instance = 6;
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
clearKind()
public Database.Builder clearKind() This is always sql#database.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
clearName()
public Database.Builder clearName()The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
string name = 5;
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
clearProject()
public Database.Builder clearProject()The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
string project = 8;
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
clearSelfLink()
public Database.Builder clearSelfLink()The URI of this resource.
string self_link = 7;
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
clearSqlserverDatabaseDetails()
public Database.Builder clearSqlserverDatabaseDetails().google.cloud.sql.v1.SqlServerDatabaseDetails sqlserver_database_details = 9;
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
|
getCharset()
public String getCharset()The Cloud SQL charset value.
string charset = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The charset. |
getCharsetBytes()
public ByteString getCharsetBytes()The Cloud SQL charset value.
string charset = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for charset. |
getCollation()
public String getCollation()The Cloud SQL collation value.
string collation = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The collation. |
getCollationBytes()
public ByteString getCollationBytes()The Cloud SQL collation value.
string collation = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for collation. |
getDatabaseDetailsCase()
public Database.DatabaseDetailsCase getDatabaseDetailsCase()| Returns | |
|---|---|
| Type | Description |
Database.DatabaseDetailsCase |
|
getDefaultInstanceForType()
public Database getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Database |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEtag()
public String getEtag()This field is deprecated and will be removed from a future version of the API.
string etag = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The etag. |
getEtagBytes()
public ByteString getEtagBytes()This field is deprecated and will be removed from a future version of the API.
string etag = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for etag. |
getInstance()
public String getInstance()The name of the Cloud SQL instance. This does not include the project ID.
string instance = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The instance. |
getInstanceBytes()
public ByteString getInstanceBytes()The name of the Cloud SQL instance. This does not include the project ID.
string instance = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for instance. |
getKind()
public String getKind() This is always sql#database.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes() This is always sql#database.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getName()
public String getName()The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
string name = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
string name = 5;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getProject()
public String getProject()The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
string project = 8;
| Returns | |
|---|---|
| Type | Description |
String |
The project. |
getProjectBytes()
public ByteString getProjectBytes()The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
string project = 8;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for project. |
getSelfLink()
public String getSelfLink()The URI of this resource.
string self_link = 7;
| Returns | |
|---|---|
| Type | Description |
String |
The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()The URI of this resource.
string self_link = 7;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for selfLink. |
getSqlserverDatabaseDetails()
public SqlServerDatabaseDetails getSqlserverDatabaseDetails().google.cloud.sql.v1.SqlServerDatabaseDetails sqlserver_database_details = 9;
| Returns | |
|---|---|
| Type | Description |
SqlServerDatabaseDetails |
The sqlserverDatabaseDetails. |
getSqlserverDatabaseDetailsBuilder()
public SqlServerDatabaseDetails.Builder getSqlserverDatabaseDetailsBuilder().google.cloud.sql.v1.SqlServerDatabaseDetails sqlserver_database_details = 9;
| Returns | |
|---|---|
| Type | Description |
SqlServerDatabaseDetails.Builder |
|
getSqlserverDatabaseDetailsOrBuilder()
public SqlServerDatabaseDetailsOrBuilder getSqlserverDatabaseDetailsOrBuilder().google.cloud.sql.v1.SqlServerDatabaseDetails sqlserver_database_details = 9;
| Returns | |
|---|---|
| Type | Description |
SqlServerDatabaseDetailsOrBuilder |
|
hasSqlserverDatabaseDetails()
public boolean hasSqlserverDatabaseDetails().google.cloud.sql.v1.SqlServerDatabaseDetails sqlserver_database_details = 9;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sqlserverDatabaseDetails field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Database other)
public Database.Builder mergeFrom(Database other)| Parameter | |
|---|---|
| Name | Description |
other |
Database |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Database.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Database.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
|
mergeSqlserverDatabaseDetails(SqlServerDatabaseDetails value)
public Database.Builder mergeSqlserverDatabaseDetails(SqlServerDatabaseDetails value).google.cloud.sql.v1.SqlServerDatabaseDetails sqlserver_database_details = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
SqlServerDatabaseDetails |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
|
setCharset(String value)
public Database.Builder setCharset(String value)The Cloud SQL charset value.
string charset = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe charset to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setCharsetBytes(ByteString value)
public Database.Builder setCharsetBytes(ByteString value)The Cloud SQL charset value.
string charset = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for charset to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setCollation(String value)
public Database.Builder setCollation(String value)The Cloud SQL collation value.
string collation = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe collation to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setCollationBytes(ByteString value)
public Database.Builder setCollationBytes(ByteString value)The Cloud SQL collation value.
string collation = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for collation to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setEtag(String value)
public Database.Builder setEtag(String value)This field is deprecated and will be removed from a future version of the API.
string etag = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe etag to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setEtagBytes(ByteString value)
public Database.Builder setEtagBytes(ByteString value)This field is deprecated and will be removed from a future version of the API.
string etag = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for etag to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setInstance(String value)
public Database.Builder setInstance(String value)The name of the Cloud SQL instance. This does not include the project ID.
string instance = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe instance to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setInstanceBytes(ByteString value)
public Database.Builder setInstanceBytes(ByteString value)The name of the Cloud SQL instance. This does not include the project ID.
string instance = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for instance to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setKind(String value)
public Database.Builder setKind(String value) This is always sql#database.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public Database.Builder setKindBytes(ByteString value) This is always sql#database.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setName(String value)
public Database.Builder setName(String value)The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
string name = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Database.Builder setNameBytes(ByteString value)The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
string name = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setProject(String value)
public Database.Builder setProject(String value)The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
string project = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe project to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setProjectBytes(ByteString value)
public Database.Builder setProjectBytes(ByteString value)The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
string project = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for project to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setSelfLink(String value)
public Database.Builder setSelfLink(String value)The URI of this resource.
string self_link = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setSelfLinkBytes(ByteString value)
public Database.Builder setSelfLinkBytes(ByteString value)The URI of this resource.
string self_link = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
This builder for chaining. |
setSqlserverDatabaseDetails(SqlServerDatabaseDetails value)
public Database.Builder setSqlserverDatabaseDetails(SqlServerDatabaseDetails value).google.cloud.sql.v1.SqlServerDatabaseDetails sqlserver_database_details = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
SqlServerDatabaseDetails |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
|
setSqlserverDatabaseDetails(SqlServerDatabaseDetails.Builder builderForValue)
public Database.Builder setSqlserverDatabaseDetails(SqlServerDatabaseDetails.Builder builderForValue).google.cloud.sql.v1.SqlServerDatabaseDetails sqlserver_database_details = 9;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SqlServerDatabaseDetails.Builder |
| Returns | |
|---|---|
| Type | Description |
Database.Builder |
|