Class CloudSQLInstanceInfo.Builder (1.41.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.v1.CloudSQLInstanceInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudSQLInstanceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloudSQLInstanceInfo.Builder
Overrides

build()

public CloudSQLInstanceInfo build()
Returns
TypeDescription
CloudSQLInstanceInfo

buildPartial()

public CloudSQLInstanceInfo buildPartial()
Returns
TypeDescription
CloudSQLInstanceInfo

clear()

public CloudSQLInstanceInfo.Builder clear()
Returns
TypeDescription
CloudSQLInstanceInfo.Builder
Overrides

clearDisplayName()

public CloudSQLInstanceInfo.Builder clearDisplayName()

Name of a Cloud SQL instance.

string display_name = 1;

Returns
TypeDescription
CloudSQLInstanceInfo.Builder

This builder for chaining.

clearExternalIp()

public CloudSQLInstanceInfo.Builder clearExternalIp()

External IP address of a Cloud SQL instance.

string external_ip = 6;

Returns
TypeDescription
CloudSQLInstanceInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CloudSQLInstanceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CloudSQLInstanceInfo.Builder
Overrides

clearInternalIp()

public CloudSQLInstanceInfo.Builder clearInternalIp()

Internal IP address of a Cloud SQL instance.

string internal_ip = 5;

Returns
TypeDescription
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
TypeDescription
CloudSQLInstanceInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudSQLInstanceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CloudSQLInstanceInfo.Builder
Overrides

clearRegion()

public CloudSQLInstanceInfo.Builder clearRegion()

Region in which the Cloud SQL instance is running.

string region = 7;

Returns
TypeDescription
CloudSQLInstanceInfo.Builder

This builder for chaining.

clearUri()

public CloudSQLInstanceInfo.Builder clearUri()

URI of a Cloud SQL instance.

string uri = 2;

Returns
TypeDescription
CloudSQLInstanceInfo.Builder

This builder for chaining.

clone()

public CloudSQLInstanceInfo.Builder clone()
Returns
TypeDescription
CloudSQLInstanceInfo.Builder
Overrides

getDefaultInstanceForType()

public CloudSQLInstanceInfo getDefaultInstanceForType()
Returns
TypeDescription
CloudSQLInstanceInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Name of a Cloud SQL instance.

string display_name = 1;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Name of a Cloud SQL instance.

string display_name = 1;

Returns
TypeDescription
ByteString

The bytes for displayName.

getExternalIp()

public String getExternalIp()

External IP address of a Cloud SQL instance.

string external_ip = 6;

Returns
TypeDescription
String

The externalIp.

getExternalIpBytes()

public ByteString getExternalIpBytes()

External IP address of a Cloud SQL instance.

string external_ip = 6;

Returns
TypeDescription
ByteString

The bytes for externalIp.

getInternalIp()

public String getInternalIp()

Internal IP address of a Cloud SQL instance.

string internal_ip = 5;

Returns
TypeDescription
String

The internalIp.

getInternalIpBytes()

public ByteString getInternalIpBytes()

Internal IP address of a Cloud SQL instance.

string internal_ip = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for networkUri.

getRegion()

public String getRegion()

Region in which the Cloud SQL instance is running.

string region = 7;

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Region in which the Cloud SQL instance is running.

string region = 7;

Returns
TypeDescription
ByteString

The bytes for region.

getUri()

public String getUri()

URI of a Cloud SQL instance.

string uri = 2;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI of a Cloud SQL instance.

string uri = 2;

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CloudSQLInstanceInfo other)

public CloudSQLInstanceInfo.Builder mergeFrom(CloudSQLInstanceInfo other)
Parameter
NameDescription
otherCloudSQLInstanceInfo
Returns
TypeDescription
CloudSQLInstanceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudSQLInstanceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudSQLInstanceInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CloudSQLInstanceInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CloudSQLInstanceInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudSQLInstanceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudSQLInstanceInfo.Builder
Overrides

setDisplayName(String value)

public CloudSQLInstanceInfo.Builder setDisplayName(String value)

Name of a Cloud SQL instance.

string display_name = 1;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valueString

The externalIp to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for externalIp to set.

Returns
TypeDescription
CloudSQLInstanceInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CloudSQLInstanceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The internalIp to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for internalIp to set.

Returns
TypeDescription
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
NameDescription
valueString

The networkUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for networkUri to set.

Returns
TypeDescription
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
NameDescription
valueString

The region to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CloudSQLInstanceInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudSQLInstanceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudSQLInstanceInfo.Builder
Overrides

setUri(String value)

public CloudSQLInstanceInfo.Builder setUri(String value)

URI of a Cloud SQL instance.

string uri = 2;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
CloudSQLInstanceInfo.Builder

This builder for chaining.