All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.LiveHash Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: crypto_add_live_hash.proto

// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * A hash---presumably of some kind of credential or certificate---along with a list of keys, each
 * of which may be either a primitive or a threshold key. 
 * 
* * Protobuf type {@code proto.LiveHash} */ public final class LiveHash extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.LiveHash) LiveHashOrBuilder { private static final long serialVersionUID = 0L; // Use LiveHash.newBuilder() to construct. private LiveHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LiveHash() { hash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LiveHash(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.CryptoAddLiveHash.internal_static_proto_LiveHash_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.CryptoAddLiveHash.internal_static_proto_LiveHash_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.LiveHash.class, com.hedera.hashgraph.sdk.proto.LiveHash.Builder.class); } private int bitField0_; public static final int ACCOUNTID_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.AccountID accountId_; /** *
   **
   * The account to which the livehash is attached
   * 
* * .proto.AccountID accountId = 1; * @return Whether the accountId field is set. */ @java.lang.Override public boolean hasAccountId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The account to which the livehash is attached
   * 
* * .proto.AccountID accountId = 1; * @return The accountId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getAccountId() { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } /** *
   **
   * The account to which the livehash is attached
   * 
* * .proto.AccountID accountId = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIdOrBuilder() { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } public static final int HASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** *
   **
   * The SHA-384 hash of a credential or certificate
   * 
* * bytes hash = 2; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } public static final int KEYS_FIELD_NUMBER = 3; private com.hedera.hashgraph.sdk.proto.KeyList keys_; /** *
   **
   * A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.
   * 
* * .proto.KeyList keys = 3; * @return Whether the keys field is set. */ @java.lang.Override public boolean hasKeys() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.
   * 
* * .proto.KeyList keys = 3; * @return The keys. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyList getKeys() { return keys_ == null ? com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance() : keys_; } /** *
   **
   * A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.
   * 
* * .proto.KeyList keys = 3; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyListOrBuilder getKeysOrBuilder() { return keys_ == null ? com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance() : keys_; } public static final int DURATION_FIELD_NUMBER = 5; private com.hedera.hashgraph.sdk.proto.Duration duration_; /** *
   **
   * The duration for which the livehash will remain valid
   * 
* * .proto.Duration duration = 5; * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return ((bitField0_ & 0x00000004) != 0); } /** *
   **
   * The duration for which the livehash will remain valid
   * 
* * .proto.Duration duration = 5; * @return The duration. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Duration getDuration() { return duration_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : duration_; } /** *
   **
   * The duration for which the livehash will remain valid
   * 
* * .proto.Duration duration = 5; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.DurationOrBuilder getDurationOrBuilder() { return duration_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : duration_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getAccountId()); } if (!hash_.isEmpty()) { output.writeBytes(2, hash_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getKeys()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getDuration()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAccountId()); } if (!hash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, hash_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getKeys()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.hashgraph.sdk.proto.LiveHash)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.LiveHash other = (com.hedera.hashgraph.sdk.proto.LiveHash) obj; if (hasAccountId() != other.hasAccountId()) return false; if (hasAccountId()) { if (!getAccountId() .equals(other.getAccountId())) return false; } if (!getHash() .equals(other.getHash())) return false; if (hasKeys() != other.hasKeys()) return false; if (hasKeys()) { if (!getKeys() .equals(other.getKeys())) return false; } if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { if (!getDuration() .equals(other.getDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAccountId()) { hash = (37 * hash) + ACCOUNTID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); } hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); if (hasKeys()) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeys().hashCode(); } if (hasDuration()) { hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.LiveHash parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.LiveHash parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.LiveHash parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.LiveHash parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.LiveHash parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.LiveHash parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.LiveHash parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.LiveHash parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.LiveHash parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.LiveHash parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.LiveHash parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.LiveHash parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.LiveHash prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   **
   * A hash---presumably of some kind of credential or certificate---along with a list of keys, each
   * of which may be either a primitive or a threshold key. 
   * 
* * Protobuf type {@code proto.LiveHash} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.LiveHash) com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.CryptoAddLiveHash.internal_static_proto_LiveHash_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.CryptoAddLiveHash.internal_static_proto_LiveHash_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.LiveHash.class, com.hedera.hashgraph.sdk.proto.LiveHash.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.LiveHash.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAccountIdFieldBuilder(); getKeysFieldBuilder(); getDurationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; accountId_ = null; if (accountIdBuilder_ != null) { accountIdBuilder_.dispose(); accountIdBuilder_ = null; } hash_ = com.google.protobuf.ByteString.EMPTY; keys_ = null; if (keysBuilder_ != null) { keysBuilder_.dispose(); keysBuilder_ = null; } duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.CryptoAddLiveHash.internal_static_proto_LiveHash_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.LiveHash getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.LiveHash.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.LiveHash build() { com.hedera.hashgraph.sdk.proto.LiveHash result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.LiveHash buildPartial() { com.hedera.hashgraph.sdk.proto.LiveHash result = new com.hedera.hashgraph.sdk.proto.LiveHash(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.LiveHash result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.accountId_ = accountIdBuilder_ == null ? accountId_ : accountIdBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.hash_ = hash_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.keys_ = keysBuilder_ == null ? keys_ : keysBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hashgraph.sdk.proto.LiveHash) { return mergeFrom((com.hedera.hashgraph.sdk.proto.LiveHash)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.LiveHash other) { if (other == com.hedera.hashgraph.sdk.proto.LiveHash.getDefaultInstance()) return this; if (other.hasAccountId()) { mergeAccountId(other.getAccountId()); } if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { setHash(other.getHash()); } if (other.hasKeys()) { mergeKeys(other.getKeys()); } if (other.hasDuration()) { mergeDuration(other.getDuration()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getAccountIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { hash_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getKeysFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 42: { input.readMessage( getDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.hedera.hashgraph.sdk.proto.AccountID accountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> accountIdBuilder_; /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; * @return Whether the accountId field is set. */ public boolean hasAccountId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; * @return The accountId. */ public com.hedera.hashgraph.sdk.proto.AccountID getAccountId() { if (accountIdBuilder_ == null) { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } else { return accountIdBuilder_.getMessage(); } } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ public Builder setAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (accountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } accountId_ = value; } else { accountIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ public Builder setAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (accountIdBuilder_ == null) { accountId_ = builderForValue.build(); } else { accountIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ public Builder mergeAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (accountIdBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && accountId_ != null && accountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getAccountIdBuilder().mergeFrom(value); } else { accountId_ = value; } } else { accountIdBuilder_.mergeFrom(value); } if (accountId_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ public Builder clearAccountId() { bitField0_ = (bitField0_ & ~0x00000001); accountId_ = null; if (accountIdBuilder_ != null) { accountIdBuilder_.dispose(); accountIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAccountIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAccountIdFieldBuilder().getBuilder(); } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIdOrBuilder() { if (accountIdBuilder_ != null) { return accountIdBuilder_.getMessageOrBuilder(); } else { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getAccountIdFieldBuilder() { if (accountIdBuilder_ == null) { accountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getAccountId(), getParentForChildren(), isClean()); accountId_ = null; } return accountIdBuilder_; } private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * The SHA-384 hash of a credential or certificate
     * 
* * bytes hash = 2; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } /** *
     **
     * The SHA-384 hash of a credential or certificate
     * 
* * bytes hash = 2; * @param value The hash to set. * @return This builder for chaining. */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hash_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The SHA-384 hash of a credential or certificate
     * 
* * bytes hash = 2; * @return This builder for chaining. */ public Builder clearHash() { bitField0_ = (bitField0_ & ~0x00000002); hash_ = getDefaultInstance().getHash(); onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.KeyList keys_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.KeyList, com.hedera.hashgraph.sdk.proto.KeyList.Builder, com.hedera.hashgraph.sdk.proto.KeyListOrBuilder> keysBuilder_; /** *
     **
     * A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.
     * 
* * .proto.KeyList keys = 3; * @return Whether the keys field is set. */ public boolean hasKeys() { return ((bitField0_ & 0x00000004) != 0); } /** *
     **
     * A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.
     * 
* * .proto.KeyList keys = 3; * @return The keys. */ public com.hedera.hashgraph.sdk.proto.KeyList getKeys() { if (keysBuilder_ == null) { return keys_ == null ? com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance() : keys_; } else { return keysBuilder_.getMessage(); } } /** *
     **
     * A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.
     * 
* * .proto.KeyList keys = 3; */ public Builder setKeys(com.hedera.hashgraph.sdk.proto.KeyList value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keys_ = value; } else { keysBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.
     * 
* * .proto.KeyList keys = 3; */ public Builder setKeys( com.hedera.hashgraph.sdk.proto.KeyList.Builder builderForValue) { if (keysBuilder_ == null) { keys_ = builderForValue.build(); } else { keysBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.
     * 
* * .proto.KeyList keys = 3; */ public Builder mergeKeys(com.hedera.hashgraph.sdk.proto.KeyList value) { if (keysBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && keys_ != null && keys_ != com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance()) { getKeysBuilder().mergeFrom(value); } else { keys_ = value; } } else { keysBuilder_.mergeFrom(value); } if (keys_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     **
     * A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.
     * 
* * .proto.KeyList keys = 3; */ public Builder clearKeys() { bitField0_ = (bitField0_ & ~0x00000004); keys_ = null; if (keysBuilder_ != null) { keysBuilder_.dispose(); keysBuilder_ = null; } onChanged(); return this; } /** *
     **
     * A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.
     * 
* * .proto.KeyList keys = 3; */ public com.hedera.hashgraph.sdk.proto.KeyList.Builder getKeysBuilder() { bitField0_ |= 0x00000004; onChanged(); return getKeysFieldBuilder().getBuilder(); } /** *
     **
     * A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.
     * 
* * .proto.KeyList keys = 3; */ public com.hedera.hashgraph.sdk.proto.KeyListOrBuilder getKeysOrBuilder() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilder(); } else { return keys_ == null ? com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance() : keys_; } } /** *
     **
     * A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.
     * 
* * .proto.KeyList keys = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.KeyList, com.hedera.hashgraph.sdk.proto.KeyList.Builder, com.hedera.hashgraph.sdk.proto.KeyListOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { keysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.KeyList, com.hedera.hashgraph.sdk.proto.KeyList.Builder, com.hedera.hashgraph.sdk.proto.KeyListOrBuilder>( getKeys(), getParentForChildren(), isClean()); keys_ = null; } return keysBuilder_; } private com.hedera.hashgraph.sdk.proto.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder> durationBuilder_; /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000008) != 0); } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; * @return The duration. */ public com.hedera.hashgraph.sdk.proto.Duration getDuration() { if (durationBuilder_ == null) { return duration_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : duration_; } else { return durationBuilder_.getMessage(); } } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ public Builder setDuration(com.hedera.hashgraph.sdk.proto.Duration value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } duration_ = value; } else { durationBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ public Builder setDuration( com.hedera.hashgraph.sdk.proto.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { durationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ public Builder mergeDuration(com.hedera.hashgraph.sdk.proto.Duration value) { if (durationBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && duration_ != null && duration_ != com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; } } else { durationBuilder_.mergeFrom(value); } if (duration_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ public Builder clearDuration() { bitField0_ = (bitField0_ & ~0x00000008); duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ public com.hedera.hashgraph.sdk.proto.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDurationFieldBuilder().getBuilder(); } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ public com.hedera.hashgraph.sdk.proto.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { return duration_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : duration_; } } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder>( getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.LiveHash) } // @@protoc_insertion_point(class_scope:proto.LiveHash) private static final com.hedera.hashgraph.sdk.proto.LiveHash DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.LiveHash(); } public static com.hedera.hashgraph.sdk.proto.LiveHash getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LiveHash parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.LiveHash getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy