Class ConnectionInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder>
com.google.cloud.alloydb.v1.ConnectionInfo.Builder
All Implemented Interfaces:
ConnectionInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ConnectionInfo

public static final class ConnectionInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder> implements ConnectionInfoOrBuilder
 ConnectionInfo singleton resource.
 https://google.aip.dev/156
 
Protobuf type google.cloud.alloydb.v1.ConnectionInfo
  • 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<ConnectionInfo.Builder>
    • clear

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

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

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

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

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

      public ConnectionInfo.Builder mergeFrom(ConnectionInfo other)
    • isInitialized

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

      public ConnectionInfo.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<ConnectionInfo.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the ConnectionInfo singleton resource, e.g.:
       projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo
       This field currently has no semantic meaning.
       
      string name = 1;
      Specified by:
      getName in interface ConnectionInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the ConnectionInfo singleton resource, e.g.:
       projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo
       This field currently has no semantic meaning.
       
      string name = 1;
      Specified by:
      getNameBytes in interface ConnectionInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ConnectionInfo.Builder setName(String value)
       The name of the ConnectionInfo singleton resource, e.g.:
       projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo
       This field currently has no semantic meaning.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ConnectionInfo.Builder clearName()
       The name of the ConnectionInfo singleton resource, e.g.:
       projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo
       This field currently has no semantic meaning.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ConnectionInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the ConnectionInfo singleton resource, e.g.:
       projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo
       This field currently has no semantic meaning.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getIpAddress

      public String getIpAddress()
       Output only. The private network IP address for the Instance. This is the
       default IP for the instance and is always created (even if enable_public_ip
       is set). This is the connection endpoint for an end-user application.
       
      string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIpAddress in interface ConnectionInfoOrBuilder
      Returns:
      The ipAddress.
    • getIpAddressBytes

      public com.google.protobuf.ByteString getIpAddressBytes()
       Output only. The private network IP address for the Instance. This is the
       default IP for the instance and is always created (even if enable_public_ip
       is set). This is the connection endpoint for an end-user application.
       
      string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIpAddressBytes in interface ConnectionInfoOrBuilder
      Returns:
      The bytes for ipAddress.
    • setIpAddress

      public ConnectionInfo.Builder setIpAddress(String value)
       Output only. The private network IP address for the Instance. This is the
       default IP for the instance and is always created (even if enable_public_ip
       is set). This is the connection endpoint for an end-user application.
       
      string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The ipAddress to set.
      Returns:
      This builder for chaining.
    • clearIpAddress

      public ConnectionInfo.Builder clearIpAddress()
       Output only. The private network IP address for the Instance. This is the
       default IP for the instance and is always created (even if enable_public_ip
       is set). This is the connection endpoint for an end-user application.
       
      string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setIpAddressBytes

      public ConnectionInfo.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
       Output only. The private network IP address for the Instance. This is the
       default IP for the instance and is always created (even if enable_public_ip
       is set). This is the connection endpoint for an end-user application.
       
      string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for ipAddress to set.
      Returns:
      This builder for chaining.
    • getPublicIpAddress

      public String getPublicIpAddress()
       Output only. The public IP addresses for the Instance. This is available
       ONLY when enable_public_ip is set. This is the connection endpoint for an
       end-user application.
       
      string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getPublicIpAddress in interface ConnectionInfoOrBuilder
      Returns:
      The publicIpAddress.
    • getPublicIpAddressBytes

      public com.google.protobuf.ByteString getPublicIpAddressBytes()
       Output only. The public IP addresses for the Instance. This is available
       ONLY when enable_public_ip is set. This is the connection endpoint for an
       end-user application.
       
      string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getPublicIpAddressBytes in interface ConnectionInfoOrBuilder
      Returns:
      The bytes for publicIpAddress.
    • setPublicIpAddress

      public ConnectionInfo.Builder setPublicIpAddress(String value)
       Output only. The public IP addresses for the Instance. This is available
       ONLY when enable_public_ip is set. This is the connection endpoint for an
       end-user application.
       
      string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The publicIpAddress to set.
      Returns:
      This builder for chaining.
    • clearPublicIpAddress

      public ConnectionInfo.Builder clearPublicIpAddress()
       Output only. The public IP addresses for the Instance. This is available
       ONLY when enable_public_ip is set. This is the connection endpoint for an
       end-user application.
       
      string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setPublicIpAddressBytes

      public ConnectionInfo.Builder setPublicIpAddressBytes(com.google.protobuf.ByteString value)
       Output only. The public IP addresses for the Instance. This is available
       ONLY when enable_public_ip is set. This is the connection endpoint for an
       end-user application.
       
      string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for publicIpAddress to set.
      Returns:
      This builder for chaining.
    • getInstanceUid

      public String getInstanceUid()
       Output only. The unique ID of the Instance.
       
      string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInstanceUid in interface ConnectionInfoOrBuilder
      Returns:
      The instanceUid.
    • getInstanceUidBytes

      public com.google.protobuf.ByteString getInstanceUidBytes()
       Output only. The unique ID of the Instance.
       
      string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInstanceUidBytes in interface ConnectionInfoOrBuilder
      Returns:
      The bytes for instanceUid.
    • setInstanceUid

      public ConnectionInfo.Builder setInstanceUid(String value)
       Output only. The unique ID of the Instance.
       
      string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The instanceUid to set.
      Returns:
      This builder for chaining.
    • clearInstanceUid

      public ConnectionInfo.Builder clearInstanceUid()
       Output only. The unique ID of the Instance.
       
      string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setInstanceUidBytes

      public ConnectionInfo.Builder setInstanceUidBytes(com.google.protobuf.ByteString value)
       Output only. The unique ID of the Instance.
       
      string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for instanceUid to set.
      Returns:
      This builder for chaining.