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

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

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

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * Response when the client sends the node FileGetInfoQuery
 * 
* * Protobuf type {@code proto.FileGetInfoResponse} */ public final class FileGetInfoResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileGetInfoResponse) FileGetInfoResponseOrBuilder { private static final long serialVersionUID = 0L; // Use FileGetInfoResponse.newBuilder() to construct. private FileGetInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FileGetInfoResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FileGetInfoResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FileGetInfoResponse( 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.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(com.hederahashgraph.api.proto.java.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.Builder subBuilder = null; if (fileInfo_ != null) { subBuilder = fileInfo_.toBuilder(); } fileInfo_ = input.readMessage(com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fileInfo_); fileInfo_ = 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.FileGetInfo.internal_static_proto_FileGetInfoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.FileGetInfo.internal_static_proto_FileGetInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.FileGetInfoResponse.class, com.hederahashgraph.api.proto.java.FileGetInfoResponse.Builder.class); } public interface FileInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FileGetInfoResponse.FileInfo) com.google.protobuf.MessageOrBuilder { /** *
     **
     * The file ID of the file for which information is requested
     * 
* * .proto.FileID fileID = 1; * @return Whether the fileID field is set. */ boolean hasFileID(); /** *
     **
     * The file ID of the file for which information is requested
     * 
* * .proto.FileID fileID = 1; * @return The fileID. */ com.hederahashgraph.api.proto.java.FileID getFileID(); /** *
     **
     * The file ID of the file for which information is requested
     * 
* * .proto.FileID fileID = 1; */ com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder(); /** *
     **
     * Number of bytes in contents
     * 
* * int64 size = 2; * @return The size. */ long getSize(); /** *
     **
     * The current time at which this account is set to expire
     * 
* * .proto.Timestamp expirationTime = 3; * @return Whether the expirationTime field is set. */ boolean hasExpirationTime(); /** *
     **
     * The current time at which this account is set to expire
     * 
* * .proto.Timestamp expirationTime = 3; * @return The expirationTime. */ com.hederahashgraph.api.proto.java.Timestamp getExpirationTime(); /** *
     **
     * The current time at which this account is set to expire
     * 
* * .proto.Timestamp expirationTime = 3; */ com.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder(); /** *
     **
     * True if deleted but not yet expired
     * 
* * bool deleted = 4; * @return The deleted. */ boolean getDeleted(); /** *
     **
     * One of these keys must sign in order to modify or delete the file
     * 
* * .proto.KeyList keys = 5; * @return Whether the keys field is set. */ boolean hasKeys(); /** *
     **
     * One of these keys must sign in order to modify or delete the file
     * 
* * .proto.KeyList keys = 5; * @return The keys. */ com.hederahashgraph.api.proto.java.KeyList getKeys(); /** *
     **
     * One of these keys must sign in order to modify or delete the file
     * 
* * .proto.KeyList keys = 5; */ com.hederahashgraph.api.proto.java.KeyListOrBuilder getKeysOrBuilder(); /** *
     **
     * The memo associated with the file
     * 
* * string memo = 6; * @return The memo. */ java.lang.String getMemo(); /** *
     **
     * The memo associated with the file
     * 
* * string memo = 6; * @return The bytes for memo. */ com.google.protobuf.ByteString getMemoBytes(); /** *
     **
     * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
     * 
* * bytes ledger_id = 7; * @return The ledgerId. */ com.google.protobuf.ByteString getLedgerId(); } /** * Protobuf type {@code proto.FileGetInfoResponse.FileInfo} */ public static final class FileInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileGetInfoResponse.FileInfo) FileInfoOrBuilder { private static final long serialVersionUID = 0L; // Use FileInfo.newBuilder() to construct. private FileInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FileInfo() { memo_ = ""; ledgerId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FileInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FileInfo( 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.FileID.Builder subBuilder = null; if (fileID_ != null) { subBuilder = fileID_.toBuilder(); } fileID_ = input.readMessage(com.hederahashgraph.api.proto.java.FileID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fileID_); fileID_ = subBuilder.buildPartial(); } break; } case 16: { size_ = input.readInt64(); break; } case 26: { com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null; if (expirationTime_ != null) { subBuilder = expirationTime_.toBuilder(); } expirationTime_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expirationTime_); expirationTime_ = subBuilder.buildPartial(); } break; } case 32: { deleted_ = input.readBool(); break; } case 42: { 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 50: { java.lang.String s = input.readStringRequireUtf8(); memo_ = s; break; } case 58: { ledgerId_ = input.readBytes(); 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.FileGetInfo.internal_static_proto_FileGetInfoResponse_FileInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.FileGetInfo.internal_static_proto_FileGetInfoResponse_FileInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.class, com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.Builder.class); } public static final int FILEID_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.FileID fileID_; /** *
     **
     * The file ID of the file for which information is requested
     * 
* * .proto.FileID fileID = 1; * @return Whether the fileID field is set. */ @java.lang.Override public boolean hasFileID() { return fileID_ != null; } /** *
     **
     * The file ID of the file for which information is requested
     * 
* * .proto.FileID fileID = 1; * @return The fileID. */ @java.lang.Override public com.hederahashgraph.api.proto.java.FileID getFileID() { return fileID_ == null ? com.hederahashgraph.api.proto.java.FileID.getDefaultInstance() : fileID_; } /** *
     **
     * The file ID of the file for which information is requested
     * 
* * .proto.FileID fileID = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() { return getFileID(); } public static final int SIZE_FIELD_NUMBER = 2; private long size_; /** *
     **
     * Number of bytes in contents
     * 
* * int64 size = 2; * @return The size. */ @java.lang.Override public long getSize() { return size_; } public static final int EXPIRATIONTIME_FIELD_NUMBER = 3; private com.hederahashgraph.api.proto.java.Timestamp expirationTime_; /** *
     **
     * The current time at which this account is set to expire
     * 
* * .proto.Timestamp expirationTime = 3; * @return Whether the expirationTime field is set. */ @java.lang.Override public boolean hasExpirationTime() { return expirationTime_ != null; } /** *
     **
     * The current time at which this account is set to expire
     * 
* * .proto.Timestamp expirationTime = 3; * @return The expirationTime. */ @java.lang.Override public com.hederahashgraph.api.proto.java.Timestamp getExpirationTime() { return expirationTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expirationTime_; } /** *
     **
     * The current time at which this account is set to expire
     * 
* * .proto.Timestamp expirationTime = 3; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder() { return getExpirationTime(); } public static final int DELETED_FIELD_NUMBER = 4; private boolean deleted_; /** *
     **
     * True if deleted but not yet expired
     * 
* * bool deleted = 4; * @return The deleted. */ @java.lang.Override public boolean getDeleted() { return deleted_; } public static final int KEYS_FIELD_NUMBER = 5; private com.hederahashgraph.api.proto.java.KeyList keys_; /** *
     **
     * One of these keys must sign in order to modify or delete the file
     * 
* * .proto.KeyList keys = 5; * @return Whether the keys field is set. */ @java.lang.Override public boolean hasKeys() { return keys_ != null; } /** *
     **
     * One of these keys must sign in order to modify or delete the file
     * 
* * .proto.KeyList keys = 5; * @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_; } /** *
     **
     * One of these keys must sign in order to modify or delete the file
     * 
* * .proto.KeyList keys = 5; */ @java.lang.Override public com.hederahashgraph.api.proto.java.KeyListOrBuilder getKeysOrBuilder() { return getKeys(); } public static final int MEMO_FIELD_NUMBER = 6; private volatile java.lang.Object memo_; /** *
     **
     * The memo associated with the file
     * 
* * string memo = 6; * @return The memo. */ @java.lang.Override public java.lang.String getMemo() { java.lang.Object ref = memo_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memo_ = s; return s; } } /** *
     **
     * The memo associated with the file
     * 
* * string memo = 6; * @return The bytes for memo. */ @java.lang.Override public com.google.protobuf.ByteString getMemoBytes() { java.lang.Object ref = memo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LEDGER_ID_FIELD_NUMBER = 7; private com.google.protobuf.ByteString ledgerId_; /** *
     **
     * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
     * 
* * bytes ledger_id = 7; * @return The ledgerId. */ @java.lang.Override public com.google.protobuf.ByteString getLedgerId() { return ledgerId_; } 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 (fileID_ != null) { output.writeMessage(1, getFileID()); } if (size_ != 0L) { output.writeInt64(2, size_); } if (expirationTime_ != null) { output.writeMessage(3, getExpirationTime()); } if (deleted_ != false) { output.writeBool(4, deleted_); } if (keys_ != null) { output.writeMessage(5, getKeys()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, memo_); } if (!ledgerId_.isEmpty()) { output.writeBytes(7, ledgerId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fileID_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFileID()); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, size_); } if (expirationTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExpirationTime()); } if (deleted_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, deleted_); } if (keys_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getKeys()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, memo_); } if (!ledgerId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, ledgerId_); } 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.FileGetInfoResponse.FileInfo)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo other = (com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo) obj; if (hasFileID() != other.hasFileID()) return false; if (hasFileID()) { if (!getFileID() .equals(other.getFileID())) return false; } if (getSize() != other.getSize()) return false; if (hasExpirationTime() != other.hasExpirationTime()) return false; if (hasExpirationTime()) { if (!getExpirationTime() .equals(other.getExpirationTime())) return false; } if (getDeleted() != other.getDeleted()) return false; if (hasKeys() != other.hasKeys()) return false; if (hasKeys()) { if (!getKeys() .equals(other.getKeys())) return false; } if (!getMemo() .equals(other.getMemo())) return false; if (!getLedgerId() .equals(other.getLedgerId())) 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 (hasFileID()) { hash = (37 * hash) + FILEID_FIELD_NUMBER; hash = (53 * hash) + getFileID().hashCode(); } hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); if (hasExpirationTime()) { hash = (37 * hash) + EXPIRATIONTIME_FIELD_NUMBER; hash = (53 * hash) + getExpirationTime().hashCode(); } hash = (37 * hash) + DELETED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeleted()); if (hasKeys()) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeys().hashCode(); } hash = (37 * hash) + MEMO_FIELD_NUMBER; hash = (53 * hash) + getMemo().hashCode(); hash = (37 * hash) + LEDGER_ID_FIELD_NUMBER; hash = (53 * hash) + getLedgerId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo 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.FileGetInfoResponse.FileInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo 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.FileGetInfoResponse.FileInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo 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.FileGetInfoResponse.FileInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo 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.FileGetInfoResponse.FileInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo 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.FileGetInfoResponse.FileInfo 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.FileGetInfoResponse.FileInfo 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.FileGetInfoResponse.FileInfo 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; } /** * Protobuf type {@code proto.FileGetInfoResponse.FileInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileGetInfoResponse.FileInfo) com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.FileGetInfo.internal_static_proto_FileGetInfoResponse_FileInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.FileGetInfo.internal_static_proto_FileGetInfoResponse_FileInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.class, com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.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 (fileIDBuilder_ == null) { fileID_ = null; } else { fileID_ = null; fileIDBuilder_ = null; } size_ = 0L; if (expirationTimeBuilder_ == null) { expirationTime_ = null; } else { expirationTime_ = null; expirationTimeBuilder_ = null; } deleted_ = false; if (keysBuilder_ == null) { keys_ = null; } else { keys_ = null; keysBuilder_ = null; } memo_ = ""; ledgerId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.FileGetInfo.internal_static_proto_FileGetInfoResponse_FileInfo_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo build() { com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo buildPartial() { com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo result = new com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo(this); if (fileIDBuilder_ == null) { result.fileID_ = fileID_; } else { result.fileID_ = fileIDBuilder_.build(); } result.size_ = size_; if (expirationTimeBuilder_ == null) { result.expirationTime_ = expirationTime_; } else { result.expirationTime_ = expirationTimeBuilder_.build(); } result.deleted_ = deleted_; if (keysBuilder_ == null) { result.keys_ = keys_; } else { result.keys_ = keysBuilder_.build(); } result.memo_ = memo_; result.ledgerId_ = ledgerId_; 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.FileGetInfoResponse.FileInfo) { return mergeFrom((com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo other) { if (other == com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.getDefaultInstance()) return this; if (other.hasFileID()) { mergeFileID(other.getFileID()); } if (other.getSize() != 0L) { setSize(other.getSize()); } if (other.hasExpirationTime()) { mergeExpirationTime(other.getExpirationTime()); } if (other.getDeleted() != false) { setDeleted(other.getDeleted()); } if (other.hasKeys()) { mergeKeys(other.getKeys()); } if (!other.getMemo().isEmpty()) { memo_ = other.memo_; onChanged(); } if (other.getLedgerId() != com.google.protobuf.ByteString.EMPTY) { setLedgerId(other.getLedgerId()); } 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.FileGetInfoResponse.FileInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.hederahashgraph.api.proto.java.FileID fileID_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder> fileIDBuilder_; /** *
       **
       * The file ID of the file for which information is requested
       * 
* * .proto.FileID fileID = 1; * @return Whether the fileID field is set. */ public boolean hasFileID() { return fileIDBuilder_ != null || fileID_ != null; } /** *
       **
       * The file ID of the file for which information is requested
       * 
* * .proto.FileID fileID = 1; * @return The fileID. */ public com.hederahashgraph.api.proto.java.FileID getFileID() { if (fileIDBuilder_ == null) { return fileID_ == null ? com.hederahashgraph.api.proto.java.FileID.getDefaultInstance() : fileID_; } else { return fileIDBuilder_.getMessage(); } } /** *
       **
       * The file ID of the file for which information is requested
       * 
* * .proto.FileID fileID = 1; */ public Builder setFileID(com.hederahashgraph.api.proto.java.FileID value) { if (fileIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fileID_ = value; onChanged(); } else { fileIDBuilder_.setMessage(value); } return this; } /** *
       **
       * The file ID of the file for which information is requested
       * 
* * .proto.FileID fileID = 1; */ public Builder setFileID( com.hederahashgraph.api.proto.java.FileID.Builder builderForValue) { if (fileIDBuilder_ == null) { fileID_ = builderForValue.build(); onChanged(); } else { fileIDBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       **
       * The file ID of the file for which information is requested
       * 
* * .proto.FileID fileID = 1; */ public Builder mergeFileID(com.hederahashgraph.api.proto.java.FileID value) { if (fileIDBuilder_ == null) { if (fileID_ != null) { fileID_ = com.hederahashgraph.api.proto.java.FileID.newBuilder(fileID_).mergeFrom(value).buildPartial(); } else { fileID_ = value; } onChanged(); } else { fileIDBuilder_.mergeFrom(value); } return this; } /** *
       **
       * The file ID of the file for which information is requested
       * 
* * .proto.FileID fileID = 1; */ public Builder clearFileID() { if (fileIDBuilder_ == null) { fileID_ = null; onChanged(); } else { fileID_ = null; fileIDBuilder_ = null; } return this; } /** *
       **
       * The file ID of the file for which information is requested
       * 
* * .proto.FileID fileID = 1; */ public com.hederahashgraph.api.proto.java.FileID.Builder getFileIDBuilder() { onChanged(); return getFileIDFieldBuilder().getBuilder(); } /** *
       **
       * The file ID of the file for which information is requested
       * 
* * .proto.FileID fileID = 1; */ public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() { if (fileIDBuilder_ != null) { return fileIDBuilder_.getMessageOrBuilder(); } else { return fileID_ == null ? com.hederahashgraph.api.proto.java.FileID.getDefaultInstance() : fileID_; } } /** *
       **
       * The file ID of the file for which information is requested
       * 
* * .proto.FileID fileID = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder> getFileIDFieldBuilder() { if (fileIDBuilder_ == null) { fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder>( getFileID(), getParentForChildren(), isClean()); fileID_ = null; } return fileIDBuilder_; } private long size_ ; /** *
       **
       * Number of bytes in contents
       * 
* * int64 size = 2; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** *
       **
       * Number of bytes in contents
       * 
* * int64 size = 2; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; onChanged(); return this; } /** *
       **
       * Number of bytes in contents
       * 
* * int64 size = 2; * @return This builder for chaining. */ public Builder clearSize() { size_ = 0L; onChanged(); return this; } private com.hederahashgraph.api.proto.java.Timestamp expirationTime_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> expirationTimeBuilder_; /** *
       **
       * The current time at which this account is set to expire
       * 
* * .proto.Timestamp expirationTime = 3; * @return Whether the expirationTime field is set. */ public boolean hasExpirationTime() { return expirationTimeBuilder_ != null || expirationTime_ != null; } /** *
       **
       * The current time at which this account is set to expire
       * 
* * .proto.Timestamp expirationTime = 3; * @return The expirationTime. */ public com.hederahashgraph.api.proto.java.Timestamp getExpirationTime() { if (expirationTimeBuilder_ == null) { return expirationTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expirationTime_; } else { return expirationTimeBuilder_.getMessage(); } } /** *
       **
       * The current time at which this account is set to expire
       * 
* * .proto.Timestamp expirationTime = 3; */ public Builder setExpirationTime(com.hederahashgraph.api.proto.java.Timestamp value) { if (expirationTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expirationTime_ = value; onChanged(); } else { expirationTimeBuilder_.setMessage(value); } return this; } /** *
       **
       * The current time at which this account is set to expire
       * 
* * .proto.Timestamp expirationTime = 3; */ public Builder setExpirationTime( com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) { if (expirationTimeBuilder_ == null) { expirationTime_ = builderForValue.build(); onChanged(); } else { expirationTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       **
       * The current time at which this account is set to expire
       * 
* * .proto.Timestamp expirationTime = 3; */ public Builder mergeExpirationTime(com.hederahashgraph.api.proto.java.Timestamp value) { if (expirationTimeBuilder_ == null) { if (expirationTime_ != null) { expirationTime_ = com.hederahashgraph.api.proto.java.Timestamp.newBuilder(expirationTime_).mergeFrom(value).buildPartial(); } else { expirationTime_ = value; } onChanged(); } else { expirationTimeBuilder_.mergeFrom(value); } return this; } /** *
       **
       * The current time at which this account is set to expire
       * 
* * .proto.Timestamp expirationTime = 3; */ public Builder clearExpirationTime() { if (expirationTimeBuilder_ == null) { expirationTime_ = null; onChanged(); } else { expirationTime_ = null; expirationTimeBuilder_ = null; } return this; } /** *
       **
       * The current time at which this account is set to expire
       * 
* * .proto.Timestamp expirationTime = 3; */ public com.hederahashgraph.api.proto.java.Timestamp.Builder getExpirationTimeBuilder() { onChanged(); return getExpirationTimeFieldBuilder().getBuilder(); } /** *
       **
       * The current time at which this account is set to expire
       * 
* * .proto.Timestamp expirationTime = 3; */ public com.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder() { if (expirationTimeBuilder_ != null) { return expirationTimeBuilder_.getMessageOrBuilder(); } else { return expirationTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expirationTime_; } } /** *
       **
       * The current time at which this account is set to expire
       * 
* * .proto.Timestamp expirationTime = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> getExpirationTimeFieldBuilder() { if (expirationTimeBuilder_ == null) { expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>( getExpirationTime(), getParentForChildren(), isClean()); expirationTime_ = null; } return expirationTimeBuilder_; } private boolean deleted_ ; /** *
       **
       * True if deleted but not yet expired
       * 
* * bool deleted = 4; * @return The deleted. */ @java.lang.Override public boolean getDeleted() { return deleted_; } /** *
       **
       * True if deleted but not yet expired
       * 
* * bool deleted = 4; * @param value The deleted to set. * @return This builder for chaining. */ public Builder setDeleted(boolean value) { deleted_ = value; onChanged(); return this; } /** *
       **
       * True if deleted but not yet expired
       * 
* * bool deleted = 4; * @return This builder for chaining. */ public Builder clearDeleted() { deleted_ = false; 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_; /** *
       **
       * One of these keys must sign in order to modify or delete the file
       * 
* * .proto.KeyList keys = 5; * @return Whether the keys field is set. */ public boolean hasKeys() { return keysBuilder_ != null || keys_ != null; } /** *
       **
       * One of these keys must sign in order to modify or delete the file
       * 
* * .proto.KeyList keys = 5; * @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(); } } /** *
       **
       * One of these keys must sign in order to modify or delete the file
       * 
* * .proto.KeyList keys = 5; */ 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; } /** *
       **
       * One of these keys must sign in order to modify or delete the file
       * 
* * .proto.KeyList keys = 5; */ 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; } /** *
       **
       * One of these keys must sign in order to modify or delete the file
       * 
* * .proto.KeyList keys = 5; */ 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; } /** *
       **
       * One of these keys must sign in order to modify or delete the file
       * 
* * .proto.KeyList keys = 5; */ public Builder clearKeys() { if (keysBuilder_ == null) { keys_ = null; onChanged(); } else { keys_ = null; keysBuilder_ = null; } return this; } /** *
       **
       * One of these keys must sign in order to modify or delete the file
       * 
* * .proto.KeyList keys = 5; */ public com.hederahashgraph.api.proto.java.KeyList.Builder getKeysBuilder() { onChanged(); return getKeysFieldBuilder().getBuilder(); } /** *
       **
       * One of these keys must sign in order to modify or delete the file
       * 
* * .proto.KeyList keys = 5; */ 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_; } } /** *
       **
       * One of these keys must sign in order to modify or delete the file
       * 
* * .proto.KeyList keys = 5; */ 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 java.lang.Object memo_ = ""; /** *
       **
       * The memo associated with the file
       * 
* * string memo = 6; * @return The memo. */ public java.lang.String getMemo() { java.lang.Object ref = memo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memo_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       **
       * The memo associated with the file
       * 
* * string memo = 6; * @return The bytes for memo. */ public com.google.protobuf.ByteString getMemoBytes() { java.lang.Object ref = memo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       **
       * The memo associated with the file
       * 
* * string memo = 6; * @param value The memo to set. * @return This builder for chaining. */ public Builder setMemo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } memo_ = value; onChanged(); return this; } /** *
       **
       * The memo associated with the file
       * 
* * string memo = 6; * @return This builder for chaining. */ public Builder clearMemo() { memo_ = getDefaultInstance().getMemo(); onChanged(); return this; } /** *
       **
       * The memo associated with the file
       * 
* * string memo = 6; * @param value The bytes for memo to set. * @return This builder for chaining. */ public Builder setMemoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); memo_ = value; onChanged(); return this; } private com.google.protobuf.ByteString ledgerId_ = com.google.protobuf.ByteString.EMPTY; /** *
       **
       * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
       * 
* * bytes ledger_id = 7; * @return The ledgerId. */ @java.lang.Override public com.google.protobuf.ByteString getLedgerId() { return ledgerId_; } /** *
       **
       * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
       * 
* * bytes ledger_id = 7; * @param value The ledgerId to set. * @return This builder for chaining. */ public Builder setLedgerId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ledgerId_ = value; onChanged(); return this; } /** *
       **
       * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
       * 
* * bytes ledger_id = 7; * @return This builder for chaining. */ public Builder clearLedgerId() { ledgerId_ = getDefaultInstance().getLedgerId(); onChanged(); return this; } @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.FileGetInfoResponse.FileInfo) } // @@protoc_insertion_point(class_scope:proto.FileGetInfoResponse.FileInfo) private static final com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo(); } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FileInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FileInfo(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.FileGetInfoResponse.FileInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int HEADER_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.ResponseHeader header_; /** *
   **
   * Standard response from node to client, including the requested fields: cost, or state proof,
   * or both, or neither
   * 
* * .proto.ResponseHeader header = 1; * @return Whether the header field is set. */ @java.lang.Override public boolean hasHeader() { return header_ != null; } /** *
   **
   * Standard response from node to client, including the requested fields: cost, or state proof,
   * or both, or neither
   * 
* * .proto.ResponseHeader header = 1; * @return The header. */ @java.lang.Override public com.hederahashgraph.api.proto.java.ResponseHeader getHeader() { return header_ == null ? com.hederahashgraph.api.proto.java.ResponseHeader.getDefaultInstance() : header_; } /** *
   **
   * Standard response from node to client, including the requested fields: cost, or state proof,
   * or both, or neither
   * 
* * .proto.ResponseHeader header = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int FILEINFO_FIELD_NUMBER = 2; private com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo fileInfo_; /** *
   **
   * The information about the file
   * 
* * .proto.FileGetInfoResponse.FileInfo fileInfo = 2; * @return Whether the fileInfo field is set. */ @java.lang.Override public boolean hasFileInfo() { return fileInfo_ != null; } /** *
   **
   * The information about the file
   * 
* * .proto.FileGetInfoResponse.FileInfo fileInfo = 2; * @return The fileInfo. */ @java.lang.Override public com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo getFileInfo() { return fileInfo_ == null ? com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.getDefaultInstance() : fileInfo_; } /** *
   **
   * The information about the file
   * 
* * .proto.FileGetInfoResponse.FileInfo fileInfo = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfoOrBuilder getFileInfoOrBuilder() { return getFileInfo(); } 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 (header_ != null) { output.writeMessage(1, getHeader()); } if (fileInfo_ != null) { output.writeMessage(2, getFileInfo()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (fileInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getFileInfo()); } 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.FileGetInfoResponse)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.FileGetInfoResponse other = (com.hederahashgraph.api.proto.java.FileGetInfoResponse) obj; if (hasHeader() != other.hasHeader()) return false; if (hasHeader()) { if (!getHeader() .equals(other.getHeader())) return false; } if (hasFileInfo() != other.hasFileInfo()) return false; if (hasFileInfo()) { if (!getFileInfo() .equals(other.getFileInfo())) 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 (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasFileInfo()) { hash = (37 * hash) + FILEINFO_FIELD_NUMBER; hash = (53 * hash) + getFileInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse 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.FileGetInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse 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.FileGetInfoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse 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.FileGetInfoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse 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.FileGetInfoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse 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.FileGetInfoResponse 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.FileGetInfoResponse 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.FileGetInfoResponse 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; } /** *
   **
   * Response when the client sends the node FileGetInfoQuery
   * 
* * Protobuf type {@code proto.FileGetInfoResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileGetInfoResponse) com.hederahashgraph.api.proto.java.FileGetInfoResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.FileGetInfo.internal_static_proto_FileGetInfoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.FileGetInfo.internal_static_proto_FileGetInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.FileGetInfoResponse.class, com.hederahashgraph.api.proto.java.FileGetInfoResponse.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.FileGetInfoResponse.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 (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (fileInfoBuilder_ == null) { fileInfo_ = null; } else { fileInfo_ = null; fileInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.FileGetInfo.internal_static_proto_FileGetInfoResponse_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.FileGetInfoResponse getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.FileGetInfoResponse.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.FileGetInfoResponse build() { com.hederahashgraph.api.proto.java.FileGetInfoResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.FileGetInfoResponse buildPartial() { com.hederahashgraph.api.proto.java.FileGetInfoResponse result = new com.hederahashgraph.api.proto.java.FileGetInfoResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (fileInfoBuilder_ == null) { result.fileInfo_ = fileInfo_; } else { result.fileInfo_ = fileInfoBuilder_.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.FileGetInfoResponse) { return mergeFrom((com.hederahashgraph.api.proto.java.FileGetInfoResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.FileGetInfoResponse other) { if (other == com.hederahashgraph.api.proto.java.FileGetInfoResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasFileInfo()) { mergeFileInfo(other.getFileInfo()); } 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.FileGetInfoResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.FileGetInfoResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.hederahashgraph.api.proto.java.ResponseHeader header_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ResponseHeader, com.hederahashgraph.api.proto.java.ResponseHeader.Builder, com.hederahashgraph.api.proto.java.ResponseHeaderOrBuilder> headerBuilder_; /** *
     **
     * Standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; * @return Whether the header field is set. */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** *
     **
     * Standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; * @return The header. */ public com.hederahashgraph.api.proto.java.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? com.hederahashgraph.api.proto.java.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** *
     **
     * Standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ public Builder setHeader(com.hederahashgraph.api.proto.java.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** *
     **
     * Standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ public Builder setHeader( com.hederahashgraph.api.proto.java.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * Standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ public Builder mergeHeader(com.hederahashgraph.api.proto.java.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = com.hederahashgraph.api.proto.java.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** *
     **
     * Standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** *
     **
     * Standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ public com.hederahashgraph.api.proto.java.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** *
     **
     * Standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ public com.hederahashgraph.api.proto.java.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? com.hederahashgraph.api.proto.java.ResponseHeader.getDefaultInstance() : header_; } } /** *
     **
     * Standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ResponseHeader, com.hederahashgraph.api.proto.java.ResponseHeader.Builder, com.hederahashgraph.api.proto.java.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ResponseHeader, com.hederahashgraph.api.proto.java.ResponseHeader.Builder, com.hederahashgraph.api.proto.java.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo fileInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo, com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.Builder, com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfoOrBuilder> fileInfoBuilder_; /** *
     **
     * The information about the file
     * 
* * .proto.FileGetInfoResponse.FileInfo fileInfo = 2; * @return Whether the fileInfo field is set. */ public boolean hasFileInfo() { return fileInfoBuilder_ != null || fileInfo_ != null; } /** *
     **
     * The information about the file
     * 
* * .proto.FileGetInfoResponse.FileInfo fileInfo = 2; * @return The fileInfo. */ public com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo getFileInfo() { if (fileInfoBuilder_ == null) { return fileInfo_ == null ? com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.getDefaultInstance() : fileInfo_; } else { return fileInfoBuilder_.getMessage(); } } /** *
     **
     * The information about the file
     * 
* * .proto.FileGetInfoResponse.FileInfo fileInfo = 2; */ public Builder setFileInfo(com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo value) { if (fileInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fileInfo_ = value; onChanged(); } else { fileInfoBuilder_.setMessage(value); } return this; } /** *
     **
     * The information about the file
     * 
* * .proto.FileGetInfoResponse.FileInfo fileInfo = 2; */ public Builder setFileInfo( com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.Builder builderForValue) { if (fileInfoBuilder_ == null) { fileInfo_ = builderForValue.build(); onChanged(); } else { fileInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The information about the file
     * 
* * .proto.FileGetInfoResponse.FileInfo fileInfo = 2; */ public Builder mergeFileInfo(com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo value) { if (fileInfoBuilder_ == null) { if (fileInfo_ != null) { fileInfo_ = com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.newBuilder(fileInfo_).mergeFrom(value).buildPartial(); } else { fileInfo_ = value; } onChanged(); } else { fileInfoBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The information about the file
     * 
* * .proto.FileGetInfoResponse.FileInfo fileInfo = 2; */ public Builder clearFileInfo() { if (fileInfoBuilder_ == null) { fileInfo_ = null; onChanged(); } else { fileInfo_ = null; fileInfoBuilder_ = null; } return this; } /** *
     **
     * The information about the file
     * 
* * .proto.FileGetInfoResponse.FileInfo fileInfo = 2; */ public com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.Builder getFileInfoBuilder() { onChanged(); return getFileInfoFieldBuilder().getBuilder(); } /** *
     **
     * The information about the file
     * 
* * .proto.FileGetInfoResponse.FileInfo fileInfo = 2; */ public com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfoOrBuilder getFileInfoOrBuilder() { if (fileInfoBuilder_ != null) { return fileInfoBuilder_.getMessageOrBuilder(); } else { return fileInfo_ == null ? com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.getDefaultInstance() : fileInfo_; } } /** *
     **
     * The information about the file
     * 
* * .proto.FileGetInfoResponse.FileInfo fileInfo = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo, com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.Builder, com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfoOrBuilder> getFileInfoFieldBuilder() { if (fileInfoBuilder_ == null) { fileInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo, com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfo.Builder, com.hederahashgraph.api.proto.java.FileGetInfoResponse.FileInfoOrBuilder>( getFileInfo(), getParentForChildren(), isClean()); fileInfo_ = null; } return fileInfoBuilder_; } @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.FileGetInfoResponse) } // @@protoc_insertion_point(class_scope:proto.FileGetInfoResponse) private static final com.hederahashgraph.api.proto.java.FileGetInfoResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.FileGetInfoResponse(); } public static com.hederahashgraph.api.proto.java.FileGetInfoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FileGetInfoResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FileGetInfoResponse(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.FileGetInfoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy