package com.google.crypto.tink.proto;
public final class AesCtrHmacAeadKeyFormat extends
com.google.protobuf.GeneratedMessageV3 implements
AesCtrHmacAeadKeyFormatOrBuilder {
private static final long serialVersionUID = 0L;
private AesCtrHmacAeadKeyFormat(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AesCtrHmacAeadKeyFormat() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AesCtrHmacAeadKeyFormat();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AesCtrHmacAeadKeyFormat(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.AesCtrKeyFormat.Builder subBuilder = null;
if (aesCtrKeyFormat_ != null) {
subBuilder = aesCtrKeyFormat_.toBuilder();
}
aesCtrKeyFormat_ = input.readMessage(com.google.crypto.tink.proto.AesCtrKeyFormat.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(aesCtrKeyFormat_);
aesCtrKeyFormat_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.google.crypto.tink.proto.HmacKeyFormat.Builder subBuilder = null;
if (hmacKeyFormat_ != null) {
subBuilder = hmacKeyFormat_.toBuilder();
}
hmacKeyFormat_ = input.readMessage(com.google.crypto.tink.proto.HmacKeyFormat.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(hmacKeyFormat_);
hmacKeyFormat_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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.AesCtrHmacAead.internal_static_google_crypto_tink_AesCtrHmacAeadKeyFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.crypto.tink.proto.AesCtrHmacAead.internal_static_google_crypto_tink_AesCtrHmacAeadKeyFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat.class, com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat.Builder.class);
}
public static final int AES_CTR_KEY_FORMAT_FIELD_NUMBER = 1;
private com.google.crypto.tink.proto.AesCtrKeyFormat aesCtrKeyFormat_;
public boolean hasAesCtrKeyFormat() {
return aesCtrKeyFormat_ != null;
}
public com.google.crypto.tink.proto.AesCtrKeyFormat getAesCtrKeyFormat() {
return aesCtrKeyFormat_ == null ? com.google.crypto.tink.proto.AesCtrKeyFormat.getDefaultInstance() : aesCtrKeyFormat_;
}
public com.google.crypto.tink.proto.AesCtrKeyFormatOrBuilder getAesCtrKeyFormatOrBuilder() {
return getAesCtrKeyFormat();
}
public static final int HMAC_KEY_FORMAT_FIELD_NUMBER = 2;
private com.google.crypto.tink.proto.HmacKeyFormat hmacKeyFormat_;
public boolean hasHmacKeyFormat() {
return hmacKeyFormat_ != null;
}
public com.google.crypto.tink.proto.HmacKeyFormat getHmacKeyFormat() {
return hmacKeyFormat_ == null ? com.google.crypto.tink.proto.HmacKeyFormat.getDefaultInstance() : hmacKeyFormat_;
}
public com.google.crypto.tink.proto.HmacKeyFormatOrBuilder getHmacKeyFormatOrBuilder() {
return getHmacKeyFormat();
}
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 (aesCtrKeyFormat_ != null) {
output.writeMessage(1, getAesCtrKeyFormat());
}
if (hmacKeyFormat_ != null) {
output.writeMessage(2, getHmacKeyFormat());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (aesCtrKeyFormat_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAesCtrKeyFormat());
}
if (hmacKeyFormat_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getHmacKeyFormat());
}
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.AesCtrHmacAeadKeyFormat)) {
return super.equals(obj);
}
com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat other = (com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat) obj;
if (hasAesCtrKeyFormat() != other.hasAesCtrKeyFormat()) return false;
if (hasAesCtrKeyFormat()) {
if (!getAesCtrKeyFormat()
.equals(other.getAesCtrKeyFormat())) return false;
}
if (hasHmacKeyFormat() != other.hasHmacKeyFormat()) return false;
if (hasHmacKeyFormat()) {
if (!getHmacKeyFormat()
.equals(other.getHmacKeyFormat())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAesCtrKeyFormat()) {
hash = (37 * hash) + AES_CTR_KEY_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + getAesCtrKeyFormat().hashCode();
}
if (hasHmacKeyFormat()) {
hash = (37 * hash) + HMAC_KEY_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + getHmacKeyFormat().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat 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.AesCtrHmacAeadKeyFormat parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat 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.AesCtrHmacAeadKeyFormat parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat 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.AesCtrHmacAeadKeyFormat parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat 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.AesCtrHmacAeadKeyFormat parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat 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.AesCtrHmacAeadKeyFormat 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.AesCtrHmacAeadKeyFormat 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.AesCtrHmacAeadKeyFormat 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;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormatOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.crypto.tink.proto.AesCtrHmacAead.internal_static_google_crypto_tink_AesCtrHmacAeadKeyFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.crypto.tink.proto.AesCtrHmacAead.internal_static_google_crypto_tink_AesCtrHmacAeadKeyFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat.class, com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat.Builder.class);
}
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 (aesCtrKeyFormatBuilder_ == null) {
aesCtrKeyFormat_ = null;
} else {
aesCtrKeyFormat_ = null;
aesCtrKeyFormatBuilder_ = null;
}
if (hmacKeyFormatBuilder_ == null) {
hmacKeyFormat_ = null;
} else {
hmacKeyFormat_ = null;
hmacKeyFormatBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.crypto.tink.proto.AesCtrHmacAead.internal_static_google_crypto_tink_AesCtrHmacAeadKeyFormat_descriptor;
}
@java.lang.Override
public com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat getDefaultInstanceForType() {
return com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat.getDefaultInstance();
}
@java.lang.Override
public com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat build() {
com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat buildPartial() {
com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat result = new com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat(this);
if (aesCtrKeyFormatBuilder_ == null) {
result.aesCtrKeyFormat_ = aesCtrKeyFormat_;
} else {
result.aesCtrKeyFormat_ = aesCtrKeyFormatBuilder_.build();
}
if (hmacKeyFormatBuilder_ == null) {
result.hmacKeyFormat_ = hmacKeyFormat_;
} else {
result.hmacKeyFormat_ = hmacKeyFormatBuilder_.build();
}
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.AesCtrHmacAeadKeyFormat) {
return mergeFrom((com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat other) {
if (other == com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat.getDefaultInstance()) return this;
if (other.hasAesCtrKeyFormat()) {
mergeAesCtrKeyFormat(other.getAesCtrKeyFormat());
}
if (other.hasHmacKeyFormat()) {
mergeHmacKeyFormat(other.getHmacKeyFormat());
}
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.AesCtrHmacAeadKeyFormat parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.crypto.tink.proto.AesCtrKeyFormat aesCtrKeyFormat_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.crypto.tink.proto.AesCtrKeyFormat, com.google.crypto.tink.proto.AesCtrKeyFormat.Builder, com.google.crypto.tink.proto.AesCtrKeyFormatOrBuilder> aesCtrKeyFormatBuilder_;
public boolean hasAesCtrKeyFormat() {
return aesCtrKeyFormatBuilder_ != null || aesCtrKeyFormat_ != null;
}
public com.google.crypto.tink.proto.AesCtrKeyFormat getAesCtrKeyFormat() {
if (aesCtrKeyFormatBuilder_ == null) {
return aesCtrKeyFormat_ == null ? com.google.crypto.tink.proto.AesCtrKeyFormat.getDefaultInstance() : aesCtrKeyFormat_;
} else {
return aesCtrKeyFormatBuilder_.getMessage();
}
}
public Builder setAesCtrKeyFormat(com.google.crypto.tink.proto.AesCtrKeyFormat value) {
if (aesCtrKeyFormatBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
aesCtrKeyFormat_ = value;
onChanged();
} else {
aesCtrKeyFormatBuilder_.setMessage(value);
}
return this;
}
public Builder setAesCtrKeyFormat(
com.google.crypto.tink.proto.AesCtrKeyFormat.Builder builderForValue) {
if (aesCtrKeyFormatBuilder_ == null) {
aesCtrKeyFormat_ = builderForValue.build();
onChanged();
} else {
aesCtrKeyFormatBuilder_.setMessage(builderForValue.build());
}
return this;
}
public Builder mergeAesCtrKeyFormat(com.google.crypto.tink.proto.AesCtrKeyFormat value) {
if (aesCtrKeyFormatBuilder_ == null) {
if (aesCtrKeyFormat_ != null) {
aesCtrKeyFormat_ =
com.google.crypto.tink.proto.AesCtrKeyFormat.newBuilder(aesCtrKeyFormat_).mergeFrom(value).buildPartial();
} else {
aesCtrKeyFormat_ = value;
}
onChanged();
} else {
aesCtrKeyFormatBuilder_.mergeFrom(value);
}
return this;
}
public Builder clearAesCtrKeyFormat() {
if (aesCtrKeyFormatBuilder_ == null) {
aesCtrKeyFormat_ = null;
onChanged();
} else {
aesCtrKeyFormat_ = null;
aesCtrKeyFormatBuilder_ = null;
}
return this;
}
public com.google.crypto.tink.proto.AesCtrKeyFormat.Builder getAesCtrKeyFormatBuilder() {
onChanged();
return getAesCtrKeyFormatFieldBuilder().getBuilder();
}
public com.google.crypto.tink.proto.AesCtrKeyFormatOrBuilder getAesCtrKeyFormatOrBuilder() {
if (aesCtrKeyFormatBuilder_ != null) {
return aesCtrKeyFormatBuilder_.getMessageOrBuilder();
} else {
return aesCtrKeyFormat_ == null ?
com.google.crypto.tink.proto.AesCtrKeyFormat.getDefaultInstance() : aesCtrKeyFormat_;
}
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.crypto.tink.proto.AesCtrKeyFormat, com.google.crypto.tink.proto.AesCtrKeyFormat.Builder, com.google.crypto.tink.proto.AesCtrKeyFormatOrBuilder>
getAesCtrKeyFormatFieldBuilder() {
if (aesCtrKeyFormatBuilder_ == null) {
aesCtrKeyFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.crypto.tink.proto.AesCtrKeyFormat, com.google.crypto.tink.proto.AesCtrKeyFormat.Builder, com.google.crypto.tink.proto.AesCtrKeyFormatOrBuilder>(
getAesCtrKeyFormat(),
getParentForChildren(),
isClean());
aesCtrKeyFormat_ = null;
}
return aesCtrKeyFormatBuilder_;
}
private com.google.crypto.tink.proto.HmacKeyFormat hmacKeyFormat_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.crypto.tink.proto.HmacKeyFormat, com.google.crypto.tink.proto.HmacKeyFormat.Builder, com.google.crypto.tink.proto.HmacKeyFormatOrBuilder> hmacKeyFormatBuilder_;
public boolean hasHmacKeyFormat() {
return hmacKeyFormatBuilder_ != null || hmacKeyFormat_ != null;
}
public com.google.crypto.tink.proto.HmacKeyFormat getHmacKeyFormat() {
if (hmacKeyFormatBuilder_ == null) {
return hmacKeyFormat_ == null ? com.google.crypto.tink.proto.HmacKeyFormat.getDefaultInstance() : hmacKeyFormat_;
} else {
return hmacKeyFormatBuilder_.getMessage();
}
}
public Builder setHmacKeyFormat(com.google.crypto.tink.proto.HmacKeyFormat value) {
if (hmacKeyFormatBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
hmacKeyFormat_ = value;
onChanged();
} else {
hmacKeyFormatBuilder_.setMessage(value);
}
return this;
}
public Builder setHmacKeyFormat(
com.google.crypto.tink.proto.HmacKeyFormat.Builder builderForValue) {
if (hmacKeyFormatBuilder_ == null) {
hmacKeyFormat_ = builderForValue.build();
onChanged();
} else {
hmacKeyFormatBuilder_.setMessage(builderForValue.build());
}
return this;
}
public Builder mergeHmacKeyFormat(com.google.crypto.tink.proto.HmacKeyFormat value) {
if (hmacKeyFormatBuilder_ == null) {
if (hmacKeyFormat_ != null) {
hmacKeyFormat_ =
com.google.crypto.tink.proto.HmacKeyFormat.newBuilder(hmacKeyFormat_).mergeFrom(value).buildPartial();
} else {
hmacKeyFormat_ = value;
}
onChanged();
} else {
hmacKeyFormatBuilder_.mergeFrom(value);
}
return this;
}
public Builder clearHmacKeyFormat() {
if (hmacKeyFormatBuilder_ == null) {
hmacKeyFormat_ = null;
onChanged();
} else {
hmacKeyFormat_ = null;
hmacKeyFormatBuilder_ = null;
}
return this;
}
public com.google.crypto.tink.proto.HmacKeyFormat.Builder getHmacKeyFormatBuilder() {
onChanged();
return getHmacKeyFormatFieldBuilder().getBuilder();
}
public com.google.crypto.tink.proto.HmacKeyFormatOrBuilder getHmacKeyFormatOrBuilder() {
if (hmacKeyFormatBuilder_ != null) {
return hmacKeyFormatBuilder_.getMessageOrBuilder();
} else {
return hmacKeyFormat_ == null ?
com.google.crypto.tink.proto.HmacKeyFormat.getDefaultInstance() : hmacKeyFormat_;
}
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.crypto.tink.proto.HmacKeyFormat, com.google.crypto.tink.proto.HmacKeyFormat.Builder, com.google.crypto.tink.proto.HmacKeyFormatOrBuilder>
getHmacKeyFormatFieldBuilder() {
if (hmacKeyFormatBuilder_ == null) {
hmacKeyFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.crypto.tink.proto.HmacKeyFormat, com.google.crypto.tink.proto.HmacKeyFormat.Builder, com.google.crypto.tink.proto.HmacKeyFormatOrBuilder>(
getHmacKeyFormat(),
getParentForChildren(),
isClean());
hmacKeyFormat_ = null;
}
return hmacKeyFormatBuilder_;
}
@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);
}
}
private static final com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat();
}
public static com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AesCtrHmacAeadKeyFormat>
PARSER = new com.google.protobuf.AbstractParser<AesCtrHmacAeadKeyFormat>() {
@java.lang.Override
public AesCtrHmacAeadKeyFormat parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AesCtrHmacAeadKeyFormat(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<AesCtrHmacAeadKeyFormat> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AesCtrHmacAeadKeyFormat> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.crypto.tink.proto.AesCtrHmacAeadKeyFormat getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}