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

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

Go to download

Tink is a small cryptographic library that provides a safe, simple, agile and fast way to accomplish some common cryptographic tasks.

There is a newer version: 1.16.0
Show newest version
// 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
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private EciesAeadHkdfParams(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    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 10: {
            com.google.crypto.tink.proto.EciesHkdfKemParams.Builder subBuilder = null;
            if (kemParams_ != null) {
              subBuilder = kemParams_.toBuilder();
            }
            kemParams_ = input.readMessage(com.google.crypto.tink.proto.EciesHkdfKemParams.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(kemParams_);
              kemParams_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            com.google.crypto.tink.proto.EciesAeadDemParams.Builder subBuilder = null;
            if (demParams_ != null) {
              subBuilder = demParams_.toBuilder();
            }
            demParams_ = input.readMessage(com.google.crypto.tink.proto.EciesAeadDemParams.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(demParams_);
              demParams_ = subBuilder.buildPartial();
            }

            break;
          }
          case 24: {
            int rawValue = input.readEnum();

            ecPointFormat_ = rawValue;
            break;
          }
          default: {
            if (!parseUnknownFieldProto3(
                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 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; */ public boolean hasKemParams() { return kemParams_ != null; } /** *
   * Key Encapsulation Mechanism.
   * Required.
   * 
* * .google.crypto.tink.EciesHkdfKemParams kem_params = 1; */ 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; */ 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; */ public boolean hasDemParams() { return demParams_ != null; } /** *
   * Data Encapsulation Mechanism.
   * Required.
   * 
* * .google.crypto.tink.EciesAeadDemParams dem_params = 2; */ 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; */ 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; */ public int getEcPointFormatValue() { return ecPointFormat_; } /** *
   * EC point format.
   * Required.
   * 
* * .google.crypto.tink.EcPointFormat ec_point_format = 3; */ 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_); } unknownFields.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 += 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 com.google.crypto.tink.proto.EciesAeadHkdfParams)) { return super.equals(obj); } com.google.crypto.tink.proto.EciesAeadHkdfParams other = (com.google.crypto.tink.proto.EciesAeadHkdfParams) obj; boolean result = true; result = result && (hasKemParams() == other.hasKemParams()); if (hasKemParams()) { result = result && getKemParams() .equals(other.getKemParams()); } result = result && (hasDemParams() == other.hasDemParams()); if (hasDemParams()) { result = result && getDemParams() .equals(other.getDemParams()); } result = result && ecPointFormat_ == other.ecPointFormat_; result = result && unknownFields.equals(other.unknownFields); return result; } @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) + unknownFields.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() { 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(); 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 (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) 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.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 { com.google.crypto.tink.proto.EciesAeadHkdfParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.crypto.tink.proto.EciesAeadHkdfParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.crypto.tink.proto.EciesHkdfKemParams kemParams_ = null; 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; */ public boolean hasKemParams() { return kemParamsBuilder_ != null || kemParams_ != null; } /** *
     * Key Encapsulation Mechanism.
     * Required.
     * 
* * .google.crypto.tink.EciesHkdfKemParams kem_params = 1; */ 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_ = null; 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; */ public boolean hasDemParams() { return demParamsBuilder_ != null || demParams_ != null; } /** *
     * Data Encapsulation Mechanism.
     * Required.
     * 
* * .google.crypto.tink.EciesAeadDemParams dem_params = 2; */ 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; */ public int getEcPointFormatValue() { return ecPointFormat_; } /** *
     * EC point format.
     * Required.
     * 
* * .google.crypto.tink.EcPointFormat ec_point_format = 3; */ public Builder setEcPointFormatValue(int value) { ecPointFormat_ = value; onChanged(); return this; } /** *
     * EC point format.
     * Required.
     * 
* * .google.crypto.tink.EcPointFormat ec_point_format = 3; */ 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; */ 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; */ public Builder clearEcPointFormat() { ecPointFormat_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(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 { return new EciesAeadHkdfParams(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 com.google.crypto.tink.proto.EciesAeadHkdfParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy