Class LocationPolicyLocationConstraints.Builder

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

public static final class LocationPolicyLocationConstraints.Builder extends com.google.protobuf.GeneratedMessage.Builder<LocationPolicyLocationConstraints.Builder> implements LocationPolicyLocationConstraintsOrBuilder
 Per-zone constraints on location policy for this zone.
 
Protobuf type google.cloud.compute.v1.LocationPolicyLocationConstraints
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public LocationPolicyLocationConstraints.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<LocationPolicyLocationConstraints.Builder>
      Throws:
      IOException
    • hasMaxCount

      public boolean hasMaxCount()
       Maximum number of items that are allowed to be placed in this zone.
       The value must be non-negative.
       
      optional int32 max_count = 287620724;
      Specified by:
      hasMaxCount in interface LocationPolicyLocationConstraintsOrBuilder
      Returns:
      Whether the maxCount field is set.
    • getMaxCount

      public int getMaxCount()
       Maximum number of items that are allowed to be placed in this zone.
       The value must be non-negative.
       
      optional int32 max_count = 287620724;
      Specified by:
      getMaxCount in interface LocationPolicyLocationConstraintsOrBuilder
      Returns:
      The maxCount.
    • setMaxCount

      public LocationPolicyLocationConstraints.Builder setMaxCount(int value)
       Maximum number of items that are allowed to be placed in this zone.
       The value must be non-negative.
       
      optional int32 max_count = 287620724;
      Parameters:
      value - The maxCount to set.
      Returns:
      This builder for chaining.
    • clearMaxCount

       Maximum number of items that are allowed to be placed in this zone.
       The value must be non-negative.
       
      optional int32 max_count = 287620724;
      Returns:
      This builder for chaining.