Class IpMapping.Builder (0.1.0)

public static final class IpMapping.Builder extends GeneratedMessage.Builder<IpMapping.Builder> implements IpMappingOrBuilder

Database instance IP mapping

Protobuf type google.cloud.sql.v1beta4.IpMapping

Implements

IpMappingOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public IpMapping build()
Returns
Type Description
IpMapping

buildPartial()

public IpMapping buildPartial()
Returns
Type Description
IpMapping

clear()

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

clearIpAddress()

public IpMapping.Builder clearIpAddress()

The IP address assigned.

string ip_address = 2;

Returns
Type Description
IpMapping.Builder

This builder for chaining.

clearTimeToRetire()

public IpMapping.Builder clearTimeToRetire()

The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.

.google.protobuf.Timestamp time_to_retire = 3;

Returns
Type Description
IpMapping.Builder

clearType()

public IpMapping.Builder clearType()

The type of this IP address. A PRIMARY address is a public address that can accept incoming connections. A PRIVATE address is a private address that can accept incoming connections. An OUTGOING address is the source address of connections originating from the instance, if supported.

.google.cloud.sql.v1beta4.SqlIpAddressType type = 1;

Returns
Type Description
IpMapping.Builder

This builder for chaining.

getDefaultInstanceForType()

public IpMapping getDefaultInstanceForType()
Returns
Type Description
IpMapping

getDescriptorForType()

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

getIpAddress()

public String getIpAddress()

The IP address assigned.

string ip_address = 2;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

The IP address assigned.

string ip_address = 2;

Returns
Type Description
ByteString

The bytes for ipAddress.

getTimeToRetire()

public Timestamp getTimeToRetire()

The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.

.google.protobuf.Timestamp time_to_retire = 3;

Returns
Type Description
Timestamp

The timeToRetire.

getTimeToRetireBuilder()

public Timestamp.Builder getTimeToRetireBuilder()

The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.

.google.protobuf.Timestamp time_to_retire = 3;

Returns
Type Description
Builder

getTimeToRetireOrBuilder()

public TimestampOrBuilder getTimeToRetireOrBuilder()

The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.

.google.protobuf.Timestamp time_to_retire = 3;

Returns
Type Description
TimestampOrBuilder

getType()

public SqlIpAddressType getType()

The type of this IP address. A PRIMARY address is a public address that can accept incoming connections. A PRIVATE address is a private address that can accept incoming connections. An OUTGOING address is the source address of connections originating from the instance, if supported.

.google.cloud.sql.v1beta4.SqlIpAddressType type = 1;

Returns
Type Description
SqlIpAddressType

The type.

getTypeValue()

public int getTypeValue()

The type of this IP address. A PRIMARY address is a public address that can accept incoming connections. A PRIVATE address is a private address that can accept incoming connections. An OUTGOING address is the source address of connections originating from the instance, if supported.

.google.cloud.sql.v1beta4.SqlIpAddressType type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

hasTimeToRetire()

public boolean hasTimeToRetire()

The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.

.google.protobuf.Timestamp time_to_retire = 3;

Returns
Type Description
boolean

Whether the timeToRetire field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IpMapping other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTimeToRetire(Timestamp value)

public IpMapping.Builder mergeTimeToRetire(Timestamp value)

The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.

.google.protobuf.Timestamp time_to_retire = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
IpMapping.Builder

setIpAddress(String value)

public IpMapping.Builder setIpAddress(String value)

The IP address assigned.

string ip_address = 2;

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
IpMapping.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public IpMapping.Builder setIpAddressBytes(ByteString value)

The IP address assigned.

string ip_address = 2;

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
IpMapping.Builder

This builder for chaining.

setTimeToRetire(Timestamp value)

public IpMapping.Builder setTimeToRetire(Timestamp value)

The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.

.google.protobuf.Timestamp time_to_retire = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
IpMapping.Builder

setTimeToRetire(Timestamp.Builder builderForValue)

public IpMapping.Builder setTimeToRetire(Timestamp.Builder builderForValue)

The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.

.google.protobuf.Timestamp time_to_retire = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
IpMapping.Builder

setType(SqlIpAddressType value)

public IpMapping.Builder setType(SqlIpAddressType value)

The type of this IP address. A PRIMARY address is a public address that can accept incoming connections. A PRIVATE address is a private address that can accept incoming connections. An OUTGOING address is the source address of connections originating from the instance, if supported.

.google.cloud.sql.v1beta4.SqlIpAddressType type = 1;

Parameter
Name Description
value SqlIpAddressType

The type to set.

Returns
Type Description
IpMapping.Builder

This builder for chaining.

setTypeValue(int value)

public IpMapping.Builder setTypeValue(int value)

The type of this IP address. A PRIMARY address is a public address that can accept incoming connections. A PRIVATE address is a private address that can accept incoming connections. An OUTGOING address is the source address of connections originating from the instance, if supported.

.google.cloud.sql.v1beta4.SqlIpAddressType type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
IpMapping.Builder

This builder for chaining.