Class GlobalSetLabelsRequest.Builder

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

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

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

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

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

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

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

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

      public GlobalSetLabelsRequest.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<GlobalSetLabelsRequest.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 when updating or changing
       labels, otherwise the request will fail with error412 conditionNotMet.  Make a get() request to the
       resource to get the latest fingerprint.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      hasLabelFingerprint in interface GlobalSetLabelsRequestOrBuilder
      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 when updating or changing
       labels, otherwise the request will fail with error412 conditionNotMet.  Make a get() request to the
       resource to get the latest fingerprint.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      getLabelFingerprint in interface GlobalSetLabelsRequestOrBuilder
      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 when updating or changing
       labels, otherwise the request will fail with error412 conditionNotMet.  Make a get() request to the
       resource to get the latest fingerprint.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      getLabelFingerprintBytes in interface GlobalSetLabelsRequestOrBuilder
      Returns:
      The bytes for labelFingerprint.
    • setLabelFingerprint

      public GlobalSetLabelsRequest.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 when updating or changing
       labels, otherwise the request will fail with error412 conditionNotMet.  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 GlobalSetLabelsRequest.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 when updating or changing
       labels, otherwise the request will fail with error412 conditionNotMet.  Make a get() request to the
       resource to get the latest fingerprint.
       
      optional string label_fingerprint = 178124825;
      Returns:
      This builder for chaining.
    • setLabelFingerprintBytes

      public GlobalSetLabelsRequest.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 when updating or changing
       labels, otherwise the request will fail with error412 conditionNotMet.  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: GlobalSetLabelsRequestOrBuilder
       A list of labels to apply for this resource. Each label must comply with
       the
       requirements for labels. For example,"webserver-frontend": "images". A label value can also be
       empty (e.g. "my-label": "").
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsCount in interface GlobalSetLabelsRequestOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       A list of labels to apply for this resource. Each label must comply with
       the
       requirements for labels. For example,"webserver-frontend": "images". A label value can also be
       empty (e.g. "my-label": "").
       
      map<string, string> labels = 500195327;
      Specified by:
      containsLabels in interface GlobalSetLabelsRequestOrBuilder
    • getLabels

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

      public Map<String,String> getLabelsMap()
       A list of labels to apply for this resource. Each label must comply with
       the
       requirements for labels. For example,"webserver-frontend": "images". A label value can also be
       empty (e.g. "my-label": "").
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsMap in interface GlobalSetLabelsRequestOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       A list of labels to apply for this resource. Each label must comply with
       the
       requirements for labels. For example,"webserver-frontend": "images". A label value can also be
       empty (e.g. "my-label": "").
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrDefault in interface GlobalSetLabelsRequestOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       A list of labels to apply for this resource. Each label must comply with
       the
       requirements for labels. For example,"webserver-frontend": "images". A label value can also be
       empty (e.g. "my-label": "").
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrThrow in interface GlobalSetLabelsRequestOrBuilder
    • clearLabels

      public GlobalSetLabelsRequest.Builder clearLabels()
    • removeLabels

      public GlobalSetLabelsRequest.Builder removeLabels(String key)
       A list of labels to apply for this resource. Each label must comply with
       the
       requirements for labels. For example,"webserver-frontend": "images". A label value can also be
       empty (e.g. "my-label": "").
       
      map<string, string> labels = 500195327;
    • getMutableLabels

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

      public GlobalSetLabelsRequest.Builder putLabels(String key, String value)
       A list of labels to apply for this resource. Each label must comply with
       the
       requirements for labels. For example,"webserver-frontend": "images". A label value can also be
       empty (e.g. "my-label": "").
       
      map<string, string> labels = 500195327;
    • putAllLabels

      public GlobalSetLabelsRequest.Builder putAllLabels(Map<String,String> values)
       A list of labels to apply for this resource. Each label must comply with
       the
       requirements for labels. For example,"webserver-frontend": "images". A label value can also be
       empty (e.g. "my-label": "").
       
      map<string, string> labels = 500195327;