Class InstancesSetLabelsRequest.Builder

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

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

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

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

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

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

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

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

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

      public boolean hasLabelFingerprint()
       Fingerprint of the previous set of labels for this resource,
       used to prevent conflicts. Provide the latest fingerprint value when making
       a request to add or change labels.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      hasLabelFingerprint in interface InstancesSetLabelsRequestOrBuilder
      Returns:
      Whether the labelFingerprint field is set.
    • getLabelFingerprint

      public String getLabelFingerprint()
       Fingerprint of the previous set of labels for this resource,
       used to prevent conflicts. Provide the latest fingerprint value when making
       a request to add or change labels.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      getLabelFingerprint in interface InstancesSetLabelsRequestOrBuilder
      Returns:
      The labelFingerprint.
    • getLabelFingerprintBytes

      public com.google.protobuf.ByteString getLabelFingerprintBytes()
       Fingerprint of the previous set of labels for this resource,
       used to prevent conflicts. Provide the latest fingerprint value when making
       a request to add or change labels.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      getLabelFingerprintBytes in interface InstancesSetLabelsRequestOrBuilder
      Returns:
      The bytes for labelFingerprint.
    • setLabelFingerprint

      public InstancesSetLabelsRequest.Builder setLabelFingerprint(String value)
       Fingerprint of the previous set of labels for this resource,
       used to prevent conflicts. Provide the latest fingerprint value when making
       a request to add or change labels.
       
      optional string label_fingerprint = 178124825;
      Parameters:
      value - The labelFingerprint to set.
      Returns:
      This builder for chaining.
    • clearLabelFingerprint

      public InstancesSetLabelsRequest.Builder clearLabelFingerprint()
       Fingerprint of the previous set of labels for this resource,
       used to prevent conflicts. Provide the latest fingerprint value when making
       a request to add or change labels.
       
      optional string label_fingerprint = 178124825;
      Returns:
      This builder for chaining.
    • setLabelFingerprintBytes

      public InstancesSetLabelsRequest.Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value)
       Fingerprint of the previous set of labels for this resource,
       used to prevent conflicts. Provide the latest fingerprint value when making
       a request to add or change labels.
       
      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: InstancesSetLabelsRequestOrBuilder
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsCount in interface InstancesSetLabelsRequestOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
      map<string, string> labels = 500195327;
      Specified by:
      containsLabels in interface InstancesSetLabelsRequestOrBuilder
    • getLabels

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

      public Map<String,String> getLabelsMap()
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsMap in interface InstancesSetLabelsRequestOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrDefault in interface InstancesSetLabelsRequestOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrThrow in interface InstancesSetLabelsRequestOrBuilder
    • clearLabels

      public InstancesSetLabelsRequest.Builder clearLabels()
    • removeLabels

      public InstancesSetLabelsRequest.Builder removeLabels(String key)
      map<string, string> labels = 500195327;
    • getMutableLabels

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

      public InstancesSetLabelsRequest.Builder putLabels(String key, String value)
      map<string, string> labels = 500195327;
    • putAllLabels

      public InstancesSetLabelsRequest.Builder putAllLabels(Map<String,String> values)
      map<string, string> labels = 500195327;