Class LocationSupport.Builder (3.78.0)

public static final class LocationSupport.Builder extends GeneratedMessageV3.Builder<LocationSupport.Builder> implements LocationSupportOrBuilder

Locations at which a feature can be used.

Protobuf type google.privacy.dlp.v2.LocationSupport

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllLocations(Iterable<String> values)

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;

Parameter
Name Description
values Iterable<String>

The locations to add.

Returns
Type Description
LocationSupport.Builder

This builder for chaining.

addLocations(String value)

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;

Parameter
Name Description
value String

The locations to add.

Returns
Type Description
LocationSupport.Builder

This builder for chaining.

addLocationsBytes(ByteString value)

public LocationSupport.Builder addLocationsBytes(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;

Parameter
Name Description
value ByteString

The bytes of the locations to add.

Returns
Type Description
LocationSupport.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LocationSupport.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LocationSupport.Builder
Overrides

build()

public LocationSupport build()
Returns
Type Description
LocationSupport

buildPartial()

public LocationSupport buildPartial()
Returns
Type Description
LocationSupport

clear()

public LocationSupport.Builder clear()
Returns
Type Description
LocationSupport.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public LocationSupport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LocationSupport.Builder
Overrides

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
Type Description
LocationSupport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LocationSupport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LocationSupport.Builder
Overrides

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
Type Description
LocationSupport.Builder

This builder for chaining.

clone()

public LocationSupport.Builder clone()
Returns
Type Description
LocationSupport.Builder
Overrides

getDefaultInstanceForType()

public LocationSupport getDefaultInstanceForType()
Returns
Type Description
LocationSupport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLocations(int index)

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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The locations at the given index.

getLocationsBytes(int index)

public 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;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the locations at the given index.

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;

Returns
Type Description
int

The count of locations.

getLocationsList()

public 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;

Returns
Type Description
ProtocolStringList

A list containing the locations.

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;

Returns
Type Description
LocationSupport.RegionalizationScope

The regionalizationScope.

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;

Returns
Type Description
int

The enum numeric value on the wire for regionalizationScope.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LocationSupport other)

public LocationSupport.Builder mergeFrom(LocationSupport other)
Parameter
Name Description
other LocationSupport
Returns
Type Description
LocationSupport.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LocationSupport.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocationSupport.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LocationSupport.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LocationSupport.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LocationSupport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LocationSupport.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public LocationSupport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LocationSupport.Builder
Overrides

setLocations(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The locations to set.

Returns
Type Description
LocationSupport.Builder

This builder for chaining.

setRegionalizationScope(LocationSupport.RegionalizationScope value)

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;

Parameter
Name Description
value LocationSupport.RegionalizationScope

The regionalizationScope to set.

Returns
Type Description
LocationSupport.Builder

This builder for chaining.

setRegionalizationScopeValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for regionalizationScope to set.

Returns
Type Description
LocationSupport.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LocationSupport.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LocationSupport.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LocationSupport.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LocationSupport.Builder
Overrides