Class RegionSetLabelsRequest.Builder

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

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

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

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

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

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

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

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

      public RegionSetLabelsRequest.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<RegionSetLabelsRequest.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 RegionSetLabelsRequestOrBuilder
      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 RegionSetLabelsRequestOrBuilder
      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 RegionSetLabelsRequestOrBuilder
      Returns:
      The bytes for labelFingerprint.
    • setLabelFingerprint

      public RegionSetLabelsRequest.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 RegionSetLabelsRequest.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 RegionSetLabelsRequest.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: RegionSetLabelsRequestOrBuilder
       The labels to set for this resource.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsCount in interface RegionSetLabelsRequestOrBuilder
    • containsLabels

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

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

      public Map<String,String> getLabelsMap()
       The labels to set for this resource.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsMap in interface RegionSetLabelsRequestOrBuilder
    • 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 RegionSetLabelsRequestOrBuilder
    • getLabelsOrThrow

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

      public RegionSetLabelsRequest.Builder clearLabels()
    • removeLabels

      public RegionSetLabelsRequest.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 RegionSetLabelsRequest.Builder putLabels(String key, String value)
       The labels to set for this resource.
       
      map<string, string> labels = 500195327;
    • putAllLabels

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