com.google.crypto.tink.proto.PrfBasedDeriverParams Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/prf_based_deriver.proto
// Protobuf Java Version: 4.28.2
package com.google.crypto.tink.proto;
/**
* Protobuf type {@code google.crypto.tink.PrfBasedDeriverParams}
*/
public final class PrfBasedDeriverParams extends
com.google.protobuf.GeneratedMessageLite<
PrfBasedDeriverParams, PrfBasedDeriverParams.Builder> implements
// @@protoc_insertion_point(message_implements:google.crypto.tink.PrfBasedDeriverParams)
PrfBasedDeriverParamsOrBuilder {
private PrfBasedDeriverParams() {
}
private int bitField0_;
public static final int DERIVED_KEY_TEMPLATE_FIELD_NUMBER = 1;
private com.google.crypto.tink.proto.KeyTemplate derivedKeyTemplate_;
/**
* .google.crypto.tink.KeyTemplate derived_key_template = 1;
*/
@java.lang.Override
public boolean hasDerivedKeyTemplate() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.crypto.tink.KeyTemplate derived_key_template = 1;
*/
@java.lang.Override
public com.google.crypto.tink.proto.KeyTemplate getDerivedKeyTemplate() {
return derivedKeyTemplate_ == null ? com.google.crypto.tink.proto.KeyTemplate.getDefaultInstance() : derivedKeyTemplate_;
}
/**
* .google.crypto.tink.KeyTemplate derived_key_template = 1;
*/
private void setDerivedKeyTemplate(com.google.crypto.tink.proto.KeyTemplate value) {
value.getClass();
derivedKeyTemplate_ = value;
bitField0_ |= 0x00000001;
}
/**
* .google.crypto.tink.KeyTemplate derived_key_template = 1;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeDerivedKeyTemplate(com.google.crypto.tink.proto.KeyTemplate value) {
value.getClass();
if (derivedKeyTemplate_ != null &&
derivedKeyTemplate_ != com.google.crypto.tink.proto.KeyTemplate.getDefaultInstance()) {
derivedKeyTemplate_ =
com.google.crypto.tink.proto.KeyTemplate.newBuilder(derivedKeyTemplate_).mergeFrom(value).buildPartial();
} else {
derivedKeyTemplate_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .google.crypto.tink.KeyTemplate derived_key_template = 1;
*/
private void clearDerivedKeyTemplate() { derivedKeyTemplate_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static com.google.crypto.tink.proto.PrfBasedDeriverParams 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.PrfBasedDeriverParams 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.PrfBasedDeriverParams 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.PrfBasedDeriverParams 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.PrfBasedDeriverParams parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.crypto.tink.proto.PrfBasedDeriverParams 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.PrfBasedDeriverParams 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.PrfBasedDeriverParams 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.PrfBasedDeriverParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.google.crypto.tink.proto.PrfBasedDeriverParams 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.PrfBasedDeriverParams 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.PrfBasedDeriverParams 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.PrfBasedDeriverParams prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code google.crypto.tink.PrfBasedDeriverParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.crypto.tink.proto.PrfBasedDeriverParams, Builder> implements
// @@protoc_insertion_point(builder_implements:google.crypto.tink.PrfBasedDeriverParams)
com.google.crypto.tink.proto.PrfBasedDeriverParamsOrBuilder {
// Construct using com.google.crypto.tink.proto.PrfBasedDeriverParams.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .google.crypto.tink.KeyTemplate derived_key_template = 1;
*/
@java.lang.Override
public boolean hasDerivedKeyTemplate() {
return instance.hasDerivedKeyTemplate();
}
/**
* .google.crypto.tink.KeyTemplate derived_key_template = 1;
*/
@java.lang.Override
public com.google.crypto.tink.proto.KeyTemplate getDerivedKeyTemplate() {
return instance.getDerivedKeyTemplate();
}
/**
* .google.crypto.tink.KeyTemplate derived_key_template = 1;
*/
public Builder setDerivedKeyTemplate(com.google.crypto.tink.proto.KeyTemplate value) {
copyOnWrite();
instance.setDerivedKeyTemplate(value);
return this;
}
/**
* .google.crypto.tink.KeyTemplate derived_key_template = 1;
*/
public Builder setDerivedKeyTemplate(
com.google.crypto.tink.proto.KeyTemplate.Builder builderForValue) {
copyOnWrite();
instance.setDerivedKeyTemplate(builderForValue.build());
return this;
}
/**
* .google.crypto.tink.KeyTemplate derived_key_template = 1;
*/
public Builder mergeDerivedKeyTemplate(com.google.crypto.tink.proto.KeyTemplate value) {
copyOnWrite();
instance.mergeDerivedKeyTemplate(value);
return this;
}
/**
* .google.crypto.tink.KeyTemplate derived_key_template = 1;
*/
public Builder clearDerivedKeyTemplate() { copyOnWrite();
instance.clearDerivedKeyTemplate();
return this;
}
// @@protoc_insertion_point(builder_scope:google.crypto.tink.PrfBasedDeriverParams)
}
@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.PrfBasedDeriverParams();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"derivedKeyTemplate_",
};
java.lang.String info =
"\u0000\u0001\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u1009\u0000";
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.PrfBasedDeriverParams.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.PrfBasedDeriverParams)
private static final com.google.crypto.tink.proto.PrfBasedDeriverParams DEFAULT_INSTANCE;
static {
PrfBasedDeriverParams defaultInstance = new PrfBasedDeriverParams();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
PrfBasedDeriverParams.class, defaultInstance);
}
public static com.google.crypto.tink.proto.PrfBasedDeriverParams getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy