Class Instance.InstanceNetworkConfig.Builder (0.30.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork>
Returns
TypeDescription
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
NameDescription
valueInstance.InstanceNetworkConfig.AuthorizedNetwork
Returns
TypeDescription
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
NameDescription
builderForValueInstance.InstanceNetworkConfig.AuthorizedNetwork.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInstance.InstanceNetworkConfig.AuthorizedNetwork
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInstance.InstanceNetworkConfig.AuthorizedNetwork.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Instance.InstanceNetworkConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Instance.InstanceNetworkConfig.Builder
Overrides

build()

public Instance.InstanceNetworkConfig build()
Returns
TypeDescription
Instance.InstanceNetworkConfig

buildPartial()

public Instance.InstanceNetworkConfig buildPartial()
Returns
TypeDescription
Instance.InstanceNetworkConfig

clear()

public Instance.InstanceNetworkConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Instance.InstanceNetworkConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Instance.InstanceNetworkConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Instance.InstanceNetworkConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Instance.InstanceNetworkConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Instance.InstanceNetworkConfig.Builder
Overrides

clone()

public Instance.InstanceNetworkConfig.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder>

getDefaultInstanceForType()

public Instance.InstanceNetworkConfig getDefaultInstanceForType()
Returns
TypeDescription
Instance.InstanceNetworkConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnablePublicIp()

public boolean getEnablePublicIp()

Optional. Enabling public ip for the instance.

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

Returns
TypeDescription
boolean

The enablePublicIp.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Instance.InstanceNetworkConfig other)

public Instance.InstanceNetworkConfig.Builder mergeFrom(Instance.InstanceNetworkConfig other)
Parameter
NameDescription
otherInstance.InstanceNetworkConfig
Returns
TypeDescription
Instance.InstanceNetworkConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Instance.InstanceNetworkConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.InstanceNetworkConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Instance.InstanceNetworkConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Instance.InstanceNetworkConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Instance.InstanceNetworkConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueInstance.InstanceNetworkConfig.AuthorizedNetwork
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInstance.InstanceNetworkConfig.AuthorizedNetwork.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The enablePublicIp to set.

Returns
TypeDescription
Instance.InstanceNetworkConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Instance.InstanceNetworkConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Instance.InstanceNetworkConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Instance.InstanceNetworkConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Instance.InstanceNetworkConfig.Builder
Overrides