All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.crypto.tink.proto.EciesHkdfKemParams Maven / Gradle / Ivy

// 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.GeneratedMessageLite< EciesHkdfKemParams, EciesHkdfKemParams.Builder> implements // @@protoc_insertion_point(message_implements:google.crypto.tink.EciesHkdfKemParams) EciesHkdfKemParamsOrBuilder { private EciesHkdfKemParams() { hkdfSalt_ = com.google.protobuf.ByteString.EMPTY; } public static final int CURVE_TYPE_FIELD_NUMBER = 1; private int curveType_; /** *
   * 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; } /** *
   * Required.
   * 
* * .google.crypto.tink.EllipticCurveType curve_type = 1; * @param value The enum numeric value on the wire for curveType to set. */ private void setCurveTypeValue(int value) { curveType_ = value; } /** *
   * Required.
   * 
* * .google.crypto.tink.EllipticCurveType curve_type = 1; * @param value The curveType to set. */ private void setCurveType(com.google.crypto.tink.proto.EllipticCurveType value) { curveType_ = value.getNumber(); } /** *
   * Required.
   * 
* * .google.crypto.tink.EllipticCurveType curve_type = 1; */ private void clearCurveType() { curveType_ = 0; } public static final int HKDF_HASH_TYPE_FIELD_NUMBER = 2; private int hkdfHashType_; /** *
   * 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; } /** *
   * Required.
   * 
* * .google.crypto.tink.HashType hkdf_hash_type = 2; * @param value The enum numeric value on the wire for hkdfHashType to set. */ private void setHkdfHashTypeValue(int value) { hkdfHashType_ = value; } /** *
   * Required.
   * 
* * .google.crypto.tink.HashType hkdf_hash_type = 2; * @param value The hkdfHashType to set. */ private void setHkdfHashType(com.google.crypto.tink.proto.HashType value) { hkdfHashType_ = value.getNumber(); } /** *
   * Required.
   * 
* * .google.crypto.tink.HashType hkdf_hash_type = 2; */ private void clearHkdfHashType() { hkdfHashType_ = 0; } public static final int HKDF_SALT_FIELD_NUMBER = 11; private com.google.protobuf.ByteString hkdfSalt_; /** *
   * Optional.
   * 
* * bytes hkdf_salt = 11; * @return The hkdfSalt. */ @java.lang.Override public com.google.protobuf.ByteString getHkdfSalt() { return hkdfSalt_; } /** *
   * Optional.
   * 
* * bytes hkdf_salt = 11; * @param value The hkdfSalt to set. */ private void setHkdfSalt(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); hkdfSalt_ = value; } /** *
   * Optional.
   * 
* * bytes hkdf_salt = 11; */ private void clearHkdfSalt() { hkdfSalt_ = getDefaultInstance().getHkdfSalt(); } public static com.google.crypto.tink.proto.EciesHkdfKemParams 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.EciesHkdfKemParams 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.EciesHkdfKemParams 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.EciesHkdfKemParams 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.EciesHkdfKemParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.google.crypto.tink.proto.EciesHkdfKemParams 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.EciesHkdfKemParams 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.EciesHkdfKemParams 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.EciesHkdfKemParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.google.crypto.tink.proto.EciesHkdfKemParams 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.EciesHkdfKemParams 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.EciesHkdfKemParams 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.EciesHkdfKemParams prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   * Parameters of KEM (Key Encapsulation Mechanism)
   * 
* * Protobuf type {@code google.crypto.tink.EciesHkdfKemParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.crypto.tink.proto.EciesHkdfKemParams, Builder> implements // @@protoc_insertion_point(builder_implements:google.crypto.tink.EciesHkdfKemParams) com.google.crypto.tink.proto.EciesHkdfKemParamsOrBuilder { // Construct using com.google.crypto.tink.proto.EciesHkdfKemParams.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     * 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 instance.getCurveTypeValue(); } /** *
     * Required.
     * 
* * .google.crypto.tink.EllipticCurveType curve_type = 1; * @param value The curveType to set. * @return This builder for chaining. */ public Builder setCurveTypeValue(int value) { copyOnWrite(); instance.setCurveTypeValue(value); return this; } /** *
     * Required.
     * 
* * .google.crypto.tink.EllipticCurveType curve_type = 1; * @return The curveType. */ @java.lang.Override public com.google.crypto.tink.proto.EllipticCurveType getCurveType() { return instance.getCurveType(); } /** *
     * 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 setCurveType(com.google.crypto.tink.proto.EllipticCurveType value) { copyOnWrite(); instance.setCurveType(value); return this; } /** *
     * Required.
     * 
* * .google.crypto.tink.EllipticCurveType curve_type = 1; * @return This builder for chaining. */ public Builder clearCurveType() { copyOnWrite(); instance.clearCurveType(); return this; } /** *
     * 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 instance.getHkdfHashTypeValue(); } /** *
     * Required.
     * 
* * .google.crypto.tink.HashType hkdf_hash_type = 2; * @param value The hkdfHashType to set. * @return This builder for chaining. */ public Builder setHkdfHashTypeValue(int value) { copyOnWrite(); instance.setHkdfHashTypeValue(value); 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() { return instance.getHkdfHashType(); } /** *
     * 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 setHkdfHashType(com.google.crypto.tink.proto.HashType value) { copyOnWrite(); instance.setHkdfHashType(value); return this; } /** *
     * Required.
     * 
* * .google.crypto.tink.HashType hkdf_hash_type = 2; * @return This builder for chaining. */ public Builder clearHkdfHashType() { copyOnWrite(); instance.clearHkdfHashType(); return this; } /** *
     * Optional.
     * 
* * bytes hkdf_salt = 11; * @return The hkdfSalt. */ @java.lang.Override public com.google.protobuf.ByteString getHkdfSalt() { return instance.getHkdfSalt(); } /** *
     * Optional.
     * 
* * bytes hkdf_salt = 11; * @param value The hkdfSalt to set. * @return This builder for chaining. */ public Builder setHkdfSalt(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setHkdfSalt(value); return this; } /** *
     * Optional.
     * 
* * bytes hkdf_salt = 11; * @return This builder for chaining. */ public Builder clearHkdfSalt() { copyOnWrite(); instance.clearHkdfSalt(); return this; } // @@protoc_insertion_point(builder_scope:google.crypto.tink.EciesHkdfKemParams) } @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.EciesHkdfKemParams(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "curveType_", "hkdfHashType_", "hkdfSalt_", }; java.lang.String info = "\u0000\u0003\u0000\u0000\u0001\u000b\u0003\u0000\u0000\u0000\u0001\f\u0002\f\u000b" + "\n"; 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.EciesHkdfKemParams.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.EciesHkdfKemParams) private static final com.google.crypto.tink.proto.EciesHkdfKemParams DEFAULT_INSTANCE; static { EciesHkdfKemParams defaultInstance = new EciesHkdfKemParams(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( EciesHkdfKemParams.class, defaultInstance); } public static com.google.crypto.tink.proto.EciesHkdfKemParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy