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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PscConnection.Builder>
    • clear

      public PscConnection.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PscConnection.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PscConnection.Builder>
    • getDefaultInstanceForType

      public PscConnection getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PscConnection build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PscConnection buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PscConnection.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PscConnection.Builder>
    • mergeFrom

      public PscConnection.Builder mergeFrom(PscConnection other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PscConnection.Builder>
      Throws:
      IOException
    • getPscConnectionId

      public String 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:
      getPscConnectionId in interface PscConnectionOrBuilder
      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:
      getPscConnectionIdBytes in interface PscConnectionOrBuilder
      Returns:
      The bytes for pscConnectionId.
    • setPscConnectionId

      public PscConnection.Builder setPscConnectionId(String value)
       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

      public PscConnection.Builder 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

      public PscConnection.Builder setPscConnectionIdBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getAddress in interface PscConnectionOrBuilder
      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:
      getAddressBytes in interface PscConnectionOrBuilder
      Returns:
      The bytes for address.
    • setAddress

      public PscConnection.Builder setAddress(String value)
       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

      public PscConnection.Builder 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

      public PscConnection.Builder setAddressBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getForwardingRule in interface PscConnectionOrBuilder
      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:
      getForwardingRuleBytes in interface PscConnectionOrBuilder
      Returns:
      The bytes for forwardingRule.
    • setForwardingRule

      public PscConnection.Builder setForwardingRule(String value)
       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

      public PscConnection.Builder 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

      public PscConnection.Builder setForwardingRuleBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getProjectId in interface PscConnectionOrBuilder
      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:
      getProjectIdBytes in interface PscConnectionOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public PscConnection.Builder setProjectId(String value)
       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

      public PscConnection.Builder 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

      public PscConnection.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getNetwork in interface PscConnectionOrBuilder
      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:
      getNetworkBytes in interface PscConnectionOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

      public PscConnection.Builder setNetwork(String value)
       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

      public PscConnection.Builder 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

      public PscConnection.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getServiceAttachment in interface PscConnectionOrBuilder
      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:
      getServiceAttachmentBytes in interface PscConnectionOrBuilder
      Returns:
      The bytes for serviceAttachment.
    • setServiceAttachment

      public PscConnection.Builder setServiceAttachment(String value)
       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

      public PscConnection.Builder 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

      public PscConnection.Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value)
       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:
      getPscConnectionStatusValue in interface PscConnectionOrBuilder
      Returns:
      The enum numeric value on the wire for pscConnectionStatus.
    • setPscConnectionStatusValue

      public PscConnection.Builder setPscConnectionStatusValue(int value)
       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

      public PscConnectionStatus 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:
      getPscConnectionStatus in interface PscConnectionOrBuilder
      Returns:
      The pscConnectionStatus.
    • setPscConnectionStatus

      public PscConnection.Builder setPscConnectionStatus(PscConnectionStatus value)
       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

      public PscConnection.Builder 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:
      getConnectionTypeValue in interface PscConnectionOrBuilder
      Returns:
      The enum numeric value on the wire for connectionType.
    • setConnectionTypeValue

      public PscConnection.Builder setConnectionTypeValue(int value)
       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

      public ConnectionType 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:
      getConnectionType in interface PscConnectionOrBuilder
      Returns:
      The connectionType.
    • setConnectionType

      public PscConnection.Builder setConnectionType(ConnectionType value)
       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

      public PscConnection.Builder 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.