Package com.google.cloud.run.v2
Class CloudSqlInstance.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>
-
- com.google.cloud.run.v2.CloudSqlInstance.Builder
-
- All Implemented Interfaces:
CloudSqlInstanceOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CloudSqlInstance
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 typegoogle.cloud.run.v2.CloudSqlInstance
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
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<CloudSqlInstance.Builder>
-
clear
public CloudSqlInstance.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<CloudSqlInstance.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<CloudSqlInstance.Builder>
-
getDefaultInstanceForType
public CloudSqlInstance getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CloudSqlInstance build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CloudSqlInstance buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CloudSqlInstance.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<CloudSqlInstance.Builder>
-
setField
public CloudSqlInstance.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<CloudSqlInstance.Builder>
-
clearField
public CloudSqlInstance.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<CloudSqlInstance.Builder>
-
clearOneof
public CloudSqlInstance.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<CloudSqlInstance.Builder>
-
setRepeatedField
public CloudSqlInstance.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<CloudSqlInstance.Builder>
-
addRepeatedField
public CloudSqlInstance.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<CloudSqlInstance.Builder>
-
mergeFrom
public CloudSqlInstance.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CloudSqlInstance.Builder>
-
mergeFrom
public CloudSqlInstance.Builder mergeFrom(CloudSqlInstance other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>
-
mergeFrom
public CloudSqlInstance.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<CloudSqlInstance.Builder>
- Throws:
IOException
-
getInstancesList
public 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;
- Specified by:
getInstancesList
in interfaceCloudSqlInstanceOrBuilder
- Returns:
- A list containing the instances.
-
getInstancesCount
public 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;
- Specified by:
getInstancesCount
in interfaceCloudSqlInstanceOrBuilder
- Returns:
- The count of instances.
-
getInstances
public 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;
- Specified by:
getInstances
in interfaceCloudSqlInstanceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The instances at the given index.
-
getInstancesBytes
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;
- Specified by:
getInstancesBytes
in interfaceCloudSqlInstanceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the instances at the given index.
-
setInstances
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;
- Parameters:
index
- The index to set the value at.value
- The instances to set.- Returns:
- This builder for chaining.
-
addInstances
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;
- Parameters:
value
- The instances to add.- Returns:
- This builder for chaining.
-
addAllInstances
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;
- Parameters:
values
- The instances to add.- Returns:
- This builder for chaining.
-
clearInstances
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;
- Returns:
- This builder for chaining.
-
addInstancesBytes
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;
- Parameters:
value
- The bytes of the instances to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CloudSqlInstance.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>
-
mergeUnknownFields
public final CloudSqlInstance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlInstance.Builder>
-
-