Class ExternalAddress.Builder

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

public static final class ExternalAddress.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExternalAddress.Builder> implements ExternalAddressOrBuilder
 Represents an allocated external IP address and its corresponding internal IP
 address in a private cloud.
 
Protobuf type google.cloud.vmwareengine.v1.ExternalAddress
  • 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<ExternalAddress.Builder>
    • clear

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

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

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

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

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

      public ExternalAddress.Builder mergeFrom(ExternalAddress other)
    • isInitialized

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

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

      public String getName()
       Output only. The resource name of this external IP address.
       Resource names are schemeless URIs that follow the conventions in
       https://cloud.google.com/apis/design/resource_names.
       For example:
       `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface ExternalAddressOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name of this external IP address.
       Resource names are schemeless URIs that follow the conventions in
       https://cloud.google.com/apis/design/resource_names.
       For example:
       `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface ExternalAddressOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ExternalAddress.Builder setName(String value)
       Output only. The resource name of this external IP address.
       Resource names are schemeless URIs that follow the conventions in
       https://cloud.google.com/apis/design/resource_names.
       For example:
       `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ExternalAddress.Builder clearName()
       Output only. The resource name of this external IP address.
       Resource names are schemeless URIs that follow the conventions in
       https://cloud.google.com/apis/design/resource_names.
       For example:
       `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public ExternalAddress.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of this external IP address.
       Resource names are schemeless URIs that follow the conventions in
       https://cloud.google.com/apis/design/resource_names.
       For example:
       `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Creation time of this resource.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ExternalAddressOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Creation time of this resource.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ExternalAddressOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public ExternalAddress.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation time of this resource.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public ExternalAddress.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Creation time of this resource.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public ExternalAddress.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation time of this resource.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public ExternalAddress.Builder clearCreateTime()
       Output only. Creation time of this resource.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Creation time of this resource.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Creation time of this resource.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ExternalAddressOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Last update time of this resource.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface ExternalAddressOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Last update time of this resource.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ExternalAddressOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public ExternalAddress.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last update time of this resource.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public ExternalAddress.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Last update time of this resource.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public ExternalAddress.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last update time of this resource.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public ExternalAddress.Builder clearUpdateTime()
       Output only. Last update time of this resource.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Last update time of this resource.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Last update time of this resource.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ExternalAddressOrBuilder
    • getInternalIp

      public String getInternalIp()
       The internal IP address of a workload VM.
       
      string internal_ip = 6;
      Specified by:
      getInternalIp in interface ExternalAddressOrBuilder
      Returns:
      The internalIp.
    • getInternalIpBytes

      public com.google.protobuf.ByteString getInternalIpBytes()
       The internal IP address of a workload VM.
       
      string internal_ip = 6;
      Specified by:
      getInternalIpBytes in interface ExternalAddressOrBuilder
      Returns:
      The bytes for internalIp.
    • setInternalIp

      public ExternalAddress.Builder setInternalIp(String value)
       The internal IP address of a workload VM.
       
      string internal_ip = 6;
      Parameters:
      value - The internalIp to set.
      Returns:
      This builder for chaining.
    • clearInternalIp

      public ExternalAddress.Builder clearInternalIp()
       The internal IP address of a workload VM.
       
      string internal_ip = 6;
      Returns:
      This builder for chaining.
    • setInternalIpBytes

      public ExternalAddress.Builder setInternalIpBytes(com.google.protobuf.ByteString value)
       The internal IP address of a workload VM.
       
      string internal_ip = 6;
      Parameters:
      value - The bytes for internalIp to set.
      Returns:
      This builder for chaining.
    • getExternalIp

      public String getExternalIp()
       Output only. The external IP address of a workload VM.
       
      string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExternalIp in interface ExternalAddressOrBuilder
      Returns:
      The externalIp.
    • getExternalIpBytes

      public com.google.protobuf.ByteString getExternalIpBytes()
       Output only. The external IP address of a workload VM.
       
      string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExternalIpBytes in interface ExternalAddressOrBuilder
      Returns:
      The bytes for externalIp.
    • setExternalIp

      public ExternalAddress.Builder setExternalIp(String value)
       Output only. The external IP address of a workload VM.
       
      string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The externalIp to set.
      Returns:
      This builder for chaining.
    • clearExternalIp

      public ExternalAddress.Builder clearExternalIp()
       Output only. The external IP address of a workload VM.
       
      string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setExternalIpBytes

      public ExternalAddress.Builder setExternalIpBytes(com.google.protobuf.ByteString value)
       Output only. The external IP address of a workload VM.
       
      string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for externalIp to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. The state of the resource.
       
      .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ExternalAddressOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public ExternalAddress.Builder setStateValue(int value)
       Output only. The state of the resource.
       
      .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public ExternalAddress.State getState()
       Output only. The state of the resource.
       
      .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ExternalAddressOrBuilder
      Returns:
      The state.
    • setState

       Output only. The state of the resource.
       
      .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public ExternalAddress.Builder clearState()
       Output only. The state of the resource.
       
      .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. System-generated unique identifier for the resource.
       
      string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUid in interface ExternalAddressOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. System-generated unique identifier for the resource.
       
      string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUidBytes in interface ExternalAddressOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public ExternalAddress.Builder setUid(String value)
       Output only. System-generated unique identifier for the resource.
       
      string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public ExternalAddress.Builder clearUid()
       Output only. System-generated unique identifier for the resource.
       
      string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUidBytes

      public ExternalAddress.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. System-generated unique identifier for the resource.
       
      string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       User-provided description for this resource.
       
      string description = 11;
      Specified by:
      getDescription in interface ExternalAddressOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       User-provided description for this resource.
       
      string description = 11;
      Specified by:
      getDescriptionBytes in interface ExternalAddressOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public ExternalAddress.Builder setDescription(String value)
       User-provided description for this resource.
       
      string description = 11;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public ExternalAddress.Builder clearDescription()
       User-provided description for this resource.
       
      string description = 11;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public ExternalAddress.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       User-provided description for this resource.
       
      string description = 11;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.