Class StoredInfoType.Builder (3.56.0)

public static final class StoredInfoType.Builder extends GeneratedMessageV3.Builder<StoredInfoType.Builder> implements StoredInfoTypeOrBuilder

StoredInfoType resource message that contains information about the current version and any pending updates.

Protobuf type google.privacy.dlp.v2.StoredInfoType

Static Methods

getDescriptor()

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

Methods

addAllPendingVersions(Iterable<? extends StoredInfoTypeVersion> values)

public StoredInfoType.Builder addAllPendingVersions(Iterable<? extends StoredInfoTypeVersion> values)

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.StoredInfoTypeVersion>
Returns
Type Description
StoredInfoType.Builder

addPendingVersions(StoredInfoTypeVersion value)

public StoredInfoType.Builder addPendingVersions(StoredInfoTypeVersion value)

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Parameter
Name Description
value StoredInfoTypeVersion
Returns
Type Description
StoredInfoType.Builder

addPendingVersions(StoredInfoTypeVersion.Builder builderForValue)

public StoredInfoType.Builder addPendingVersions(StoredInfoTypeVersion.Builder builderForValue)

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Parameter
Name Description
builderForValue StoredInfoTypeVersion.Builder
Returns
Type Description
StoredInfoType.Builder

addPendingVersions(int index, StoredInfoTypeVersion value)

public StoredInfoType.Builder addPendingVersions(int index, StoredInfoTypeVersion value)

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Parameters
Name Description
index int
value StoredInfoTypeVersion
Returns
Type Description
StoredInfoType.Builder

addPendingVersions(int index, StoredInfoTypeVersion.Builder builderForValue)

public StoredInfoType.Builder addPendingVersions(int index, StoredInfoTypeVersion.Builder builderForValue)

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Parameters
Name Description
index int
builderForValue StoredInfoTypeVersion.Builder
Returns
Type Description
StoredInfoType.Builder

addPendingVersionsBuilder()

public StoredInfoTypeVersion.Builder addPendingVersionsBuilder()

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Returns
Type Description
StoredInfoTypeVersion.Builder

addPendingVersionsBuilder(int index)

public StoredInfoTypeVersion.Builder addPendingVersionsBuilder(int index)

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Parameter
Name Description
index int
Returns
Type Description
StoredInfoTypeVersion.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StoredInfoType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StoredInfoType.Builder
Overrides

build()

public StoredInfoType build()
Returns
Type Description
StoredInfoType

buildPartial()

public StoredInfoType buildPartial()
Returns
Type Description
StoredInfoType

clear()

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

clearCurrentVersion()

public StoredInfoType.Builder clearCurrentVersion()

Current version of the stored info type.

.google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2;

Returns
Type Description
StoredInfoType.Builder

clearField(Descriptors.FieldDescriptor field)

public StoredInfoType.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StoredInfoType.Builder
Overrides

clearName()

public StoredInfoType.Builder clearName()

Resource name.

string name = 1;

Returns
Type Description
StoredInfoType.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public StoredInfoType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StoredInfoType.Builder
Overrides

clearPendingVersions()

public StoredInfoType.Builder clearPendingVersions()

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Returns
Type Description
StoredInfoType.Builder

clone()

public StoredInfoType.Builder clone()
Returns
Type Description
StoredInfoType.Builder
Overrides

getCurrentVersion()

public StoredInfoTypeVersion getCurrentVersion()

Current version of the stored info type.

.google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2;

Returns
Type Description
StoredInfoTypeVersion

The currentVersion.

getCurrentVersionBuilder()

public StoredInfoTypeVersion.Builder getCurrentVersionBuilder()

Current version of the stored info type.

.google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2;

Returns
Type Description
StoredInfoTypeVersion.Builder

getCurrentVersionOrBuilder()

public StoredInfoTypeVersionOrBuilder getCurrentVersionOrBuilder()

Current version of the stored info type.

.google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2;

Returns
Type Description
StoredInfoTypeVersionOrBuilder

getDefaultInstanceForType()

public StoredInfoType getDefaultInstanceForType()
Returns
Type Description
StoredInfoType

getDescriptorForType()

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

getName()

public String getName()

Resource name.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getPendingVersions(int index)

public StoredInfoTypeVersion getPendingVersions(int index)

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Parameter
Name Description
index int
Returns
Type Description
StoredInfoTypeVersion

getPendingVersionsBuilder(int index)

public StoredInfoTypeVersion.Builder getPendingVersionsBuilder(int index)

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Parameter
Name Description
index int
Returns
Type Description
StoredInfoTypeVersion.Builder

getPendingVersionsBuilderList()

public List<StoredInfoTypeVersion.Builder> getPendingVersionsBuilderList()

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Returns
Type Description
List<Builder>

getPendingVersionsCount()

public int getPendingVersionsCount()

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Returns
Type Description
int

getPendingVersionsList()

public List<StoredInfoTypeVersion> getPendingVersionsList()

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Returns
Type Description
List<StoredInfoTypeVersion>

getPendingVersionsOrBuilder(int index)

public StoredInfoTypeVersionOrBuilder getPendingVersionsOrBuilder(int index)

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Parameter
Name Description
index int
Returns
Type Description
StoredInfoTypeVersionOrBuilder

getPendingVersionsOrBuilderList()

public List<? extends StoredInfoTypeVersionOrBuilder> getPendingVersionsOrBuilderList()

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.StoredInfoTypeVersionOrBuilder>

hasCurrentVersion()

public boolean hasCurrentVersion()

Current version of the stored info type.

.google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2;

Returns
Type Description
boolean

Whether the currentVersion field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCurrentVersion(StoredInfoTypeVersion value)

public StoredInfoType.Builder mergeCurrentVersion(StoredInfoTypeVersion value)

Current version of the stored info type.

.google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2;

Parameter
Name Description
value StoredInfoTypeVersion
Returns
Type Description
StoredInfoType.Builder

mergeFrom(StoredInfoType other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StoredInfoType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StoredInfoType.Builder
Overrides

removePendingVersions(int index)

public StoredInfoType.Builder removePendingVersions(int index)

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Parameter
Name Description
index int
Returns
Type Description
StoredInfoType.Builder

setCurrentVersion(StoredInfoTypeVersion value)

public StoredInfoType.Builder setCurrentVersion(StoredInfoTypeVersion value)

Current version of the stored info type.

.google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2;

Parameter
Name Description
value StoredInfoTypeVersion
Returns
Type Description
StoredInfoType.Builder

setCurrentVersion(StoredInfoTypeVersion.Builder builderForValue)

public StoredInfoType.Builder setCurrentVersion(StoredInfoTypeVersion.Builder builderForValue)

Current version of the stored info type.

.google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2;

Parameter
Name Description
builderForValue StoredInfoTypeVersion.Builder
Returns
Type Description
StoredInfoType.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StoredInfoType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StoredInfoType.Builder
Overrides

setName(String value)

public StoredInfoType.Builder setName(String value)

Resource name.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
StoredInfoType.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StoredInfoType.Builder setNameBytes(ByteString value)

Resource name.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
StoredInfoType.Builder

This builder for chaining.

setPendingVersions(int index, StoredInfoTypeVersion value)

public StoredInfoType.Builder setPendingVersions(int index, StoredInfoTypeVersion value)

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Parameters
Name Description
index int
value StoredInfoTypeVersion
Returns
Type Description
StoredInfoType.Builder

setPendingVersions(int index, StoredInfoTypeVersion.Builder builderForValue)

public StoredInfoType.Builder setPendingVersions(int index, StoredInfoTypeVersion.Builder builderForValue)

Pending versions of the stored info type. Empty if no versions are pending.

repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;

Parameters
Name Description
index int
builderForValue StoredInfoTypeVersion.Builder
Returns
Type Description
StoredInfoType.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StoredInfoType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StoredInfoType.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StoredInfoType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StoredInfoType.Builder
Overrides