public static final class TrezorMessage.CipherKeyValue.Builder extends com.google.protobuf.GeneratedMessage.Builder<TrezorMessage.CipherKeyValue.Builder> implements TrezorMessage.CipherKeyValueOrBuilder
CipherKeyValue
Request: Ask device to encrypt or decrypt value of given key @next CipheredKeyValue @next Failure
Modifier and Type | Method and Description |
---|---|
TrezorMessage.CipherKeyValue.Builder |
addAddressN(int value)
repeated uint32 address_n = 1; |
TrezorMessage.CipherKeyValue.Builder |
addAllAddressN(Iterable<? extends Integer> values)
repeated uint32 address_n = 1; |
TrezorMessage.CipherKeyValue |
build() |
TrezorMessage.CipherKeyValue |
buildPartial() |
TrezorMessage.CipherKeyValue.Builder |
clear() |
TrezorMessage.CipherKeyValue.Builder |
clearAddressN()
repeated uint32 address_n = 1; |
TrezorMessage.CipherKeyValue.Builder |
clearAskOnDecrypt()
optional bool ask_on_decrypt = 6; |
TrezorMessage.CipherKeyValue.Builder |
clearAskOnEncrypt()
optional bool ask_on_encrypt = 5; |
TrezorMessage.CipherKeyValue.Builder |
clearEncrypt()
optional bool encrypt = 4; |
TrezorMessage.CipherKeyValue.Builder |
clearIv()
optional bytes iv = 7; |
TrezorMessage.CipherKeyValue.Builder |
clearKey()
optional string key = 2; |
TrezorMessage.CipherKeyValue.Builder |
clearValue()
optional bytes value = 3; |
TrezorMessage.CipherKeyValue.Builder |
clone() |
int |
getAddressN(int index)
repeated uint32 address_n = 1; |
int |
getAddressNCount()
repeated uint32 address_n = 1; |
List<Integer> |
getAddressNList()
repeated uint32 address_n = 1; |
boolean |
getAskOnDecrypt()
optional bool ask_on_decrypt = 6; |
boolean |
getAskOnEncrypt()
optional bool ask_on_encrypt = 5; |
TrezorMessage.CipherKeyValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEncrypt()
optional bool encrypt = 4; |
com.google.protobuf.ByteString |
getIv()
optional bytes iv = 7; |
String |
getKey()
optional string key = 2; |
com.google.protobuf.ByteString |
getKeyBytes()
optional string key = 2; |
com.google.protobuf.ByteString |
getValue()
optional bytes value = 3; |
boolean |
hasAskOnDecrypt()
optional bool ask_on_decrypt = 6; |
boolean |
hasAskOnEncrypt()
optional bool ask_on_encrypt = 5; |
boolean |
hasEncrypt()
optional bool encrypt = 4; |
boolean |
hasIv()
optional bytes iv = 7; |
boolean |
hasKey()
optional string key = 2; |
boolean |
hasValue()
optional bytes value = 3; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TrezorMessage.CipherKeyValue.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TrezorMessage.CipherKeyValue.Builder |
mergeFrom(com.google.protobuf.Message other) |
TrezorMessage.CipherKeyValue.Builder |
mergeFrom(TrezorMessage.CipherKeyValue other) |
TrezorMessage.CipherKeyValue.Builder |
setAddressN(int index,
int value)
repeated uint32 address_n = 1; |
TrezorMessage.CipherKeyValue.Builder |
setAskOnDecrypt(boolean value)
optional bool ask_on_decrypt = 6; |
TrezorMessage.CipherKeyValue.Builder |
setAskOnEncrypt(boolean value)
optional bool ask_on_encrypt = 5; |
TrezorMessage.CipherKeyValue.Builder |
setEncrypt(boolean value)
optional bool encrypt = 4; |
TrezorMessage.CipherKeyValue.Builder |
setIv(com.google.protobuf.ByteString value)
optional bytes iv = 7; |
TrezorMessage.CipherKeyValue.Builder |
setKey(String value)
optional string key = 2; |
TrezorMessage.CipherKeyValue.Builder |
setKeyBytes(com.google.protobuf.ByteString value)
optional string key = 2; |
TrezorMessage.CipherKeyValue.Builder |
setValue(com.google.protobuf.ByteString value)
optional bytes value = 3; |
addRepeatedField, clearField, clearOneof, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<TrezorMessage.CipherKeyValue.Builder>
public TrezorMessage.CipherKeyValue.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<TrezorMessage.CipherKeyValue.Builder>
public TrezorMessage.CipherKeyValue.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<TrezorMessage.CipherKeyValue.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<TrezorMessage.CipherKeyValue.Builder>
public TrezorMessage.CipherKeyValue getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TrezorMessage.CipherKeyValue build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TrezorMessage.CipherKeyValue buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TrezorMessage.CipherKeyValue.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TrezorMessage.CipherKeyValue.Builder>
public TrezorMessage.CipherKeyValue.Builder mergeFrom(TrezorMessage.CipherKeyValue other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<TrezorMessage.CipherKeyValue.Builder>
public TrezorMessage.CipherKeyValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TrezorMessage.CipherKeyValue.Builder>
IOException
public List<Integer> getAddressNList()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressNList
in interface TrezorMessage.CipherKeyValueOrBuilder
public int getAddressNCount()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressNCount
in interface TrezorMessage.CipherKeyValueOrBuilder
public int getAddressN(int index)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressN
in interface TrezorMessage.CipherKeyValueOrBuilder
public TrezorMessage.CipherKeyValue.Builder setAddressN(int index, int value)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
public TrezorMessage.CipherKeyValue.Builder addAddressN(int value)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
public TrezorMessage.CipherKeyValue.Builder addAllAddressN(Iterable<? extends Integer> values)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
public TrezorMessage.CipherKeyValue.Builder clearAddressN()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
public boolean hasKey()
optional string key = 2;
key component of key:value
hasKey
in interface TrezorMessage.CipherKeyValueOrBuilder
public String getKey()
optional string key = 2;
key component of key:value
getKey
in interface TrezorMessage.CipherKeyValueOrBuilder
public com.google.protobuf.ByteString getKeyBytes()
optional string key = 2;
key component of key:value
getKeyBytes
in interface TrezorMessage.CipherKeyValueOrBuilder
public TrezorMessage.CipherKeyValue.Builder setKey(String value)
optional string key = 2;
key component of key:value
public TrezorMessage.CipherKeyValue.Builder clearKey()
optional string key = 2;
key component of key:value
public TrezorMessage.CipherKeyValue.Builder setKeyBytes(com.google.protobuf.ByteString value)
optional string key = 2;
key component of key:value
public boolean hasValue()
optional bytes value = 3;
value component of key:value
hasValue
in interface TrezorMessage.CipherKeyValueOrBuilder
public com.google.protobuf.ByteString getValue()
optional bytes value = 3;
value component of key:value
getValue
in interface TrezorMessage.CipherKeyValueOrBuilder
public TrezorMessage.CipherKeyValue.Builder setValue(com.google.protobuf.ByteString value)
optional bytes value = 3;
value component of key:value
public TrezorMessage.CipherKeyValue.Builder clearValue()
optional bytes value = 3;
value component of key:value
public boolean hasEncrypt()
optional bool encrypt = 4;
are we encrypting (True) or decrypting (False)?
hasEncrypt
in interface TrezorMessage.CipherKeyValueOrBuilder
public boolean getEncrypt()
optional bool encrypt = 4;
are we encrypting (True) or decrypting (False)?
getEncrypt
in interface TrezorMessage.CipherKeyValueOrBuilder
public TrezorMessage.CipherKeyValue.Builder setEncrypt(boolean value)
optional bool encrypt = 4;
are we encrypting (True) or decrypting (False)?
public TrezorMessage.CipherKeyValue.Builder clearEncrypt()
optional bool encrypt = 4;
are we encrypting (True) or decrypting (False)?
public boolean hasAskOnEncrypt()
optional bool ask_on_encrypt = 5;
should we ask on encrypt operation?
hasAskOnEncrypt
in interface TrezorMessage.CipherKeyValueOrBuilder
public boolean getAskOnEncrypt()
optional bool ask_on_encrypt = 5;
should we ask on encrypt operation?
getAskOnEncrypt
in interface TrezorMessage.CipherKeyValueOrBuilder
public TrezorMessage.CipherKeyValue.Builder setAskOnEncrypt(boolean value)
optional bool ask_on_encrypt = 5;
should we ask on encrypt operation?
public TrezorMessage.CipherKeyValue.Builder clearAskOnEncrypt()
optional bool ask_on_encrypt = 5;
should we ask on encrypt operation?
public boolean hasAskOnDecrypt()
optional bool ask_on_decrypt = 6;
should we ask on decrypt operation?
hasAskOnDecrypt
in interface TrezorMessage.CipherKeyValueOrBuilder
public boolean getAskOnDecrypt()
optional bool ask_on_decrypt = 6;
should we ask on decrypt operation?
getAskOnDecrypt
in interface TrezorMessage.CipherKeyValueOrBuilder
public TrezorMessage.CipherKeyValue.Builder setAskOnDecrypt(boolean value)
optional bool ask_on_decrypt = 6;
should we ask on decrypt operation?
public TrezorMessage.CipherKeyValue.Builder clearAskOnDecrypt()
optional bool ask_on_decrypt = 6;
should we ask on decrypt operation?
public boolean hasIv()
optional bytes iv = 7;
initialization vector (will be computed if not set)
hasIv
in interface TrezorMessage.CipherKeyValueOrBuilder
public com.google.protobuf.ByteString getIv()
optional bytes iv = 7;
initialization vector (will be computed if not set)
getIv
in interface TrezorMessage.CipherKeyValueOrBuilder
public TrezorMessage.CipherKeyValue.Builder setIv(com.google.protobuf.ByteString value)
optional bytes iv = 7;
initialization vector (will be computed if not set)
public TrezorMessage.CipherKeyValue.Builder clearIv()
optional bytes iv = 7;
initialization vector (will be computed if not set)
Copyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.