Class RedisClusterInfo.Builder

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

public static final class RedisClusterInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<RedisClusterInfo.Builder> implements RedisClusterInfoOrBuilder
 For display only. Metadata associated with a Redis Cluster.
 
Protobuf type google.cloud.networkmanagement.v1beta1.RedisClusterInfo
  • 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<RedisClusterInfo.Builder>
    • clear

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

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

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

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

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

      public RedisClusterInfo.Builder mergeFrom(RedisClusterInfo other)
    • isInitialized

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

      public RedisClusterInfo.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<RedisClusterInfo.Builder>
      Throws:
      IOException
    • getDisplayName

      public String getDisplayName()
       Name of a Redis Cluster.
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface RedisClusterInfoOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Name of a Redis Cluster.
       
      string display_name = 1;
      Specified by:
      getDisplayNameBytes in interface RedisClusterInfoOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public RedisClusterInfo.Builder setDisplayName(String value)
       Name of a Redis Cluster.
       
      string display_name = 1;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public RedisClusterInfo.Builder clearDisplayName()
       Name of a Redis Cluster.
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public RedisClusterInfo.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Name of a Redis Cluster.
       
      string display_name = 1;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getUri

      public String getUri()
       URI of a Redis Cluster in format
       "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
       
      string uri = 2;
      Specified by:
      getUri in interface RedisClusterInfoOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       URI of a Redis Cluster in format
       "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
       
      string uri = 2;
      Specified by:
      getUriBytes in interface RedisClusterInfoOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public RedisClusterInfo.Builder setUri(String value)
       URI of a Redis Cluster in format
       "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
       
      string uri = 2;
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public RedisClusterInfo.Builder clearUri()
       URI of a Redis Cluster in format
       "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
       
      string uri = 2;
      Returns:
      This builder for chaining.
    • setUriBytes

      public RedisClusterInfo.Builder setUriBytes(com.google.protobuf.ByteString value)
       URI of a Redis Cluster in format
       "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
       
      string uri = 2;
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • getNetworkUri

      public String getNetworkUri()
       URI of the network containing the Redis Cluster endpoints in format
       "projects/{project_id}/global/networks/{network_id}".
       
      string network_uri = 3;
      Specified by:
      getNetworkUri in interface RedisClusterInfoOrBuilder
      Returns:
      The networkUri.
    • getNetworkUriBytes

      public com.google.protobuf.ByteString getNetworkUriBytes()
       URI of the network containing the Redis Cluster endpoints in format
       "projects/{project_id}/global/networks/{network_id}".
       
      string network_uri = 3;
      Specified by:
      getNetworkUriBytes in interface RedisClusterInfoOrBuilder
      Returns:
      The bytes for networkUri.
    • setNetworkUri

      public RedisClusterInfo.Builder setNetworkUri(String value)
       URI of the network containing the Redis Cluster endpoints in format
       "projects/{project_id}/global/networks/{network_id}".
       
      string network_uri = 3;
      Parameters:
      value - The networkUri to set.
      Returns:
      This builder for chaining.
    • clearNetworkUri

      public RedisClusterInfo.Builder clearNetworkUri()
       URI of the network containing the Redis Cluster endpoints in format
       "projects/{project_id}/global/networks/{network_id}".
       
      string network_uri = 3;
      Returns:
      This builder for chaining.
    • setNetworkUriBytes

      public RedisClusterInfo.Builder setNetworkUriBytes(com.google.protobuf.ByteString value)
       URI of the network containing the Redis Cluster endpoints in format
       "projects/{project_id}/global/networks/{network_id}".
       
      string network_uri = 3;
      Parameters:
      value - The bytes for networkUri to set.
      Returns:
      This builder for chaining.
    • getDiscoveryEndpointIpAddress

      public String getDiscoveryEndpointIpAddress()
       Discovery endpoint IP address of a Redis Cluster.
       
      string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... }
      Specified by:
      getDiscoveryEndpointIpAddress in interface RedisClusterInfoOrBuilder
      Returns:
      The discoveryEndpointIpAddress.
    • getDiscoveryEndpointIpAddressBytes

      public com.google.protobuf.ByteString getDiscoveryEndpointIpAddressBytes()
       Discovery endpoint IP address of a Redis Cluster.
       
      string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... }
      Specified by:
      getDiscoveryEndpointIpAddressBytes in interface RedisClusterInfoOrBuilder
      Returns:
      The bytes for discoveryEndpointIpAddress.
    • setDiscoveryEndpointIpAddress

      public RedisClusterInfo.Builder setDiscoveryEndpointIpAddress(String value)
       Discovery endpoint IP address of a Redis Cluster.
       
      string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... }
      Parameters:
      value - The discoveryEndpointIpAddress to set.
      Returns:
      This builder for chaining.
    • clearDiscoveryEndpointIpAddress

      public RedisClusterInfo.Builder clearDiscoveryEndpointIpAddress()
       Discovery endpoint IP address of a Redis Cluster.
       
      string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setDiscoveryEndpointIpAddressBytes

      public RedisClusterInfo.Builder setDiscoveryEndpointIpAddressBytes(com.google.protobuf.ByteString value)
       Discovery endpoint IP address of a Redis Cluster.
       
      string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for discoveryEndpointIpAddress to set.
      Returns:
      This builder for chaining.
    • getSecondaryEndpointIpAddress

      public String getSecondaryEndpointIpAddress()
       Secondary endpoint IP address of a Redis Cluster.
       
      string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... }
      Specified by:
      getSecondaryEndpointIpAddress in interface RedisClusterInfoOrBuilder
      Returns:
      The secondaryEndpointIpAddress.
    • getSecondaryEndpointIpAddressBytes

      public com.google.protobuf.ByteString getSecondaryEndpointIpAddressBytes()
       Secondary endpoint IP address of a Redis Cluster.
       
      string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... }
      Specified by:
      getSecondaryEndpointIpAddressBytes in interface RedisClusterInfoOrBuilder
      Returns:
      The bytes for secondaryEndpointIpAddress.
    • setSecondaryEndpointIpAddress

      public RedisClusterInfo.Builder setSecondaryEndpointIpAddress(String value)
       Secondary endpoint IP address of a Redis Cluster.
       
      string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... }
      Parameters:
      value - The secondaryEndpointIpAddress to set.
      Returns:
      This builder for chaining.
    • clearSecondaryEndpointIpAddress

      public RedisClusterInfo.Builder clearSecondaryEndpointIpAddress()
       Secondary endpoint IP address of a Redis Cluster.
       
      string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setSecondaryEndpointIpAddressBytes

      public RedisClusterInfo.Builder setSecondaryEndpointIpAddressBytes(com.google.protobuf.ByteString value)
       Secondary endpoint IP address of a Redis Cluster.
       
      string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for secondaryEndpointIpAddress to set.
      Returns:
      This builder for chaining.
    • getLocation

      public String getLocation()
       Name of the region in which the Redis Cluster is defined. For example,
       "us-central1".
       
      string location = 6;
      Specified by:
      getLocation in interface RedisClusterInfoOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Name of the region in which the Redis Cluster is defined. For example,
       "us-central1".
       
      string location = 6;
      Specified by:
      getLocationBytes in interface RedisClusterInfoOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public RedisClusterInfo.Builder setLocation(String value)
       Name of the region in which the Redis Cluster is defined. For example,
       "us-central1".
       
      string location = 6;
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public RedisClusterInfo.Builder clearLocation()
       Name of the region in which the Redis Cluster is defined. For example,
       "us-central1".
       
      string location = 6;
      Returns:
      This builder for chaining.
    • setLocationBytes

      public RedisClusterInfo.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Name of the region in which the Redis Cluster is defined. For example,
       "us-central1".
       
      string location = 6;
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.