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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/tink.proto

package com.google.crypto.tink.proto;

/**
 * 
 * Represents a "safe" Keyset that doesn't contain any actual key material,
 * thus can be used for logging or monitoring. Most fields are copied from
 * Keyset.
 * 
* * Protobuf type {@code google.crypto.tink.KeysetInfo} */ public final class KeysetInfo extends com.google.protobuf.GeneratedMessageLite< KeysetInfo, KeysetInfo.Builder> implements // @@protoc_insertion_point(message_implements:google.crypto.tink.KeysetInfo) KeysetInfoOrBuilder { private KeysetInfo() { keyInfo_ = emptyProtobufList(); } public interface KeyInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.crypto.tink.KeysetInfo.KeyInfo) com.google.protobuf.MessageLiteOrBuilder { /** *
     * the type url of this key,
     * e.g., type.googleapis.com/google.crypto.tink.HmacKey.
     * 
* * string type_url = 1; * @return The typeUrl. */ java.lang.String getTypeUrl(); /** *
     * the type url of this key,
     * e.g., type.googleapis.com/google.crypto.tink.HmacKey.
     * 
* * string type_url = 1; * @return The bytes for typeUrl. */ com.google.protobuf.ByteString getTypeUrlBytes(); /** *
     * See Keyset.Key.status.
     * 
* * .google.crypto.tink.KeyStatusType status = 2; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * See Keyset.Key.status.
     * 
* * .google.crypto.tink.KeyStatusType status = 2; * @return The status. */ com.google.crypto.tink.proto.KeyStatusType getStatus(); /** *
     * See Keyset.Key.key_id.
     * 
* * uint32 key_id = 3; * @return The keyId. */ int getKeyId(); /** *
     * See Keyset.Key.output_prefix_type.
     * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 4; * @return The enum numeric value on the wire for outputPrefixType. */ int getOutputPrefixTypeValue(); /** *
     * See Keyset.Key.output_prefix_type.
     * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 4; * @return The outputPrefixType. */ com.google.crypto.tink.proto.OutputPrefixType getOutputPrefixType(); } /** * Protobuf type {@code google.crypto.tink.KeysetInfo.KeyInfo} */ public static final class KeyInfo extends com.google.protobuf.GeneratedMessageLite< KeyInfo, KeyInfo.Builder> implements // @@protoc_insertion_point(message_implements:google.crypto.tink.KeysetInfo.KeyInfo) KeyInfoOrBuilder { private KeyInfo() { typeUrl_ = ""; } public static final int TYPE_URL_FIELD_NUMBER = 1; private java.lang.String typeUrl_; /** *
     * the type url of this key,
     * e.g., type.googleapis.com/google.crypto.tink.HmacKey.
     * 
* * string type_url = 1; * @return The typeUrl. */ @java.lang.Override public java.lang.String getTypeUrl() { return typeUrl_; } /** *
     * the type url of this key,
     * e.g., type.googleapis.com/google.crypto.tink.HmacKey.
     * 
* * string type_url = 1; * @return The bytes for typeUrl. */ @java.lang.Override public com.google.protobuf.ByteString getTypeUrlBytes() { return com.google.protobuf.ByteString.copyFromUtf8(typeUrl_); } /** *
     * the type url of this key,
     * e.g., type.googleapis.com/google.crypto.tink.HmacKey.
     * 
* * string type_url = 1; * @param value The typeUrl to set. */ private void setTypeUrl( java.lang.String value) { java.lang.Class valueClass = value.getClass(); typeUrl_ = value; } /** *
     * the type url of this key,
     * e.g., type.googleapis.com/google.crypto.tink.HmacKey.
     * 
* * string type_url = 1; */ private void clearTypeUrl() { typeUrl_ = getDefaultInstance().getTypeUrl(); } /** *
     * the type url of this key,
     * e.g., type.googleapis.com/google.crypto.tink.HmacKey.
     * 
* * string type_url = 1; * @param value The bytes for typeUrl to set. */ private void setTypeUrlBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); typeUrl_ = value.toStringUtf8(); } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** *
     * See Keyset.Key.status.
     * 
* * .google.crypto.tink.KeyStatusType status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * See Keyset.Key.status.
     * 
* * .google.crypto.tink.KeyStatusType status = 2; * @return The status. */ @java.lang.Override public com.google.crypto.tink.proto.KeyStatusType getStatus() { com.google.crypto.tink.proto.KeyStatusType result = com.google.crypto.tink.proto.KeyStatusType.forNumber(status_); return result == null ? com.google.crypto.tink.proto.KeyStatusType.UNRECOGNIZED : result; } /** *
     * See Keyset.Key.status.
     * 
* * .google.crypto.tink.KeyStatusType status = 2; * @param value The enum numeric value on the wire for status to set. */ private void setStatusValue(int value) { status_ = value; } /** *
     * See Keyset.Key.status.
     * 
* * .google.crypto.tink.KeyStatusType status = 2; * @param value The status to set. */ private void setStatus(com.google.crypto.tink.proto.KeyStatusType value) { status_ = value.getNumber(); } /** *
     * See Keyset.Key.status.
     * 
* * .google.crypto.tink.KeyStatusType status = 2; */ private void clearStatus() { status_ = 0; } public static final int KEY_ID_FIELD_NUMBER = 3; private int keyId_; /** *
     * See Keyset.Key.key_id.
     * 
* * uint32 key_id = 3; * @return The keyId. */ @java.lang.Override public int getKeyId() { return keyId_; } /** *
     * See Keyset.Key.key_id.
     * 
* * uint32 key_id = 3; * @param value The keyId to set. */ private void setKeyId(int value) { keyId_ = value; } /** *
     * See Keyset.Key.key_id.
     * 
* * uint32 key_id = 3; */ private void clearKeyId() { keyId_ = 0; } public static final int OUTPUT_PREFIX_TYPE_FIELD_NUMBER = 4; private int outputPrefixType_; /** *
     * See Keyset.Key.output_prefix_type.
     * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 4; * @return The enum numeric value on the wire for outputPrefixType. */ @java.lang.Override public int getOutputPrefixTypeValue() { return outputPrefixType_; } /** *
     * See Keyset.Key.output_prefix_type.
     * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 4; * @return The outputPrefixType. */ @java.lang.Override public com.google.crypto.tink.proto.OutputPrefixType getOutputPrefixType() { com.google.crypto.tink.proto.OutputPrefixType result = com.google.crypto.tink.proto.OutputPrefixType.forNumber(outputPrefixType_); return result == null ? com.google.crypto.tink.proto.OutputPrefixType.UNRECOGNIZED : result; } /** *
     * See Keyset.Key.output_prefix_type.
     * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 4; * @param value The enum numeric value on the wire for outputPrefixType to set. */ private void setOutputPrefixTypeValue(int value) { outputPrefixType_ = value; } /** *
     * See Keyset.Key.output_prefix_type.
     * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 4; * @param value The outputPrefixType to set. */ private void setOutputPrefixType(com.google.crypto.tink.proto.OutputPrefixType value) { outputPrefixType_ = value.getNumber(); } /** *
     * See Keyset.Key.output_prefix_type.
     * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 4; */ private void clearOutputPrefixType() { outputPrefixType_ = 0; } public static com.google.crypto.tink.proto.KeysetInfo.KeyInfo 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.KeysetInfo.KeyInfo 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.KeysetInfo.KeyInfo 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.KeysetInfo.KeyInfo 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.KeysetInfo.KeyInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.google.crypto.tink.proto.KeysetInfo.KeyInfo 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.KeysetInfo.KeyInfo 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.KeysetInfo.KeyInfo 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.KeysetInfo.KeyInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.google.crypto.tink.proto.KeysetInfo.KeyInfo 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.KeysetInfo.KeyInfo 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.KeysetInfo.KeyInfo 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.KeysetInfo.KeyInfo prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code google.crypto.tink.KeysetInfo.KeyInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.crypto.tink.proto.KeysetInfo.KeyInfo, Builder> implements // @@protoc_insertion_point(builder_implements:google.crypto.tink.KeysetInfo.KeyInfo) com.google.crypto.tink.proto.KeysetInfo.KeyInfoOrBuilder { // Construct using com.google.crypto.tink.proto.KeysetInfo.KeyInfo.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * the type url of this key,
       * e.g., type.googleapis.com/google.crypto.tink.HmacKey.
       * 
* * string type_url = 1; * @return The typeUrl. */ @java.lang.Override public java.lang.String getTypeUrl() { return instance.getTypeUrl(); } /** *
       * the type url of this key,
       * e.g., type.googleapis.com/google.crypto.tink.HmacKey.
       * 
* * string type_url = 1; * @return The bytes for typeUrl. */ @java.lang.Override public com.google.protobuf.ByteString getTypeUrlBytes() { return instance.getTypeUrlBytes(); } /** *
       * the type url of this key,
       * e.g., type.googleapis.com/google.crypto.tink.HmacKey.
       * 
* * string type_url = 1; * @param value The typeUrl to set. * @return This builder for chaining. */ public Builder setTypeUrl( java.lang.String value) { copyOnWrite(); instance.setTypeUrl(value); return this; } /** *
       * the type url of this key,
       * e.g., type.googleapis.com/google.crypto.tink.HmacKey.
       * 
* * string type_url = 1; * @return This builder for chaining. */ public Builder clearTypeUrl() { copyOnWrite(); instance.clearTypeUrl(); return this; } /** *
       * the type url of this key,
       * e.g., type.googleapis.com/google.crypto.tink.HmacKey.
       * 
* * string type_url = 1; * @param value The bytes for typeUrl to set. * @return This builder for chaining. */ public Builder setTypeUrlBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTypeUrlBytes(value); return this; } /** *
       * See Keyset.Key.status.
       * 
* * .google.crypto.tink.KeyStatusType status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return instance.getStatusValue(); } /** *
       * See Keyset.Key.status.
       * 
* * .google.crypto.tink.KeyStatusType status = 2; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { copyOnWrite(); instance.setStatusValue(value); return this; } /** *
       * See Keyset.Key.status.
       * 
* * .google.crypto.tink.KeyStatusType status = 2; * @return The status. */ @java.lang.Override public com.google.crypto.tink.proto.KeyStatusType getStatus() { return instance.getStatus(); } /** *
       * See Keyset.Key.status.
       * 
* * .google.crypto.tink.KeyStatusType status = 2; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatus(com.google.crypto.tink.proto.KeyStatusType value) { copyOnWrite(); instance.setStatus(value); return this; } /** *
       * See Keyset.Key.status.
       * 
* * .google.crypto.tink.KeyStatusType status = 2; * @return This builder for chaining. */ public Builder clearStatus() { copyOnWrite(); instance.clearStatus(); return this; } /** *
       * See Keyset.Key.key_id.
       * 
* * uint32 key_id = 3; * @return The keyId. */ @java.lang.Override public int getKeyId() { return instance.getKeyId(); } /** *
       * See Keyset.Key.key_id.
       * 
* * uint32 key_id = 3; * @param value The keyId to set. * @return This builder for chaining. */ public Builder setKeyId(int value) { copyOnWrite(); instance.setKeyId(value); return this; } /** *
       * See Keyset.Key.key_id.
       * 
* * uint32 key_id = 3; * @return This builder for chaining. */ public Builder clearKeyId() { copyOnWrite(); instance.clearKeyId(); return this; } /** *
       * See Keyset.Key.output_prefix_type.
       * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 4; * @return The enum numeric value on the wire for outputPrefixType. */ @java.lang.Override public int getOutputPrefixTypeValue() { return instance.getOutputPrefixTypeValue(); } /** *
       * See Keyset.Key.output_prefix_type.
       * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 4; * @param value The outputPrefixType to set. * @return This builder for chaining. */ public Builder setOutputPrefixTypeValue(int value) { copyOnWrite(); instance.setOutputPrefixTypeValue(value); return this; } /** *
       * See Keyset.Key.output_prefix_type.
       * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 4; * @return The outputPrefixType. */ @java.lang.Override public com.google.crypto.tink.proto.OutputPrefixType getOutputPrefixType() { return instance.getOutputPrefixType(); } /** *
       * See Keyset.Key.output_prefix_type.
       * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 4; * @param value The enum numeric value on the wire for outputPrefixType to set. * @return This builder for chaining. */ public Builder setOutputPrefixType(com.google.crypto.tink.proto.OutputPrefixType value) { copyOnWrite(); instance.setOutputPrefixType(value); return this; } /** *
       * See Keyset.Key.output_prefix_type.
       * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 4; * @return This builder for chaining. */ public Builder clearOutputPrefixType() { copyOnWrite(); instance.clearOutputPrefixType(); return this; } // @@protoc_insertion_point(builder_scope:google.crypto.tink.KeysetInfo.KeyInfo) } @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.KeysetInfo.KeyInfo(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "typeUrl_", "status_", "keyId_", "outputPrefixType_", }; java.lang.String info = "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0208\u0002\f" + "\u0003\u000b\u0004\f"; 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.KeysetInfo.KeyInfo.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.KeysetInfo.KeyInfo) private static final com.google.crypto.tink.proto.KeysetInfo.KeyInfo DEFAULT_INSTANCE; static { KeyInfo defaultInstance = new KeyInfo(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( KeyInfo.class, defaultInstance); } public static com.google.crypto.tink.proto.KeysetInfo.KeyInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public static final int PRIMARY_KEY_ID_FIELD_NUMBER = 1; private int primaryKeyId_; /** *
   * See Keyset.primary_key_id.
   * 
* * uint32 primary_key_id = 1; * @return The primaryKeyId. */ @java.lang.Override public int getPrimaryKeyId() { return primaryKeyId_; } /** *
   * See Keyset.primary_key_id.
   * 
* * uint32 primary_key_id = 1; * @param value The primaryKeyId to set. */ private void setPrimaryKeyId(int value) { primaryKeyId_ = value; } /** *
   * See Keyset.primary_key_id.
   * 
* * uint32 primary_key_id = 1; */ private void clearPrimaryKeyId() { primaryKeyId_ = 0; } public static final int KEY_INFO_FIELD_NUMBER = 2; private com.google.protobuf.Internal.ProtobufList keyInfo_; /** *
   * KeyInfos in the KeysetInfo.
   * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
   * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ @java.lang.Override public java.util.List getKeyInfoList() { return keyInfo_; } /** *
   * KeyInfos in the KeysetInfo.
   * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
   * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ public java.util.List getKeyInfoOrBuilderList() { return keyInfo_; } /** *
   * KeyInfos in the KeysetInfo.
   * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
   * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ @java.lang.Override public int getKeyInfoCount() { return keyInfo_.size(); } /** *
   * KeyInfos in the KeysetInfo.
   * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
   * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ @java.lang.Override public com.google.crypto.tink.proto.KeysetInfo.KeyInfo getKeyInfo(int index) { return keyInfo_.get(index); } /** *
   * KeyInfos in the KeysetInfo.
   * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
   * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ public com.google.crypto.tink.proto.KeysetInfo.KeyInfoOrBuilder getKeyInfoOrBuilder( int index) { return keyInfo_.get(index); } private void ensureKeyInfoIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = keyInfo_; if (!tmp.isModifiable()) { keyInfo_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
   * KeyInfos in the KeysetInfo.
   * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
   * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ private void setKeyInfo( int index, com.google.crypto.tink.proto.KeysetInfo.KeyInfo value) { value.getClass(); ensureKeyInfoIsMutable(); keyInfo_.set(index, value); } /** *
   * KeyInfos in the KeysetInfo.
   * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
   * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ private void addKeyInfo(com.google.crypto.tink.proto.KeysetInfo.KeyInfo value) { value.getClass(); ensureKeyInfoIsMutable(); keyInfo_.add(value); } /** *
   * KeyInfos in the KeysetInfo.
   * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
   * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ private void addKeyInfo( int index, com.google.crypto.tink.proto.KeysetInfo.KeyInfo value) { value.getClass(); ensureKeyInfoIsMutable(); keyInfo_.add(index, value); } /** *
   * KeyInfos in the KeysetInfo.
   * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
   * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ private void addAllKeyInfo( java.lang.Iterable values) { ensureKeyInfoIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, keyInfo_); } /** *
   * KeyInfos in the KeysetInfo.
   * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
   * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ private void clearKeyInfo() { keyInfo_ = emptyProtobufList(); } /** *
   * KeyInfos in the KeysetInfo.
   * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
   * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ private void removeKeyInfo(int index) { ensureKeyInfoIsMutable(); keyInfo_.remove(index); } public static com.google.crypto.tink.proto.KeysetInfo 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.KeysetInfo 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.KeysetInfo 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.KeysetInfo 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.KeysetInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.google.crypto.tink.proto.KeysetInfo 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.KeysetInfo 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.KeysetInfo 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.KeysetInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.google.crypto.tink.proto.KeysetInfo 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.KeysetInfo 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.KeysetInfo 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.KeysetInfo prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   * Represents a "safe" Keyset that doesn't contain any actual key material,
   * thus can be used for logging or monitoring. Most fields are copied from
   * Keyset.
   * 
* * Protobuf type {@code google.crypto.tink.KeysetInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.crypto.tink.proto.KeysetInfo, Builder> implements // @@protoc_insertion_point(builder_implements:google.crypto.tink.KeysetInfo) com.google.crypto.tink.proto.KeysetInfoOrBuilder { // Construct using com.google.crypto.tink.proto.KeysetInfo.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     * See Keyset.primary_key_id.
     * 
* * uint32 primary_key_id = 1; * @return The primaryKeyId. */ @java.lang.Override public int getPrimaryKeyId() { return instance.getPrimaryKeyId(); } /** *
     * See Keyset.primary_key_id.
     * 
* * uint32 primary_key_id = 1; * @param value The primaryKeyId to set. * @return This builder for chaining. */ public Builder setPrimaryKeyId(int value) { copyOnWrite(); instance.setPrimaryKeyId(value); return this; } /** *
     * See Keyset.primary_key_id.
     * 
* * uint32 primary_key_id = 1; * @return This builder for chaining. */ public Builder clearPrimaryKeyId() { copyOnWrite(); instance.clearPrimaryKeyId(); return this; } /** *
     * KeyInfos in the KeysetInfo.
     * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
     * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ @java.lang.Override public java.util.List getKeyInfoList() { return java.util.Collections.unmodifiableList( instance.getKeyInfoList()); } /** *
     * KeyInfos in the KeysetInfo.
     * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
     * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ @java.lang.Override public int getKeyInfoCount() { return instance.getKeyInfoCount(); }/** *
     * KeyInfos in the KeysetInfo.
     * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
     * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ @java.lang.Override public com.google.crypto.tink.proto.KeysetInfo.KeyInfo getKeyInfo(int index) { return instance.getKeyInfo(index); } /** *
     * KeyInfos in the KeysetInfo.
     * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
     * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ public Builder setKeyInfo( int index, com.google.crypto.tink.proto.KeysetInfo.KeyInfo value) { copyOnWrite(); instance.setKeyInfo(index, value); return this; } /** *
     * KeyInfos in the KeysetInfo.
     * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
     * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ public Builder setKeyInfo( int index, com.google.crypto.tink.proto.KeysetInfo.KeyInfo.Builder builderForValue) { copyOnWrite(); instance.setKeyInfo(index, builderForValue.build()); return this; } /** *
     * KeyInfos in the KeysetInfo.
     * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
     * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ public Builder addKeyInfo(com.google.crypto.tink.proto.KeysetInfo.KeyInfo value) { copyOnWrite(); instance.addKeyInfo(value); return this; } /** *
     * KeyInfos in the KeysetInfo.
     * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
     * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ public Builder addKeyInfo( int index, com.google.crypto.tink.proto.KeysetInfo.KeyInfo value) { copyOnWrite(); instance.addKeyInfo(index, value); return this; } /** *
     * KeyInfos in the KeysetInfo.
     * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
     * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ public Builder addKeyInfo( com.google.crypto.tink.proto.KeysetInfo.KeyInfo.Builder builderForValue) { copyOnWrite(); instance.addKeyInfo(builderForValue.build()); return this; } /** *
     * KeyInfos in the KeysetInfo.
     * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
     * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ public Builder addKeyInfo( int index, com.google.crypto.tink.proto.KeysetInfo.KeyInfo.Builder builderForValue) { copyOnWrite(); instance.addKeyInfo(index, builderForValue.build()); return this; } /** *
     * KeyInfos in the KeysetInfo.
     * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
     * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ public Builder addAllKeyInfo( java.lang.Iterable values) { copyOnWrite(); instance.addAllKeyInfo(values); return this; } /** *
     * KeyInfos in the KeysetInfo.
     * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
     * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ public Builder clearKeyInfo() { copyOnWrite(); instance.clearKeyInfo(); return this; } /** *
     * KeyInfos in the KeysetInfo.
     * Each KeyInfo is corresponding to a Key in the corresponding Keyset.
     * 
* * repeated .google.crypto.tink.KeysetInfo.KeyInfo key_info = 2; */ public Builder removeKeyInfo(int index) { copyOnWrite(); instance.removeKeyInfo(index); return this; } // @@protoc_insertion_point(builder_scope:google.crypto.tink.KeysetInfo) } @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.KeysetInfo(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "primaryKeyId_", "keyInfo_", com.google.crypto.tink.proto.KeysetInfo.KeyInfo.class, }; java.lang.String info = "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0001\u0000\u0001\u000b\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.KeysetInfo.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.KeysetInfo) private static final com.google.crypto.tink.proto.KeysetInfo DEFAULT_INSTANCE; static { KeysetInfo defaultInstance = new KeysetInfo(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( KeysetInfo.class, defaultInstance); } public static com.google.crypto.tink.proto.KeysetInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy