Class Cluster.NetworkConfig (0.18.0)

public static final class Cluster.NetworkConfig extends GeneratedMessageV3 implements Cluster.NetworkConfigOrBuilder

Metadata related to network configuration.

Protobuf type google.cloud.alloydb.v1beta.Cluster.NetworkConfig

Static Fields

ALLOCATED_IP_RANGE_FIELD_NUMBER

public static final int ALLOCATED_IP_RANGE_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Cluster.NetworkConfig getDefaultInstance()
Returns
Type Description
Cluster.NetworkConfig

getDescriptor()

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

newBuilder()

public static Cluster.NetworkConfig.Builder newBuilder()
Returns
Type Description
Cluster.NetworkConfig.Builder

newBuilder(Cluster.NetworkConfig prototype)

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

parseDelimitedFrom(InputStream input)

public static Cluster.NetworkConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Cluster.NetworkConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Cluster.NetworkConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Cluster.NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Cluster.NetworkConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Cluster.NetworkConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Cluster.NetworkConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Cluster.NetworkConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Cluster.NetworkConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Cluster.NetworkConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Cluster.NetworkConfig> parser()
Returns
Type Description
Parser<NetworkConfig>

Methods

equals(Object obj)

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

getAllocatedIpRange()

public String getAllocatedIpRange()

Optional. Name of the allocated IP range for the private IP AlloyDB cluster, for example: "google-managed-services-default". If set, the instance IPs for this cluster will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Field name is intended to be consistent with CloudSQL.

string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The allocatedIpRange.

getAllocatedIpRangeBytes()

public ByteString getAllocatedIpRangeBytes()

Optional. Name of the allocated IP range for the private IP AlloyDB cluster, for example: "google-managed-services-default". If set, the instance IPs for this cluster will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Field name is intended to be consistent with CloudSQL.

string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for allocatedIpRange.

getDefaultInstanceForType()

public Cluster.NetworkConfig getDefaultInstanceForType()
Returns
Type Description
Cluster.NetworkConfig

getNetwork()

public String getNetwork()

Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". This is required to create a cluster.

string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". This is required to create a cluster.

string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for network.

getParserForType()

public Parser<Cluster.NetworkConfig> getParserForType()
Returns
Type Description
Parser<NetworkConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Cluster.NetworkConfig.Builder newBuilderForType()
Returns
Type Description
Cluster.NetworkConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Cluster.NetworkConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Cluster.NetworkConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Cluster.NetworkConfig.Builder toBuilder()
Returns
Type Description
Cluster.NetworkConfig.Builder

writeTo(CodedOutputStream output)

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