com.google.crypto.tink.proto.EciesAeadHkdfParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tink Show documentation
Show all versions of tink Show documentation
Tink is a small cryptographic library that provides a safe, simple, agile and fast way to accomplish some common cryptographic tasks.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/ecies_aead_hkdf.proto
package com.google.crypto.tink.proto;
/**
* Protobuf type {@code google.crypto.tink.EciesAeadHkdfParams}
*/
public final class EciesAeadHkdfParams extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.crypto.tink.EciesAeadHkdfParams)
EciesAeadHkdfParamsOrBuilder {
private static final long serialVersionUID = 0L;
// Use EciesAeadHkdfParams.newBuilder() to construct.
private EciesAeadHkdfParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EciesAeadHkdfParams() {
ecPointFormat_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EciesAeadHkdfParams();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.crypto.tink.proto.EciesAeadHkdf.internal_static_google_crypto_tink_EciesAeadHkdfParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.crypto.tink.proto.EciesAeadHkdf.internal_static_google_crypto_tink_EciesAeadHkdfParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.crypto.tink.proto.EciesAeadHkdfParams.class, com.google.crypto.tink.proto.EciesAeadHkdfParams.Builder.class);
}
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;
* @return Whether the kemParams field is set.
*/
@java.lang.Override
public boolean hasKemParams() {
return kemParams_ != null;
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
* @return The kemParams.
*/
@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;
*/
@java.lang.Override
public com.google.crypto.tink.proto.EciesHkdfKemParamsOrBuilder getKemParamsOrBuilder() {
return getKemParams();
}
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;
* @return Whether the demParams field is set.
*/
@java.lang.Override
public boolean hasDemParams() {
return demParams_ != null;
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
* @return The demParams.
*/
@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;
*/
@java.lang.Override
public com.google.crypto.tink.proto.EciesAeadDemParamsOrBuilder getDemParamsOrBuilder() {
return getDemParams();
}
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() {
@SuppressWarnings("deprecation")
com.google.crypto.tink.proto.EcPointFormat result = com.google.crypto.tink.proto.EcPointFormat.valueOf(ecPointFormat_);
return result == null ? com.google.crypto.tink.proto.EcPointFormat.UNRECOGNIZED : result;
}
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 (kemParams_ != null) {
output.writeMessage(1, getKemParams());
}
if (demParams_ != null) {
output.writeMessage(2, getDemParams());
}
if (ecPointFormat_ != com.google.crypto.tink.proto.EcPointFormat.UNKNOWN_FORMAT.getNumber()) {
output.writeEnum(3, ecPointFormat_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (kemParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getKemParams());
}
if (demParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDemParams());
}
if (ecPointFormat_ != com.google.crypto.tink.proto.EcPointFormat.UNKNOWN_FORMAT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, ecPointFormat_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.crypto.tink.proto.EciesAeadHkdfParams)) {
return super.equals(obj);
}
com.google.crypto.tink.proto.EciesAeadHkdfParams other = (com.google.crypto.tink.proto.EciesAeadHkdfParams) obj;
if (hasKemParams() != other.hasKemParams()) return false;
if (hasKemParams()) {
if (!getKemParams()
.equals(other.getKemParams())) return false;
}
if (hasDemParams() != other.hasDemParams()) return false;
if (hasDemParams()) {
if (!getDemParams()
.equals(other.getDemParams())) return false;
}
if (ecPointFormat_ != other.ecPointFormat_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKemParams()) {
hash = (37 * hash) + KEM_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getKemParams().hashCode();
}
if (hasDemParams()) {
hash = (37 * hash) + DEM_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getDemParams().hashCode();
}
hash = (37 * hash) + EC_POINT_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + ecPointFormat_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams 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 com.google.crypto.tink.proto.EciesAeadHkdfParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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.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(com.google.crypto.tink.proto.EciesAeadHkdfParams 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 google.crypto.tink.EciesAeadHkdfParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.crypto.tink.EciesAeadHkdfParams)
com.google.crypto.tink.proto.EciesAeadHkdfParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.crypto.tink.proto.EciesAeadHkdf.internal_static_google_crypto_tink_EciesAeadHkdfParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.crypto.tink.proto.EciesAeadHkdf.internal_static_google_crypto_tink_EciesAeadHkdfParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.crypto.tink.proto.EciesAeadHkdfParams.class, com.google.crypto.tink.proto.EciesAeadHkdfParams.Builder.class);
}
// Construct using com.google.crypto.tink.proto.EciesAeadHkdfParams.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (kemParamsBuilder_ == null) {
kemParams_ = null;
} else {
kemParams_ = null;
kemParamsBuilder_ = null;
}
if (demParamsBuilder_ == null) {
demParams_ = null;
} else {
demParams_ = null;
demParamsBuilder_ = null;
}
ecPointFormat_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.crypto.tink.proto.EciesAeadHkdf.internal_static_google_crypto_tink_EciesAeadHkdfParams_descriptor;
}
@java.lang.Override
public com.google.crypto.tink.proto.EciesAeadHkdfParams getDefaultInstanceForType() {
return com.google.crypto.tink.proto.EciesAeadHkdfParams.getDefaultInstance();
}
@java.lang.Override
public com.google.crypto.tink.proto.EciesAeadHkdfParams build() {
com.google.crypto.tink.proto.EciesAeadHkdfParams result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.crypto.tink.proto.EciesAeadHkdfParams buildPartial() {
com.google.crypto.tink.proto.EciesAeadHkdfParams result = new com.google.crypto.tink.proto.EciesAeadHkdfParams(this);
if (kemParamsBuilder_ == null) {
result.kemParams_ = kemParams_;
} else {
result.kemParams_ = kemParamsBuilder_.build();
}
if (demParamsBuilder_ == null) {
result.demParams_ = demParams_;
} else {
result.demParams_ = demParamsBuilder_.build();
}
result.ecPointFormat_ = ecPointFormat_;
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 com.google.crypto.tink.proto.EciesAeadHkdfParams) {
return mergeFrom((com.google.crypto.tink.proto.EciesAeadHkdfParams)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.crypto.tink.proto.EciesAeadHkdfParams other) {
if (other == com.google.crypto.tink.proto.EciesAeadHkdfParams.getDefaultInstance()) return this;
if (other.hasKemParams()) {
mergeKemParams(other.getKemParams());
}
if (other.hasDemParams()) {
mergeDemParams(other.getDemParams());
}
if (other.ecPointFormat_ != 0) {
setEcPointFormatValue(other.getEcPointFormatValue());
}
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 10: {
input.readMessage(
getKemParamsFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getDemParamsFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 24: {
ecPointFormat_ = input.readEnum();
break;
} // case 24
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 com.google.crypto.tink.proto.EciesHkdfKemParams kemParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.crypto.tink.proto.EciesHkdfKemParams, com.google.crypto.tink.proto.EciesHkdfKemParams.Builder, com.google.crypto.tink.proto.EciesHkdfKemParamsOrBuilder> kemParamsBuilder_;
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
* @return Whether the kemParams field is set.
*/
public boolean hasKemParams() {
return kemParamsBuilder_ != null || kemParams_ != null;
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
* @return The kemParams.
*/
public com.google.crypto.tink.proto.EciesHkdfKemParams getKemParams() {
if (kemParamsBuilder_ == null) {
return kemParams_ == null ? com.google.crypto.tink.proto.EciesHkdfKemParams.getDefaultInstance() : kemParams_;
} else {
return kemParamsBuilder_.getMessage();
}
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
public Builder setKemParams(com.google.crypto.tink.proto.EciesHkdfKemParams value) {
if (kemParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kemParams_ = value;
onChanged();
} else {
kemParamsBuilder_.setMessage(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) {
if (kemParamsBuilder_ == null) {
kemParams_ = builderForValue.build();
onChanged();
} else {
kemParamsBuilder_.setMessage(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) {
if (kemParamsBuilder_ == null) {
if (kemParams_ != null) {
kemParams_ =
com.google.crypto.tink.proto.EciesHkdfKemParams.newBuilder(kemParams_).mergeFrom(value).buildPartial();
} else {
kemParams_ = value;
}
onChanged();
} else {
kemParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
public Builder clearKemParams() {
if (kemParamsBuilder_ == null) {
kemParams_ = null;
onChanged();
} else {
kemParams_ = null;
kemParamsBuilder_ = null;
}
return this;
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
public com.google.crypto.tink.proto.EciesHkdfKemParams.Builder getKemParamsBuilder() {
onChanged();
return getKemParamsFieldBuilder().getBuilder();
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
public com.google.crypto.tink.proto.EciesHkdfKemParamsOrBuilder getKemParamsOrBuilder() {
if (kemParamsBuilder_ != null) {
return kemParamsBuilder_.getMessageOrBuilder();
} else {
return kemParams_ == null ?
com.google.crypto.tink.proto.EciesHkdfKemParams.getDefaultInstance() : kemParams_;
}
}
/**
*
* Key Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesHkdfKemParams kem_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.crypto.tink.proto.EciesHkdfKemParams, com.google.crypto.tink.proto.EciesHkdfKemParams.Builder, com.google.crypto.tink.proto.EciesHkdfKemParamsOrBuilder>
getKemParamsFieldBuilder() {
if (kemParamsBuilder_ == null) {
kemParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.crypto.tink.proto.EciesHkdfKemParams, com.google.crypto.tink.proto.EciesHkdfKemParams.Builder, com.google.crypto.tink.proto.EciesHkdfKemParamsOrBuilder>(
getKemParams(),
getParentForChildren(),
isClean());
kemParams_ = null;
}
return kemParamsBuilder_;
}
private com.google.crypto.tink.proto.EciesAeadDemParams demParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.crypto.tink.proto.EciesAeadDemParams, com.google.crypto.tink.proto.EciesAeadDemParams.Builder, com.google.crypto.tink.proto.EciesAeadDemParamsOrBuilder> demParamsBuilder_;
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
* @return Whether the demParams field is set.
*/
public boolean hasDemParams() {
return demParamsBuilder_ != null || demParams_ != null;
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
* @return The demParams.
*/
public com.google.crypto.tink.proto.EciesAeadDemParams getDemParams() {
if (demParamsBuilder_ == null) {
return demParams_ == null ? com.google.crypto.tink.proto.EciesAeadDemParams.getDefaultInstance() : demParams_;
} else {
return demParamsBuilder_.getMessage();
}
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
public Builder setDemParams(com.google.crypto.tink.proto.EciesAeadDemParams value) {
if (demParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
demParams_ = value;
onChanged();
} else {
demParamsBuilder_.setMessage(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) {
if (demParamsBuilder_ == null) {
demParams_ = builderForValue.build();
onChanged();
} else {
demParamsBuilder_.setMessage(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) {
if (demParamsBuilder_ == null) {
if (demParams_ != null) {
demParams_ =
com.google.crypto.tink.proto.EciesAeadDemParams.newBuilder(demParams_).mergeFrom(value).buildPartial();
} else {
demParams_ = value;
}
onChanged();
} else {
demParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
public Builder clearDemParams() {
if (demParamsBuilder_ == null) {
demParams_ = null;
onChanged();
} else {
demParams_ = null;
demParamsBuilder_ = null;
}
return this;
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
public com.google.crypto.tink.proto.EciesAeadDemParams.Builder getDemParamsBuilder() {
onChanged();
return getDemParamsFieldBuilder().getBuilder();
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
public com.google.crypto.tink.proto.EciesAeadDemParamsOrBuilder getDemParamsOrBuilder() {
if (demParamsBuilder_ != null) {
return demParamsBuilder_.getMessageOrBuilder();
} else {
return demParams_ == null ?
com.google.crypto.tink.proto.EciesAeadDemParams.getDefaultInstance() : demParams_;
}
}
/**
*
* Data Encapsulation Mechanism.
* Required.
*
*
* .google.crypto.tink.EciesAeadDemParams dem_params = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.crypto.tink.proto.EciesAeadDemParams, com.google.crypto.tink.proto.EciesAeadDemParams.Builder, com.google.crypto.tink.proto.EciesAeadDemParamsOrBuilder>
getDemParamsFieldBuilder() {
if (demParamsBuilder_ == null) {
demParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.crypto.tink.proto.EciesAeadDemParams, com.google.crypto.tink.proto.EciesAeadDemParams.Builder, com.google.crypto.tink.proto.EciesAeadDemParamsOrBuilder>(
getDemParams(),
getParentForChildren(),
isClean());
demParams_ = null;
}
return demParamsBuilder_;
}
private int ecPointFormat_ = 0;
/**
*
* 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;
* @param value The enum numeric value on the wire for ecPointFormat to set.
* @return This builder for chaining.
*/
public Builder setEcPointFormatValue(int value) {
ecPointFormat_ = value;
onChanged();
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() {
@SuppressWarnings("deprecation")
com.google.crypto.tink.proto.EcPointFormat result = com.google.crypto.tink.proto.EcPointFormat.valueOf(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 ecPointFormat to set.
* @return This builder for chaining.
*/
public Builder setEcPointFormat(com.google.crypto.tink.proto.EcPointFormat value) {
if (value == null) {
throw new NullPointerException();
}
ecPointFormat_ = value.getNumber();
onChanged();
return this;
}
/**
*
* EC point format.
* Required.
*
*
* .google.crypto.tink.EcPointFormat ec_point_format = 3;
* @return This builder for chaining.
*/
public Builder clearEcPointFormat() {
ecPointFormat_ = 0;
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:google.crypto.tink.EciesAeadHkdfParams)
}
// @@protoc_insertion_point(class_scope:google.crypto.tink.EciesAeadHkdfParams)
private static final com.google.crypto.tink.proto.EciesAeadHkdfParams DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.crypto.tink.proto.EciesAeadHkdfParams();
}
public static com.google.crypto.tink.proto.EciesAeadHkdfParams getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EciesAeadHkdfParams parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.crypto.tink.proto.EciesAeadHkdfParams getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy