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

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

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

package com.google.crypto.tink.proto;

/**
 * Protobuf type {@code google.crypto.tink.KeyTemplate}
 */
public  final class KeyTemplate extends
    com.google.protobuf.GeneratedMessageLite<
        KeyTemplate, KeyTemplate.Builder> implements
    // @@protoc_insertion_point(message_implements:google.crypto.tink.KeyTemplate)
    KeyTemplateOrBuilder {
  private KeyTemplate() {
    typeUrl_ = "";
    value_ = com.google.protobuf.ByteString.EMPTY;
  }
  public static final int TYPE_URL_FIELD_NUMBER = 1;
  private java.lang.String typeUrl_;
  /**
   * 
   * Required. The type_url of the key type in format
   * type.googleapis.com/packagename.messagename -- see above for details.
   * This is typically the protobuf type URL of the *Key proto. In particular,
   * this is different of the protobuf type URL of the *KeyFormat proto.
   * 
* * string type_url = 1; * @return The typeUrl. */ @java.lang.Override public java.lang.String getTypeUrl() { return typeUrl_; } /** *
   * Required. The type_url of the key type in format
   * type.googleapis.com/packagename.messagename -- see above for details.
   * This is typically the protobuf type URL of the *Key proto. In particular,
   * this is different of the protobuf type URL of the *KeyFormat proto.
   * 
* * 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_); } /** *
   * Required. The type_url of the key type in format
   * type.googleapis.com/packagename.messagename -- see above for details.
   * This is typically the protobuf type URL of the *Key proto. In particular,
   * this is different of the protobuf type URL of the *KeyFormat proto.
   * 
* * 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; } /** *
   * Required. The type_url of the key type in format
   * type.googleapis.com/packagename.messagename -- see above for details.
   * This is typically the protobuf type URL of the *Key proto. In particular,
   * this is different of the protobuf type URL of the *KeyFormat proto.
   * 
* * string type_url = 1; */ private void clearTypeUrl() { typeUrl_ = getDefaultInstance().getTypeUrl(); } /** *
   * Required. The type_url of the key type in format
   * type.googleapis.com/packagename.messagename -- see above for details.
   * This is typically the protobuf type URL of the *Key proto. In particular,
   * this is different of the protobuf type URL of the *KeyFormat proto.
   * 
* * 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 VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; /** *
   * Required. The serialized *KeyFormat proto.
   * 
* * bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } /** *
   * Required. The serialized *KeyFormat proto.
   * 
* * bytes value = 2; * @param value The value to set. */ private void setValue(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); value_ = value; } /** *
   * Required. The serialized *KeyFormat proto.
   * 
* * bytes value = 2; */ private void clearValue() { value_ = getDefaultInstance().getValue(); } public static final int OUTPUT_PREFIX_TYPE_FIELD_NUMBER = 3; private int outputPrefixType_; /** *
   * Required. The type of prefix used when computing some primitives to
   * identify the ciphertext/signature, etc.
   * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 3; * @return The enum numeric value on the wire for outputPrefixType. */ @java.lang.Override public int getOutputPrefixTypeValue() { return outputPrefixType_; } /** *
   * Required. The type of prefix used when computing some primitives to
   * identify the ciphertext/signature, etc.
   * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 3; * @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; } /** *
   * Required. The type of prefix used when computing some primitives to
   * identify the ciphertext/signature, etc.
   * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 3; * @param value The enum numeric value on the wire for outputPrefixType to set. */ private void setOutputPrefixTypeValue(int value) { outputPrefixType_ = value; } /** *
   * Required. The type of prefix used when computing some primitives to
   * identify the ciphertext/signature, etc.
   * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 3; * @param value The outputPrefixType to set. */ private void setOutputPrefixType(com.google.crypto.tink.proto.OutputPrefixType value) { outputPrefixType_ = value.getNumber(); } /** *
   * Required. The type of prefix used when computing some primitives to
   * identify the ciphertext/signature, etc.
   * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 3; */ private void clearOutputPrefixType() { outputPrefixType_ = 0; } public static com.google.crypto.tink.proto.KeyTemplate 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.KeyTemplate 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.KeyTemplate 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.KeyTemplate 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.KeyTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.google.crypto.tink.proto.KeyTemplate 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.KeyTemplate 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.KeyTemplate 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.KeyTemplate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.google.crypto.tink.proto.KeyTemplate 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.KeyTemplate 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.KeyTemplate 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.KeyTemplate prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code google.crypto.tink.KeyTemplate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.crypto.tink.proto.KeyTemplate, Builder> implements // @@protoc_insertion_point(builder_implements:google.crypto.tink.KeyTemplate) com.google.crypto.tink.proto.KeyTemplateOrBuilder { // Construct using com.google.crypto.tink.proto.KeyTemplate.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     * Required. The type_url of the key type in format
     * type.googleapis.com/packagename.messagename -- see above for details.
     * This is typically the protobuf type URL of the *Key proto. In particular,
     * this is different of the protobuf type URL of the *KeyFormat proto.
     * 
* * string type_url = 1; * @return The typeUrl. */ @java.lang.Override public java.lang.String getTypeUrl() { return instance.getTypeUrl(); } /** *
     * Required. The type_url of the key type in format
     * type.googleapis.com/packagename.messagename -- see above for details.
     * This is typically the protobuf type URL of the *Key proto. In particular,
     * this is different of the protobuf type URL of the *KeyFormat proto.
     * 
* * string type_url = 1; * @return The bytes for typeUrl. */ @java.lang.Override public com.google.protobuf.ByteString getTypeUrlBytes() { return instance.getTypeUrlBytes(); } /** *
     * Required. The type_url of the key type in format
     * type.googleapis.com/packagename.messagename -- see above for details.
     * This is typically the protobuf type URL of the *Key proto. In particular,
     * this is different of the protobuf type URL of the *KeyFormat proto.
     * 
* * 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; } /** *
     * Required. The type_url of the key type in format
     * type.googleapis.com/packagename.messagename -- see above for details.
     * This is typically the protobuf type URL of the *Key proto. In particular,
     * this is different of the protobuf type URL of the *KeyFormat proto.
     * 
* * string type_url = 1; * @return This builder for chaining. */ public Builder clearTypeUrl() { copyOnWrite(); instance.clearTypeUrl(); return this; } /** *
     * Required. The type_url of the key type in format
     * type.googleapis.com/packagename.messagename -- see above for details.
     * This is typically the protobuf type URL of the *Key proto. In particular,
     * this is different of the protobuf type URL of the *KeyFormat proto.
     * 
* * 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; } /** *
     * Required. The serialized *KeyFormat proto.
     * 
* * bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return instance.getValue(); } /** *
     * Required. The serialized *KeyFormat proto.
     * 
* * bytes value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setValue(value); return this; } /** *
     * Required. The serialized *KeyFormat proto.
     * 
* * bytes value = 2; * @return This builder for chaining. */ public Builder clearValue() { copyOnWrite(); instance.clearValue(); return this; } /** *
     * Required. The type of prefix used when computing some primitives to
     * identify the ciphertext/signature, etc.
     * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 3; * @return The enum numeric value on the wire for outputPrefixType. */ @java.lang.Override public int getOutputPrefixTypeValue() { return instance.getOutputPrefixTypeValue(); } /** *
     * Required. The type of prefix used when computing some primitives to
     * identify the ciphertext/signature, etc.
     * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 3; * @param value The outputPrefixType to set. * @return This builder for chaining. */ public Builder setOutputPrefixTypeValue(int value) { copyOnWrite(); instance.setOutputPrefixTypeValue(value); return this; } /** *
     * Required. The type of prefix used when computing some primitives to
     * identify the ciphertext/signature, etc.
     * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 3; * @return The outputPrefixType. */ @java.lang.Override public com.google.crypto.tink.proto.OutputPrefixType getOutputPrefixType() { return instance.getOutputPrefixType(); } /** *
     * Required. The type of prefix used when computing some primitives to
     * identify the ciphertext/signature, etc.
     * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 3; * @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; } /** *
     * Required. The type of prefix used when computing some primitives to
     * identify the ciphertext/signature, etc.
     * 
* * .google.crypto.tink.OutputPrefixType output_prefix_type = 3; * @return This builder for chaining. */ public Builder clearOutputPrefixType() { copyOnWrite(); instance.clearOutputPrefixType(); return this; } // @@protoc_insertion_point(builder_scope:google.crypto.tink.KeyTemplate) } @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.KeyTemplate(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "typeUrl_", "value_", "outputPrefixType_", }; java.lang.String info = "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0208\u0002\n" + "\u0003\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.KeyTemplate.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.KeyTemplate) private static final com.google.crypto.tink.proto.KeyTemplate DEFAULT_INSTANCE; static { KeyTemplate defaultInstance = new KeyTemplate(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( KeyTemplate.class, defaultInstance); } public static com.google.crypto.tink.proto.KeyTemplate 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