Class PscServiceAttachment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PscServiceAttachment.Builder>
com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.Builder
All Implemented Interfaces:
PscServiceAttachmentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PscServiceAttachment

public static final class PscServiceAttachment.Builder extends com.google.protobuf.GeneratedMessage.Builder<PscServiceAttachment.Builder> implements PscServiceAttachmentOrBuilder
 Configuration of a service attachment of the cluster, for creating PSC
 connections.
 
Protobuf type google.cloud.redis.cluster.v1beta1.PscServiceAttachment
  • 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<PscServiceAttachment.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<PscServiceAttachment.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<PscServiceAttachment.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PscServiceAttachment.Builder>
    • mergeFrom

      public PscServiceAttachment.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<PscServiceAttachment.Builder>
      Throws:
      IOException
    • getServiceAttachment

      public String getServiceAttachment()
       Output only. Service attachment URI which your self-created PscConnection
       should use as target
       
      string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceAttachment in interface PscServiceAttachmentOrBuilder
      Returns:
      The serviceAttachment.
    • getServiceAttachmentBytes

      public com.google.protobuf.ByteString getServiceAttachmentBytes()
       Output only. Service attachment URI which your self-created PscConnection
       should use as target
       
      string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceAttachmentBytes in interface PscServiceAttachmentOrBuilder
      Returns:
      The bytes for serviceAttachment.
    • setServiceAttachment

      public PscServiceAttachment.Builder setServiceAttachment(String value)
       Output only. Service attachment URI which your self-created PscConnection
       should use as target
       
      string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The serviceAttachment to set.
      Returns:
      This builder for chaining.
    • clearServiceAttachment

      public PscServiceAttachment.Builder clearServiceAttachment()
       Output only. Service attachment URI which your self-created PscConnection
       should use as target
       
      string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setServiceAttachmentBytes

      public PscServiceAttachment.Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value)
       Output only. Service attachment URI which your self-created PscConnection
       should use as target
       
      string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for serviceAttachment to set.
      Returns:
      This builder for chaining.
    • getConnectionTypeValue

      public int getConnectionTypeValue()
       Output only. Type of a PSC connection targeting this service attachment.
       
      .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConnectionTypeValue in interface PscServiceAttachmentOrBuilder
      Returns:
      The enum numeric value on the wire for connectionType.
    • setConnectionTypeValue

      public PscServiceAttachment.Builder setConnectionTypeValue(int value)
       Output only. Type of a PSC connection targeting this service attachment.
       
      .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.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 a PSC connection targeting this service attachment.
       
      .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConnectionType in interface PscServiceAttachmentOrBuilder
      Returns:
      The connectionType.
    • setConnectionType

      public PscServiceAttachment.Builder setConnectionType(ConnectionType value)
       Output only. Type of a PSC connection targeting this service attachment.
       
      .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The connectionType to set.
      Returns:
      This builder for chaining.
    • clearConnectionType

      public PscServiceAttachment.Builder clearConnectionType()
       Output only. Type of a PSC connection targeting this service attachment.
       
      .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.