public static final class CloudSqlInstance.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder> implements CloudSqlInstanceOrBuilder
Represents a set of Cloud SQL instances. Each one will be available under /cloudsql/[instance]. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.Protobuf type
google.cloud.run.v2.CloudSqlInstance| Modifier and Type | Method and Description |
|---|---|
CloudSqlInstance.Builder |
addAllInstances(Iterable<String> values)
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances.
|
CloudSqlInstance.Builder |
addInstances(String value)
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances.
|
CloudSqlInstance.Builder |
addInstancesBytes(com.google.protobuf.ByteString value)
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances.
|
CloudSqlInstance.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CloudSqlInstance |
build() |
CloudSqlInstance |
buildPartial() |
CloudSqlInstance.Builder |
clear() |
CloudSqlInstance.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CloudSqlInstance.Builder |
clearInstances()
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances.
|
CloudSqlInstance.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CloudSqlInstance.Builder |
clone() |
CloudSqlInstance |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getInstances(int index)
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances.
|
com.google.protobuf.ByteString |
getInstancesBytes(int index)
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances.
|
int |
getInstancesCount()
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances.
|
com.google.protobuf.ProtocolStringList |
getInstancesList()
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CloudSqlInstance.Builder |
mergeFrom(CloudSqlInstance other) |
CloudSqlInstance.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CloudSqlInstance.Builder |
mergeFrom(com.google.protobuf.Message other) |
CloudSqlInstance.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CloudSqlInstance.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CloudSqlInstance.Builder |
setInstances(int index,
String value)
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances.
|
CloudSqlInstance.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CloudSqlInstance.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>public CloudSqlInstance.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>public CloudSqlInstance getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CloudSqlInstance build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CloudSqlInstance buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CloudSqlInstance.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>public CloudSqlInstance.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>public CloudSqlInstance.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>public CloudSqlInstance.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>public CloudSqlInstance.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>public CloudSqlInstance.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>public CloudSqlInstance.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudSqlInstance.Builder>public CloudSqlInstance.Builder mergeFrom(CloudSqlInstance other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>public CloudSqlInstance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudSqlInstance.Builder>IOExceptionpublic com.google.protobuf.ProtocolStringList getInstancesList()
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances. Visit
https://cloud.google.com/sql/docs/mysql/connect-run for more information on
how to connect Cloud SQL and Cloud Run. Format:
{project}:{location}:{instance}
repeated string instances = 1;getInstancesList in interface CloudSqlInstanceOrBuilderpublic int getInstancesCount()
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances. Visit
https://cloud.google.com/sql/docs/mysql/connect-run for more information on
how to connect Cloud SQL and Cloud Run. Format:
{project}:{location}:{instance}
repeated string instances = 1;getInstancesCount in interface CloudSqlInstanceOrBuilderpublic String getInstances(int index)
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances. Visit
https://cloud.google.com/sql/docs/mysql/connect-run for more information on
how to connect Cloud SQL and Cloud Run. Format:
{project}:{location}:{instance}
repeated string instances = 1;getInstances in interface CloudSqlInstanceOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getInstancesBytes(int index)
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances. Visit
https://cloud.google.com/sql/docs/mysql/connect-run for more information on
how to connect Cloud SQL and Cloud Run. Format:
{project}:{location}:{instance}
repeated string instances = 1;getInstancesBytes in interface CloudSqlInstanceOrBuilderindex - The index of the value to return.public CloudSqlInstance.Builder setInstances(int index, String value)
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances. Visit
https://cloud.google.com/sql/docs/mysql/connect-run for more information on
how to connect Cloud SQL and Cloud Run. Format:
{project}:{location}:{instance}
repeated string instances = 1;index - The index to set the value at.value - The instances to set.public CloudSqlInstance.Builder addInstances(String value)
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances. Visit
https://cloud.google.com/sql/docs/mysql/connect-run for more information on
how to connect Cloud SQL and Cloud Run. Format:
{project}:{location}:{instance}
repeated string instances = 1;value - The instances to add.public CloudSqlInstance.Builder addAllInstances(Iterable<String> values)
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances. Visit
https://cloud.google.com/sql/docs/mysql/connect-run for more information on
how to connect Cloud SQL and Cloud Run. Format:
{project}:{location}:{instance}
repeated string instances = 1;values - The instances to add.public CloudSqlInstance.Builder clearInstances()
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances. Visit
https://cloud.google.com/sql/docs/mysql/connect-run for more information on
how to connect Cloud SQL and Cloud Run. Format:
{project}:{location}:{instance}
repeated string instances = 1;public CloudSqlInstance.Builder addInstancesBytes(com.google.protobuf.ByteString value)
The Cloud SQL instance connection names, as can be found in
https://console.cloud.google.com/sql/instances. Visit
https://cloud.google.com/sql/docs/mysql/connect-run for more information on
how to connect Cloud SQL and Cloud Run. Format:
{project}:{location}:{instance}
repeated string instances = 1;value - The bytes of the instances to add.public final CloudSqlInstance.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>public final CloudSqlInstance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>Copyright © 2025 Google LLC. All rights reserved.