Class SdpContentLocation.Builder (0.36.0)

public static final class SdpContentLocation.Builder extends GeneratedMessage.Builder<SdpContentLocation.Builder> implements SdpContentLocationOrBuilder

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

Protobuf type google.cloud.modelarmor.v1.SdpContentLocation

Static Methods

getDescriptor()

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

Methods

build()

public SdpContentLocation build()
Returns
Type Description
SdpContentLocation

buildPartial()

public SdpContentLocation buildPartial()
Returns
Type Description
SdpContentLocation

clear()

public SdpContentLocation.Builder clear()
Returns
Type Description
SdpContentLocation.Builder
Overrides

clearContainerName()

public SdpContentLocation.Builder clearContainerName()

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

This builder for chaining.

clearImageFindingLocation()

public SdpContentLocation.Builder clearImageFindingLocation()

Location within an image's pixels.

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

Returns
Type Description
SdpContentLocation.Builder

clearLocation()

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

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getImageFindingLocationBuilder()

public SdpImageFindingLocation.Builder getImageFindingLocationBuilder()

Location within an image's pixels.

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

Returns
Type Description
SdpImageFindingLocation.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SdpContentLocation other)

public SdpContentLocation.Builder mergeFrom(SdpContentLocation other)
Parameter
Name Description
other SdpContentLocation
Returns
Type Description
SdpContentLocation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SdpContentLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SdpContentLocation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SdpContentLocation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SdpContentLocation.Builder
Overrides

mergeImageFindingLocation(SdpImageFindingLocation value)

public SdpContentLocation.Builder mergeImageFindingLocation(SdpImageFindingLocation value)

Location within an image's pixels.

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

Parameter
Name Description
value SdpImageFindingLocation
Returns
Type Description
SdpContentLocation.Builder

setContainerName(String value)

public SdpContentLocation.Builder setContainerName(String value)

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;

Parameter
Name Description
value String

The containerName to set.

Returns
Type Description
SdpContentLocation.Builder

This builder for chaining.

setContainerNameBytes(ByteString value)

public SdpContentLocation.Builder setContainerNameBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for containerName to set.

Returns
Type Description
SdpContentLocation.Builder

This builder for chaining.

setImageFindingLocation(SdpImageFindingLocation value)

public SdpContentLocation.Builder setImageFindingLocation(SdpImageFindingLocation value)

Location within an image's pixels.

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

Parameter
Name Description
value SdpImageFindingLocation
Returns
Type Description
SdpContentLocation.Builder

setImageFindingLocation(SdpImageFindingLocation.Builder builderForValue)

public SdpContentLocation.Builder setImageFindingLocation(SdpImageFindingLocation.Builder builderForValue)

Location within an image's pixels.

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

Parameter
Name Description
builderForValue SdpImageFindingLocation.Builder
Returns
Type Description
SdpContentLocation.Builder