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 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<PscAutoConnection.Builder>
    • clear

      public PscAutoConnection.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<PscAutoConnection.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<PscAutoConnection.Builder>
    • getDefaultInstanceForType

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

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

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

      public PscAutoConnection.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<PscAutoConnection.Builder>
    • mergeFrom

      public PscAutoConnection.Builder mergeFrom(PscAutoConnection other)
    • isInitialized

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

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

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

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

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

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

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

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

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

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

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

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

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

      public String getProjectId()
       Required. The consumer project_id where the forwarding rule is created
       from.
       
      string project_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectId in interface PscAutoConnectionOrBuilder
      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:
      getProjectIdBytes in interface PscAutoConnectionOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

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

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

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

      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 PscAutoConnectionOrBuilder
      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 PscAutoConnectionOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

      public PscAutoConnection.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 PscAutoConnection.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 PscAutoConnection.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()
       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:
      getServiceAttachment in interface PscAutoConnectionOrBuilder
      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:
      getServiceAttachmentBytes in interface PscAutoConnectionOrBuilder
      Returns:
      The bytes for serviceAttachment.
    • setServiceAttachment

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

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

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

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

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

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

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

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

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

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

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