Class StoredInfoType.Builder (3.43.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.StoredInfoTypeVersion>
Returns
TypeDescription
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
NameDescription
valueStoredInfoTypeVersion
Returns
TypeDescription
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
NameDescription
builderForValueStoredInfoTypeVersion.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueStoredInfoTypeVersion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueStoredInfoTypeVersion.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
StoredInfoTypeVersion.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StoredInfoType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StoredInfoType.Builder
Overrides

build()

public StoredInfoType build()
Returns
TypeDescription
StoredInfoType

buildPartial()

public StoredInfoType buildPartial()
Returns
TypeDescription
StoredInfoType

clear()

public StoredInfoType.Builder clear()
Returns
TypeDescription
StoredInfoType.Builder
Overrides

clearCurrentVersion()

public StoredInfoType.Builder clearCurrentVersion()

Current version of the stored info type.

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

Returns
TypeDescription
StoredInfoType.Builder

clearField(Descriptors.FieldDescriptor field)

public StoredInfoType.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StoredInfoType.Builder
Overrides

clearName()

public StoredInfoType.Builder clearName()

Resource name.

string name = 1;

Returns
TypeDescription
StoredInfoType.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public StoredInfoType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
StoredInfoType.Builder

clone()

public StoredInfoType.Builder clone()
Returns
TypeDescription
StoredInfoType.Builder
Overrides

getCurrentVersion()

public StoredInfoTypeVersion getCurrentVersion()

Current version of the stored info type.

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

Returns
TypeDescription
StoredInfoTypeVersion

The currentVersion.

getCurrentVersionBuilder()

public StoredInfoTypeVersion.Builder getCurrentVersionBuilder()

Current version of the stored info type.

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

Returns
TypeDescription
StoredInfoTypeVersion.Builder

getCurrentVersionOrBuilder()

public StoredInfoTypeVersionOrBuilder getCurrentVersionOrBuilder()

Current version of the stored info type.

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

Returns
TypeDescription
StoredInfoTypeVersionOrBuilder

getDefaultInstanceForType()

public StoredInfoType getDefaultInstanceForType()
Returns
TypeDescription
StoredInfoType

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Resource name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name.

string name = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the currentVersion field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueStoredInfoTypeVersion
Returns
TypeDescription
StoredInfoType.Builder

mergeFrom(StoredInfoType other)

public StoredInfoType.Builder mergeFrom(StoredInfoType other)
Parameter
NameDescription
otherStoredInfoType
Returns
TypeDescription
StoredInfoType.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StoredInfoType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StoredInfoType.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StoredInfoType.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StoredInfoType.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StoredInfoType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueStoredInfoTypeVersion
Returns
TypeDescription
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
NameDescription
builderForValueStoredInfoTypeVersion.Builder
Returns
TypeDescription
StoredInfoType.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StoredInfoType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StoredInfoType.Builder
Overrides

setName(String value)

public StoredInfoType.Builder setName(String value)

Resource name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
StoredInfoType.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StoredInfoType.Builder setNameBytes(ByteString value)

Resource name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
indexint
valueStoredInfoTypeVersion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueStoredInfoTypeVersion.Builder
Returns
TypeDescription
StoredInfoType.Builder

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

public StoredInfoType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StoredInfoType.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StoredInfoType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StoredInfoType.Builder
Overrides