Class LocationPolicyZoneConfiguration.Builder

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

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

      public LocationPolicyZoneConfiguration 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 LocationPolicyZoneConfiguration buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public LocationPolicyZoneConfiguration.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<LocationPolicyZoneConfiguration.Builder>
      Throws:
      IOException
    • hasZone

      public boolean hasZone()
       The URL of the zone.
       The zone must exist in the region where the request is called.
       Zones must be represented as valid partial URLs,
       such as zones/us-central1-a.
       
      optional string zone = 3744684;
      Specified by:
      hasZone in interface LocationPolicyZoneConfigurationOrBuilder
      Returns:
      Whether the zone field is set.
    • getZone

      public String getZone()
       The URL of the zone.
       The zone must exist in the region where the request is called.
       Zones must be represented as valid partial URLs,
       such as zones/us-central1-a.
       
      optional string zone = 3744684;
      Specified by:
      getZone in interface LocationPolicyZoneConfigurationOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      public com.google.protobuf.ByteString getZoneBytes()
       The URL of the zone.
       The zone must exist in the region where the request is called.
       Zones must be represented as valid partial URLs,
       such as zones/us-central1-a.
       
      optional string zone = 3744684;
      Specified by:
      getZoneBytes in interface LocationPolicyZoneConfigurationOrBuilder
      Returns:
      The bytes for zone.
    • setZone

       The URL of the zone.
       The zone must exist in the region where the request is called.
       Zones must be represented as valid partial URLs,
       such as zones/us-central1-a.
       
      optional string zone = 3744684;
      Parameters:
      value - The zone to set.
      Returns:
      This builder for chaining.
    • clearZone

       The URL of the zone.
       The zone must exist in the region where the request is called.
       Zones must be represented as valid partial URLs,
       such as zones/us-central1-a.
       
      optional string zone = 3744684;
      Returns:
      This builder for chaining.
    • setZoneBytes

      public LocationPolicyZoneConfiguration.Builder setZoneBytes(com.google.protobuf.ByteString value)
       The URL of the zone.
       The zone must exist in the region where the request is called.
       Zones must be represented as valid partial URLs,
       such as zones/us-central1-a.
       
      optional string zone = 3744684;
      Parameters:
      value - The bytes for zone to set.
      Returns:
      This builder for chaining.