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

com.hederahashgraph.api.proto.java.LiveHash Maven / Gradle / Ivy

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

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LiveHash( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; if (accountId_ != null) { subBuilder = accountId_.toBuilder(); } accountId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(accountId_); accountId_ = subBuilder.buildPartial(); } break; } case 18: { hash_ = input.readBytes(); break; } case 26: { com.hederahashgraph.api.proto.java.KeyList.Builder subBuilder = null; if (keys_ != null) { subBuilder = keys_.toBuilder(); } keys_ = input.readMessage(com.hederahashgraph.api.proto.java.KeyList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(keys_); keys_ = subBuilder.buildPartial(); } break; } case 42: { com.hederahashgraph.api.proto.java.Duration.Builder subBuilder = null; if (duration_ != null) { subBuilder = duration_.toBuilder(); } duration_ = input.readMessage(com.hederahashgraph.api.proto.java.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(duration_); duration_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.CryptoAddLiveHash.internal_static_proto_LiveHash_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.CryptoAddLiveHash.internal_static_proto_LiveHash_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.LiveHash.class, com.hederahashgraph.api.proto.java.LiveHash.Builder.class); } public static final int ACCOUNTID_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.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 accountId_ != null; } /** *
   **
   * The account to which the livehash is attached
   * 
* * .proto.AccountID accountId = 1; * @return The accountId. */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountID getAccountId() { return accountId_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountId_; } /** *
   **
   * The account to which the livehash is attached
   * 
* * .proto.AccountID accountId = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIdOrBuilder() { return getAccountId(); } public static final int HASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString hash_; /** *
   **
   * 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.hederahashgraph.api.proto.java.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 keys_ != null; } /** *
   **
   * 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.hederahashgraph.api.proto.java.KeyList getKeys() { return keys_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.KeyListOrBuilder getKeysOrBuilder() { return getKeys(); } public static final int DURATION_FIELD_NUMBER = 5; private com.hederahashgraph.api.proto.java.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 duration_ != null; } /** *
   **
   * The duration for which the livehash will remain valid
   * 
* * .proto.Duration duration = 5; * @return The duration. */ @java.lang.Override public com.hederahashgraph.api.proto.java.Duration getDuration() { return duration_ == null ? com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : duration_; } /** *
   **
   * The duration for which the livehash will remain valid
   * 
* * .proto.Duration duration = 5; */ @java.lang.Override public com.hederahashgraph.api.proto.java.DurationOrBuilder getDurationOrBuilder() { return getDuration(); } 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 (accountId_ != null) { output.writeMessage(1, getAccountId()); } if (!hash_.isEmpty()) { output.writeBytes(2, hash_); } if (keys_ != null) { output.writeMessage(3, getKeys()); } if (duration_ != null) { output.writeMessage(5, getDuration()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (accountId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAccountId()); } if (!hash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, hash_); } if (keys_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getKeys()); } if (duration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getDuration()); } size += unknownFields.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.hederahashgraph.api.proto.java.LiveHash)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.LiveHash other = (com.hederahashgraph.api.proto.java.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.LiveHash parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.LiveHash parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.LiveHash parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.LiveHash parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.LiveHash parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.LiveHash parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.LiveHash parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.LiveHash parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.LiveHashOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.CryptoAddLiveHash.internal_static_proto_LiveHash_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.CryptoAddLiveHash.internal_static_proto_LiveHash_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.LiveHash.class, com.hederahashgraph.api.proto.java.LiveHash.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.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) { } } @java.lang.Override public Builder clear() { super.clear(); if (accountIdBuilder_ == null) { accountId_ = null; } else { accountId_ = null; accountIdBuilder_ = null; } hash_ = com.google.protobuf.ByteString.EMPTY; if (keysBuilder_ == null) { keys_ = null; } else { keys_ = null; keysBuilder_ = null; } if (durationBuilder_ == null) { duration_ = null; } else { duration_ = null; durationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.CryptoAddLiveHash.internal_static_proto_LiveHash_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.LiveHash getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.LiveHash.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.LiveHash build() { com.hederahashgraph.api.proto.java.LiveHash result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.LiveHash buildPartial() { com.hederahashgraph.api.proto.java.LiveHash result = new com.hederahashgraph.api.proto.java.LiveHash(this); if (accountIdBuilder_ == null) { result.accountId_ = accountId_; } else { result.accountId_ = accountIdBuilder_.build(); } result.hash_ = hash_; if (keysBuilder_ == null) { result.keys_ = keys_; } else { result.keys_ = keysBuilder_.build(); } if (durationBuilder_ == null) { result.duration_ = duration_; } else { result.duration_ = durationBuilder_.build(); } onBuilt(); return result; } @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.hederahashgraph.api.proto.java.LiveHash) { return mergeFrom((com.hederahashgraph.api.proto.java.LiveHash)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.LiveHash other) { if (other == com.hederahashgraph.api.proto.java.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.unknownFields); 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 { com.hederahashgraph.api.proto.java.LiveHash parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.LiveHash) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.hederahashgraph.api.proto.java.AccountID accountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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 accountIdBuilder_ != null || accountId_ != null; } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; * @return The accountId. */ public com.hederahashgraph.api.proto.java.AccountID getAccountId() { if (accountIdBuilder_ == null) { return accountId_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountId_; } else { return accountIdBuilder_.getMessage(); } } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ public Builder setAccountId(com.hederahashgraph.api.proto.java.AccountID value) { if (accountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } accountId_ = value; onChanged(); } else { accountIdBuilder_.setMessage(value); } return this; } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ public Builder setAccountId( com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) { if (accountIdBuilder_ == null) { accountId_ = builderForValue.build(); onChanged(); } else { accountIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ public Builder mergeAccountId(com.hederahashgraph.api.proto.java.AccountID value) { if (accountIdBuilder_ == null) { if (accountId_ != null) { accountId_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder(accountId_).mergeFrom(value).buildPartial(); } else { accountId_ = value; } onChanged(); } else { accountIdBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ public Builder clearAccountId() { if (accountIdBuilder_ == null) { accountId_ = null; onChanged(); } else { accountId_ = null; accountIdBuilder_ = null; } return this; } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ public com.hederahashgraph.api.proto.java.AccountID.Builder getAccountIdBuilder() { onChanged(); return getAccountIdFieldBuilder().getBuilder(); } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIdOrBuilder() { if (accountIdBuilder_ != null) { return accountIdBuilder_.getMessageOrBuilder(); } else { return accountId_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountId_; } } /** *
     **
     * The account to which the livehash is attached
     * 
* * .proto.AccountID accountId = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> getAccountIdFieldBuilder() { if (accountIdBuilder_ == null) { accountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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; onChanged(); return this; } /** *
     **
     * The SHA-384 hash of a credential or certificate
     * 
* * bytes hash = 2; * @return This builder for chaining. */ public Builder clearHash() { hash_ = getDefaultInstance().getHash(); onChanged(); return this; } private com.hederahashgraph.api.proto.java.KeyList keys_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.KeyList, com.hederahashgraph.api.proto.java.KeyList.Builder, com.hederahashgraph.api.proto.java.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 keysBuilder_ != null || keys_ != null; } /** *
     **
     * 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.hederahashgraph.api.proto.java.KeyList getKeys() { if (keysBuilder_ == null) { return keys_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.KeyList value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keys_ = value; onChanged(); } else { keysBuilder_.setMessage(value); } 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.hederahashgraph.api.proto.java.KeyList.Builder builderForValue) { if (keysBuilder_ == null) { keys_ = builderForValue.build(); onChanged(); } else { keysBuilder_.setMessage(builderForValue.build()); } 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.hederahashgraph.api.proto.java.KeyList value) { if (keysBuilder_ == null) { if (keys_ != null) { keys_ = com.hederahashgraph.api.proto.java.KeyList.newBuilder(keys_).mergeFrom(value).buildPartial(); } else { keys_ = value; } onChanged(); } else { keysBuilder_.mergeFrom(value); } 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() { if (keysBuilder_ == null) { keys_ = null; onChanged(); } else { keys_ = null; keysBuilder_ = null; } 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.hederahashgraph.api.proto.java.KeyList.Builder getKeysBuilder() { 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.hederahashgraph.api.proto.java.KeyListOrBuilder getKeysOrBuilder() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilder(); } else { return keys_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.KeyList, com.hederahashgraph.api.proto.java.KeyList.Builder, com.hederahashgraph.api.proto.java.KeyListOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { keysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.KeyList, com.hederahashgraph.api.proto.java.KeyList.Builder, com.hederahashgraph.api.proto.java.KeyListOrBuilder>( getKeys(), getParentForChildren(), isClean()); keys_ = null; } return keysBuilder_; } private com.hederahashgraph.api.proto.java.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.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 durationBuilder_ != null || duration_ != null; } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; * @return The duration. */ public com.hederahashgraph.api.proto.java.Duration getDuration() { if (durationBuilder_ == null) { return duration_ == null ? com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : duration_; } else { return durationBuilder_.getMessage(); } } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ public Builder setDuration(com.hederahashgraph.api.proto.java.Duration value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } duration_ = value; onChanged(); } else { durationBuilder_.setMessage(value); } return this; } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ public Builder setDuration( com.hederahashgraph.api.proto.java.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); } else { durationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ public Builder mergeDuration(com.hederahashgraph.api.proto.java.Duration value) { if (durationBuilder_ == null) { if (duration_ != null) { duration_ = com.hederahashgraph.api.proto.java.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } onChanged(); } else { durationBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ public Builder clearDuration() { if (durationBuilder_ == null) { duration_ = null; onChanged(); } else { duration_ = null; durationBuilder_ = null; } return this; } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ public com.hederahashgraph.api.proto.java.Duration.Builder getDurationBuilder() { onChanged(); return getDurationFieldBuilder().getBuilder(); } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ public com.hederahashgraph.api.proto.java.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { return duration_ == null ? com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : duration_; } } /** *
     **
     * The duration for which the livehash will remain valid
     * 
* * .proto.Duration duration = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.LiveHash DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.LiveHash(); } public static com.hederahashgraph.api.proto.java.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 { return new LiveHash(input, extensionRegistry); } }; 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.hederahashgraph.api.proto.java.LiveHash getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy