Class ZoneSetLabelsRequest.Builder

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

public static final class ZoneSetLabelsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ZoneSetLabelsRequest.Builder> implements ZoneSetLabelsRequestOrBuilder
 
Protobuf type google.cloud.compute.v1.ZoneSetLabelsRequest
  • 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<ZoneSetLabelsRequest.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

      public ZoneSetLabelsRequest.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<ZoneSetLabelsRequest.Builder>
      Throws:
      IOException
    • hasLabelFingerprint

      public boolean hasLabelFingerprint()
       The fingerprint of the previous set of labels for this resource,
       used to detect conflicts. The fingerprint is initially generated by Compute
       Engine and changes after every request to modify or update labels. You must
       always provide an up-to-date fingerprint hash in order to update or change
       labels. Make a get() request to the resource to get the latest
       fingerprint.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      hasLabelFingerprint in interface ZoneSetLabelsRequestOrBuilder
      Returns:
      Whether the labelFingerprint field is set.
    • getLabelFingerprint

      public String getLabelFingerprint()
       The fingerprint of the previous set of labels for this resource,
       used to detect conflicts. The fingerprint is initially generated by Compute
       Engine and changes after every request to modify or update labels. You must
       always provide an up-to-date fingerprint hash in order to update or change
       labels. Make a get() request to the resource to get the latest
       fingerprint.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      getLabelFingerprint in interface ZoneSetLabelsRequestOrBuilder
      Returns:
      The labelFingerprint.
    • getLabelFingerprintBytes

      public com.google.protobuf.ByteString getLabelFingerprintBytes()
       The fingerprint of the previous set of labels for this resource,
       used to detect conflicts. The fingerprint is initially generated by Compute
       Engine and changes after every request to modify or update labels. You must
       always provide an up-to-date fingerprint hash in order to update or change
       labels. Make a get() request to the resource to get the latest
       fingerprint.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      getLabelFingerprintBytes in interface ZoneSetLabelsRequestOrBuilder
      Returns:
      The bytes for labelFingerprint.
    • setLabelFingerprint

      public ZoneSetLabelsRequest.Builder setLabelFingerprint(String value)
       The fingerprint of the previous set of labels for this resource,
       used to detect conflicts. The fingerprint is initially generated by Compute
       Engine and changes after every request to modify or update labels. You must
       always provide an up-to-date fingerprint hash in order to update or change
       labels. Make a get() request to the resource to get the latest
       fingerprint.
       
      optional string label_fingerprint = 178124825;
      Parameters:
      value - The labelFingerprint to set.
      Returns:
      This builder for chaining.
    • clearLabelFingerprint

      public ZoneSetLabelsRequest.Builder clearLabelFingerprint()
       The fingerprint of the previous set of labels for this resource,
       used to detect conflicts. The fingerprint is initially generated by Compute
       Engine and changes after every request to modify or update labels. You must
       always provide an up-to-date fingerprint hash in order to update or change
       labels. Make a get() request to the resource to get the latest
       fingerprint.
       
      optional string label_fingerprint = 178124825;
      Returns:
      This builder for chaining.
    • setLabelFingerprintBytes

      public ZoneSetLabelsRequest.Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value)
       The fingerprint of the previous set of labels for this resource,
       used to detect conflicts. The fingerprint is initially generated by Compute
       Engine and changes after every request to modify or update labels. You must
       always provide an up-to-date fingerprint hash in order to update or change
       labels. Make a get() request to the resource to get the latest
       fingerprint.
       
      optional string label_fingerprint = 178124825;
      Parameters:
      value - The bytes for labelFingerprint to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ZoneSetLabelsRequestOrBuilder
       The labels to set for this resource.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsCount in interface ZoneSetLabelsRequestOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       The labels to set for this resource.
       
      map<string, string> labels = 500195327;
      Specified by:
      containsLabels in interface ZoneSetLabelsRequestOrBuilder
    • getLabels

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

      public Map<String,String> getLabelsMap()
       The labels to set for this resource.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsMap in interface ZoneSetLabelsRequestOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       The labels to set for this resource.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrDefault in interface ZoneSetLabelsRequestOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       The labels to set for this resource.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrThrow in interface ZoneSetLabelsRequestOrBuilder
    • clearLabels

      public ZoneSetLabelsRequest.Builder clearLabels()
    • removeLabels

      public ZoneSetLabelsRequest.Builder removeLabels(String key)
       The labels to set for this resource.
       
      map<string, string> labels = 500195327;
    • getMutableLabels

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

      public ZoneSetLabelsRequest.Builder putLabels(String key, String value)
       The labels to set for this resource.
       
      map<string, string> labels = 500195327;
    • putAllLabels

      public ZoneSetLabelsRequest.Builder putAllLabels(Map<String,String> values)
       The labels to set for this resource.
       
      map<string, string> labels = 500195327;