Class CloudSQLInstanceInfo.Builder

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

public static final class CloudSQLInstanceInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<CloudSQLInstanceInfo.Builder> implements CloudSQLInstanceInfoOrBuilder
 For display only. Metadata associated with a Cloud SQL instance.
 
Protobuf type google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo
  • 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<CloudSQLInstanceInfo.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<CloudSQLInstanceInfo.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<CloudSQLInstanceInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getDisplayName()
       Name of a Cloud SQL instance.
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface CloudSQLInstanceInfoOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

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

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

      public CloudSQLInstanceInfo.Builder clearDisplayName()
       Name of a Cloud SQL instance.
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

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

      public String getUri()
       URI of a Cloud SQL instance.
       
      string uri = 2;
      Specified by:
      getUri in interface CloudSQLInstanceInfoOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       URI of a Cloud SQL instance.
       
      string uri = 2;
      Specified by:
      getUriBytes in interface CloudSQLInstanceInfoOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public CloudSQLInstanceInfo.Builder setUri(String value)
       URI of a Cloud SQL instance.
       
      string uri = 2;
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public CloudSQLInstanceInfo.Builder clearUri()
       URI of a Cloud SQL instance.
       
      string uri = 2;
      Returns:
      This builder for chaining.
    • setUriBytes

      public CloudSQLInstanceInfo.Builder setUriBytes(com.google.protobuf.ByteString value)
       URI of a Cloud SQL instance.
       
      string uri = 2;
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • getNetworkUri

      public String getNetworkUri()
       URI of a Cloud SQL instance network or empty string if the instance does
       not have one.
       
      string network_uri = 4;
      Specified by:
      getNetworkUri in interface CloudSQLInstanceInfoOrBuilder
      Returns:
      The networkUri.
    • getNetworkUriBytes

      public com.google.protobuf.ByteString getNetworkUriBytes()
       URI of a Cloud SQL instance network or empty string if the instance does
       not have one.
       
      string network_uri = 4;
      Specified by:
      getNetworkUriBytes in interface CloudSQLInstanceInfoOrBuilder
      Returns:
      The bytes for networkUri.
    • setNetworkUri

      public CloudSQLInstanceInfo.Builder setNetworkUri(String value)
       URI of a Cloud SQL instance network or empty string if the instance does
       not have one.
       
      string network_uri = 4;
      Parameters:
      value - The networkUri to set.
      Returns:
      This builder for chaining.
    • clearNetworkUri

      public CloudSQLInstanceInfo.Builder clearNetworkUri()
       URI of a Cloud SQL instance network or empty string if the instance does
       not have one.
       
      string network_uri = 4;
      Returns:
      This builder for chaining.
    • setNetworkUriBytes

      public CloudSQLInstanceInfo.Builder setNetworkUriBytes(com.google.protobuf.ByteString value)
       URI of a Cloud SQL instance network or empty string if the instance does
       not have one.
       
      string network_uri = 4;
      Parameters:
      value - The bytes for networkUri to set.
      Returns:
      This builder for chaining.
    • getInternalIp

      public String getInternalIp()
       Internal IP address of a Cloud SQL instance.
       
      string internal_ip = 5;
      Specified by:
      getInternalIp in interface CloudSQLInstanceInfoOrBuilder
      Returns:
      The internalIp.
    • getInternalIpBytes

      public com.google.protobuf.ByteString getInternalIpBytes()
       Internal IP address of a Cloud SQL instance.
       
      string internal_ip = 5;
      Specified by:
      getInternalIpBytes in interface CloudSQLInstanceInfoOrBuilder
      Returns:
      The bytes for internalIp.
    • setInternalIp

      public CloudSQLInstanceInfo.Builder setInternalIp(String value)
       Internal IP address of a Cloud SQL instance.
       
      string internal_ip = 5;
      Parameters:
      value - The internalIp to set.
      Returns:
      This builder for chaining.
    • clearInternalIp

      public CloudSQLInstanceInfo.Builder clearInternalIp()
       Internal IP address of a Cloud SQL instance.
       
      string internal_ip = 5;
      Returns:
      This builder for chaining.
    • setInternalIpBytes

      public CloudSQLInstanceInfo.Builder setInternalIpBytes(com.google.protobuf.ByteString value)
       Internal IP address of a Cloud SQL instance.
       
      string internal_ip = 5;
      Parameters:
      value - The bytes for internalIp to set.
      Returns:
      This builder for chaining.
    • getExternalIp

      public String getExternalIp()
       External IP address of a Cloud SQL instance.
       
      string external_ip = 6;
      Specified by:
      getExternalIp in interface CloudSQLInstanceInfoOrBuilder
      Returns:
      The externalIp.
    • getExternalIpBytes

      public com.google.protobuf.ByteString getExternalIpBytes()
       External IP address of a Cloud SQL instance.
       
      string external_ip = 6;
      Specified by:
      getExternalIpBytes in interface CloudSQLInstanceInfoOrBuilder
      Returns:
      The bytes for externalIp.
    • setExternalIp

      public CloudSQLInstanceInfo.Builder setExternalIp(String value)
       External IP address of a Cloud SQL instance.
       
      string external_ip = 6;
      Parameters:
      value - The externalIp to set.
      Returns:
      This builder for chaining.
    • clearExternalIp

      public CloudSQLInstanceInfo.Builder clearExternalIp()
       External IP address of a Cloud SQL instance.
       
      string external_ip = 6;
      Returns:
      This builder for chaining.
    • setExternalIpBytes

      public CloudSQLInstanceInfo.Builder setExternalIpBytes(com.google.protobuf.ByteString value)
       External IP address of a Cloud SQL instance.
       
      string external_ip = 6;
      Parameters:
      value - The bytes for externalIp to set.
      Returns:
      This builder for chaining.
    • getRegion

      public String getRegion()
       Region in which the Cloud SQL instance is running.
       
      string region = 7;
      Specified by:
      getRegion in interface CloudSQLInstanceInfoOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Region in which the Cloud SQL instance is running.
       
      string region = 7;
      Specified by:
      getRegionBytes in interface CloudSQLInstanceInfoOrBuilder
      Returns:
      The bytes for region.
    • setRegion

      public CloudSQLInstanceInfo.Builder setRegion(String value)
       Region in which the Cloud SQL instance is running.
       
      string region = 7;
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

      public CloudSQLInstanceInfo.Builder clearRegion()
       Region in which the Cloud SQL instance is running.
       
      string region = 7;
      Returns:
      This builder for chaining.
    • setRegionBytes

      public CloudSQLInstanceInfo.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Region in which the Cloud SQL instance is running.
       
      string region = 7;
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.