Package com.google.cloud.alloydb.v1beta
Class Instance.InstanceNetworkConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Instance.InstanceNetworkConfig.Builder>
com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.Builder
- All Implemented Interfaces:
Instance.InstanceNetworkConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Instance.InstanceNetworkConfig
public static final class Instance.InstanceNetworkConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Instance.InstanceNetworkConfig.Builder>
implements Instance.InstanceNetworkConfigOrBuilder
Metadata related to instance-level network configuration.Protobuf type
google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllAuthorizedExternalNetworks(Iterable<? extends Instance.InstanceNetworkConfig.AuthorizedNetwork> values) Optional.Optional.addAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder builderForValue) Optional.Optional.addAuthorizedExternalNetworks(Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder builderForValue) Optional.Optional.addAuthorizedExternalNetworksBuilder(int index) Optional.build()clear()Optional.Optional.Optional.Optional.Output only.Optional.com.google.protobuf.ByteStringOptional.getAuthorizedExternalNetworks(int index) Optional.getAuthorizedExternalNetworksBuilder(int index) Optional.Optional.intOptional.Optional.getAuthorizedExternalNetworksOrBuilder(int index) Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.booleanOptional.Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeAuthorizedExternalNetworks(int index) Optional.Optional.setAllocatedIpRangeOverrideBytes(com.google.protobuf.ByteString value) Optional.Optional.setAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder builderForValue) Optional.setEnableOutboundPublicIp(boolean value) Optional.setEnablePublicIp(boolean value) Optional.setNetwork(String value) Output only.setNetworkBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Instance.InstanceNetworkConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Instance.InstanceNetworkConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Instance.InstanceNetworkConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instance.InstanceNetworkConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Instance.InstanceNetworkConfig.Builder>
-
mergeFrom
public Instance.InstanceNetworkConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instance.InstanceNetworkConfig.Builder>- Throws:
IOException
-
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];- Specified by:
getAuthorizedExternalNetworksListin interfaceInstance.InstanceNetworkConfigOrBuilder
-
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];- Specified by:
getAuthorizedExternalNetworksCountin interfaceInstance.InstanceNetworkConfigOrBuilder
-
getAuthorizedExternalNetworks
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];- Specified by:
getAuthorizedExternalNetworksin interfaceInstance.InstanceNetworkConfigOrBuilder
-
setAuthorizedExternalNetworks
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]; -
setAuthorizedExternalNetworks
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]; -
addAuthorizedExternalNetworks
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]; -
addAuthorizedExternalNetworks
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]; -
addAuthorizedExternalNetworks
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]; -
addAuthorizedExternalNetworks
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]; -
addAllAuthorizedExternalNetworks
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]; -
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]; -
removeAuthorizedExternalNetworks
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]; -
getAuthorizedExternalNetworksBuilder
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]; -
getAuthorizedExternalNetworksOrBuilder
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];- Specified by:
getAuthorizedExternalNetworksOrBuilderin interfaceInstance.InstanceNetworkConfigOrBuilder
-
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];- Specified by:
getAuthorizedExternalNetworksOrBuilderListin interfaceInstance.InstanceNetworkConfigOrBuilder
-
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]; -
addAuthorizedExternalNetworksBuilder
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]; -
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]; -
getEnablePublicIp
public boolean getEnablePublicIp()Optional. Enabling public ip for the instance.
bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnablePublicIpin interfaceInstance.InstanceNetworkConfigOrBuilder- Returns:
- The enablePublicIp.
-
setEnablePublicIp
Optional. Enabling public ip for the instance.
bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enablePublicIp to set.- Returns:
- This builder for chaining.
-
clearEnablePublicIp
Optional. Enabling public ip for the instance.
bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getEnableOutboundPublicIp
public boolean getEnableOutboundPublicIp()Optional. Enabling an outbound public IP address to support a database server sending requests out into the internet.
bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnableOutboundPublicIpin interfaceInstance.InstanceNetworkConfigOrBuilder- Returns:
- The enableOutboundPublicIp.
-
setEnableOutboundPublicIp
Optional. Enabling an outbound public IP address to support a database server sending requests out into the internet.
bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enableOutboundPublicIp to set.- Returns:
- This builder for chaining.
-
clearEnableOutboundPublicIp
Optional. Enabling an outbound public IP address to support a database server sending requests out into the internet.
bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getNetwork
Output only. The resource link for the VPC network in which instance resources are created and from which they are accessible via Private IP. This will be the same value as the parent cluster's network. It is specified in the form: // `projects/{project_number}/global/networks/{network_id}`.string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getNetworkin interfaceInstance.InstanceNetworkConfigOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()Output only. The resource link for the VPC network in which instance resources are created and from which they are accessible via Private IP. This will be the same value as the parent cluster's network. It is specified in the form: // `projects/{project_number}/global/networks/{network_id}`.string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getNetworkBytesin interfaceInstance.InstanceNetworkConfigOrBuilder- Returns:
- The bytes for network.
-
setNetwork
Output only. The resource link for the VPC network in which instance resources are created and from which they are accessible via Private IP. This will be the same value as the parent cluster's network. It is specified in the form: // `projects/{project_number}/global/networks/{network_id}`.string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
Output only. The resource link for the VPC network in which instance resources are created and from which they are accessible via Private IP. This will be the same value as the parent cluster's network. It is specified in the form: // `projects/{project_number}/global/networks/{network_id}`.string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNetworkBytes
Output only. The resource link for the VPC network in which instance resources are created and from which they are accessible via Private IP. This will be the same value as the parent cluster's network. It is specified in the form: // `projects/{project_number}/global/networks/{network_id}`.string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
getAllocatedIpRangeOverride
Optional. Name of the allocated IP range for the private IP AlloyDB instance, for example: "google-managed-services-default". If set, the instance IPs will be created from this allocated range and will override the IP range used by the parent cluster. The range name must comply with [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?.
string allocated_ip_range_override = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAllocatedIpRangeOverridein interfaceInstance.InstanceNetworkConfigOrBuilder- Returns:
- The allocatedIpRangeOverride.
-
getAllocatedIpRangeOverrideBytes
public com.google.protobuf.ByteString getAllocatedIpRangeOverrideBytes()Optional. Name of the allocated IP range for the private IP AlloyDB instance, for example: "google-managed-services-default". If set, the instance IPs will be created from this allocated range and will override the IP range used by the parent cluster. The range name must comply with [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?.
string allocated_ip_range_override = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAllocatedIpRangeOverrideBytesin interfaceInstance.InstanceNetworkConfigOrBuilder- Returns:
- The bytes for allocatedIpRangeOverride.
-
setAllocatedIpRangeOverride
Optional. Name of the allocated IP range for the private IP AlloyDB instance, for example: "google-managed-services-default". If set, the instance IPs will be created from this allocated range and will override the IP range used by the parent cluster. The range name must comply with [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?.
string allocated_ip_range_override = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The allocatedIpRangeOverride to set.- Returns:
- This builder for chaining.
-
clearAllocatedIpRangeOverride
Optional. Name of the allocated IP range for the private IP AlloyDB instance, for example: "google-managed-services-default". If set, the instance IPs will be created from this allocated range and will override the IP range used by the parent cluster. The range name must comply with [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?.
string allocated_ip_range_override = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setAllocatedIpRangeOverrideBytes
public Instance.InstanceNetworkConfig.Builder setAllocatedIpRangeOverrideBytes(com.google.protobuf.ByteString value) Optional. Name of the allocated IP range for the private IP AlloyDB instance, for example: "google-managed-services-default". If set, the instance IPs will be created from this allocated range and will override the IP range used by the parent cluster. The range name must comply with [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?.
string allocated_ip_range_override = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for allocatedIpRangeOverride to set.- Returns:
- This builder for chaining.
-