cz.proto.Encryption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: encryption.proto
package cz.proto;
public final class Encryption {
private Encryption() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface EncryptionConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.EncryptionConfig)
com.google.protobuf.MessageOrBuilder {
/**
* .cz.proto.EncryptionConfig.EncryptionType encryption_type = 1;
* @return The enum numeric value on the wire for encryptionType.
*/
int getEncryptionTypeValue();
/**
* .cz.proto.EncryptionConfig.EncryptionType encryption_type = 1;
* @return The encryptionType.
*/
cz.proto.Encryption.EncryptionConfig.EncryptionType getEncryptionType();
/**
* .cz.proto.EncryptionConfig.EncryptionAlgorithm encryption_algorithm = 2;
* @return The enum numeric value on the wire for encryptionAlgorithm.
*/
int getEncryptionAlgorithmValue();
/**
* .cz.proto.EncryptionConfig.EncryptionAlgorithm encryption_algorithm = 2;
* @return The encryptionAlgorithm.
*/
cz.proto.Encryption.EncryptionConfig.EncryptionAlgorithm getEncryptionAlgorithm();
/**
* string encryption_key_id = 3;
* @return The encryptionKeyId.
*/
java.lang.String getEncryptionKeyId();
/**
* string encryption_key_id = 3;
* @return The bytes for encryptionKeyId.
*/
com.google.protobuf.ByteString
getEncryptionKeyIdBytes();
/**
* string byok_config = 4;
* @return The byokConfig.
*/
java.lang.String getByokConfig();
/**
* string byok_config = 4;
* @return The bytes for byokConfig.
*/
com.google.protobuf.ByteString
getByokConfigBytes();
}
/**
* Protobuf type {@code cz.proto.EncryptionConfig}
*/
public static final class EncryptionConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.EncryptionConfig)
EncryptionConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use EncryptionConfig.newBuilder() to construct.
private EncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EncryptionConfig() {
encryptionType_ = 0;
encryptionAlgorithm_ = 0;
encryptionKeyId_ = "";
byokConfig_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EncryptionConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EncryptionConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
encryptionType_ = rawValue;
break;
}
case 16: {
int rawValue = input.readEnum();
encryptionAlgorithm_ = rawValue;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
encryptionKeyId_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
byokConfig_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.Encryption.internal_static_cz_proto_EncryptionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.Encryption.internal_static_cz_proto_EncryptionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.Encryption.EncryptionConfig.class, cz.proto.Encryption.EncryptionConfig.Builder.class);
}
/**
* Protobuf enum {@code cz.proto.EncryptionConfig.EncryptionType}
*/
public enum EncryptionType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NONE_ENCRYPTION = 0;
*/
NONE_ENCRYPTION(0),
/**
* DISABLE = 1;
*/
DISABLE(1),
/**
* FULL_MANAGED = 2;
*/
FULL_MANAGED(2),
/**
* BYOK_ALIYUN_KMS = 3;
*/
BYOK_ALIYUN_KMS(3),
/**
* BYOK_AES128_KEY = 4;
*/
BYOK_AES128_KEY(4),
UNRECOGNIZED(-1),
;
/**
* NONE_ENCRYPTION = 0;
*/
public static final int NONE_ENCRYPTION_VALUE = 0;
/**
* DISABLE = 1;
*/
public static final int DISABLE_VALUE = 1;
/**
* FULL_MANAGED = 2;
*/
public static final int FULL_MANAGED_VALUE = 2;
/**
* BYOK_ALIYUN_KMS = 3;
*/
public static final int BYOK_ALIYUN_KMS_VALUE = 3;
/**
* BYOK_AES128_KEY = 4;
*/
public static final int BYOK_AES128_KEY_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EncryptionType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EncryptionType forNumber(int value) {
switch (value) {
case 0: return NONE_ENCRYPTION;
case 1: return DISABLE;
case 2: return FULL_MANAGED;
case 3: return BYOK_ALIYUN_KMS;
case 4: return BYOK_AES128_KEY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
EncryptionType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public EncryptionType findValueByNumber(int number) {
return EncryptionType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cz.proto.Encryption.EncryptionConfig.getDescriptor().getEnumTypes().get(0);
}
private static final EncryptionType[] VALUES = values();
public static EncryptionType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private EncryptionType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cz.proto.EncryptionConfig.EncryptionType)
}
/**
* Protobuf enum {@code cz.proto.EncryptionConfig.EncryptionAlgorithm}
*/
public enum EncryptionAlgorithm
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NONE_ALGORITHM = 0;
*/
NONE_ALGORITHM(0),
/**
* AES256 = 1;
*/
AES256(1),
/**
* AES128 = 2;
*/
AES128(2),
UNRECOGNIZED(-1),
;
/**
* NONE_ALGORITHM = 0;
*/
public static final int NONE_ALGORITHM_VALUE = 0;
/**
* AES256 = 1;
*/
public static final int AES256_VALUE = 1;
/**
* AES128 = 2;
*/
public static final int AES128_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EncryptionAlgorithm valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EncryptionAlgorithm forNumber(int value) {
switch (value) {
case 0: return NONE_ALGORITHM;
case 1: return AES256;
case 2: return AES128;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
EncryptionAlgorithm> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public EncryptionAlgorithm findValueByNumber(int number) {
return EncryptionAlgorithm.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cz.proto.Encryption.EncryptionConfig.getDescriptor().getEnumTypes().get(1);
}
private static final EncryptionAlgorithm[] VALUES = values();
public static EncryptionAlgorithm valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private EncryptionAlgorithm(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cz.proto.EncryptionConfig.EncryptionAlgorithm)
}
public static final int ENCRYPTION_TYPE_FIELD_NUMBER = 1;
private int encryptionType_;
/**
* .cz.proto.EncryptionConfig.EncryptionType encryption_type = 1;
* @return The enum numeric value on the wire for encryptionType.
*/
@java.lang.Override public int getEncryptionTypeValue() {
return encryptionType_;
}
/**
* .cz.proto.EncryptionConfig.EncryptionType encryption_type = 1;
* @return The encryptionType.
*/
@java.lang.Override public cz.proto.Encryption.EncryptionConfig.EncryptionType getEncryptionType() {
@SuppressWarnings("deprecation")
cz.proto.Encryption.EncryptionConfig.EncryptionType result = cz.proto.Encryption.EncryptionConfig.EncryptionType.valueOf(encryptionType_);
return result == null ? cz.proto.Encryption.EncryptionConfig.EncryptionType.UNRECOGNIZED : result;
}
public static final int ENCRYPTION_ALGORITHM_FIELD_NUMBER = 2;
private int encryptionAlgorithm_;
/**
* .cz.proto.EncryptionConfig.EncryptionAlgorithm encryption_algorithm = 2;
* @return The enum numeric value on the wire for encryptionAlgorithm.
*/
@java.lang.Override public int getEncryptionAlgorithmValue() {
return encryptionAlgorithm_;
}
/**
* .cz.proto.EncryptionConfig.EncryptionAlgorithm encryption_algorithm = 2;
* @return The encryptionAlgorithm.
*/
@java.lang.Override public cz.proto.Encryption.EncryptionConfig.EncryptionAlgorithm getEncryptionAlgorithm() {
@SuppressWarnings("deprecation")
cz.proto.Encryption.EncryptionConfig.EncryptionAlgorithm result = cz.proto.Encryption.EncryptionConfig.EncryptionAlgorithm.valueOf(encryptionAlgorithm_);
return result == null ? cz.proto.Encryption.EncryptionConfig.EncryptionAlgorithm.UNRECOGNIZED : result;
}
public static final int ENCRYPTION_KEY_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object encryptionKeyId_;
/**
* string encryption_key_id = 3;
* @return The encryptionKeyId.
*/
@java.lang.Override
public java.lang.String getEncryptionKeyId() {
java.lang.Object ref = encryptionKeyId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
encryptionKeyId_ = s;
return s;
}
}
/**
* string encryption_key_id = 3;
* @return The bytes for encryptionKeyId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEncryptionKeyIdBytes() {
java.lang.Object ref = encryptionKeyId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
encryptionKeyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BYOK_CONFIG_FIELD_NUMBER = 4;
private volatile java.lang.Object byokConfig_;
/**
* string byok_config = 4;
* @return The byokConfig.
*/
@java.lang.Override
public java.lang.String getByokConfig() {
java.lang.Object ref = byokConfig_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
byokConfig_ = s;
return s;
}
}
/**
* string byok_config = 4;
* @return The bytes for byokConfig.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getByokConfigBytes() {
java.lang.Object ref = byokConfig_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
byokConfig_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (encryptionType_ != cz.proto.Encryption.EncryptionConfig.EncryptionType.NONE_ENCRYPTION.getNumber()) {
output.writeEnum(1, encryptionType_);
}
if (encryptionAlgorithm_ != cz.proto.Encryption.EncryptionConfig.EncryptionAlgorithm.NONE_ALGORITHM.getNumber()) {
output.writeEnum(2, encryptionAlgorithm_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKeyId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, encryptionKeyId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(byokConfig_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, byokConfig_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (encryptionType_ != cz.proto.Encryption.EncryptionConfig.EncryptionType.NONE_ENCRYPTION.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, encryptionType_);
}
if (encryptionAlgorithm_ != cz.proto.Encryption.EncryptionConfig.EncryptionAlgorithm.NONE_ALGORITHM.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, encryptionAlgorithm_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKeyId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, encryptionKeyId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(byokConfig_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, byokConfig_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.proto.Encryption.EncryptionConfig)) {
return super.equals(obj);
}
cz.proto.Encryption.EncryptionConfig other = (cz.proto.Encryption.EncryptionConfig) obj;
if (encryptionType_ != other.encryptionType_) return false;
if (encryptionAlgorithm_ != other.encryptionAlgorithm_) return false;
if (!getEncryptionKeyId()
.equals(other.getEncryptionKeyId())) return false;
if (!getByokConfig()
.equals(other.getByokConfig())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ENCRYPTION_TYPE_FIELD_NUMBER;
hash = (53 * hash) + encryptionType_;
hash = (37 * hash) + ENCRYPTION_ALGORITHM_FIELD_NUMBER;
hash = (53 * hash) + encryptionAlgorithm_;
hash = (37 * hash) + ENCRYPTION_KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getEncryptionKeyId().hashCode();
hash = (37 * hash) + BYOK_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getByokConfig().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.Encryption.EncryptionConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.Encryption.EncryptionConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.Encryption.EncryptionConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.Encryption.EncryptionConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.Encryption.EncryptionConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.Encryption.EncryptionConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.Encryption.EncryptionConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.Encryption.EncryptionConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cz.proto.Encryption.EncryptionConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.Encryption.EncryptionConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cz.proto.Encryption.EncryptionConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.Encryption.EncryptionConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cz.proto.Encryption.EncryptionConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cz.proto.EncryptionConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.EncryptionConfig)
cz.proto.Encryption.EncryptionConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.Encryption.internal_static_cz_proto_EncryptionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.Encryption.internal_static_cz_proto_EncryptionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.Encryption.EncryptionConfig.class, cz.proto.Encryption.EncryptionConfig.Builder.class);
}
// Construct using cz.proto.Encryption.EncryptionConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
encryptionType_ = 0;
encryptionAlgorithm_ = 0;
encryptionKeyId_ = "";
byokConfig_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.Encryption.internal_static_cz_proto_EncryptionConfig_descriptor;
}
@java.lang.Override
public cz.proto.Encryption.EncryptionConfig getDefaultInstanceForType() {
return cz.proto.Encryption.EncryptionConfig.getDefaultInstance();
}
@java.lang.Override
public cz.proto.Encryption.EncryptionConfig build() {
cz.proto.Encryption.EncryptionConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.Encryption.EncryptionConfig buildPartial() {
cz.proto.Encryption.EncryptionConfig result = new cz.proto.Encryption.EncryptionConfig(this);
result.encryptionType_ = encryptionType_;
result.encryptionAlgorithm_ = encryptionAlgorithm_;
result.encryptionKeyId_ = encryptionKeyId_;
result.byokConfig_ = byokConfig_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cz.proto.Encryption.EncryptionConfig) {
return mergeFrom((cz.proto.Encryption.EncryptionConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.Encryption.EncryptionConfig other) {
if (other == cz.proto.Encryption.EncryptionConfig.getDefaultInstance()) return this;
if (other.encryptionType_ != 0) {
setEncryptionTypeValue(other.getEncryptionTypeValue());
}
if (other.encryptionAlgorithm_ != 0) {
setEncryptionAlgorithmValue(other.getEncryptionAlgorithmValue());
}
if (!other.getEncryptionKeyId().isEmpty()) {
encryptionKeyId_ = other.encryptionKeyId_;
onChanged();
}
if (!other.getByokConfig().isEmpty()) {
byokConfig_ = other.byokConfig_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cz.proto.Encryption.EncryptionConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.Encryption.EncryptionConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int encryptionType_ = 0;
/**
* .cz.proto.EncryptionConfig.EncryptionType encryption_type = 1;
* @return The enum numeric value on the wire for encryptionType.
*/
@java.lang.Override public int getEncryptionTypeValue() {
return encryptionType_;
}
/**
* .cz.proto.EncryptionConfig.EncryptionType encryption_type = 1;
* @param value The enum numeric value on the wire for encryptionType to set.
* @return This builder for chaining.
*/
public Builder setEncryptionTypeValue(int value) {
encryptionType_ = value;
onChanged();
return this;
}
/**
* .cz.proto.EncryptionConfig.EncryptionType encryption_type = 1;
* @return The encryptionType.
*/
@java.lang.Override
public cz.proto.Encryption.EncryptionConfig.EncryptionType getEncryptionType() {
@SuppressWarnings("deprecation")
cz.proto.Encryption.EncryptionConfig.EncryptionType result = cz.proto.Encryption.EncryptionConfig.EncryptionType.valueOf(encryptionType_);
return result == null ? cz.proto.Encryption.EncryptionConfig.EncryptionType.UNRECOGNIZED : result;
}
/**
* .cz.proto.EncryptionConfig.EncryptionType encryption_type = 1;
* @param value The encryptionType to set.
* @return This builder for chaining.
*/
public Builder setEncryptionType(cz.proto.Encryption.EncryptionConfig.EncryptionType value) {
if (value == null) {
throw new NullPointerException();
}
encryptionType_ = value.getNumber();
onChanged();
return this;
}
/**
* .cz.proto.EncryptionConfig.EncryptionType encryption_type = 1;
* @return This builder for chaining.
*/
public Builder clearEncryptionType() {
encryptionType_ = 0;
onChanged();
return this;
}
private int encryptionAlgorithm_ = 0;
/**
* .cz.proto.EncryptionConfig.EncryptionAlgorithm encryption_algorithm = 2;
* @return The enum numeric value on the wire for encryptionAlgorithm.
*/
@java.lang.Override public int getEncryptionAlgorithmValue() {
return encryptionAlgorithm_;
}
/**
* .cz.proto.EncryptionConfig.EncryptionAlgorithm encryption_algorithm = 2;
* @param value The enum numeric value on the wire for encryptionAlgorithm to set.
* @return This builder for chaining.
*/
public Builder setEncryptionAlgorithmValue(int value) {
encryptionAlgorithm_ = value;
onChanged();
return this;
}
/**
* .cz.proto.EncryptionConfig.EncryptionAlgorithm encryption_algorithm = 2;
* @return The encryptionAlgorithm.
*/
@java.lang.Override
public cz.proto.Encryption.EncryptionConfig.EncryptionAlgorithm getEncryptionAlgorithm() {
@SuppressWarnings("deprecation")
cz.proto.Encryption.EncryptionConfig.EncryptionAlgorithm result = cz.proto.Encryption.EncryptionConfig.EncryptionAlgorithm.valueOf(encryptionAlgorithm_);
return result == null ? cz.proto.Encryption.EncryptionConfig.EncryptionAlgorithm.UNRECOGNIZED : result;
}
/**
* .cz.proto.EncryptionConfig.EncryptionAlgorithm encryption_algorithm = 2;
* @param value The encryptionAlgorithm to set.
* @return This builder for chaining.
*/
public Builder setEncryptionAlgorithm(cz.proto.Encryption.EncryptionConfig.EncryptionAlgorithm value) {
if (value == null) {
throw new NullPointerException();
}
encryptionAlgorithm_ = value.getNumber();
onChanged();
return this;
}
/**
* .cz.proto.EncryptionConfig.EncryptionAlgorithm encryption_algorithm = 2;
* @return This builder for chaining.
*/
public Builder clearEncryptionAlgorithm() {
encryptionAlgorithm_ = 0;
onChanged();
return this;
}
private java.lang.Object encryptionKeyId_ = "";
/**
* string encryption_key_id = 3;
* @return The encryptionKeyId.
*/
public java.lang.String getEncryptionKeyId() {
java.lang.Object ref = encryptionKeyId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
encryptionKeyId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string encryption_key_id = 3;
* @return The bytes for encryptionKeyId.
*/
public com.google.protobuf.ByteString
getEncryptionKeyIdBytes() {
java.lang.Object ref = encryptionKeyId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
encryptionKeyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string encryption_key_id = 3;
* @param value The encryptionKeyId to set.
* @return This builder for chaining.
*/
public Builder setEncryptionKeyId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
encryptionKeyId_ = value;
onChanged();
return this;
}
/**
* string encryption_key_id = 3;
* @return This builder for chaining.
*/
public Builder clearEncryptionKeyId() {
encryptionKeyId_ = getDefaultInstance().getEncryptionKeyId();
onChanged();
return this;
}
/**
* string encryption_key_id = 3;
* @param value The bytes for encryptionKeyId to set.
* @return This builder for chaining.
*/
public Builder setEncryptionKeyIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
encryptionKeyId_ = value;
onChanged();
return this;
}
private java.lang.Object byokConfig_ = "";
/**
* string byok_config = 4;
* @return The byokConfig.
*/
public java.lang.String getByokConfig() {
java.lang.Object ref = byokConfig_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
byokConfig_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string byok_config = 4;
* @return The bytes for byokConfig.
*/
public com.google.protobuf.ByteString
getByokConfigBytes() {
java.lang.Object ref = byokConfig_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
byokConfig_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string byok_config = 4;
* @param value The byokConfig to set.
* @return This builder for chaining.
*/
public Builder setByokConfig(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
byokConfig_ = value;
onChanged();
return this;
}
/**
* string byok_config = 4;
* @return This builder for chaining.
*/
public Builder clearByokConfig() {
byokConfig_ = getDefaultInstance().getByokConfig();
onChanged();
return this;
}
/**
* string byok_config = 4;
* @param value The bytes for byokConfig to set.
* @return This builder for chaining.
*/
public Builder setByokConfigBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
byokConfig_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cz.proto.EncryptionConfig)
}
// @@protoc_insertion_point(class_scope:cz.proto.EncryptionConfig)
private static final cz.proto.Encryption.EncryptionConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.Encryption.EncryptionConfig();
}
public static cz.proto.Encryption.EncryptionConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EncryptionConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EncryptionConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cz.proto.Encryption.EncryptionConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_EncryptionConfig_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_EncryptionConfig_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\020encryption.proto\022\010cz.proto\"\207\003\n\020Encrypt" +
"ionConfig\022B\n\017encryption_type\030\001 \001(\0162).cz." +
"proto.EncryptionConfig.EncryptionType\022L\n" +
"\024encryption_algorithm\030\002 \001(\0162..cz.proto.E" +
"ncryptionConfig.EncryptionAlgorithm\022\031\n\021e" +
"ncryption_key_id\030\003 \001(\t\022\023\n\013byok_config\030\004 " +
"\001(\t\"n\n\016EncryptionType\022\023\n\017NONE_ENCRYPTION" +
"\020\000\022\013\n\007DISABLE\020\001\022\020\n\014FULL_MANAGED\020\002\022\023\n\017BYO" +
"K_ALIYUN_KMS\020\003\022\023\n\017BYOK_AES128_KEY\020\004\"A\n\023E" +
"ncryptionAlgorithm\022\022\n\016NONE_ALGORITHM\020\000\022\n" +
"\n\006AES256\020\001\022\n\n\006AES128\020\002b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_cz_proto_EncryptionConfig_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cz_proto_EncryptionConfig_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_EncryptionConfig_descriptor,
new java.lang.String[] { "EncryptionType", "EncryptionAlgorithm", "EncryptionKeyId", "ByokConfig", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy