public static final class EncryptionSpec.Builder extends GeneratedMessageV3.Builder<EncryptionSpec.Builder> implements EncryptionSpecOrBuilder
A customer-managed encryption key specification that can be applied to all
created resources (e.g. Conversation).
Protobuf type google.cloud.dialogflow.v2beta1.EncryptionSpec
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 EncryptionSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public EncryptionSpec build()
buildPartial()
public EncryptionSpec buildPartial()
clear()
public EncryptionSpec.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public EncryptionSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearKmsKey()
public EncryptionSpec.Builder clearKmsKey()
Required. The name of customer-managed encryption key that is used to
secure a resource and its sub-resources. If empty, the resource is secured
by the default Google encryption key. Only the key in the same location as
this resource is allowed to be used for encryption. Format:
projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}
string kms_key = 2 [(.google.api.field_behavior) = REQUIRED];
clearName()
public EncryptionSpec.Builder clearName()
Immutable. The resource name of the encryption key specification resource.
Format:
projects/{project}/locations/{location}/encryptionSpec
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
clearOneof(Descriptors.OneofDescriptor oneof)
public EncryptionSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public EncryptionSpec.Builder clone()
Overrides
getDefaultInstanceForType()
public EncryptionSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getKmsKey()
public String getKmsKey()
Required. The name of customer-managed encryption key that is used to
secure a resource and its sub-resources. If empty, the resource is secured
by the default Google encryption key. Only the key in the same location as
this resource is allowed to be used for encryption. Format:
projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}
string kms_key = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The kmsKey.
|
getKmsKeyBytes()
public ByteString getKmsKeyBytes()
Required. The name of customer-managed encryption key that is used to
secure a resource and its sub-resources. If empty, the resource is secured
by the default Google encryption key. Only the key in the same location as
this resource is allowed to be used for encryption. Format:
projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}
string kms_key = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for kmsKey.
|
getName()
Immutable. The resource name of the encryption key specification resource.
Format:
projects/{project}/locations/{location}/encryptionSpec
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Immutable. The resource name of the encryption key specification resource.
Format:
projects/{project}/locations/{location}/encryptionSpec
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(EncryptionSpec other)
public EncryptionSpec.Builder mergeFrom(EncryptionSpec other)
public EncryptionSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public EncryptionSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EncryptionSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public EncryptionSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setKmsKey(String value)
public EncryptionSpec.Builder setKmsKey(String value)
Required. The name of customer-managed encryption key that is used to
secure a resource and its sub-resources. If empty, the resource is secured
by the default Google encryption key. Only the key in the same location as
this resource is allowed to be used for encryption. Format:
projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}
string kms_key = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The kmsKey to set.
|
setKmsKeyBytes(ByteString value)
public EncryptionSpec.Builder setKmsKeyBytes(ByteString value)
Required. The name of customer-managed encryption key that is used to
secure a resource and its sub-resources. If empty, the resource is secured
by the default Google encryption key. Only the key in the same location as
this resource is allowed to be used for encryption. Format:
projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}
string kms_key = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for kmsKey to set.
|
setName(String value)
public EncryptionSpec.Builder setName(String value)
Immutable. The resource name of the encryption key specification resource.
Format:
projects/{project}/locations/{location}/encryptionSpec
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Parameter |
Name |
Description |
value |
String
The name to set.
|
setNameBytes(ByteString value)
public EncryptionSpec.Builder setNameBytes(ByteString value)
Immutable. The resource name of the encryption key specification resource.
Format:
projects/{project}/locations/{location}/encryptionSpec
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Parameter |
Name |
Description |
value |
ByteString
The bytes for name to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EncryptionSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final EncryptionSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides