Class CloudStorageResourceReference.Builder (3.57.0)

public static final class CloudStorageResourceReference.Builder extends GeneratedMessageV3.Builder<CloudStorageResourceReference.Builder> implements CloudStorageResourceReferenceOrBuilder

Identifies a single Cloud Storage bucket.

Protobuf type google.privacy.dlp.v2.CloudStorageResourceReference

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudStorageResourceReference build()
Returns
Type Description
CloudStorageResourceReference

buildPartial()

public CloudStorageResourceReference buildPartial()
Returns
Type Description
CloudStorageResourceReference

clear()

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

clearBucketName()

public CloudStorageResourceReference.Builder clearBucketName()

Required. The bucket to scan.

string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudStorageResourceReference.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public CloudStorageResourceReference.Builder clearProjectId()

Required. If within a project-level config, then this must match the config's project id.

string project_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudStorageResourceReference.Builder

This builder for chaining.

clone()

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

getBucketName()

public String getBucketName()

Required. The bucket to scan.

string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The bucketName.

getBucketNameBytes()

public ByteString getBucketNameBytes()

Required. The bucket to scan.

string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for bucketName.

getDefaultInstanceForType()

public CloudStorageResourceReference getDefaultInstanceForType()
Returns
Type Description
CloudStorageResourceReference

getDescriptorForType()

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

getProjectId()

public String getProjectId()

Required. If within a project-level config, then this must match the config's project id.

string project_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. If within a project-level config, then this must match the config's project id.

string project_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for projectId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudStorageResourceReference other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBucketName(String value)

public CloudStorageResourceReference.Builder setBucketName(String value)

Required. The bucket to scan.

string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The bucketName to set.

Returns
Type Description
CloudStorageResourceReference.Builder

This builder for chaining.

setBucketNameBytes(ByteString value)

public CloudStorageResourceReference.Builder setBucketNameBytes(ByteString value)

Required. The bucket to scan.

string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for bucketName to set.

Returns
Type Description
CloudStorageResourceReference.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setProjectId(String value)

public CloudStorageResourceReference.Builder setProjectId(String value)

Required. If within a project-level config, then this must match the config's project id.

string project_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
CloudStorageResourceReference.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public CloudStorageResourceReference.Builder setProjectIdBytes(ByteString value)

Required. If within a project-level config, then this must match the config's project id.

string project_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
CloudStorageResourceReference.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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