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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
clear
public ConnectionProto.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<ConnectionProto.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<ConnectionProto.CloudSqlProperties.Builder>
-
getDefaultInstanceForType
public ConnectionProto.CloudSqlProperties getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ConnectionProto.CloudSqlProperties build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ConnectionProto.CloudSqlProperties buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ConnectionProto.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<ConnectionProto.CloudSqlProperties.Builder>
-
setField
public ConnectionProto.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<ConnectionProto.CloudSqlProperties.Builder>
-
clearField
public ConnectionProto.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<ConnectionProto.CloudSqlProperties.Builder>
-
clearOneof
public ConnectionProto.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<ConnectionProto.CloudSqlProperties.Builder>
-
setRepeatedField
public ConnectionProto.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<ConnectionProto.CloudSqlProperties.Builder>
-
addRepeatedField
public ConnectionProto.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<ConnectionProto.CloudSqlProperties.Builder>
-
mergeFrom
public ConnectionProto.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<ConnectionProto.CloudSqlProperties.Builder>
-
mergeFrom
public ConnectionProto.CloudSqlProperties.Builder mergeFrom(ConnectionProto.CloudSqlProperties other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getInstanceId
in 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:
getInstanceIdBytes
in 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:
getDatabase
in interfaceConnectionProto.CloudSqlPropertiesOrBuilder
- Returns:
- The database.
-
getDatabaseBytes
public com.google.protobuf.ByteString getDatabaseBytes()
Database name.
string database = 2;
- Specified by:
getDatabaseBytes
in 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:
getTypeValue
in 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:
getType
in 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:
hasCredential
in 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:
getCredential
in 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:
getCredentialOrBuilder
in 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:
getServiceAccountId
in 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:
getServiceAccountIdBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder>
-
mergeUnknownFields
public final ConnectionProto.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<ConnectionProto.CloudSqlProperties.Builder>
-
-