public static final class KeyData.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<KeyData,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.Builder |
clearKeyMaterialType()
Required.
|
KeyData.Builder |
clearTypeUrl()
Required.
|
KeyData.Builder |
clearValue()
Required.
|
KeyData.KeyMaterialType |
getKeyMaterialType()
Required.
|
int |
getKeyMaterialTypeValue()
Required.
|
String |
getTypeUrl()
Required.
|
com.google.protobuf.ByteString |
getTypeUrlBytes()
Required.
|
com.google.protobuf.ByteString |
getValue()
Required.
|
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.
|
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionpublic 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 [ctype = STRING_PIECE];getValue in interface KeyDataOrBuilderpublic KeyData.Builder setValue(com.google.protobuf.ByteString value)
Required. Contains specific serialized *Key proto
bytes value = 2 [ctype = STRING_PIECE];value - The value to set.public KeyData.Builder clearValue()
Required. Contains specific serialized *Key proto
bytes value = 2 [ctype = STRING_PIECE];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 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 enum numeric value on the wire for keyMaterialType to set.public KeyData.Builder clearKeyMaterialType()
Required.
.google.crypto.tink.KeyData.KeyMaterialType key_material_type = 3;