public static final class KeyData.Builder extends com.google.protobuf.GeneratedMessage.Builder<KeyData.Builder> implements KeyDataOrBuilder
The actual *Key-proto is wrapped in a KeyData message, which in addition to this serialized proto contains also type_url identifying the definition of *Key-proto (as in KeyFormat-message), and some extra metadata about the type key material.Protobuf type
google.crypto.tink.KeyData| Modifier and Type | Method and Description |
|---|---|
KeyData |
build() |
KeyData |
buildPartial() |
KeyData.Builder |
clear() |
KeyData.Builder |
clearKeyMaterialType()
Required.
|
KeyData.Builder |
clearTypeUrl()
Required.
|
KeyData.Builder |
clearValue()
Required.
|
KeyData |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
KeyData.KeyMaterialType |
getKeyMaterialType()
Required.
|
int |
getKeyMaterialTypeValue()
Required.
|
String |
getTypeUrl()
Required.
|
com.google.protobuf.ByteString |
getTypeUrlBytes()
Required.
|
com.google.protobuf.ByteString |
getValue()
Required.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
KeyData.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
KeyData.Builder |
mergeFrom(KeyData other) |
KeyData.Builder |
mergeFrom(com.google.protobuf.Message other) |
KeyData.Builder |
setKeyMaterialType(KeyData.KeyMaterialType value)
Required.
|
KeyData.Builder |
setKeyMaterialTypeValue(int value)
Required.
|
KeyData.Builder |
setTypeUrl(String value)
Required.
|
KeyData.Builder |
setTypeUrlBytes(com.google.protobuf.ByteString value)
Required.
|
KeyData.Builder |
setValue(com.google.protobuf.ByteString value)
Required.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<KeyData.Builder>public KeyData.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<KeyData.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<KeyData.Builder>public KeyData getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic KeyData build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic KeyData buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic KeyData.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeyData.Builder>public KeyData.Builder mergeFrom(KeyData other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<KeyData.Builder>public KeyData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeyData.Builder>IOExceptionpublic String getTypeUrl()
Required.
string type_url = 1;getTypeUrl in interface KeyDataOrBuilderpublic com.google.protobuf.ByteString getTypeUrlBytes()
Required.
string type_url = 1;getTypeUrlBytes in interface KeyDataOrBuilderpublic KeyData.Builder setTypeUrl(String value)
Required.
string type_url = 1;value - The typeUrl to set.public KeyData.Builder clearTypeUrl()
Required.
string type_url = 1;public KeyData.Builder setTypeUrlBytes(com.google.protobuf.ByteString value)
Required.
string type_url = 1;value - The bytes for typeUrl to set.public com.google.protobuf.ByteString getValue()
Required. Contains specific serialized *Key proto
bytes value = 2;getValue in interface KeyDataOrBuilderpublic KeyData.Builder setValue(com.google.protobuf.ByteString value)
Required. Contains specific serialized *Key proto
bytes value = 2;value - The value to set.public KeyData.Builder clearValue()
Required. Contains specific serialized *Key proto
bytes value = 2;public int getKeyMaterialTypeValue()
Required.
.google.crypto.tink.KeyData.KeyMaterialType key_material_type = 3;getKeyMaterialTypeValue in interface KeyDataOrBuilderpublic KeyData.Builder setKeyMaterialTypeValue(int value)
Required.
.google.crypto.tink.KeyData.KeyMaterialType key_material_type = 3;value - The enum numeric value on the wire for keyMaterialType to set.public KeyData.KeyMaterialType getKeyMaterialType()
Required.
.google.crypto.tink.KeyData.KeyMaterialType key_material_type = 3;getKeyMaterialType in interface KeyDataOrBuilderpublic KeyData.Builder setKeyMaterialType(KeyData.KeyMaterialType value)
Required.
.google.crypto.tink.KeyData.KeyMaterialType key_material_type = 3;value - The keyMaterialType to set.public KeyData.Builder clearKeyMaterialType()
Required.
.google.crypto.tink.KeyData.KeyMaterialType key_material_type = 3;