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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CloudStorageResourceReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CloudStorageResourceReference build()
buildPartial()
public CloudStorageResourceReference buildPartial()
clear()
public CloudStorageResourceReference.Builder clear()
Overrides
clearBucketName()
public CloudStorageResourceReference.Builder clearBucketName()
Required. The bucket to scan.
string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public CloudStorageResourceReference.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CloudStorageResourceReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public CloudStorageResourceReference.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CloudStorageResourceReference other)
public CloudStorageResourceReference.Builder mergeFrom(CloudStorageResourceReference other)
public CloudStorageResourceReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CloudStorageResourceReference.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CloudStorageResourceReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public CloudStorageResourceReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CloudStorageResourceReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CloudStorageResourceReference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides