com.google.crypto.tink.proto.EciesAeadHkdfParams Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/ecies_aead_hkdf.proto
// Protobuf Java Version: 4.28.2
package com.google.crypto.tink.proto;
/**
* Protobuf type {@code google.crypto.tink.EciesAeadHkdfParams}
*/
public final class EciesAeadHkdfParams extends
com.google.protobuf.GeneratedMessageLite<
EciesAeadHkdfParams, EciesAeadHkdfParams.Builder> implements
// @@protoc_insertion_point(message_implements:google.crypto.tink.EciesAeadHkdfParams)
EciesAeadHkdfParamsOrBuilder {
private EciesAeadHkdfParams() {
}
private int bitField0_;
public static final int KEM_PARAMS_FIELD_NUMBER = 1;
private com.google.crypto.tink.proto.EciesHkdfKemParams kemParams_;
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
@java.lang.Override
public boolean hasKemParams() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
@java.lang.Override
public com.google.crypto.tink.proto.EciesHkdfKemParams getKemParams() {
return kemParams_ == null ? com.google.crypto.tink.proto.EciesHkdfKemParams.getDefaultInstance() : kemParams_;
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
private void setKemParams(com.google.crypto.tink.proto.EciesHkdfKemParams value) {
value.getClass();
kemParams_ = value;
bitField0_ |= 0x00000001;
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeKemParams(com.google.crypto.tink.proto.EciesHkdfKemParams value) {
value.getClass();
if (kemParams_ != null &&
kemParams_ != com.google.crypto.tink.proto.EciesHkdfKemParams.getDefaultInstance()) {
kemParams_ =
com.google.crypto.tink.proto.EciesHkdfKemParams.newBuilder(kemParams_).mergeFrom(value).buildPartial();
} else {
kemParams_ = value;
}
bitField0_ |= 0x00000001;
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
private void clearKemParams() { kemParams_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int DEM_PARAMS_FIELD_NUMBER = 2;
private com.google.crypto.tink.proto.EciesAeadDemParams demParams_;
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
@java.lang.Override
public boolean hasDemParams() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
@java.lang.Override
public com.google.crypto.tink.proto.EciesAeadDemParams getDemParams() {
return demParams_ == null ? com.google.crypto.tink.proto.EciesAeadDemParams.getDefaultInstance() : demParams_;
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
private void setDemParams(com.google.crypto.tink.proto.EciesAeadDemParams value) {
value.getClass();
demParams_ = value;
bitField0_ |= 0x00000002;
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeDemParams(com.google.crypto.tink.proto.EciesAeadDemParams value) {
value.getClass();
if (demParams_ != null &&
demParams_ != com.google.crypto.tink.proto.EciesAeadDemParams.getDefaultInstance()) {
demParams_ =
com.google.crypto.tink.proto.EciesAeadDemParams.newBuilder(demParams_).mergeFrom(value).buildPartial();
} else {
demParams_ = value;
}
bitField0_ |= 0x00000002;
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
private void clearDemParams() { demParams_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int EC_POINT_FORMAT_FIELD_NUMBER = 3;
private int ecPointFormat_;
/**
*
* EC point format.
* Required.
*
*
* .google.crypto.tink.EcPointFormat ec_point_format = 3;
* @return The enum numeric value on the wire for ecPointFormat.
*/
@java.lang.Override
public int getEcPointFormatValue() {
return ecPointFormat_;
}
/**
*
* EC point format.
* Required.
*
*
* .google.crypto.tink.EcPointFormat ec_point_format = 3;
* @return The ecPointFormat.
*/
@java.lang.Override
public com.google.crypto.tink.proto.EcPointFormat getEcPointFormat() {
com.google.crypto.tink.proto.EcPointFormat result = com.google.crypto.tink.proto.EcPointFormat.forNumber(ecPointFormat_);
return result == null ? com.google.crypto.tink.proto.EcPointFormat.UNRECOGNIZED : result;
}
/**
*
* EC point format.
* Required.
*
*
* .google.crypto.tink.EcPointFormat ec_point_format = 3;
* @param value The enum numeric value on the wire for ecPointFormat to set.
*/
private void setEcPointFormatValue(int value) {
ecPointFormat_ = value;
}
/**
*
* EC point format.
* Required.
*
*
* .google.crypto.tink.EcPointFormat ec_point_format = 3;
* @param value The ecPointFormat to set.
*/
private void setEcPointFormat(com.google.crypto.tink.proto.EcPointFormat value) {
ecPointFormat_ = value.getNumber();
}
/**
*
* EC point format.
* Required.
*
*
* .google.crypto.tink.EcPointFormat ec_point_format = 3;
*/
private void clearEcPointFormat() {
ecPointFormat_ = 0;
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.google.crypto.tink.proto.EciesAeadHkdfParams prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code google.crypto.tink.EciesAeadHkdfParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.crypto.tink.proto.EciesAeadHkdfParams, Builder> implements
// @@protoc_insertion_point(builder_implements:google.crypto.tink.EciesAeadHkdfParams)
com.google.crypto.tink.proto.EciesAeadHkdfParamsOrBuilder {
// Construct using com.google.crypto.tink.proto.EciesAeadHkdfParams.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
@java.lang.Override
public boolean hasKemParams() {
return instance.hasKemParams();
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
@java.lang.Override
public com.google.crypto.tink.proto.EciesHkdfKemParams getKemParams() {
return instance.getKemParams();
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
public Builder setKemParams(com.google.crypto.tink.proto.EciesHkdfKemParams value) {
copyOnWrite();
instance.setKemParams(value);
return this;
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
public Builder setKemParams(
com.google.crypto.tink.proto.EciesHkdfKemParams.Builder builderForValue) {
copyOnWrite();
instance.setKemParams(builderForValue.build());
return this;
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
public Builder mergeKemParams(com.google.crypto.tink.proto.EciesHkdfKemParams value) {
copyOnWrite();
instance.mergeKemParams(value);
return this;
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
public Builder clearKemParams() { copyOnWrite();
instance.clearKemParams();
return this;
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
@java.lang.Override
public boolean hasDemParams() {
return instance.hasDemParams();
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
@java.lang.Override
public com.google.crypto.tink.proto.EciesAeadDemParams getDemParams() {
return instance.getDemParams();
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
public Builder setDemParams(com.google.crypto.tink.proto.EciesAeadDemParams value) {
copyOnWrite();
instance.setDemParams(value);
return this;
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
public Builder setDemParams(
com.google.crypto.tink.proto.EciesAeadDemParams.Builder builderForValue) {
copyOnWrite();
instance.setDemParams(builderForValue.build());
return this;
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
public Builder mergeDemParams(com.google.crypto.tink.proto.EciesAeadDemParams value) {
copyOnWrite();
instance.mergeDemParams(value);
return this;
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
public Builder clearDemParams() { copyOnWrite();
instance.clearDemParams();
return this;
}
/**
*
* EC point format.
* Required.
*
*
* .google.crypto.tink.EcPointFormat ec_point_format = 3;
* @return The enum numeric value on the wire for ecPointFormat.
*/
@java.lang.Override
public int getEcPointFormatValue() {
return instance.getEcPointFormatValue();
}
/**
*
* EC point format.
* Required.
*
*
* .google.crypto.tink.EcPointFormat ec_point_format = 3;
* @param value The ecPointFormat to set.
* @return This builder for chaining.
*/
public Builder setEcPointFormatValue(int value) {
copyOnWrite();
instance.setEcPointFormatValue(value);
return this;
}
/**
*
* EC point format.
* Required.
*
*
* .google.crypto.tink.EcPointFormat ec_point_format = 3;
* @return The ecPointFormat.
*/
@java.lang.Override
public com.google.crypto.tink.proto.EcPointFormat getEcPointFormat() {
return instance.getEcPointFormat();
}
/**
*
* EC point format.
* Required.
*
*
* .google.crypto.tink.EcPointFormat ec_point_format = 3;
* @param value The enum numeric value on the wire for ecPointFormat to set.
* @return This builder for chaining.
*/
public Builder setEcPointFormat(com.google.crypto.tink.proto.EcPointFormat value) {
copyOnWrite();
instance.setEcPointFormat(value);
return this;
}
/**
*
* EC point format.
* Required.
*
*
* .google.crypto.tink.EcPointFormat ec_point_format = 3;
* @return This builder for chaining.
*/
public Builder clearEcPointFormat() {
copyOnWrite();
instance.clearEcPointFormat();
return this;
}
// @@protoc_insertion_point(builder_scope:google.crypto.tink.EciesAeadHkdfParams)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.google.crypto.tink.proto.EciesAeadHkdfParams();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"kemParams_",
"demParams_",
"ecPointFormat_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u1009\u0000\u0002" +
"\u1009\u0001\u0003\f";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.google.crypto.tink.proto.EciesAeadHkdfParams.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:google.crypto.tink.EciesAeadHkdfParams)
private static final com.google.crypto.tink.proto.EciesAeadHkdfParams DEFAULT_INSTANCE;
static {
EciesAeadHkdfParams defaultInstance = new EciesAeadHkdfParams();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
EciesAeadHkdfParams.class, defaultInstance);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy