
com.google.crypto.tink.proto.RegistryConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tink-android Show documentation
Show all versions of tink-android 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!
// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/config.proto
// Protobuf Java Version: 4.28.2
package com.google.crypto.tink.proto;
/**
*
* A complete configuration of Tink library: a list of key types
* to be available via the Registry after initialization.
* All fields are required.
*
*
* Protobuf type {@code google.crypto.tink.RegistryConfig}
*/
@java.lang.Deprecated public final class RegistryConfig extends
com.google.protobuf.GeneratedMessageLite<
RegistryConfig, RegistryConfig.Builder> implements
// @@protoc_insertion_point(message_implements:google.crypto.tink.RegistryConfig)
RegistryConfigOrBuilder {
private RegistryConfig() {
configName_ = "";
entry_ = emptyProtobufList();
}
public static final int CONFIG_NAME_FIELD_NUMBER = 1;
private java.lang.String configName_;
/**
* string config_name = 1;
* @return The configName.
*/
@java.lang.Override
public java.lang.String getConfigName() {
return configName_;
}
/**
* string config_name = 1;
* @return The bytes for configName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConfigNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(configName_);
}
/**
* string config_name = 1;
* @param value The configName to set.
*/
private void setConfigName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
configName_ = value;
}
/**
* string config_name = 1;
*/
private void clearConfigName() {
configName_ = getDefaultInstance().getConfigName();
}
/**
* string config_name = 1;
* @param value The bytes for configName to set.
*/
private void setConfigNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
configName_ = value.toStringUtf8();
}
public static final int ENTRY_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.ProtobufList entry_;
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
@java.lang.Override
public java.util.List getEntryList() {
return entry_;
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
public java.util.List extends com.google.crypto.tink.proto.KeyTypeEntryOrBuilder>
getEntryOrBuilderList() {
return entry_;
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
@java.lang.Override
public int getEntryCount() {
return entry_.size();
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
@java.lang.Override
public com.google.crypto.tink.proto.KeyTypeEntry getEntry(int index) {
return entry_.get(index);
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
public com.google.crypto.tink.proto.KeyTypeEntryOrBuilder getEntryOrBuilder(
int index) {
return entry_.get(index);
}
private void ensureEntryIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = entry_;
if (!tmp.isModifiable()) {
entry_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
private void setEntry(
int index, com.google.crypto.tink.proto.KeyTypeEntry value) {
value.getClass();
ensureEntryIsMutable();
entry_.set(index, value);
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
private void addEntry(com.google.crypto.tink.proto.KeyTypeEntry value) {
value.getClass();
ensureEntryIsMutable();
entry_.add(value);
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
private void addEntry(
int index, com.google.crypto.tink.proto.KeyTypeEntry value) {
value.getClass();
ensureEntryIsMutable();
entry_.add(index, value);
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
private void addAllEntry(
java.lang.Iterable extends com.google.crypto.tink.proto.KeyTypeEntry> values) {
ensureEntryIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, entry_);
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
private void clearEntry() {
entry_ = emptyProtobufList();
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
private void removeEntry(int index) {
ensureEntryIsMutable();
entry_.remove(index);
}
public static com.google.crypto.tink.proto.RegistryConfig 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.RegistryConfig 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.RegistryConfig 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.RegistryConfig 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.RegistryConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.crypto.tink.proto.RegistryConfig 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.RegistryConfig 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.RegistryConfig 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.RegistryConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.google.crypto.tink.proto.RegistryConfig 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.RegistryConfig 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.RegistryConfig 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.RegistryConfig prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* A complete configuration of Tink library: a list of key types
* to be available via the Registry after initialization.
* All fields are required.
*
*
* Protobuf type {@code google.crypto.tink.RegistryConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.crypto.tink.proto.RegistryConfig, Builder> implements
// @@protoc_insertion_point(builder_implements:google.crypto.tink.RegistryConfig)
com.google.crypto.tink.proto.RegistryConfigOrBuilder {
// Construct using com.google.crypto.tink.proto.RegistryConfig.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string config_name = 1;
* @return The configName.
*/
@java.lang.Override
public java.lang.String getConfigName() {
return instance.getConfigName();
}
/**
* string config_name = 1;
* @return The bytes for configName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConfigNameBytes() {
return instance.getConfigNameBytes();
}
/**
* string config_name = 1;
* @param value The configName to set.
* @return This builder for chaining.
*/
public Builder setConfigName(
java.lang.String value) {
copyOnWrite();
instance.setConfigName(value);
return this;
}
/**
* string config_name = 1;
* @return This builder for chaining.
*/
public Builder clearConfigName() {
copyOnWrite();
instance.clearConfigName();
return this;
}
/**
* string config_name = 1;
* @param value The bytes for configName to set.
* @return This builder for chaining.
*/
public Builder setConfigNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setConfigNameBytes(value);
return this;
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
@java.lang.Override
public java.util.List getEntryList() {
return java.util.Collections.unmodifiableList(
instance.getEntryList());
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
@java.lang.Override
public int getEntryCount() {
return instance.getEntryCount();
}/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
@java.lang.Override
public com.google.crypto.tink.proto.KeyTypeEntry getEntry(int index) {
return instance.getEntry(index);
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
public Builder setEntry(
int index, com.google.crypto.tink.proto.KeyTypeEntry value) {
copyOnWrite();
instance.setEntry(index, value);
return this;
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
public Builder setEntry(
int index, com.google.crypto.tink.proto.KeyTypeEntry.Builder builderForValue) {
copyOnWrite();
instance.setEntry(index,
builderForValue.build());
return this;
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
public Builder addEntry(com.google.crypto.tink.proto.KeyTypeEntry value) {
copyOnWrite();
instance.addEntry(value);
return this;
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
public Builder addEntry(
int index, com.google.crypto.tink.proto.KeyTypeEntry value) {
copyOnWrite();
instance.addEntry(index, value);
return this;
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
public Builder addEntry(
com.google.crypto.tink.proto.KeyTypeEntry.Builder builderForValue) {
copyOnWrite();
instance.addEntry(builderForValue.build());
return this;
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
public Builder addEntry(
int index, com.google.crypto.tink.proto.KeyTypeEntry.Builder builderForValue) {
copyOnWrite();
instance.addEntry(index,
builderForValue.build());
return this;
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
public Builder addAllEntry(
java.lang.Iterable extends com.google.crypto.tink.proto.KeyTypeEntry> values) {
copyOnWrite();
instance.addAllEntry(values);
return this;
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
public Builder clearEntry() {
copyOnWrite();
instance.clearEntry();
return this;
}
/**
* repeated .google.crypto.tink.KeyTypeEntry entry = 2;
*/
public Builder removeEntry(int index) {
copyOnWrite();
instance.removeEntry(index);
return this;
}
// @@protoc_insertion_point(builder_scope:google.crypto.tink.RegistryConfig)
}
@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.RegistryConfig();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"configName_",
"entry_",
com.google.crypto.tink.proto.KeyTypeEntry.class,
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0001\u0000\u0001\u0208\u0002\u001b" +
"";
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.RegistryConfig.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.RegistryConfig)
private static final com.google.crypto.tink.proto.RegistryConfig DEFAULT_INSTANCE;
static {
RegistryConfig defaultInstance = new RegistryConfig();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
RegistryConfig.class, defaultInstance);
}
public static com.google.crypto.tink.proto.RegistryConfig 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