Class InstancePropertiesPatch.Builder

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

public static final class InstancePropertiesPatch.Builder extends com.google.protobuf.GeneratedMessage.Builder<InstancePropertiesPatch.Builder> implements InstancePropertiesPatchOrBuilder
 Represents the change that you want to make to the instance properties.
 
Protobuf type google.cloud.compute.v1.InstancePropertiesPatch
  • 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<InstancePropertiesPatch.Builder>
    • internalGetMutableMapFieldReflection

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<InstancePropertiesPatch.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<InstancePropertiesPatch.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<InstancePropertiesPatch.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public InstancePropertiesPatch.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<InstancePropertiesPatch.Builder>
      Throws:
      IOException
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: InstancePropertiesPatchOrBuilder
       The label key-value pairs that you want to patch onto the instance.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsCount in interface InstancePropertiesPatchOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       The label key-value pairs that you want to patch onto the instance.
       
      map<string, string> labels = 500195327;
      Specified by:
      containsLabels in interface InstancePropertiesPatchOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface InstancePropertiesPatchOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       The label key-value pairs that you want to patch onto the instance.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsMap in interface InstancePropertiesPatchOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       The label key-value pairs that you want to patch onto the instance.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrDefault in interface InstancePropertiesPatchOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       The label key-value pairs that you want to patch onto the instance.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrThrow in interface InstancePropertiesPatchOrBuilder
    • clearLabels

      public InstancePropertiesPatch.Builder clearLabels()
    • removeLabels

      public InstancePropertiesPatch.Builder removeLabels(String key)
       The label key-value pairs that you want to patch onto the instance.
       
      map<string, string> labels = 500195327;
    • getMutableLabels

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

      public InstancePropertiesPatch.Builder putLabels(String key, String value)
       The label key-value pairs that you want to patch onto the instance.
       
      map<string, string> labels = 500195327;
    • putAllLabels

      public InstancePropertiesPatch.Builder putAllLabels(Map<String,String> values)
       The label key-value pairs that you want to patch onto the instance.
       
      map<string, string> labels = 500195327;
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: InstancePropertiesPatchOrBuilder
       The metadata key-value pairs that you want to patch onto the instance. For
       more information, see Project and
       instance metadata.
       
      map<string, string> metadata = 86866735;
      Specified by:
      getMetadataCount in interface InstancePropertiesPatchOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       The metadata key-value pairs that you want to patch onto the instance. For
       more information, see Project and
       instance metadata.
       
      map<string, string> metadata = 86866735;
      Specified by:
      containsMetadata in interface InstancePropertiesPatchOrBuilder
    • getMetadata

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

      public Map<String,String> getMetadataMap()
       The metadata key-value pairs that you want to patch onto the instance. For
       more information, see Project and
       instance metadata.
       
      map<string, string> metadata = 86866735;
      Specified by:
      getMetadataMap in interface InstancePropertiesPatchOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       The metadata key-value pairs that you want to patch onto the instance. For
       more information, see Project and
       instance metadata.
       
      map<string, string> metadata = 86866735;
      Specified by:
      getMetadataOrDefault in interface InstancePropertiesPatchOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       The metadata key-value pairs that you want to patch onto the instance. For
       more information, see Project and
       instance metadata.
       
      map<string, string> metadata = 86866735;
      Specified by:
      getMetadataOrThrow in interface InstancePropertiesPatchOrBuilder
    • clearMetadata

      public InstancePropertiesPatch.Builder clearMetadata()
    • removeMetadata

      public InstancePropertiesPatch.Builder removeMetadata(String key)
       The metadata key-value pairs that you want to patch onto the instance. For
       more information, see Project and
       instance metadata.
       
      map<string, string> metadata = 86866735;
    • getMutableMetadata

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

      public InstancePropertiesPatch.Builder putMetadata(String key, String value)
       The metadata key-value pairs that you want to patch onto the instance. For
       more information, see Project and
       instance metadata.
       
      map<string, string> metadata = 86866735;
    • putAllMetadata

      public InstancePropertiesPatch.Builder putAllMetadata(Map<String,String> values)
       The metadata key-value pairs that you want to patch onto the instance. For
       more information, see Project and
       instance metadata.
       
      map<string, string> metadata = 86866735;