Class PscConnection.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PscConnection.Builder>
com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder
- All Implemented Interfaces:
PscConnectionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PscConnection
public static final class PscConnection.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PscConnection.Builder>
implements PscConnectionOrBuilder
Details of consumer resources in a PSC connection.Protobuf type
google.cloud.redis.cluster.v1beta1.PscConnection-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Output only.Required.Required.Optional.Required.Output only.Required.Required.com.google.protobuf.ByteStringRequired.Output only.intOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.Output only.intOutput only.Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PscConnection other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAddress(String value) Required.setAddressBytes(com.google.protobuf.ByteString value) Required.setConnectionType(ConnectionType value) Output only.setConnectionTypeValue(int value) Output only.setForwardingRule(String value) Required.setForwardingRuleBytes(com.google.protobuf.ByteString value) Required.setNetwork(String value) Required.setNetworkBytes(com.google.protobuf.ByteString value) Required.setProjectId(String value) Optional.setProjectIdBytes(com.google.protobuf.ByteString value) Optional.setPscConnectionId(String value) Required.setPscConnectionIdBytes(com.google.protobuf.ByteString value) Required.Output only.setPscConnectionStatusValue(int value) Output only.setServiceAttachment(String value) Required.setServiceAttachmentBytes(com.google.protobuf.ByteString value) Required.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<PscConnection.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<PscConnection.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<PscConnection.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<PscConnection.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PscConnection.Builder>
-
mergeFrom
public PscConnection.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<PscConnection.Builder>- Throws:
IOException
-
getPscConnectionId
Required. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPscConnectionIdin interfacePscConnectionOrBuilder- Returns:
- The pscConnectionId.
-
getPscConnectionIdBytes
public com.google.protobuf.ByteString getPscConnectionIdBytes()Required. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPscConnectionIdBytesin interfacePscConnectionOrBuilder- Returns:
- The bytes for pscConnectionId.
-
setPscConnectionId
Required. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The pscConnectionId to set.- Returns:
- This builder for chaining.
-
clearPscConnectionId
Required. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setPscConnectionIdBytes
Required. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for pscConnectionId to set.- Returns:
- This builder for chaining.
-
getAddress
Required. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }- Specified by:
getAddressin interfacePscConnectionOrBuilder- Returns:
- The address.
-
getAddressBytes
public com.google.protobuf.ByteString getAddressBytes()Required. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }- Specified by:
getAddressBytesin interfacePscConnectionOrBuilder- Returns:
- The bytes for address.
-
setAddress
Required. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }- Parameters:
value- The address to set.- Returns:
- This builder for chaining.
-
clearAddress
Required. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }- Returns:
- This builder for chaining.
-
setAddressBytes
Required. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }- Parameters:
value- The bytes for address to set.- Returns:
- This builder for chaining.
-
getForwardingRule
Required. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getForwardingRulein interfacePscConnectionOrBuilder- Returns:
- The forwardingRule.
-
getForwardingRuleBytes
public com.google.protobuf.ByteString getForwardingRuleBytes()Required. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getForwardingRuleBytesin interfacePscConnectionOrBuilder- Returns:
- The bytes for forwardingRule.
-
setForwardingRule
Required. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The forwardingRule to set.- Returns:
- This builder for chaining.
-
clearForwardingRule
Required. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setForwardingRuleBytes
Required. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for forwardingRule to set.- Returns:
- This builder for chaining.
-
getProjectId
Optional. Project ID of the consumer project where the forwarding rule is created in.
string project_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectIdin interfacePscConnectionOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()Optional. Project ID of the consumer project where the forwarding rule is created in.
string project_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectIdBytesin interfacePscConnectionOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
Optional. Project ID of the consumer project where the forwarding rule is created in.
string project_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
Optional. Project ID of the consumer project where the forwarding rule is created in.
string project_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setProjectIdBytes
Optional. Project ID of the consumer project where the forwarding rule is created in.
string project_id = 4 [(.google.api.field_behavior) = OPTIONAL];- 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 interfacePscConnectionOrBuilder- 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 interfacePscConnectionOrBuilder- 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
Required. 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) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getServiceAttachmentin interfacePscConnectionOrBuilder- Returns:
- The serviceAttachment.
-
getServiceAttachmentBytes
public com.google.protobuf.ByteString getServiceAttachmentBytes()Required. 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) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getServiceAttachmentBytesin interfacePscConnectionOrBuilder- Returns:
- The bytes for serviceAttachment.
-
setServiceAttachment
Required. 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) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The serviceAttachment to set.- Returns:
- This builder for chaining.
-
clearServiceAttachment
Required. 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) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setServiceAttachmentBytes
Required. 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) = REQUIRED, (.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. To get the latest status of a PSC connection, follow https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPscConnectionStatusValuein interfacePscConnectionOrBuilder- 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. To get the latest status of a PSC connection, follow https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
.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. To get the latest status of a PSC connection, follow https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPscConnectionStatusin interfacePscConnectionOrBuilder- Returns:
- The pscConnectionStatus.
-
setPscConnectionStatus
Output only. The status of the PSC connection. Please note that this value is updated periodically. To get the latest status of a PSC connection, follow https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
.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. To get the latest status of a PSC connection, follow https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
.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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConnectionTypeValuein interfacePscConnectionOrBuilder- 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 = 10 [(.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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConnectionTypein interfacePscConnectionOrBuilder- Returns:
- The connectionType.
-
setConnectionType
Output only. Type of the PSC connection.
.google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-