public static final class SdpFinding.SdpFindingLocation.Builder extends GeneratedMessage.Builder<SdpFinding.SdpFindingLocation.Builder> implements SdpFinding.SdpFindingLocationOrBuilderLocation of this Sensitive Data Protection Finding within input content.
Protobuf type google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SdpFinding.SdpFindingLocation.BuilderImplements
SdpFinding.SdpFindingLocationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllContentLocations(Iterable<? extends SdpContentLocation> values)
public SdpFinding.SdpFindingLocation.Builder addAllContentLocations(Iterable<? extends SdpContentLocation> values)List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.modelarmor.v1.SdpContentLocation> |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
addContentLocations(SdpContentLocation value)
public SdpFinding.SdpFindingLocation.Builder addContentLocations(SdpContentLocation value)List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
SdpContentLocation |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
addContentLocations(SdpContentLocation.Builder builderForValue)
public SdpFinding.SdpFindingLocation.Builder addContentLocations(SdpContentLocation.Builder builderForValue)List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SdpContentLocation.Builder |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
addContentLocations(int index, SdpContentLocation value)
public SdpFinding.SdpFindingLocation.Builder addContentLocations(int index, SdpContentLocation value)List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SdpContentLocation |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
addContentLocations(int index, SdpContentLocation.Builder builderForValue)
public SdpFinding.SdpFindingLocation.Builder addContentLocations(int index, SdpContentLocation.Builder builderForValue)List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SdpContentLocation.Builder |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
addContentLocationsBuilder()
public SdpContentLocation.Builder addContentLocationsBuilder()List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Returns | |
|---|---|
| Type | Description |
SdpContentLocation.Builder |
|
addContentLocationsBuilder(int index)
public SdpContentLocation.Builder addContentLocationsBuilder(int index)List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SdpContentLocation.Builder |
|
build()
public SdpFinding.SdpFindingLocation build()| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation |
|
buildPartial()
public SdpFinding.SdpFindingLocation buildPartial()| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation |
|
clear()
public SdpFinding.SdpFindingLocation.Builder clear()| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
clearByteRange()
public SdpFinding.SdpFindingLocation.Builder clearByteRange()Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo byte_range = 1;
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
clearCodepointRange()
public SdpFinding.SdpFindingLocation.Builder clearCodepointRange()Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2;
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
clearContentLocations()
public SdpFinding.SdpFindingLocation.Builder clearContentLocations()List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
getByteRange()
public RangeInfo getByteRange()Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo byte_range = 1;
| Returns | |
|---|---|
| Type | Description |
RangeInfo |
The byteRange. |
getByteRangeBuilder()
public RangeInfo.Builder getByteRangeBuilder()Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo byte_range = 1;
| Returns | |
|---|---|
| Type | Description |
RangeInfo.Builder |
|
getByteRangeOrBuilder()
public RangeInfoOrBuilder getByteRangeOrBuilder()Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo byte_range = 1;
| Returns | |
|---|---|
| Type | Description |
RangeInfoOrBuilder |
|
getCodepointRange()
public RangeInfo getCodepointRange()Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2;
| Returns | |
|---|---|
| Type | Description |
RangeInfo |
The codepointRange. |
getCodepointRangeBuilder()
public RangeInfo.Builder getCodepointRangeBuilder()Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2;
| Returns | |
|---|---|
| Type | Description |
RangeInfo.Builder |
|
getCodepointRangeOrBuilder()
public RangeInfoOrBuilder getCodepointRangeOrBuilder()Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2;
| Returns | |
|---|---|
| Type | Description |
RangeInfoOrBuilder |
|
getContentLocations(int index)
public SdpContentLocation getContentLocations(int index)List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SdpContentLocation |
|
getContentLocationsBuilder(int index)
public SdpContentLocation.Builder getContentLocationsBuilder(int index)List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SdpContentLocation.Builder |
|
getContentLocationsBuilderList()
public List<SdpContentLocation.Builder> getContentLocationsBuilderList()List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getContentLocationsCount()
public int getContentLocationsCount()List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
getContentLocationsList()
public List<SdpContentLocation> getContentLocationsList()List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Returns | |
|---|---|
| Type | Description |
List<SdpContentLocation> |
|
getContentLocationsOrBuilder(int index)
public SdpContentLocationOrBuilder getContentLocationsOrBuilder(int index)List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SdpContentLocationOrBuilder |
|
getContentLocationsOrBuilderList()
public List<? extends SdpContentLocationOrBuilder> getContentLocationsOrBuilderList()List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.modelarmor.v1.SdpContentLocationOrBuilder> |
|
getDefaultInstanceForType()
public SdpFinding.SdpFindingLocation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
hasByteRange()
public boolean hasByteRange()Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo byte_range = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the byteRange field is set. |
hasCodepointRange()
public boolean hasCodepointRange()Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the codepointRange field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeByteRange(RangeInfo value)
public SdpFinding.SdpFindingLocation.Builder mergeByteRange(RangeInfo value)Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo byte_range = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
RangeInfo |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
mergeCodepointRange(RangeInfo value)
public SdpFinding.SdpFindingLocation.Builder mergeCodepointRange(RangeInfo value)Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
RangeInfo |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
mergeFrom(SdpFinding.SdpFindingLocation other)
public SdpFinding.SdpFindingLocation.Builder mergeFrom(SdpFinding.SdpFindingLocation other)| Parameter | |
|---|---|
| Name | Description |
other |
SdpFinding.SdpFindingLocation |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SdpFinding.SdpFindingLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SdpFinding.SdpFindingLocation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
removeContentLocations(int index)
public SdpFinding.SdpFindingLocation.Builder removeContentLocations(int index)List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
setByteRange(RangeInfo value)
public SdpFinding.SdpFindingLocation.Builder setByteRange(RangeInfo value)Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo byte_range = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
RangeInfo |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
setByteRange(RangeInfo.Builder builderForValue)
public SdpFinding.SdpFindingLocation.Builder setByteRange(RangeInfo.Builder builderForValue)Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo byte_range = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
RangeInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
setCodepointRange(RangeInfo value)
public SdpFinding.SdpFindingLocation.Builder setCodepointRange(RangeInfo value)Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
RangeInfo |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
setCodepointRange(RangeInfo.Builder builderForValue)
public SdpFinding.SdpFindingLocation.Builder setCodepointRange(RangeInfo.Builder builderForValue)Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text. Note: Omitted if content is an image.
.google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
RangeInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
setContentLocations(int index, SdpContentLocation value)
public SdpFinding.SdpFindingLocation.Builder setContentLocations(int index, SdpContentLocation value)List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SdpContentLocation |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|
setContentLocations(int index, SdpContentLocation.Builder builderForValue)
public SdpFinding.SdpFindingLocation.Builder setContentLocations(int index, SdpContentLocation.Builder builderForValue)List of nested objects pointing to the precise location of the finding within an image, file or record.
For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box.
repeated .google.cloud.modelarmor.v1.SdpContentLocation content_locations = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SdpContentLocation.Builder |
| Returns | |
|---|---|
| Type | Description |
SdpFinding.SdpFindingLocation.Builder |
|