Class PreservedState.Builder

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

public static final class PreservedState.Builder extends com.google.protobuf.GeneratedMessage.Builder<PreservedState.Builder> implements PreservedStateOrBuilder
 Preserved state for a given instance.
 
Protobuf type google.cloud.compute.v1.PreservedState
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<PreservedState.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<PreservedState.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PreservedState.Builder>
    • clear

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

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

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

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

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

      public PreservedState.Builder mergeFrom(PreservedState other)
    • isInitialized

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

      public PreservedState.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<PreservedState.Builder>
      Throws:
      IOException
    • getDisksCount

      public int getDisksCount()
      Description copied from interface: PreservedStateOrBuilder
       Preserved disks defined for this instance.
       This map is keyed with the device names of the disks.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;
      Specified by:
      getDisksCount in interface PreservedStateOrBuilder
    • containsDisks

      public boolean containsDisks(String key)
       Preserved disks defined for this instance.
       This map is keyed with the device names of the disks.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;
      Specified by:
      containsDisks in interface PreservedStateOrBuilder
    • getDisks

      Deprecated.
      Use getDisksMap() instead.
      Specified by:
      getDisks in interface PreservedStateOrBuilder
    • getDisksMap

      public Map<String,PreservedStatePreservedDisk> getDisksMap()
       Preserved disks defined for this instance.
       This map is keyed with the device names of the disks.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;
      Specified by:
      getDisksMap in interface PreservedStateOrBuilder
    • getDisksOrDefault

      public PreservedStatePreservedDisk getDisksOrDefault(String key, PreservedStatePreservedDisk defaultValue)
       Preserved disks defined for this instance.
       This map is keyed with the device names of the disks.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;
      Specified by:
      getDisksOrDefault in interface PreservedStateOrBuilder
    • getDisksOrThrow

      public PreservedStatePreservedDisk getDisksOrThrow(String key)
       Preserved disks defined for this instance.
       This map is keyed with the device names of the disks.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;
      Specified by:
      getDisksOrThrow in interface PreservedStateOrBuilder
    • clearDisks

      public PreservedState.Builder clearDisks()
    • removeDisks

      public PreservedState.Builder removeDisks(String key)
       Preserved disks defined for this instance.
       This map is keyed with the device names of the disks.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;
    • getMutableDisks

      Deprecated.
      Use alternate mutation accessors instead.
    • putDisks

       Preserved disks defined for this instance.
       This map is keyed with the device names of the disks.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;
    • putAllDisks

       Preserved disks defined for this instance.
       This map is keyed with the device names of the disks.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;
    • putDisksBuilderIfAbsent

      public PreservedStatePreservedDisk.Builder putDisksBuilderIfAbsent(String key)
       Preserved disks defined for this instance.
       This map is keyed with the device names of the disks.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;
    • getExternalIPsCount

      public int getExternalIPsCount()
      Description copied from interface: PreservedStateOrBuilder
       Preserved external IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;
      Specified by:
      getExternalIPsCount in interface PreservedStateOrBuilder
    • containsExternalIPs

      public boolean containsExternalIPs(String key)
       Preserved external IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;
      Specified by:
      containsExternalIPs in interface PreservedStateOrBuilder
    • getExternalIPs

      Deprecated.
      Use getExternalIPsMap() instead.
      Specified by:
      getExternalIPs in interface PreservedStateOrBuilder
    • getExternalIPsMap

      public Map<String,PreservedStatePreservedNetworkIp> getExternalIPsMap()
       Preserved external IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;
      Specified by:
      getExternalIPsMap in interface PreservedStateOrBuilder
    • getExternalIPsOrDefault

      public PreservedStatePreservedNetworkIp getExternalIPsOrDefault(String key, PreservedStatePreservedNetworkIp defaultValue)
       Preserved external IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;
      Specified by:
      getExternalIPsOrDefault in interface PreservedStateOrBuilder
    • getExternalIPsOrThrow

      public PreservedStatePreservedNetworkIp getExternalIPsOrThrow(String key)
       Preserved external IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;
      Specified by:
      getExternalIPsOrThrow in interface PreservedStateOrBuilder
    • clearExternalIPs

      public PreservedState.Builder clearExternalIPs()
    • removeExternalIPs

      public PreservedState.Builder removeExternalIPs(String key)
       Preserved external IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;
    • getMutableExternalIPs

      @Deprecated public Map<String,PreservedStatePreservedNetworkIp> getMutableExternalIPs()
      Deprecated.
      Use alternate mutation accessors instead.
    • putExternalIPs

      public PreservedState.Builder putExternalIPs(String key, PreservedStatePreservedNetworkIp value)
       Preserved external IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;
    • putAllExternalIPs

       Preserved external IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;
    • putExternalIPsBuilderIfAbsent

      public PreservedStatePreservedNetworkIp.Builder putExternalIPsBuilderIfAbsent(String key)
       Preserved external IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;
    • getInternalIPsCount

      public int getInternalIPsCount()
      Description copied from interface: PreservedStateOrBuilder
       Preserved internal IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;
      Specified by:
      getInternalIPsCount in interface PreservedStateOrBuilder
    • containsInternalIPs

      public boolean containsInternalIPs(String key)
       Preserved internal IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;
      Specified by:
      containsInternalIPs in interface PreservedStateOrBuilder
    • getInternalIPs

      Deprecated.
      Use getInternalIPsMap() instead.
      Specified by:
      getInternalIPs in interface PreservedStateOrBuilder
    • getInternalIPsMap

      public Map<String,PreservedStatePreservedNetworkIp> getInternalIPsMap()
       Preserved internal IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;
      Specified by:
      getInternalIPsMap in interface PreservedStateOrBuilder
    • getInternalIPsOrDefault

      public PreservedStatePreservedNetworkIp getInternalIPsOrDefault(String key, PreservedStatePreservedNetworkIp defaultValue)
       Preserved internal IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;
      Specified by:
      getInternalIPsOrDefault in interface PreservedStateOrBuilder
    • getInternalIPsOrThrow

      public PreservedStatePreservedNetworkIp getInternalIPsOrThrow(String key)
       Preserved internal IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;
      Specified by:
      getInternalIPsOrThrow in interface PreservedStateOrBuilder
    • clearInternalIPs

      public PreservedState.Builder clearInternalIPs()
    • removeInternalIPs

      public PreservedState.Builder removeInternalIPs(String key)
       Preserved internal IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;
    • getMutableInternalIPs

      @Deprecated public Map<String,PreservedStatePreservedNetworkIp> getMutableInternalIPs()
      Deprecated.
      Use alternate mutation accessors instead.
    • putInternalIPs

      public PreservedState.Builder putInternalIPs(String key, PreservedStatePreservedNetworkIp value)
       Preserved internal IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;
    • putAllInternalIPs

       Preserved internal IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;
    • putInternalIPsBuilderIfAbsent

      public PreservedStatePreservedNetworkIp.Builder putInternalIPsBuilderIfAbsent(String key)
       Preserved internal IPs defined for this instance.
       This map is keyed with the name of the network interface.
       
      map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: PreservedStateOrBuilder
       Preserved metadata defined for this instance.
       
      map<string, string> metadata = 86866735;
      Specified by:
      getMetadataCount in interface PreservedStateOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Preserved metadata defined for this instance.
       
      map<string, string> metadata = 86866735;
      Specified by:
      containsMetadata in interface PreservedStateOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface PreservedStateOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
       Preserved metadata defined for this instance.
       
      map<string, string> metadata = 86866735;
      Specified by:
      getMetadataMap in interface PreservedStateOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Preserved metadata defined for this instance.
       
      map<string, string> metadata = 86866735;
      Specified by:
      getMetadataOrDefault in interface PreservedStateOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Preserved metadata defined for this instance.
       
      map<string, string> metadata = 86866735;
      Specified by:
      getMetadataOrThrow in interface PreservedStateOrBuilder
    • clearMetadata

      public PreservedState.Builder clearMetadata()
    • removeMetadata

      public PreservedState.Builder removeMetadata(String key)
       Preserved metadata defined for this instance.
       
      map<string, string> metadata = 86866735;
    • getMutableMetadata

      @Deprecated public Map<String,String> getMutableMetadata()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMetadata

      public PreservedState.Builder putMetadata(String key, String value)
       Preserved metadata defined for this instance.
       
      map<string, string> metadata = 86866735;
    • putAllMetadata

      public PreservedState.Builder putAllMetadata(Map<String,String> values)
       Preserved metadata defined for this instance.
       
      map<string, string> metadata = 86866735;