Package com.google.cloud.alloydb.v1beta
Class Instance.PscAutoConnectionConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Instance.PscAutoConnectionConfig.Builder>
com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder
- All Implemented Interfaces:
Instance.PscAutoConnectionConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Instance.PscAutoConnectionConfig
public static final class Instance.PscAutoConnectionConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Instance.PscAutoConnectionConfig.Builder>
implements Instance.PscAutoConnectionConfigOrBuilder
Configuration for setting up PSC service automation. Consumer projects in the configs will be allowlisted automatically for the instance.Protobuf type
google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default".Output only.The consumer project to which the PSC service automation endpoint will be created.Output only.Output only.The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default".com.google.protobuf.ByteStringThe consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default".Output only.com.google.protobuf.ByteStringOutput only.The consumer project to which the PSC service automation endpoint will be created.com.google.protobuf.ByteStringThe consumer project to which the PSC service automation endpoint will be created.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.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) setConsumerNetwork(String value) The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default".setConsumerNetworkBytes(com.google.protobuf.ByteString value) The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default".setConsumerNetworkStatus(String value) Output only.setConsumerNetworkStatusBytes(com.google.protobuf.ByteString value) Output only.setConsumerProject(String value) The consumer project to which the PSC service automation endpoint will be created.setConsumerProjectBytes(com.google.protobuf.ByteString value) The consumer project to which the PSC service automation endpoint will be created.setIpAddress(String value) Output only.setIpAddressBytes(com.google.protobuf.ByteString value) Output only.Output only.setStatusBytes(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.PscAutoConnectionConfig.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.PscAutoConnectionConfig.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.PscAutoConnectionConfig.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.PscAutoConnectionConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Instance.PscAutoConnectionConfig.Builder>
-
mergeFrom
public Instance.PscAutoConnectionConfig.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.PscAutoConnectionConfig.Builder>- Throws:
IOException
-
getConsumerProject
The consumer project to which the PSC service automation endpoint will be created.
string consumer_project = 1;- Specified by:
getConsumerProjectin interfaceInstance.PscAutoConnectionConfigOrBuilder- Returns:
- The consumerProject.
-
getConsumerProjectBytes
public com.google.protobuf.ByteString getConsumerProjectBytes()The consumer project to which the PSC service automation endpoint will be created.
string consumer_project = 1;- Specified by:
getConsumerProjectBytesin interfaceInstance.PscAutoConnectionConfigOrBuilder- Returns:
- The bytes for consumerProject.
-
setConsumerProject
The consumer project to which the PSC service automation endpoint will be created.
string consumer_project = 1;- Parameters:
value- The consumerProject to set.- Returns:
- This builder for chaining.
-
clearConsumerProject
The consumer project to which the PSC service automation endpoint will be created.
string consumer_project = 1;- Returns:
- This builder for chaining.
-
setConsumerProjectBytes
public Instance.PscAutoConnectionConfig.Builder setConsumerProjectBytes(com.google.protobuf.ByteString value) The consumer project to which the PSC service automation endpoint will be created.
string consumer_project = 1;- Parameters:
value- The bytes for consumerProject to set.- Returns:
- This builder for chaining.
-
getConsumerNetwork
The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default". The consumer network might be hosted a different project than the consumer project.
string consumer_network = 2;- Specified by:
getConsumerNetworkin interfaceInstance.PscAutoConnectionConfigOrBuilder- Returns:
- The consumerNetwork.
-
getConsumerNetworkBytes
public com.google.protobuf.ByteString getConsumerNetworkBytes()The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default". The consumer network might be hosted a different project than the consumer project.
string consumer_network = 2;- Specified by:
getConsumerNetworkBytesin interfaceInstance.PscAutoConnectionConfigOrBuilder- Returns:
- The bytes for consumerNetwork.
-
setConsumerNetwork
The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default". The consumer network might be hosted a different project than the consumer project.
string consumer_network = 2;- Parameters:
value- The consumerNetwork to set.- Returns:
- This builder for chaining.
-
clearConsumerNetwork
The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default". The consumer network might be hosted a different project than the consumer project.
string consumer_network = 2;- Returns:
- This builder for chaining.
-
setConsumerNetworkBytes
public Instance.PscAutoConnectionConfig.Builder setConsumerNetworkBytes(com.google.protobuf.ByteString value) The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default". The consumer network might be hosted a different project than the consumer project.
string consumer_network = 2;- Parameters:
value- The bytes for consumerNetwork to set.- Returns:
- This builder for chaining.
-
getIpAddress
Output only. The IP address of the PSC service automation endpoint.
string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Specified by:
getIpAddressin interfaceInstance.PscAutoConnectionConfigOrBuilder- Returns:
- The ipAddress.
-
getIpAddressBytes
public com.google.protobuf.ByteString getIpAddressBytes()Output only. The IP address of the PSC service automation endpoint.
string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Specified by:
getIpAddressBytesin interfaceInstance.PscAutoConnectionConfigOrBuilder- Returns:
- The bytes for ipAddress.
-
setIpAddress
Output only. The IP address of the PSC service automation endpoint.
string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Parameters:
value- The ipAddress to set.- Returns:
- This builder for chaining.
-
clearIpAddress
Output only. The IP address of the PSC service automation endpoint.
string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Returns:
- This builder for chaining.
-
setIpAddressBytes
public Instance.PscAutoConnectionConfig.Builder setIpAddressBytes(com.google.protobuf.ByteString value) Output only. The IP address of the PSC service automation endpoint.
string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Parameters:
value- The bytes for ipAddress to set.- Returns:
- This builder for chaining.
-
getStatus
Output only. The status of the PSC service automation connection. Possible values: "STATE_UNSPECIFIED" - An invalid state as the default case. "ACTIVE" - The connection has been created successfully. "FAILED" - The connection is not functional since some resources on the connection fail to be created. "CREATING" - The connection is being created. "DELETING" - The connection is being deleted. "CREATE_REPAIRING" - The connection is being repaired to complete creation. "DELETE_REPAIRING" - The connection is being repaired to complete deletion.
string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceInstance.PscAutoConnectionConfigOrBuilder- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.ByteString getStatusBytes()Output only. The status of the PSC service automation connection. Possible values: "STATE_UNSPECIFIED" - An invalid state as the default case. "ACTIVE" - The connection has been created successfully. "FAILED" - The connection is not functional since some resources on the connection fail to be created. "CREATING" - The connection is being created. "DELETING" - The connection is being deleted. "CREATE_REPAIRING" - The connection is being repaired to complete creation. "DELETE_REPAIRING" - The connection is being repaired to complete deletion.
string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusBytesin interfaceInstance.PscAutoConnectionConfigOrBuilder- Returns:
- The bytes for status.
-
setStatus
Output only. The status of the PSC service automation connection. Possible values: "STATE_UNSPECIFIED" - An invalid state as the default case. "ACTIVE" - The connection has been created successfully. "FAILED" - The connection is not functional since some resources on the connection fail to be created. "CREATING" - The connection is being created. "DELETING" - The connection is being deleted. "CREATE_REPAIRING" - The connection is being repaired to complete creation. "DELETE_REPAIRING" - The connection is being repaired to complete deletion.
string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Output only. The status of the PSC service automation connection. Possible values: "STATE_UNSPECIFIED" - An invalid state as the default case. "ACTIVE" - The connection has been created successfully. "FAILED" - The connection is not functional since some resources on the connection fail to be created. "CREATING" - The connection is being created. "DELETING" - The connection is being deleted. "CREATE_REPAIRING" - The connection is being repaired to complete creation. "DELETE_REPAIRING" - The connection is being repaired to complete deletion.
string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setStatusBytes
public Instance.PscAutoConnectionConfig.Builder setStatusBytes(com.google.protobuf.ByteString value) Output only. The status of the PSC service automation connection. Possible values: "STATE_UNSPECIFIED" - An invalid state as the default case. "ACTIVE" - The connection has been created successfully. "FAILED" - The connection is not functional since some resources on the connection fail to be created. "CREATING" - The connection is being created. "DELETING" - The connection is being deleted. "CREATE_REPAIRING" - The connection is being repaired to complete creation. "DELETE_REPAIRING" - The connection is being repaired to complete deletion.
string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for status to set.- Returns:
- This builder for chaining.
-
getConsumerNetworkStatus
Output only. The status of the service connection policy. Possible values: "STATE_UNSPECIFIED" - Default state, when Connection Map is created initially. "VALID" - Set when policy and map configuration is valid, and their matching can lead to allowing creation of PSC Connections subject to other constraints like connections limit. "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for this network and Service Class "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for this network and Service Class "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance project is not in AllowedGoogleProducersResourceHierarchyLevels of the matching ServiceConnectionPolicy.
string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConsumerNetworkStatusin interfaceInstance.PscAutoConnectionConfigOrBuilder- Returns:
- The consumerNetworkStatus.
-
getConsumerNetworkStatusBytes
public com.google.protobuf.ByteString getConsumerNetworkStatusBytes()Output only. The status of the service connection policy. Possible values: "STATE_UNSPECIFIED" - Default state, when Connection Map is created initially. "VALID" - Set when policy and map configuration is valid, and their matching can lead to allowing creation of PSC Connections subject to other constraints like connections limit. "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for this network and Service Class "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for this network and Service Class "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance project is not in AllowedGoogleProducersResourceHierarchyLevels of the matching ServiceConnectionPolicy.
string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConsumerNetworkStatusBytesin interfaceInstance.PscAutoConnectionConfigOrBuilder- Returns:
- The bytes for consumerNetworkStatus.
-
setConsumerNetworkStatus
Output only. The status of the service connection policy. Possible values: "STATE_UNSPECIFIED" - Default state, when Connection Map is created initially. "VALID" - Set when policy and map configuration is valid, and their matching can lead to allowing creation of PSC Connections subject to other constraints like connections limit. "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for this network and Service Class "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for this network and Service Class "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance project is not in AllowedGoogleProducersResourceHierarchyLevels of the matching ServiceConnectionPolicy.
string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The consumerNetworkStatus to set.- Returns:
- This builder for chaining.
-
clearConsumerNetworkStatus
Output only. The status of the service connection policy. Possible values: "STATE_UNSPECIFIED" - Default state, when Connection Map is created initially. "VALID" - Set when policy and map configuration is valid, and their matching can lead to allowing creation of PSC Connections subject to other constraints like connections limit. "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for this network and Service Class "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for this network and Service Class "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance project is not in AllowedGoogleProducersResourceHierarchyLevels of the matching ServiceConnectionPolicy.
string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setConsumerNetworkStatusBytes
public Instance.PscAutoConnectionConfig.Builder setConsumerNetworkStatusBytes(com.google.protobuf.ByteString value) Output only. The status of the service connection policy. Possible values: "STATE_UNSPECIFIED" - Default state, when Connection Map is created initially. "VALID" - Set when policy and map configuration is valid, and their matching can lead to allowing creation of PSC Connections subject to other constraints like connections limit. "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for this network and Service Class "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for this network and Service Class "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance project is not in AllowedGoogleProducersResourceHierarchyLevels of the matching ServiceConnectionPolicy.
string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for consumerNetworkStatus to set.- Returns:
- This builder for chaining.
-