public final class Database extends GeneratedMessage implements DatabaseOrBuilder
Represents a SQL database on the Cloud SQL instance.
Protobuf type google.cloud.sql.v1beta4.Database
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
CHARSET_FIELD_NUMBER
public static final int CHARSET_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
COLLATION_FIELD_NUMBER
public static final int COLLATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
INSTANCE_FIELD_NUMBER
public static final int INSTANCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PROJECT_FIELD_NUMBER
public static final int PROJECT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SQLSERVER_DATABASE_DETAILS_FIELD_NUMBER
public static final int SQLSERVER_DATABASE_DETAILS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Database getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Database.Builder newBuilder()
newBuilder(Database prototype)
public static Database.Builder newBuilder(Database prototype)
| Parameter |
| Name |
Description |
prototype |
Database
|
public static Database parseDelimitedFrom(InputStream input)
public static Database parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Database parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Database parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(CodedInputStream input)
public static Database parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(InputStream input)
public static Database parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Database parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Database> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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()
getDefaultInstanceForType()
public Database getDefaultInstanceForType()
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()
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()
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.
|
getParserForType()
public Parser<Database> getParserForType()
Overrides
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.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSqlserverDatabaseDetails()
public SqlServerDatabaseDetails getSqlserverDatabaseDetails()
.google.cloud.sql.v1beta4.SqlServerDatabaseDetails sqlserver_database_details = 9;
getSqlserverDatabaseDetailsOrBuilder()
public SqlServerDatabaseDetailsOrBuilder getSqlserverDatabaseDetailsOrBuilder()
.google.cloud.sql.v1beta4.SqlServerDatabaseDetails sqlserver_database_details = 9;
hasSqlserverDatabaseDetails()
public boolean hasSqlserverDatabaseDetails()
.google.cloud.sql.v1beta4.SqlServerDatabaseDetails sqlserver_database_details = 9;
| Returns |
| Type |
Description |
boolean |
Whether the sqlserverDatabaseDetails field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Database.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Database.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Database.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides