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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface AlloyDbSettingsOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.clouddms.v1.AlloyDbSettingsOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.clouddms.v1.AlloyDbSettingsOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.clouddms.v1.AlloyDbSettingsOrBuilder) \n\n public interface AlloyDbSettingsOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### containsLabels(String key)\n\n public abstract boolean containsLabels(String key)\n\nLabels for the AlloyDB cluster created by DMS. An object containing a list\nof 'key', 'value' pairs.\n\n`map\u003cstring, string\u003e labels = 3;`\n\n### getLabels()\n\n public abstract Map\u003cString,String\u003e getLabels()\n\nUse [#getLabelsMap()](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.clouddms.v1.AlloyDbSettingsOrBuilder#com_google_events_cloud_clouddms_v1_AlloyDbSettingsOrBuilder_getLabelsMap__) instead.\n\n### getLabelsCount()\n\n public abstract int getLabelsCount()\n\nLabels for the AlloyDB cluster created by DMS. An object containing a list\nof 'key', 'value' pairs.\n\n`map\u003cstring, string\u003e labels = 3;`\n\n### getLabelsMap()\n\n public abstract Map\u003cString,String\u003e getLabelsMap()\n\nLabels for the AlloyDB cluster created by DMS. An object containing a list\nof 'key', 'value' pairs.\n\n`map\u003cstring, string\u003e labels = 3;`\n\n### getLabelsOrDefault(String key, String defaultValue)\n\n public abstract String getLabelsOrDefault(String key, String defaultValue)\n\nLabels for the AlloyDB cluster created by DMS. An object containing a list\nof 'key', 'value' pairs.\n\n`map\u003cstring, string\u003e labels = 3;`\n\n### getLabelsOrThrow(String key)\n\n public abstract String getLabelsOrThrow(String key)\n\nLabels for the AlloyDB cluster created by DMS. An object containing a list\nof 'key', 'value' pairs.\n\n`map\u003cstring, string\u003e labels = 3;`\n\n### getPrimaryInstanceSettings()\n\n public abstract AlloyDbSettings.PrimaryInstanceSettings getPrimaryInstanceSettings()\n\n`\n.google.events.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;\n`\n\n### getPrimaryInstanceSettingsOrBuilder()\n\n public abstract AlloyDbSettings.PrimaryInstanceSettingsOrBuilder getPrimaryInstanceSettingsOrBuilder()\n\n`\n.google.events.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;\n`\n\n### getVpcNetwork()\n\n public abstract String getVpcNetwork()\n\nRequired. The resource link for the VPC network in which cluster resources\nare created and from which they are accessible via Private IP. The network\nmust belong to the same project as the cluster. It is specified in the\nform: \"projects/{project_number}/global/networks/{network_id}\". This is\nrequired to create a cluster.\n\n`string vpc_network = 2;`\n\n### getVpcNetworkBytes()\n\n public abstract ByteString getVpcNetworkBytes()\n\nRequired. The resource link for the VPC network in which cluster resources\nare created and from which they are accessible via Private IP. The network\nmust belong to the same project as the cluster. It is specified in the\nform: \"projects/{project_number}/global/networks/{network_id}\". This is\nrequired to create a cluster.\n\n`string vpc_network = 2;`\n\n### hasPrimaryInstanceSettings()\n\n public abstract boolean hasPrimaryInstanceSettings()\n\n`\n.google.events.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;\n`"]]