Interface SdpFinding.SdpFindingLocationOrBuilder (0.36.0)

public static interface SdpFinding.SdpFindingLocationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getByteRange()

public abstract 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.

getByteRangeOrBuilder()

public abstract 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 abstract 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.

getCodepointRangeOrBuilder()

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

getContentLocationsCount()

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

hasByteRange()

public abstract 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 abstract 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.