Class SdpFinding.SdpFindingLocation (0.1.0)

public static final class SdpFinding.SdpFindingLocation extends GeneratedMessageV3 implements SdpFinding.SdpFindingLocationOrBuilder

Location of this Sensitive Data Protection Finding within input content.

Protobuf type google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation

Static Fields

BYTE_RANGE_FIELD_NUMBER

public static final int BYTE_RANGE_FIELD_NUMBER
Field Value
Type Description
int

CODEPOINT_RANGE_FIELD_NUMBER

public static final int CODEPOINT_RANGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SdpFinding.SdpFindingLocation getDefaultInstance()
Returns
Type Description
SdpFinding.SdpFindingLocation

getDescriptor()

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

newBuilder()

public static SdpFinding.SdpFindingLocation.Builder newBuilder()
Returns
Type Description
SdpFinding.SdpFindingLocation.Builder

newBuilder(SdpFinding.SdpFindingLocation prototype)

public static SdpFinding.SdpFindingLocation.Builder newBuilder(SdpFinding.SdpFindingLocation prototype)
Parameter
Name Description
prototype SdpFinding.SdpFindingLocation
Returns
Type Description
SdpFinding.SdpFindingLocation.Builder

parseDelimitedFrom(InputStream input)

public static SdpFinding.SdpFindingLocation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SdpFinding.SdpFindingLocation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SdpFinding.SdpFindingLocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SdpFinding.SdpFindingLocation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SdpFinding.SdpFindingLocation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SdpFinding.SdpFindingLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SdpFinding.SdpFindingLocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SdpFinding.SdpFindingLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SdpFinding.SdpFindingLocation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SdpFinding.SdpFindingLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SdpFinding.SdpFindingLocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SdpFinding.SdpFindingLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SdpFinding.SdpFindingLocation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SdpFinding.SdpFindingLocation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SdpFinding.SdpFindingLocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SdpFinding.SdpFindingLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SdpFinding.SdpFindingLocation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SdpFinding.SdpFindingLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SdpFinding.SdpFindingLocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SdpFinding.SdpFindingLocation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SdpFinding.SdpFindingLocation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SdpFinding.SdpFindingLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SdpFinding.SdpFindingLocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SdpFinding.SdpFindingLocation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SdpFinding.SdpFindingLocation> parser()
Returns
Type Description
Parser<SdpFindingLocation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

.google.cloud.modelarmor.v1.RangeInfo byte_range = 1;

Returns
Type Description
RangeInfo

The byteRange.

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.

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

.google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2;

Returns
Type Description
RangeInfo

The codepointRange.

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.

.google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2;

Returns
Type Description
RangeInfoOrBuilder

getDefaultInstanceForType()

public SdpFinding.SdpFindingLocation getDefaultInstanceForType()
Returns
Type Description
SdpFinding.SdpFindingLocation

getParserForType()

public Parser<SdpFinding.SdpFindingLocation> getParserForType()
Returns
Type Description
Parser<SdpFindingLocation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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

.google.cloud.modelarmor.v1.RangeInfo codepoint_range = 2;

Returns
Type Description
boolean

Whether the codepointRange field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SdpFinding.SdpFindingLocation.Builder newBuilderForType()
Returns
Type Description
SdpFinding.SdpFindingLocation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SdpFinding.SdpFindingLocation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SdpFinding.SdpFindingLocation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SdpFinding.SdpFindingLocation.Builder toBuilder()
Returns
Type Description
SdpFinding.SdpFindingLocation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException