Class CloudSqlProperties.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
-
- com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder
-
- All Implemented Interfaces:
CloudSqlPropertiesOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CloudSqlProperties
public static final class CloudSqlProperties.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder> implements CloudSqlPropertiesOrBuilder
Connection properties specific to the Cloud SQL.
Protobuf typegoogle.cloud.bigquery.connection.v1.CloudSqlProperties
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudSqlProperties.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CloudSqlProperties
build()
CloudSqlProperties
buildPartial()
CloudSqlProperties.Builder
clear()
CloudSqlProperties.Builder
clearCredential()
Input only.CloudSqlProperties.Builder
clearDatabase()
Database name.CloudSqlProperties.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CloudSqlProperties.Builder
clearInstanceId()
Cloud SQL instance ID in the form `project:location:instance`.CloudSqlProperties.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CloudSqlProperties.Builder
clearServiceAccountId()
Output only.CloudSqlProperties.Builder
clearType()
Type of the Cloud SQL database.CloudSqlProperties.Builder
clone()
CloudSqlCredential
getCredential()
Input only.CloudSqlCredential.Builder
getCredentialBuilder()
Input only.CloudSqlCredentialOrBuilder
getCredentialOrBuilder()
Input only.String
getDatabase()
Database name.com.google.protobuf.ByteString
getDatabaseBytes()
Database name.CloudSqlProperties
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getInstanceId()
Cloud SQL instance ID in the form `project:location:instance`.com.google.protobuf.ByteString
getInstanceIdBytes()
Cloud SQL instance ID in the form `project:location:instance`.String
getServiceAccountId()
Output only.com.google.protobuf.ByteString
getServiceAccountIdBytes()
Output only.CloudSqlProperties.DatabaseType
getType()
Type of the Cloud SQL database.int
getTypeValue()
Type of the Cloud SQL database.boolean
hasCredential()
Input only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CloudSqlProperties.Builder
mergeCredential(CloudSqlCredential value)
Input only.CloudSqlProperties.Builder
mergeFrom(CloudSqlProperties other)
CloudSqlProperties.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CloudSqlProperties.Builder
mergeFrom(com.google.protobuf.Message other)
CloudSqlProperties.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CloudSqlProperties.Builder
setCredential(CloudSqlCredential value)
Input only.CloudSqlProperties.Builder
setCredential(CloudSqlCredential.Builder builderForValue)
Input only.CloudSqlProperties.Builder
setDatabase(String value)
Database name.CloudSqlProperties.Builder
setDatabaseBytes(com.google.protobuf.ByteString value)
Database name.CloudSqlProperties.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CloudSqlProperties.Builder
setInstanceId(String value)
Cloud SQL instance ID in the form `project:location:instance`.CloudSqlProperties.Builder
setInstanceIdBytes(com.google.protobuf.ByteString value)
Cloud SQL instance ID in the form `project:location:instance`.CloudSqlProperties.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CloudSqlProperties.Builder
setServiceAccountId(String value)
Output only.CloudSqlProperties.Builder
setServiceAccountIdBytes(com.google.protobuf.ByteString value)
Output only.CloudSqlProperties.Builder
setType(CloudSqlProperties.DatabaseType value)
Type of the Cloud SQL database.CloudSqlProperties.Builder
setTypeValue(int value)
Type of the Cloud SQL database.CloudSqlProperties.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
-
clear
public CloudSqlProperties.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
-
getDefaultInstanceForType
public CloudSqlProperties getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CloudSqlProperties build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CloudSqlProperties buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CloudSqlProperties.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
-
setField
public CloudSqlProperties.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
-
clearField
public CloudSqlProperties.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
-
clearOneof
public CloudSqlProperties.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
-
setRepeatedField
public CloudSqlProperties.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
-
addRepeatedField
public CloudSqlProperties.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
-
mergeFrom
public CloudSqlProperties.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CloudSqlProperties.Builder>
-
mergeFrom
public CloudSqlProperties.Builder mergeFrom(CloudSqlProperties other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
-
mergeFrom
public CloudSqlProperties.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CloudSqlProperties.Builder>
- Throws:
IOException
-
getInstanceId
public String getInstanceId()
Cloud SQL instance ID in the form `project:location:instance`.
string instance_id = 1;
- Specified by:
getInstanceId
in interfaceCloudSqlPropertiesOrBuilder
- Returns:
- The instanceId.
-
getInstanceIdBytes
public com.google.protobuf.ByteString getInstanceIdBytes()
Cloud SQL instance ID in the form `project:location:instance`.
string instance_id = 1;
- Specified by:
getInstanceIdBytes
in interfaceCloudSqlPropertiesOrBuilder
- Returns:
- The bytes for instanceId.
-
setInstanceId
public CloudSqlProperties.Builder setInstanceId(String value)
Cloud SQL instance ID in the form `project:location:instance`.
string instance_id = 1;
- Parameters:
value
- The instanceId to set.- Returns:
- This builder for chaining.
-
clearInstanceId
public CloudSqlProperties.Builder clearInstanceId()
Cloud SQL instance ID in the form `project:location:instance`.
string instance_id = 1;
- Returns:
- This builder for chaining.
-
setInstanceIdBytes
public CloudSqlProperties.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
Cloud SQL instance ID in the form `project:location:instance`.
string instance_id = 1;
- Parameters:
value
- The bytes for instanceId to set.- Returns:
- This builder for chaining.
-
getDatabase
public String getDatabase()
Database name.
string database = 2;
- Specified by:
getDatabase
in interfaceCloudSqlPropertiesOrBuilder
- Returns:
- The database.
-
getDatabaseBytes
public com.google.protobuf.ByteString getDatabaseBytes()
Database name.
string database = 2;
- Specified by:
getDatabaseBytes
in interfaceCloudSqlPropertiesOrBuilder
- Returns:
- The bytes for database.
-
setDatabase
public CloudSqlProperties.Builder setDatabase(String value)
Database name.
string database = 2;
- Parameters:
value
- The database to set.- Returns:
- This builder for chaining.
-
clearDatabase
public CloudSqlProperties.Builder clearDatabase()
Database name.
string database = 2;
- Returns:
- This builder for chaining.
-
setDatabaseBytes
public CloudSqlProperties.Builder setDatabaseBytes(com.google.protobuf.ByteString value)
Database name.
string database = 2;
- Parameters:
value
- The bytes for database to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
Type of the Cloud SQL database.
.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3;
- Specified by:
getTypeValue
in interfaceCloudSqlPropertiesOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public CloudSqlProperties.Builder setTypeValue(int value)
Type of the Cloud SQL database.
.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3;
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public CloudSqlProperties.DatabaseType getType()
Type of the Cloud SQL database.
.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3;
- Specified by:
getType
in interfaceCloudSqlPropertiesOrBuilder
- Returns:
- The type.
-
setType
public CloudSqlProperties.Builder setType(CloudSqlProperties.DatabaseType value)
Type of the Cloud SQL database.
.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public CloudSqlProperties.Builder clearType()
Type of the Cloud SQL database.
.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3;
- Returns:
- This builder for chaining.
-
hasCredential
public boolean hasCredential()
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
hasCredential
in interfaceCloudSqlPropertiesOrBuilder
- Returns:
- Whether the credential field is set.
-
getCredential
public CloudSqlCredential getCredential()
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getCredential
in interfaceCloudSqlPropertiesOrBuilder
- Returns:
- The credential.
-
setCredential
public CloudSqlProperties.Builder setCredential(CloudSqlCredential value)
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
-
setCredential
public CloudSqlProperties.Builder setCredential(CloudSqlCredential.Builder builderForValue)
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
-
mergeCredential
public CloudSqlProperties.Builder mergeCredential(CloudSqlCredential value)
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
-
clearCredential
public CloudSqlProperties.Builder clearCredential()
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
-
getCredentialBuilder
public CloudSqlCredential.Builder getCredentialBuilder()
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
-
getCredentialOrBuilder
public CloudSqlCredentialOrBuilder getCredentialOrBuilder()
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getCredentialOrBuilder
in interfaceCloudSqlPropertiesOrBuilder
-
getServiceAccountId
public String getServiceAccountId()
Output only. The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.
string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getServiceAccountId
in interfaceCloudSqlPropertiesOrBuilder
- Returns:
- The serviceAccountId.
-
getServiceAccountIdBytes
public com.google.protobuf.ByteString getServiceAccountIdBytes()
Output only. The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.
string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getServiceAccountIdBytes
in interfaceCloudSqlPropertiesOrBuilder
- Returns:
- The bytes for serviceAccountId.
-
setServiceAccountId
public CloudSqlProperties.Builder setServiceAccountId(String value)
Output only. The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.
string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The serviceAccountId to set.- Returns:
- This builder for chaining.
-
clearServiceAccountId
public CloudSqlProperties.Builder clearServiceAccountId()
Output only. The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.
string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setServiceAccountIdBytes
public CloudSqlProperties.Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value)
Output only. The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.
string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for serviceAccountId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CloudSqlProperties.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
-
mergeUnknownFields
public final CloudSqlProperties.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlProperties.Builder>
-
-