Class IpMapping (0.1.0)

public final class IpMapping extends GeneratedMessage implements IpMappingOrBuilder

Database instance IP mapping

Protobuf type google.cloud.sql.v1.IpMapping

Implements

IpMappingOrBuilder

Static Fields

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

TIME_TO_RETIRE_FIELD_NUMBER

public static final int TIME_TO_RETIRE_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static IpMapping getDefaultInstance()
Returns
Type Description
IpMapping

getDescriptor()

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

newBuilder()

public static IpMapping.Builder newBuilder()
Returns
Type Description
IpMapping.Builder

newBuilder(IpMapping prototype)

public static IpMapping.Builder newBuilder(IpMapping prototype)
Parameter
Name Description
prototype IpMapping
Returns
Type Description
IpMapping.Builder

parseDelimitedFrom(InputStream input)

public static IpMapping parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
IpMapping
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IpMapping parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IpMapping
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static IpMapping parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
IpMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static IpMapping parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IpMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static IpMapping parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
IpMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static IpMapping parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IpMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static IpMapping parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
IpMapping
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static IpMapping parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IpMapping
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static IpMapping parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
IpMapping
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IpMapping parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IpMapping
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static IpMapping parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
IpMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static IpMapping parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IpMapping
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<IpMapping> parser()
Returns
Type Description
Parser<IpMapping>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public IpMapping getDefaultInstanceForType()
Returns
Type Description
IpMapping

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.

getParserForType()

public Parser<IpMapping> getParserForType()
Returns
Type Description
Parser<IpMapping>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.v1.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.v1.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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public IpMapping.Builder newBuilderForType()
Returns
Type Description
IpMapping.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected IpMapping.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
IpMapping.Builder
Overrides

toBuilder()

public IpMapping.Builder toBuilder()
Returns
Type Description
IpMapping.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException