Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/ecies_aead_hkdf.proto
package com.google.crypto.tink.proto;
/**
*
* Parameters of KEM (Key Encapsulation Mechanism)
*
*
* Protobuf type {@code google.crypto.tink.EciesHkdfKemParams}
*/
public final class EciesHkdfKemParams extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.crypto.tink.EciesHkdfKemParams)
EciesHkdfKemParamsOrBuilder {
private static final long serialVersionUID = 0L;
// Use EciesHkdfKemParams.newBuilder() to construct.
private EciesHkdfKemParams(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private EciesHkdfKemParams() {
curveType_ = 0;
hkdfHashType_ = 0;
hkdfSalt_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EciesHkdfKemParams();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.crypto.tink.proto.EciesAeadHkdf.internal_static_google_crypto_tink_EciesHkdfKemParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.crypto.tink.proto.EciesAeadHkdf.internal_static_google_crypto_tink_EciesHkdfKemParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.crypto.tink.proto.EciesHkdfKemParams.class, com.google.crypto.tink.proto.EciesHkdfKemParams.Builder.class);
}
public static final int CURVE_TYPE_FIELD_NUMBER = 1;
private int curveType_ = 0;
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @return The enum numeric value on the wire for curveType.
*/
@java.lang.Override public int getCurveTypeValue() {
return curveType_;
}
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @return The curveType.
*/
@java.lang.Override public com.google.crypto.tink.proto.EllipticCurveType getCurveType() {
com.google.crypto.tink.proto.EllipticCurveType result = com.google.crypto.tink.proto.EllipticCurveType.forNumber(curveType_);
return result == null ? com.google.crypto.tink.proto.EllipticCurveType.UNRECOGNIZED : result;
}
public static final int HKDF_HASH_TYPE_FIELD_NUMBER = 2;
private int hkdfHashType_ = 0;
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @return The enum numeric value on the wire for hkdfHashType.
*/
@java.lang.Override public int getHkdfHashTypeValue() {
return hkdfHashType_;
}
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @return The hkdfHashType.
*/
@java.lang.Override public com.google.crypto.tink.proto.HashType getHkdfHashType() {
com.google.crypto.tink.proto.HashType result = com.google.crypto.tink.proto.HashType.forNumber(hkdfHashType_);
return result == null ? com.google.crypto.tink.proto.HashType.UNRECOGNIZED : result;
}
public static final int HKDF_SALT_FIELD_NUMBER = 11;
private com.google.protobuf.ByteString hkdfSalt_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Parameters of KEM (Key Encapsulation Mechanism)
*
*
* Protobuf type {@code google.crypto.tink.EciesHkdfKemParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.crypto.tink.EciesHkdfKemParams)
com.google.crypto.tink.proto.EciesHkdfKemParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.crypto.tink.proto.EciesAeadHkdf.internal_static_google_crypto_tink_EciesHkdfKemParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.crypto.tink.proto.EciesAeadHkdf.internal_static_google_crypto_tink_EciesHkdfKemParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.crypto.tink.proto.EciesHkdfKemParams.class, com.google.crypto.tink.proto.EciesHkdfKemParams.Builder.class);
}
// Construct using com.google.crypto.tink.proto.EciesHkdfKemParams.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
curveType_ = 0;
hkdfHashType_ = 0;
hkdfSalt_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.crypto.tink.proto.EciesAeadHkdf.internal_static_google_crypto_tink_EciesHkdfKemParams_descriptor;
}
@java.lang.Override
public com.google.crypto.tink.proto.EciesHkdfKemParams getDefaultInstanceForType() {
return com.google.crypto.tink.proto.EciesHkdfKemParams.getDefaultInstance();
}
@java.lang.Override
public com.google.crypto.tink.proto.EciesHkdfKemParams build() {
com.google.crypto.tink.proto.EciesHkdfKemParams result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.crypto.tink.proto.EciesHkdfKemParams buildPartial() {
com.google.crypto.tink.proto.EciesHkdfKemParams result = new com.google.crypto.tink.proto.EciesHkdfKemParams(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.crypto.tink.proto.EciesHkdfKemParams result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.curveType_ = curveType_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.hkdfHashType_ = hkdfHashType_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.hkdfSalt_ = hkdfSalt_;
}
}
@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 com.google.crypto.tink.proto.EciesHkdfKemParams) {
return mergeFrom((com.google.crypto.tink.proto.EciesHkdfKemParams)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.crypto.tink.proto.EciesHkdfKemParams other) {
if (other == com.google.crypto.tink.proto.EciesHkdfKemParams.getDefaultInstance()) return this;
if (other.curveType_ != 0) {
setCurveTypeValue(other.getCurveTypeValue());
}
if (other.hkdfHashType_ != 0) {
setHkdfHashTypeValue(other.getHkdfHashTypeValue());
}
if (other.getHkdfSalt() != com.google.protobuf.ByteString.EMPTY) {
setHkdfSalt(other.getHkdfSalt());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
curveType_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
hkdfHashType_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 90: {
hkdfSalt_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 90
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int curveType_ = 0;
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @return The enum numeric value on the wire for curveType.
*/
@java.lang.Override public int getCurveTypeValue() {
return curveType_;
}
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @param value The enum numeric value on the wire for curveType to set.
* @return This builder for chaining.
*/
public Builder setCurveTypeValue(int value) {
curveType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @return The curveType.
*/
@java.lang.Override
public com.google.crypto.tink.proto.EllipticCurveType getCurveType() {
com.google.crypto.tink.proto.EllipticCurveType result = com.google.crypto.tink.proto.EllipticCurveType.forNumber(curveType_);
return result == null ? com.google.crypto.tink.proto.EllipticCurveType.UNRECOGNIZED : result;
}
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @param value The curveType to set.
* @return This builder for chaining.
*/
public Builder setCurveType(com.google.crypto.tink.proto.EllipticCurveType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
curveType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @return This builder for chaining.
*/
public Builder clearCurveType() {
bitField0_ = (bitField0_ & ~0x00000001);
curveType_ = 0;
onChanged();
return this;
}
private int hkdfHashType_ = 0;
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @return The enum numeric value on the wire for hkdfHashType.
*/
@java.lang.Override public int getHkdfHashTypeValue() {
return hkdfHashType_;
}
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @param value The enum numeric value on the wire for hkdfHashType to set.
* @return This builder for chaining.
*/
public Builder setHkdfHashTypeValue(int value) {
hkdfHashType_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @return The hkdfHashType.
*/
@java.lang.Override
public com.google.crypto.tink.proto.HashType getHkdfHashType() {
com.google.crypto.tink.proto.HashType result = com.google.crypto.tink.proto.HashType.forNumber(hkdfHashType_);
return result == null ? com.google.crypto.tink.proto.HashType.UNRECOGNIZED : result;
}
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @param value The hkdfHashType to set.
* @return This builder for chaining.
*/
public Builder setHkdfHashType(com.google.crypto.tink.proto.HashType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
hkdfHashType_ = value.getNumber();
onChanged();
return this;
}
/**
*