Package com.google.privacy.dlp.v2
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 Summary
Modifier and TypeMethodDescriptionaddAllLocations(Iterable<String> values) Specific locations where the feature may be used.addLocations(String value) Specific locations where the feature may be used.addLocationsBytes(com.google.protobuf.ByteString value) Specific locations where the feature may be used.build()clear()Specific locations where the feature may be used.The current scope for location on this feature.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetLocations(int index) Specific locations where the feature may be used.com.google.protobuf.ByteStringgetLocationsBytes(int index) Specific locations where the feature may be used.intSpecific locations where the feature may be used.com.google.protobuf.ProtocolStringListSpecific locations where the feature may be used.The current scope for location on this feature.intThe current scope for location on this feature.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(LocationSupport other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setLocations(int index, String value) Specific locations where the feature may be used.The current scope for location on this feature.setRegionalizationScopeValue(int value) The current scope for location on this feature.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LocationSupport.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LocationSupport.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LocationSupport.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocationSupport.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getRegionalizationScopeValuein interfaceLocationSupportOrBuilder- Returns:
- The enum numeric value on the wire for regionalizationScope.
-
setRegionalizationScopeValue
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
The current scope for location on this feature. This may expand over time.
.google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1;- Specified by:
getRegionalizationScopein interfaceLocationSupportOrBuilder- Returns:
- The regionalizationScope.
-
setRegionalizationScope
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
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:
getLocationsListin interfaceLocationSupportOrBuilder- 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:
getLocationsCountin interfaceLocationSupportOrBuilder- Returns:
- The count of locations.
-
getLocations
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:
getLocationsin interfaceLocationSupportOrBuilder- 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:
getLocationsBytesin interfaceLocationSupportOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the locations at the given index.
-
setLocations
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
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
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
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
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.
-