Class Instance.InstanceNetworkConfig.Builder (0.35.0)

public static final class Instance.InstanceNetworkConfig.Builder extends GeneratedMessageV3.Builder<Instance.InstanceNetworkConfig.Builder> implements Instance.InstanceNetworkConfigOrBuilder

Metadata related to instance level network configuration.

Protobuf type google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig

Static Methods

getDescriptor()

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

Methods

addAllAuthorizedExternalNetworks(Iterable<? extends Instance.InstanceNetworkConfig.AuthorizedNetwork> values)

public Instance.InstanceNetworkConfig.Builder addAllAuthorizedExternalNetworks(Iterable<? extends Instance.InstanceNetworkConfig.AuthorizedNetwork> values)

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork>
Returns
Type Description
Instance.InstanceNetworkConfig.Builder

addAuthorizedExternalNetworks(Instance.InstanceNetworkConfig.AuthorizedNetwork value)

public Instance.InstanceNetworkConfig.Builder addAuthorizedExternalNetworks(Instance.InstanceNetworkConfig.AuthorizedNetwork value)

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Instance.InstanceNetworkConfig.AuthorizedNetwork
Returns
Type Description
Instance.InstanceNetworkConfig.Builder

addAuthorizedExternalNetworks(Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder builderForValue)

public Instance.InstanceNetworkConfig.Builder addAuthorizedExternalNetworks(Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder builderForValue)

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder
Returns
Type Description
Instance.InstanceNetworkConfig.Builder

addAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork value)

public Instance.InstanceNetworkConfig.Builder addAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork value)

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Instance.InstanceNetworkConfig.AuthorizedNetwork
Returns
Type Description
Instance.InstanceNetworkConfig.Builder

addAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder builderForValue)

public Instance.InstanceNetworkConfig.Builder addAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder builderForValue)

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder
Returns
Type Description
Instance.InstanceNetworkConfig.Builder

addAuthorizedExternalNetworksBuilder()

public Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder addAuthorizedExternalNetworksBuilder()

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder

addAuthorizedExternalNetworksBuilder(int index)

public Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder addAuthorizedExternalNetworksBuilder(int index)

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Instance.InstanceNetworkConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Instance.InstanceNetworkConfig.Builder
Overrides

build()

public Instance.InstanceNetworkConfig build()
Returns
Type Description
Instance.InstanceNetworkConfig

buildPartial()

public Instance.InstanceNetworkConfig buildPartial()
Returns
Type Description
Instance.InstanceNetworkConfig

clear()

public Instance.InstanceNetworkConfig.Builder clear()
Returns
Type Description
Instance.InstanceNetworkConfig.Builder
Overrides

clearAuthorizedExternalNetworks()

public Instance.InstanceNetworkConfig.Builder clearAuthorizedExternalNetworks()

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Instance.InstanceNetworkConfig.Builder

clearEnablePublicIp()

public Instance.InstanceNetworkConfig.Builder clearEnablePublicIp()

Optional. Enabling public ip for the instance.

bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Instance.InstanceNetworkConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Instance.InstanceNetworkConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Instance.InstanceNetworkConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Instance.InstanceNetworkConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Instance.InstanceNetworkConfig.Builder
Overrides

clone()

public Instance.InstanceNetworkConfig.Builder clone()
Returns
Type Description
Instance.InstanceNetworkConfig.Builder
Overrides

getAuthorizedExternalNetworks(int index)

public Instance.InstanceNetworkConfig.AuthorizedNetwork getAuthorizedExternalNetworks(int index)

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Instance.InstanceNetworkConfig.AuthorizedNetwork

getAuthorizedExternalNetworksBuilder(int index)

public Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder getAuthorizedExternalNetworksBuilder(int index)

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder

getAuthorizedExternalNetworksBuilderList()

public List<Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder> getAuthorizedExternalNetworksBuilderList()

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getAuthorizedExternalNetworksCount()

public int getAuthorizedExternalNetworksCount()

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAuthorizedExternalNetworksList()

public List<Instance.InstanceNetworkConfig.AuthorizedNetwork> getAuthorizedExternalNetworksList()

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AuthorizedNetwork>

getAuthorizedExternalNetworksOrBuilder(int index)

public Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder getAuthorizedExternalNetworksOrBuilder(int index)

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder

getAuthorizedExternalNetworksOrBuilderList()

public List<? extends Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder> getAuthorizedExternalNetworksOrBuilderList()

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder>

getDefaultInstanceForType()

public Instance.InstanceNetworkConfig getDefaultInstanceForType()
Returns
Type Description
Instance.InstanceNetworkConfig

getDescriptorForType()

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

getEnablePublicIp()

public boolean getEnablePublicIp()

Optional. Enabling public ip for the instance.

bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enablePublicIp.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Instance.InstanceNetworkConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Instance.InstanceNetworkConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Instance.InstanceNetworkConfig.Builder
Overrides

removeAuthorizedExternalNetworks(int index)

public Instance.InstanceNetworkConfig.Builder removeAuthorizedExternalNetworks(int index)

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Instance.InstanceNetworkConfig.Builder

setAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork value)

public Instance.InstanceNetworkConfig.Builder setAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork value)

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Instance.InstanceNetworkConfig.AuthorizedNetwork
Returns
Type Description
Instance.InstanceNetworkConfig.Builder

setAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder builderForValue)

public Instance.InstanceNetworkConfig.Builder setAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder builderForValue)

Optional. A list of external network authorized to access this instance.

repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder
Returns
Type Description
Instance.InstanceNetworkConfig.Builder

setEnablePublicIp(boolean value)

public Instance.InstanceNetworkConfig.Builder setEnablePublicIp(boolean value)

Optional. Enabling public ip for the instance.

bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enablePublicIp to set.

Returns
Type Description
Instance.InstanceNetworkConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Instance.InstanceNetworkConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Instance.InstanceNetworkConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Instance.InstanceNetworkConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Instance.InstanceNetworkConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Instance.InstanceNetworkConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Instance.InstanceNetworkConfig.Builder
Overrides