Class DiscoveryEndpoint.Builder

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

public static final class DiscoveryEndpoint.Builder extends com.google.protobuf.GeneratedMessage.Builder<DiscoveryEndpoint.Builder> implements DiscoveryEndpointOrBuilder
 Endpoints on each network, for Redis clients to connect to the cluster.
 
Protobuf type google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint
  • 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<DiscoveryEndpoint.Builder>
    • clear

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

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

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

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

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

      public DiscoveryEndpoint.Builder mergeFrom(DiscoveryEndpoint other)
    • isInitialized

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

      public DiscoveryEndpoint.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<DiscoveryEndpoint.Builder>
      Throws:
      IOException
    • getAddress

      public String getAddress()
       Output only. Address of the exposed Redis endpoint used by clients to
       connect to the service. The address could be either IP or hostname.
       
      string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAddress in interface DiscoveryEndpointOrBuilder
      Returns:
      The address.
    • getAddressBytes

      public com.google.protobuf.ByteString getAddressBytes()
       Output only. Address of the exposed Redis endpoint used by clients to
       connect to the service. The address could be either IP or hostname.
       
      string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAddressBytes in interface DiscoveryEndpointOrBuilder
      Returns:
      The bytes for address.
    • setAddress

      public DiscoveryEndpoint.Builder setAddress(String value)
       Output only. Address of the exposed Redis endpoint used by clients to
       connect to the service. The address could be either IP or hostname.
       
      string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The address to set.
      Returns:
      This builder for chaining.
    • clearAddress

      public DiscoveryEndpoint.Builder clearAddress()
       Output only. Address of the exposed Redis endpoint used by clients to
       connect to the service. The address could be either IP or hostname.
       
      string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setAddressBytes

      public DiscoveryEndpoint.Builder setAddressBytes(com.google.protobuf.ByteString value)
       Output only. Address of the exposed Redis endpoint used by clients to
       connect to the service. The address could be either IP or hostname.
       
      string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for address to set.
      Returns:
      This builder for chaining.
    • getPort

      public int getPort()
       Output only. The port number of the exposed Redis endpoint.
       
      int32 port = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPort in interface DiscoveryEndpointOrBuilder
      Returns:
      The port.
    • setPort

      public DiscoveryEndpoint.Builder setPort(int value)
       Output only. The port number of the exposed Redis endpoint.
       
      int32 port = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The port to set.
      Returns:
      This builder for chaining.
    • clearPort

      public DiscoveryEndpoint.Builder clearPort()
       Output only. The port number of the exposed Redis endpoint.
       
      int32 port = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasPscConfig

      public boolean hasPscConfig()
       Output only. Customer configuration for where the endpoint is created and
       accessed from.
       
      .google.cloud.redis.cluster.v1beta1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPscConfig in interface DiscoveryEndpointOrBuilder
      Returns:
      Whether the pscConfig field is set.
    • getPscConfig

      public PscConfig getPscConfig()
       Output only. Customer configuration for where the endpoint is created and
       accessed from.
       
      .google.cloud.redis.cluster.v1beta1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPscConfig in interface DiscoveryEndpointOrBuilder
      Returns:
      The pscConfig.
    • setPscConfig

      public DiscoveryEndpoint.Builder setPscConfig(PscConfig value)
       Output only. Customer configuration for where the endpoint is created and
       accessed from.
       
      .google.cloud.redis.cluster.v1beta1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setPscConfig

      public DiscoveryEndpoint.Builder setPscConfig(PscConfig.Builder builderForValue)
       Output only. Customer configuration for where the endpoint is created and
       accessed from.
       
      .google.cloud.redis.cluster.v1beta1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergePscConfig

      public DiscoveryEndpoint.Builder mergePscConfig(PscConfig value)
       Output only. Customer configuration for where the endpoint is created and
       accessed from.
       
      .google.cloud.redis.cluster.v1beta1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearPscConfig

      public DiscoveryEndpoint.Builder clearPscConfig()
       Output only. Customer configuration for where the endpoint is created and
       accessed from.
       
      .google.cloud.redis.cluster.v1beta1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPscConfigBuilder

      public PscConfig.Builder getPscConfigBuilder()
       Output only. Customer configuration for where the endpoint is created and
       accessed from.
       
      .google.cloud.redis.cluster.v1beta1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPscConfigOrBuilder

      public PscConfigOrBuilder getPscConfigOrBuilder()
       Output only. Customer configuration for where the endpoint is created and
       accessed from.
       
      .google.cloud.redis.cluster.v1beta1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPscConfigOrBuilder in interface DiscoveryEndpointOrBuilder