com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-jdk7 Show documentation
Show all versions of sdk-jdk7 Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: crypto_add_live_hash.proto
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* At consensus, attaches the given livehash to the given account. The hash can be deleted by the
* key controlling the account, or by any of the keys associated to the livehash. Hence livehashes
* provide a revocation service for their implied credentials; for example, when an authority grants
* a credential to the account, the account owner will cosign with the authority (or authorities) to
* attach a hash of the credential to the account---hence proving the grant. If the credential is
* revoked, then any of the authorities may delete it (or the account owner). In this way, the
* livehash mechanism acts as a revocation service. An account cannot have two identical livehashes
* associated. To modify the list of keys in a livehash, the livehash should first be deleted, then
* recreated with a new list of keys.
*
*
* Protobuf type {@code proto.CryptoAddLiveHashTransactionBody}
*/
public final class CryptoAddLiveHashTransactionBody extends
com.google.protobuf.GeneratedMessageLite<
CryptoAddLiveHashTransactionBody, CryptoAddLiveHashTransactionBody.Builder> implements
// @@protoc_insertion_point(message_implements:proto.CryptoAddLiveHashTransactionBody)
CryptoAddLiveHashTransactionBodyOrBuilder {
private CryptoAddLiveHashTransactionBody() {
}
public static final int LIVEHASH_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.LiveHash liveHash_;
/**
*
**
* A hash of some credential or certificate, along with the keys of the entities that asserted it validity
*
*
* .proto.LiveHash liveHash = 3;
*/
@java.lang.Override
public boolean hasLiveHash() {
return liveHash_ != null;
}
/**
*
**
* A hash of some credential or certificate, along with the keys of the entities that asserted it validity
*
*
* .proto.LiveHash liveHash = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.LiveHash getLiveHash() {
return liveHash_ == null ? com.hedera.hashgraph.sdk.proto.LiveHash.getDefaultInstance() : liveHash_;
}
/**
*
**
* A hash of some credential or certificate, along with the keys of the entities that asserted it validity
*
*
* .proto.LiveHash liveHash = 3;
*/
private void setLiveHash(com.hedera.hashgraph.sdk.proto.LiveHash value) {
value.getClass();
liveHash_ = value;
}
/**
*
**
* A hash of some credential or certificate, along with the keys of the entities that asserted it validity
*
*
* .proto.LiveHash liveHash = 3;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeLiveHash(com.hedera.hashgraph.sdk.proto.LiveHash value) {
value.getClass();
if (liveHash_ != null &&
liveHash_ != com.hedera.hashgraph.sdk.proto.LiveHash.getDefaultInstance()) {
liveHash_ =
com.hedera.hashgraph.sdk.proto.LiveHash.newBuilder(liveHash_).mergeFrom(value).buildPartial();
} else {
liveHash_ = value;
}
}
/**
*
**
* A hash of some credential or certificate, along with the keys of the entities that asserted it validity
*
*
* .proto.LiveHash liveHash = 3;
*/
private void clearLiveHash() { liveHash_ = null;
}
public static com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody 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.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody 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.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody 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.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody 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.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody 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.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* At consensus, attaches the given livehash to the given account. The hash can be deleted by the
* key controlling the account, or by any of the keys associated to the livehash. Hence livehashes
* provide a revocation service for their implied credentials; for example, when an authority grants
* a credential to the account, the account owner will cosign with the authority (or authorities) to
* attach a hash of the credential to the account---hence proving the grant. If the credential is
* revoked, then any of the authorities may delete it (or the account owner). In this way, the
* livehash mechanism acts as a revocation service. An account cannot have two identical livehashes
* associated. To modify the list of keys in a livehash, the livehash should first be deleted, then
* recreated with a new list of keys.
*
*
* Protobuf type {@code proto.CryptoAddLiveHashTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.CryptoAddLiveHashTransactionBody)
com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBodyOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* A hash of some credential or certificate, along with the keys of the entities that asserted it validity
*
*
* .proto.LiveHash liveHash = 3;
*/
@java.lang.Override
public boolean hasLiveHash() {
return instance.hasLiveHash();
}
/**
*
**
* A hash of some credential or certificate, along with the keys of the entities that asserted it validity
*
*
* .proto.LiveHash liveHash = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.LiveHash getLiveHash() {
return instance.getLiveHash();
}
/**
*
**
* A hash of some credential or certificate, along with the keys of the entities that asserted it validity
*
*
* .proto.LiveHash liveHash = 3;
*/
public Builder setLiveHash(com.hedera.hashgraph.sdk.proto.LiveHash value) {
copyOnWrite();
instance.setLiveHash(value);
return this;
}
/**
*
**
* A hash of some credential or certificate, along with the keys of the entities that asserted it validity
*
*
* .proto.LiveHash liveHash = 3;
*/
public Builder setLiveHash(
com.hedera.hashgraph.sdk.proto.LiveHash.Builder builderForValue) {
copyOnWrite();
instance.setLiveHash(builderForValue.build());
return this;
}
/**
*
**
* A hash of some credential or certificate, along with the keys of the entities that asserted it validity
*
*
* .proto.LiveHash liveHash = 3;
*/
public Builder mergeLiveHash(com.hedera.hashgraph.sdk.proto.LiveHash value) {
copyOnWrite();
instance.mergeLiveHash(value);
return this;
}
/**
*
**
* A hash of some credential or certificate, along with the keys of the entities that asserted it validity
*
*
* .proto.LiveHash liveHash = 3;
*/
public Builder clearLiveHash() { copyOnWrite();
instance.clearLiveHash();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.CryptoAddLiveHashTransactionBody)
}
@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.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"liveHash_",
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0003\u0003\u0001\u0000\u0000\u0000\u0003\t";
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.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody.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:proto.CryptoAddLiveHashTransactionBody)
private static final com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody DEFAULT_INSTANCE;
static {
CryptoAddLiveHashTransactionBody defaultInstance = new CryptoAddLiveHashTransactionBody();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
CryptoAddLiveHashTransactionBody.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody 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