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.contactcenterinsights.v1.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
public static final Descriptors.Descriptor getDescriptor()
Methods
public EncryptionSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public EncryptionSpec build()
public EncryptionSpec buildPartial()
public EncryptionSpec.Builder clear()
Overrides
public EncryptionSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
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];
public EncryptionSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public EncryptionSpec.Builder clone()
Overrides
public EncryptionSpec getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public EncryptionSpec.Builder mergeFrom(EncryptionSpec other)
public EncryptionSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public EncryptionSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final EncryptionSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public EncryptionSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
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.
|
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.
|
public EncryptionSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final EncryptionSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides