Class PscAutoConnection.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PscAutoConnection.Builder>
com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.Builder
- All Implemented Interfaces:
PscAutoConnectionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PscAutoConnection
public static final class PscAutoConnection.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PscAutoConnection.Builder>
implements PscAutoConnectionOrBuilder
Details of consumer resources in a PSC connection that is created through Service Connectivity Automation.Protobuf type
google.cloud.redis.cluster.v1beta1.PscAutoConnection-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Required.Required.Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Required.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.Output only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PscAutoConnection other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAddress(String value) Output only.setAddressBytes(com.google.protobuf.ByteString value) Output only.setConnectionType(ConnectionType value) Output only.setConnectionTypeValue(int value) Output only.setForwardingRule(String value) Output only.setForwardingRuleBytes(com.google.protobuf.ByteString value) Output only.setNetwork(String value) Required.setNetworkBytes(com.google.protobuf.ByteString value) Required.setProjectId(String value) Required.setProjectIdBytes(com.google.protobuf.ByteString value) Required.setPscConnectionId(String value) Output only.setPscConnectionIdBytes(com.google.protobuf.ByteString value) Output only.Output only.setPscConnectionStatusValue(int value) Output only.setServiceAttachment(String value) Output only.setServiceAttachmentBytes(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<PscAutoConnection.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<PscAutoConnection.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<PscAutoConnection.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<PscAutoConnection.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PscAutoConnection.Builder>
-
mergeFrom
public PscAutoConnection.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<PscAutoConnection.Builder>- Throws:
IOException
-
getPscConnectionId
Output only. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPscConnectionIdin interfacePscAutoConnectionOrBuilder- Returns:
- The pscConnectionId.
-
getPscConnectionIdBytes
public com.google.protobuf.ByteString getPscConnectionIdBytes()Output only. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPscConnectionIdBytesin interfacePscAutoConnectionOrBuilder- Returns:
- The bytes for pscConnectionId.
-
setPscConnectionId
Output only. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The pscConnectionId to set.- Returns:
- This builder for chaining.
-
clearPscConnectionId
Output only. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setPscConnectionIdBytes
Output only. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for pscConnectionId to set.- Returns:
- This builder for chaining.
-
getAddress
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Specified by:
getAddressin interfacePscAutoConnectionOrBuilder- Returns:
- The address.
-
getAddressBytes
public com.google.protobuf.ByteString getAddressBytes()Output only. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Specified by:
getAddressBytesin interfacePscAutoConnectionOrBuilder- Returns:
- The bytes for address.
-
setAddress
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Parameters:
value- The address to set.- Returns:
- This builder for chaining.
-
clearAddress
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Returns:
- This builder for chaining.
-
setAddressBytes
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Parameters:
value- The bytes for address to set.- Returns:
- This builder for chaining.
-
getForwardingRule
Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getForwardingRulein interfacePscAutoConnectionOrBuilder- Returns:
- The forwardingRule.
-
getForwardingRuleBytes
public com.google.protobuf.ByteString getForwardingRuleBytes()Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getForwardingRuleBytesin interfacePscAutoConnectionOrBuilder- Returns:
- The bytes for forwardingRule.
-
setForwardingRule
Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The forwardingRule to set.- Returns:
- This builder for chaining.
-
clearForwardingRule
Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setForwardingRuleBytes
Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for forwardingRule to set.- Returns:
- This builder for chaining.
-
getProjectId
Required. The consumer project_id where the forwarding rule is created from.
string project_id = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProjectIdin interfacePscAutoConnectionOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()Required. The consumer project_id where the forwarding rule is created from.
string project_id = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProjectIdBytesin interfacePscAutoConnectionOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
Required. The consumer project_id where the forwarding rule is created from.
string project_id = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
Required. The consumer project_id where the forwarding rule is created from.
string project_id = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setProjectIdBytes
Required. The consumer project_id where the forwarding rule is created from.
string project_id = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getNetwork
Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNetworkin interfacePscAutoConnectionOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNetworkBytesin interfacePscAutoConnectionOrBuilder- Returns:
- The bytes for network.
-
setNetwork
Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNetworkBytes
Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
getServiceAttachment
Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getServiceAttachmentin interfacePscAutoConnectionOrBuilder- Returns:
- The serviceAttachment.
-
getServiceAttachmentBytes
public com.google.protobuf.ByteString getServiceAttachmentBytes()Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getServiceAttachmentBytesin interfacePscAutoConnectionOrBuilder- Returns:
- The bytes for serviceAttachment.
-
setServiceAttachment
Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The serviceAttachment to set.- Returns:
- This builder for chaining.
-
clearServiceAttachment
Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setServiceAttachmentBytes
Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for serviceAttachment to set.- Returns:
- This builder for chaining.
-
getPscConnectionStatusValue
public int getPscConnectionStatusValue()Output only. The status of the PSC connection. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPscConnectionStatusValuein interfacePscAutoConnectionOrBuilder- Returns:
- The enum numeric value on the wire for pscConnectionStatus.
-
setPscConnectionStatusValue
Output only. The status of the PSC connection. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for pscConnectionStatus to set.- Returns:
- This builder for chaining.
-
getPscConnectionStatus
Output only. The status of the PSC connection. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPscConnectionStatusin interfacePscAutoConnectionOrBuilder- Returns:
- The pscConnectionStatus.
-
setPscConnectionStatus
Output only. The status of the PSC connection. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The pscConnectionStatus to set.- Returns:
- This builder for chaining.
-
clearPscConnectionStatus
Output only. The status of the PSC connection. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getConnectionTypeValue
public int getConnectionTypeValue()Output only. Type of the PSC connection.
.google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConnectionTypeValuein interfacePscAutoConnectionOrBuilder- Returns:
- The enum numeric value on the wire for connectionType.
-
setConnectionTypeValue
Output only. Type of the PSC connection.
.google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for connectionType to set.- Returns:
- This builder for chaining.
-
getConnectionType
Output only. Type of the PSC connection.
.google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConnectionTypein interfacePscAutoConnectionOrBuilder- Returns:
- The connectionType.
-
setConnectionType
Output only. Type of the PSC connection.
.google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The connectionType to set.- Returns:
- This builder for chaining.
-
clearConnectionType
Output only. Type of the PSC connection.
.google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-