Class LocationSupport.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LocationSupport.Builder>
com.google.privacy.dlp.v2.LocationSupport.Builder
All Implemented Interfaces:
LocationSupportOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LocationSupport

public static final class LocationSupport.Builder extends com.google.protobuf.GeneratedMessage.Builder<LocationSupport.Builder> implements LocationSupportOrBuilder
 Locations at which a feature can be used.
 
Protobuf type google.privacy.dlp.v2.LocationSupport
  • 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<LocationSupport.Builder>
    • clear

      public LocationSupport.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<LocationSupport.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<LocationSupport.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public LocationSupport.Builder mergeFrom(LocationSupport other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<LocationSupport.Builder>
    • mergeFrom

      public LocationSupport.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<LocationSupport.Builder>
      Throws:
      IOException
    • getRegionalizationScopeValue

      public int getRegionalizationScopeValue()
       The current scope for location on this feature. This may expand over time.
       
      .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1;
      Specified by:
      getRegionalizationScopeValue in interface LocationSupportOrBuilder
      Returns:
      The enum numeric value on the wire for regionalizationScope.
    • setRegionalizationScopeValue

      public LocationSupport.Builder setRegionalizationScopeValue(int value)
       The current scope for location on this feature. This may expand over time.
       
      .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1;
      Parameters:
      value - The enum numeric value on the wire for regionalizationScope to set.
      Returns:
      This builder for chaining.
    • getRegionalizationScope

      public LocationSupport.RegionalizationScope getRegionalizationScope()
       The current scope for location on this feature. This may expand over time.
       
      .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1;
      Specified by:
      getRegionalizationScope in interface LocationSupportOrBuilder
      Returns:
      The regionalizationScope.
    • setRegionalizationScope

      public LocationSupport.Builder setRegionalizationScope(LocationSupport.RegionalizationScope value)
       The current scope for location on this feature. This may expand over time.
       
      .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1;
      Parameters:
      value - The regionalizationScope to set.
      Returns:
      This builder for chaining.
    • clearRegionalizationScope

      public LocationSupport.Builder clearRegionalizationScope()
       The current scope for location on this feature. This may expand over time.
       
      .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1;
      Returns:
      This builder for chaining.
    • getLocationsList

      public com.google.protobuf.ProtocolStringList getLocationsList()
       Specific locations where the feature may be used.
       Examples: us-central1, us, asia, global
       If scope is ANY_LOCATION, no regions will be listed.
       
      repeated string locations = 2;
      Specified by:
      getLocationsList in interface LocationSupportOrBuilder
      Returns:
      A list containing the locations.
    • getLocationsCount

      public int getLocationsCount()
       Specific locations where the feature may be used.
       Examples: us-central1, us, asia, global
       If scope is ANY_LOCATION, no regions will be listed.
       
      repeated string locations = 2;
      Specified by:
      getLocationsCount in interface LocationSupportOrBuilder
      Returns:
      The count of locations.
    • getLocations

      public String getLocations(int index)
       Specific locations where the feature may be used.
       Examples: us-central1, us, asia, global
       If scope is ANY_LOCATION, no regions will be listed.
       
      repeated string locations = 2;
      Specified by:
      getLocations in interface LocationSupportOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The locations at the given index.
    • getLocationsBytes

      public com.google.protobuf.ByteString getLocationsBytes(int index)
       Specific locations where the feature may be used.
       Examples: us-central1, us, asia, global
       If scope is ANY_LOCATION, no regions will be listed.
       
      repeated string locations = 2;
      Specified by:
      getLocationsBytes in interface LocationSupportOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the locations at the given index.
    • setLocations

      public LocationSupport.Builder setLocations(int index, String value)
       Specific locations where the feature may be used.
       Examples: us-central1, us, asia, global
       If scope is ANY_LOCATION, no regions will be listed.
       
      repeated string locations = 2;
      Parameters:
      index - The index to set the value at.
      value - The locations to set.
      Returns:
      This builder for chaining.
    • addLocations

      public LocationSupport.Builder addLocations(String value)
       Specific locations where the feature may be used.
       Examples: us-central1, us, asia, global
       If scope is ANY_LOCATION, no regions will be listed.
       
      repeated string locations = 2;
      Parameters:
      value - The locations to add.
      Returns:
      This builder for chaining.
    • addAllLocations

      public LocationSupport.Builder addAllLocations(Iterable<String> values)
       Specific locations where the feature may be used.
       Examples: us-central1, us, asia, global
       If scope is ANY_LOCATION, no regions will be listed.
       
      repeated string locations = 2;
      Parameters:
      values - The locations to add.
      Returns:
      This builder for chaining.
    • clearLocations

      public LocationSupport.Builder clearLocations()
       Specific locations where the feature may be used.
       Examples: us-central1, us, asia, global
       If scope is ANY_LOCATION, no regions will be listed.
       
      repeated string locations = 2;
      Returns:
      This builder for chaining.
    • addLocationsBytes

      public LocationSupport.Builder addLocationsBytes(com.google.protobuf.ByteString value)
       Specific locations where the feature may be used.
       Examples: us-central1, us, asia, global
       If scope is ANY_LOCATION, no regions will be listed.
       
      repeated string locations = 2;
      Parameters:
      value - The bytes of the locations to add.
      Returns:
      This builder for chaining.