Class SdpContentLocation (0.36.0)

public final class SdpContentLocation extends GeneratedMessage implements SdpContentLocationOrBuilder

Precise location of the finding within a document, record, image, or metadata container.

Protobuf type google.cloud.modelarmor.v1.SdpContentLocation

Static Fields

CONTAINER_NAME_FIELD_NUMBER

public static final int CONTAINER_NAME_FIELD_NUMBER
Field Value
Type Description
int

IMAGE_FINDING_LOCATION_FIELD_NUMBER

public static final int IMAGE_FINDING_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SdpContentLocation getDefaultInstance()
Returns
Type Description
SdpContentLocation

getDescriptor()

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

newBuilder()

public static SdpContentLocation.Builder newBuilder()
Returns
Type Description
SdpContentLocation.Builder

newBuilder(SdpContentLocation prototype)

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

parseDelimitedFrom(InputStream input)

public static SdpContentLocation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SdpContentLocation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SdpContentLocation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SdpContentLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SdpContentLocation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SdpContentLocation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SdpContentLocation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SdpContentLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SdpContentLocation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SdpContentLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SdpContentLocation> parser()
Returns
Type Description
Parser<SdpContentLocation>

Methods

equals(Object obj)

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

getContainerName()

public String getContainerName()

Name of the container where the finding is located. The top level name is the source file name or table name.

Nested names could be absent if the embedded object has no string identifier (for example, an image contained within a document).

string container_name = 1;

Returns
Type Description
String

The containerName.

getContainerNameBytes()

public ByteString getContainerNameBytes()

Name of the container where the finding is located. The top level name is the source file name or table name.

Nested names could be absent if the embedded object has no string identifier (for example, an image contained within a document).

string container_name = 1;

Returns
Type Description
ByteString

The bytes for containerName.

getDefaultInstanceForType()

public SdpContentLocation getDefaultInstanceForType()
Returns
Type Description
SdpContentLocation

getImageFindingLocation()

public SdpImageFindingLocation getImageFindingLocation()

Location within an image's pixels.

.google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2;

Returns
Type Description
SdpImageFindingLocation

The imageFindingLocation.

getImageFindingLocationOrBuilder()

public SdpImageFindingLocationOrBuilder getImageFindingLocationOrBuilder()

Location within an image's pixels.

.google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2;

Returns
Type Description
SdpImageFindingLocationOrBuilder

getLocationCase()

public SdpContentLocation.LocationCase getLocationCase()
Returns
Type Description
SdpContentLocation.LocationCase

getParserForType()

public Parser<SdpContentLocation> getParserForType()
Returns
Type Description
Parser<SdpContentLocation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasImageFindingLocation()

public boolean hasImageFindingLocation()

Location within an image's pixels.

.google.cloud.modelarmor.v1.SdpImageFindingLocation image_finding_location = 2;

Returns
Type Description
boolean

Whether the imageFindingLocation field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SdpContentLocation.Builder newBuilderForType()
Returns
Type Description
SdpContentLocation.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected SdpContentLocation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SdpContentLocation.Builder
Overrides

toBuilder()

public SdpContentLocation.Builder toBuilder()
Returns
Type Description
SdpContentLocation.Builder

writeTo(CodedOutputStream output)

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