public final class KeyTemplate extends com.google.protobuf.GeneratedMessageLite<KeyTemplate,KeyTemplate.Builder> implements KeyTemplateOrBuilder
google.crypto.tink.KeyTemplate| Modifier and Type | Class and Description |
|---|---|
static class |
KeyTemplate.Builder
Protobuf type
google.crypto.tink.KeyTemplate |
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MergeFromVisitor, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm, com.google.protobuf.GeneratedMessageLite.Visitor| Modifier and Type | Field and Description |
|---|---|
static int |
OUTPUT_PREFIX_TYPE_FIELD_NUMBER |
static int |
TYPE_URL_FIELD_NUMBER |
static int |
VALUE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
Object arg0,
Object arg1) |
static KeyTemplate |
getDefaultInstance() |
OutputPrefixType |
getOutputPrefixType()
Optional.
|
int |
getOutputPrefixTypeValue()
Optional.
|
int |
getSerializedSize() |
String |
getTypeUrl()
Required.
|
com.google.protobuf.ByteString |
getTypeUrlBytes()
Required.
|
com.google.protobuf.ByteString |
getValue()
Optional.
|
static KeyTemplate.Builder |
newBuilder() |
static KeyTemplate.Builder |
newBuilder(KeyTemplate prototype) |
static KeyTemplate |
parseDelimitedFrom(InputStream input) |
static KeyTemplate |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyTemplate |
parseFrom(byte[] data) |
static KeyTemplate |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyTemplate |
parseFrom(com.google.protobuf.ByteString data) |
static KeyTemplate |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyTemplate |
parseFrom(com.google.protobuf.CodedInputStream input) |
static KeyTemplate |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyTemplate |
parseFrom(InputStream input) |
static KeyTemplate |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<KeyTemplate> |
parser() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, hashCode, isInitialized, isInitialized, makeImmutable, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, toBuilder, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int TYPE_URL_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
public static final int OUTPUT_PREFIX_TYPE_FIELD_NUMBER
public String getTypeUrl()
Required.
optional string type_url = 1;getTypeUrl in interface KeyTemplateOrBuilderpublic com.google.protobuf.ByteString getTypeUrlBytes()
Required.
optional string type_url = 1;getTypeUrlBytes in interface KeyTemplateOrBuilderpublic com.google.protobuf.ByteString getValue()
Optional. If missing, it means the key type doesn't require a *KeyFormat proto.
optional bytes value = 2;getValue in interface KeyTemplateOrBuilderpublic int getOutputPrefixTypeValue()
Optional. If missing, uses OutputPrefixType.TINK.
optional .google.crypto.tink.OutputPrefixType output_prefix_type = 3;getOutputPrefixTypeValue in interface KeyTemplateOrBuilderpublic OutputPrefixType getOutputPrefixType()
Optional. If missing, uses OutputPrefixType.TINK.
optional .google.crypto.tink.OutputPrefixType output_prefix_type = 3;getOutputPrefixType in interface KeyTemplateOrBuilderpublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLiteIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitepublic static KeyTemplate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeyTemplate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeyTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeyTemplate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeyTemplate parseFrom(InputStream input) throws IOException
IOExceptionpublic static KeyTemplate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static KeyTemplate parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static KeyTemplate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static KeyTemplate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static KeyTemplate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static KeyTemplate.Builder newBuilder()
public static KeyTemplate.Builder newBuilder(KeyTemplate prototype)
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
dynamicMethod in class com.google.protobuf.GeneratedMessageLite<KeyTemplate,KeyTemplate.Builder>public static KeyTemplate getDefaultInstance()
public static com.google.protobuf.Parser<KeyTemplate> parser()