public static final class SecretManagerCredential.Builder extends GeneratedMessageV3.Builder<SecretManagerCredential.Builder> implements SecretManagerCredentialOrBuilder
A credential consisting of a username and password, where the password is
stored in a Secret Manager resource.
Note: Secret Manager charges
apply.
Protobuf type google.privacy.dlp.v2.SecretManagerCredential
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 SecretManagerCredential.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SecretManagerCredential build()
buildPartial()
public SecretManagerCredential buildPartial()
clear()
public SecretManagerCredential.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SecretManagerCredential.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SecretManagerCredential.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPasswordSecretVersionName()
public SecretManagerCredential.Builder clearPasswordSecretVersionName()
Required. The name of the Secret Manager resource that stores the password,
in the form projects/project-id/secrets/secret-name/versions/version
.
string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED];
clearUsername()
public SecretManagerCredential.Builder clearUsername()
Required. The username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public SecretManagerCredential.Builder clone()
Overrides
getDefaultInstanceForType()
public SecretManagerCredential getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getPasswordSecretVersionName()
public String getPasswordSecretVersionName()
Required. The name of the Secret Manager resource that stores the password,
in the form projects/project-id/secrets/secret-name/versions/version
.
string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The passwordSecretVersionName.
|
getPasswordSecretVersionNameBytes()
public ByteString getPasswordSecretVersionNameBytes()
Required. The name of the Secret Manager resource that stores the password,
in the form projects/project-id/secrets/secret-name/versions/version
.
string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for passwordSecretVersionName.
|
getUsername()
public String getUsername()
Required. The username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The username.
|
getUsernameBytes()
public ByteString getUsernameBytes()
Required. The username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for username.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SecretManagerCredential other)
public SecretManagerCredential.Builder mergeFrom(SecretManagerCredential other)
public SecretManagerCredential.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SecretManagerCredential.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SecretManagerCredential.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SecretManagerCredential.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPasswordSecretVersionName(String value)
public SecretManagerCredential.Builder setPasswordSecretVersionName(String value)
Required. The name of the Secret Manager resource that stores the password,
in the form projects/project-id/secrets/secret-name/versions/version
.
string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The passwordSecretVersionName to set.
|
setPasswordSecretVersionNameBytes(ByteString value)
public SecretManagerCredential.Builder setPasswordSecretVersionNameBytes(ByteString value)
Required. The name of the Secret Manager resource that stores the password,
in the form projects/project-id/secrets/secret-name/versions/version
.
string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for passwordSecretVersionName to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SecretManagerCredential.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SecretManagerCredential.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setUsername(String value)
public SecretManagerCredential.Builder setUsername(String value)
Required. The username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The username to set.
|
setUsernameBytes(ByteString value)
public SecretManagerCredential.Builder setUsernameBytes(ByteString value)
Required. The username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for username to set.
|