Class CloudSQLInstanceInfo.Builder (1.43.0)

public static final class CloudSQLInstanceInfo.Builder extends GeneratedMessageV3.Builder<CloudSQLInstanceInfo.Builder> implements CloudSQLInstanceInfoOrBuilder

For display only. Metadata associated with a Cloud SQL instance.

Protobuf type google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudSQLInstanceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudSQLInstanceInfo.Builder
Overrides

build()

public CloudSQLInstanceInfo build()
Returns
Type Description
CloudSQLInstanceInfo

buildPartial()

public CloudSQLInstanceInfo buildPartial()
Returns
Type Description
CloudSQLInstanceInfo

clear()

public CloudSQLInstanceInfo.Builder clear()
Returns
Type Description
CloudSQLInstanceInfo.Builder
Overrides

clearDisplayName()

public CloudSQLInstanceInfo.Builder clearDisplayName()

Name of a Cloud SQL instance.

string display_name = 1;

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

clearExternalIp()

public CloudSQLInstanceInfo.Builder clearExternalIp()

External IP address of a Cloud SQL instance.

string external_ip = 6;

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CloudSQLInstanceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CloudSQLInstanceInfo.Builder
Overrides

clearInternalIp()

public CloudSQLInstanceInfo.Builder clearInternalIp()

Internal IP address of a Cloud SQL instance.

string internal_ip = 5;

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

clearNetworkUri()

public CloudSQLInstanceInfo.Builder clearNetworkUri()

URI of a Cloud SQL instance network or empty string if the instance does not have one.

string network_uri = 4;

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudSQLInstanceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CloudSQLInstanceInfo.Builder
Overrides

clearRegion()

public CloudSQLInstanceInfo.Builder clearRegion()

Region in which the Cloud SQL instance is running.

string region = 7;

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

clearUri()

public CloudSQLInstanceInfo.Builder clearUri()

URI of a Cloud SQL instance.

string uri = 2;

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

clone()

public CloudSQLInstanceInfo.Builder clone()
Returns
Type Description
CloudSQLInstanceInfo.Builder
Overrides

getDefaultInstanceForType()

public CloudSQLInstanceInfo getDefaultInstanceForType()
Returns
Type Description
CloudSQLInstanceInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Name of a Cloud SQL instance.

string display_name = 1;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Name of a Cloud SQL instance.

string display_name = 1;

Returns
Type Description
ByteString

The bytes for displayName.

getExternalIp()

public String getExternalIp()

External IP address of a Cloud SQL instance.

string external_ip = 6;

Returns
Type Description
String

The externalIp.

getExternalIpBytes()

public ByteString getExternalIpBytes()

External IP address of a Cloud SQL instance.

string external_ip = 6;

Returns
Type Description
ByteString

The bytes for externalIp.

getInternalIp()

public String getInternalIp()

Internal IP address of a Cloud SQL instance.

string internal_ip = 5;

Returns
Type Description
String

The internalIp.

getInternalIpBytes()

public ByteString getInternalIpBytes()

Internal IP address of a Cloud SQL instance.

string internal_ip = 5;

Returns
Type Description
ByteString

The bytes for internalIp.

getNetworkUri()

public String getNetworkUri()

URI of a Cloud SQL instance network or empty string if the instance does not have one.

string network_uri = 4;

Returns
Type Description
String

The networkUri.

getNetworkUriBytes()

public ByteString getNetworkUriBytes()

URI of a Cloud SQL instance network or empty string if the instance does not have one.

string network_uri = 4;

Returns
Type Description
ByteString

The bytes for networkUri.

getRegion()

public String getRegion()

Region in which the Cloud SQL instance is running.

string region = 7;

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Region in which the Cloud SQL instance is running.

string region = 7;

Returns
Type Description
ByteString

The bytes for region.

getUri()

public String getUri()

URI of a Cloud SQL instance.

string uri = 2;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI of a Cloud SQL instance.

string uri = 2;

Returns
Type Description
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudSQLInstanceInfo other)

public CloudSQLInstanceInfo.Builder mergeFrom(CloudSQLInstanceInfo other)
Parameter
Name Description
other CloudSQLInstanceInfo
Returns
Type Description
CloudSQLInstanceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudSQLInstanceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudSQLInstanceInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CloudSQLInstanceInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CloudSQLInstanceInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudSQLInstanceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudSQLInstanceInfo.Builder
Overrides

setDisplayName(String value)

public CloudSQLInstanceInfo.Builder setDisplayName(String value)

Name of a Cloud SQL instance.

string display_name = 1;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public CloudSQLInstanceInfo.Builder setDisplayNameBytes(ByteString value)

Name of a Cloud SQL instance.

string display_name = 1;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

setExternalIp(String value)

public CloudSQLInstanceInfo.Builder setExternalIp(String value)

External IP address of a Cloud SQL instance.

string external_ip = 6;

Parameter
Name Description
value String

The externalIp to set.

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

setExternalIpBytes(ByteString value)

public CloudSQLInstanceInfo.Builder setExternalIpBytes(ByteString value)

External IP address of a Cloud SQL instance.

string external_ip = 6;

Parameter
Name Description
value ByteString

The bytes for externalIp to set.

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CloudSQLInstanceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudSQLInstanceInfo.Builder
Overrides

setInternalIp(String value)

public CloudSQLInstanceInfo.Builder setInternalIp(String value)

Internal IP address of a Cloud SQL instance.

string internal_ip = 5;

Parameter
Name Description
value String

The internalIp to set.

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

setInternalIpBytes(ByteString value)

public CloudSQLInstanceInfo.Builder setInternalIpBytes(ByteString value)

Internal IP address of a Cloud SQL instance.

string internal_ip = 5;

Parameter
Name Description
value ByteString

The bytes for internalIp to set.

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

setNetworkUri(String value)

public CloudSQLInstanceInfo.Builder setNetworkUri(String value)

URI of a Cloud SQL instance network or empty string if the instance does not have one.

string network_uri = 4;

Parameter
Name Description
value String

The networkUri to set.

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

setNetworkUriBytes(ByteString value)

public CloudSQLInstanceInfo.Builder setNetworkUriBytes(ByteString value)

URI of a Cloud SQL instance network or empty string if the instance does not have one.

string network_uri = 4;

Parameter
Name Description
value ByteString

The bytes for networkUri to set.

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

setRegion(String value)

public CloudSQLInstanceInfo.Builder setRegion(String value)

Region in which the Cloud SQL instance is running.

string region = 7;

Parameter
Name Description
value String

The region to set.

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public CloudSQLInstanceInfo.Builder setRegionBytes(ByteString value)

Region in which the Cloud SQL instance is running.

string region = 7;

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CloudSQLInstanceInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CloudSQLInstanceInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudSQLInstanceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudSQLInstanceInfo.Builder
Overrides

setUri(String value)

public CloudSQLInstanceInfo.Builder setUri(String value)

URI of a Cloud SQL instance.

string uri = 2;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.

setUriBytes(ByteString value)

public CloudSQLInstanceInfo.Builder setUriBytes(ByteString value)

URI of a Cloud SQL instance.

string uri = 2;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
CloudSQLInstanceInfo.Builder

This builder for chaining.