Class LocationPolicyLocation.Builder

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

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

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

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

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

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

      public LocationPolicyLocation.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<LocationPolicyLocation.Builder>
      Throws:
      IOException
    • hasConstraints

      public boolean hasConstraints()
       Constraints that the caller requires on the result distribution
       in this zone.
       
      optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;
      Specified by:
      hasConstraints in interface LocationPolicyLocationOrBuilder
      Returns:
      Whether the constraints field is set.
    • getConstraints

      public LocationPolicyLocationConstraints getConstraints()
       Constraints that the caller requires on the result distribution
       in this zone.
       
      optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;
      Specified by:
      getConstraints in interface LocationPolicyLocationOrBuilder
      Returns:
      The constraints.
    • setConstraints

       Constraints that the caller requires on the result distribution
       in this zone.
       
      optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;
    • setConstraints

       Constraints that the caller requires on the result distribution
       in this zone.
       
      optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;
    • mergeConstraints

       Constraints that the caller requires on the result distribution
       in this zone.
       
      optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;
    • clearConstraints

      public LocationPolicyLocation.Builder clearConstraints()
       Constraints that the caller requires on the result distribution
       in this zone.
       
      optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;
    • getConstraintsBuilder

      public LocationPolicyLocationConstraints.Builder getConstraintsBuilder()
       Constraints that the caller requires on the result distribution
       in this zone.
       
      optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;
    • getConstraintsOrBuilder

      public LocationPolicyLocationConstraintsOrBuilder getConstraintsOrBuilder()
       Constraints that the caller requires on the result distribution
       in this zone.
       
      optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;
      Specified by:
      getConstraintsOrBuilder in interface LocationPolicyLocationOrBuilder
    • hasPreference

      public boolean hasPreference()
       Preference for a given location. Set to either ALLOW orDENY.
       Check the Preference enum for the list of possible values.
       
      optional string preference = 150781147;
      Specified by:
      hasPreference in interface LocationPolicyLocationOrBuilder
      Returns:
      Whether the preference field is set.
    • getPreference

      public String getPreference()
       Preference for a given location. Set to either ALLOW orDENY.
       Check the Preference enum for the list of possible values.
       
      optional string preference = 150781147;
      Specified by:
      getPreference in interface LocationPolicyLocationOrBuilder
      Returns:
      The preference.
    • getPreferenceBytes

      public com.google.protobuf.ByteString getPreferenceBytes()
       Preference for a given location. Set to either ALLOW orDENY.
       Check the Preference enum for the list of possible values.
       
      optional string preference = 150781147;
      Specified by:
      getPreferenceBytes in interface LocationPolicyLocationOrBuilder
      Returns:
      The bytes for preference.
    • setPreference

      public LocationPolicyLocation.Builder setPreference(String value)
       Preference for a given location. Set to either ALLOW orDENY.
       Check the Preference enum for the list of possible values.
       
      optional string preference = 150781147;
      Parameters:
      value - The preference to set.
      Returns:
      This builder for chaining.
    • clearPreference

      public LocationPolicyLocation.Builder clearPreference()
       Preference for a given location. Set to either ALLOW orDENY.
       Check the Preference enum for the list of possible values.
       
      optional string preference = 150781147;
      Returns:
      This builder for chaining.
    • setPreferenceBytes

      public LocationPolicyLocation.Builder setPreferenceBytes(com.google.protobuf.ByteString value)
       Preference for a given location. Set to either ALLOW orDENY.
       Check the Preference enum for the list of possible values.
       
      optional string preference = 150781147;
      Parameters:
      value - The bytes for preference to set.
      Returns:
      This builder for chaining.