Class ConnectionProto.CloudSqlProperties.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
- com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder
-
- All Implemented Interfaces:
ConnectionProto.CloudSqlPropertiesOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConnectionProto.CloudSqlProperties
public static final class ConnectionProto.CloudSqlProperties.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder> implements ConnectionProto.CloudSqlPropertiesOrBuilder
Connection properties specific to the Cloud SQL.
Protobuf typegoogle.cloud.bigquery.connection.v1beta1.CloudSqlProperties
-
-
Method Summary
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
clear
public ConnectionProto.CloudSqlProperties.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
getDefaultInstanceForType
public ConnectionProto.CloudSqlProperties getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ConnectionProto.CloudSqlProperties build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ConnectionProto.CloudSqlProperties buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ConnectionProto.CloudSqlProperties.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
setField
public ConnectionProto.CloudSqlProperties.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
clearField
public ConnectionProto.CloudSqlProperties.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
clearOneof
public ConnectionProto.CloudSqlProperties.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
setRepeatedField
public ConnectionProto.CloudSqlProperties.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
addRepeatedField
public ConnectionProto.CloudSqlProperties.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
mergeFrom
public ConnectionProto.CloudSqlProperties.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
mergeFrom
public ConnectionProto.CloudSqlProperties.Builder mergeFrom(ConnectionProto.CloudSqlProperties other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
mergeFrom
public ConnectionProto.CloudSqlProperties.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConnectionProto.CloudSqlProperties.Builder>- Throws:
IOException
-
getInstanceId
public String getInstanceId()
Cloud SQL instance ID in the form `project:location:instance`.
string instance_id = 1;- Specified by:
getInstanceIdin interfaceConnectionProto.CloudSqlPropertiesOrBuilder- 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:
getInstanceIdBytesin interfaceConnectionProto.CloudSqlPropertiesOrBuilder- Returns:
- The bytes for instanceId.
-
setInstanceId
public ConnectionProto.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 ConnectionProto.CloudSqlProperties.Builder clearInstanceId()
Cloud SQL instance ID in the form `project:location:instance`.
string instance_id = 1;- Returns:
- This builder for chaining.
-
setInstanceIdBytes
public ConnectionProto.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:
getDatabasein interfaceConnectionProto.CloudSqlPropertiesOrBuilder- Returns:
- The database.
-
getDatabaseBytes
public com.google.protobuf.ByteString getDatabaseBytes()
Database name.
string database = 2;- Specified by:
getDatabaseBytesin interfaceConnectionProto.CloudSqlPropertiesOrBuilder- Returns:
- The bytes for database.
-
setDatabase
public ConnectionProto.CloudSqlProperties.Builder setDatabase(String value)
Database name.
string database = 2;- Parameters:
value- The database to set.- Returns:
- This builder for chaining.
-
clearDatabase
public ConnectionProto.CloudSqlProperties.Builder clearDatabase()
Database name.
string database = 2;- Returns:
- This builder for chaining.
-
setDatabaseBytes
public ConnectionProto.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.v1beta1.CloudSqlProperties.DatabaseType type = 3;- Specified by:
getTypeValuein interfaceConnectionProto.CloudSqlPropertiesOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public ConnectionProto.CloudSqlProperties.Builder setTypeValue(int value)
Type of the Cloud SQL database.
.google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public ConnectionProto.CloudSqlProperties.DatabaseType getType()
Type of the Cloud SQL database.
.google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3;- Specified by:
getTypein interfaceConnectionProto.CloudSqlPropertiesOrBuilder- Returns:
- The type.
-
setType
public ConnectionProto.CloudSqlProperties.Builder setType(ConnectionProto.CloudSqlProperties.DatabaseType value)
Type of the Cloud SQL database.
.google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public ConnectionProto.CloudSqlProperties.Builder clearType()
Type of the Cloud SQL database.
.google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3;- Returns:
- This builder for chaining.
-
hasCredential
public boolean hasCredential()
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
hasCredentialin interfaceConnectionProto.CloudSqlPropertiesOrBuilder- Returns:
- Whether the credential field is set.
-
getCredential
public ConnectionProto.CloudSqlCredential getCredential()
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getCredentialin interfaceConnectionProto.CloudSqlPropertiesOrBuilder- Returns:
- The credential.
-
setCredential
public ConnectionProto.CloudSqlProperties.Builder setCredential(ConnectionProto.CloudSqlCredential value)
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
-
setCredential
public ConnectionProto.CloudSqlProperties.Builder setCredential(ConnectionProto.CloudSqlCredential.Builder builderForValue)
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
-
mergeCredential
public ConnectionProto.CloudSqlProperties.Builder mergeCredential(ConnectionProto.CloudSqlCredential value)
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
-
clearCredential
public ConnectionProto.CloudSqlProperties.Builder clearCredential()
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
-
getCredentialBuilder
public ConnectionProto.CloudSqlCredential.Builder getCredentialBuilder()
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];
-
getCredentialOrBuilder
public ConnectionProto.CloudSqlCredentialOrBuilder getCredentialOrBuilder()
Input only. Cloud SQL credential.
.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getCredentialOrBuilderin interfaceConnectionProto.CloudSqlPropertiesOrBuilder
-
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:
getServiceAccountIdin interfaceConnectionProto.CloudSqlPropertiesOrBuilder- 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:
getServiceAccountIdBytesin interfaceConnectionProto.CloudSqlPropertiesOrBuilder- Returns:
- The bytes for serviceAccountId.
-
setServiceAccountId
public ConnectionProto.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 ConnectionProto.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 ConnectionProto.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 ConnectionProto.CloudSqlProperties.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
mergeUnknownFields
public final ConnectionProto.CloudSqlProperties.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
-