com.hedera.hashgraph.sdk.proto.FileGetInfoResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: file_get_info.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* 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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.FileGetInfo.internal_static_proto_FileGetInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.FileGetInfo.internal_static_proto_FileGetInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.class, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FileID getFileID();
/**
*
**
* The file ID of the file for which information is requested
*
*
* .proto.FileID fileID = 1;
*/
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime();
/**
*
**
* The current time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 3;
*/
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.KeyList getKeys();
/**
*
**
* One of these keys must sign in order to modify or delete the file
*
*
* .proto.KeyList keys = 5;
*/
com.hedera.hashgraph.sdk.proto.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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.FileGetInfo.internal_static_proto_FileGetInfoResponse_FileInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.FileGetInfo.internal_static_proto_FileGetInfoResponse_FileInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.class, com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.Builder.class);
}
private int bitField0_;
public static final int FILEID_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The file ID of the file for which information is requested
*
*
* .proto.FileID fileID = 1;
* @return The fileID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileID getFileID() {
return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
}
/**
*
**
* The file ID of the file for which information is requested
*
*
* .proto.FileID fileID = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() {
return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
}
public static final int SIZE_FIELD_NUMBER = 2;
private long size_ = 0L;
/**
*
**
* 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.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The current time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 3;
* @return The expirationTime.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
}
/**
*
**
* The current time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
}
public static final int DELETED_FIELD_NUMBER = 4;
private boolean deleted_ = false;
/**
*
**
* 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.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* 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.hedera.hashgraph.sdk.proto.KeyList getKeys() {
return keys_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.KeyListOrBuilder getKeysOrBuilder() {
return keys_ == null ? com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance() : keys_;
}
public static final int MEMO_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
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_ = 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_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getFileID());
}
if (size_ != 0L) {
output.writeInt64(2, size_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getExpirationTime());
}
if (deleted_ != false) {
output.writeBool(4, deleted_);
}
if (((bitField0_ & 0x00000004) != 0)) {
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_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getFileID());
}
if (size_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, size_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getExpirationTime());
}
if (deleted_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, deleted_);
}
if (((bitField0_ & 0x00000004) != 0)) {
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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo other = (com.hedera.hashgraph.sdk.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.FileGetInfo.internal_static_proto_FileGetInfoResponse_FileInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.FileGetInfo.internal_static_proto_FileGetInfoResponse_FileInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.class, com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.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) {
getFileIDFieldBuilder();
getExpirationTimeFieldBuilder();
getKeysFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
fileID_ = null;
if (fileIDBuilder_ != null) {
fileIDBuilder_.dispose();
fileIDBuilder_ = null;
}
size_ = 0L;
expirationTime_ = null;
if (expirationTimeBuilder_ != null) {
expirationTimeBuilder_.dispose();
expirationTimeBuilder_ = null;
}
deleted_ = false;
keys_ = null;
if (keysBuilder_ != null) {
keysBuilder_.dispose();
keysBuilder_ = null;
}
memo_ = "";
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.FileGetInfo.internal_static_proto_FileGetInfoResponse_FileInfo_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo build() {
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo buildPartial() {
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo result = new com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.fileID_ = fileIDBuilder_ == null
? fileID_
: fileIDBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.size_ = size_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.expirationTime_ = expirationTimeBuilder_ == null
? expirationTime_
: expirationTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.deleted_ = deleted_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.keys_ = keysBuilder_ == null
? keys_
: keysBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.memo_ = memo_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.ledgerId_ = ledgerId_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo other) {
if (other == com.hedera.hashgraph.sdk.proto.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_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.getLedgerId() != com.google.protobuf.ByteString.EMPTY) {
setLedgerId(other.getLedgerId());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getFileIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
size_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getExpirationTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
deleted_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
input.readMessage(
getKeysFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
memo_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
ledgerId_ = input.readBytes();
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.hedera.hashgraph.sdk.proto.FileID fileID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The file ID of the file for which information is requested
*
*
* .proto.FileID fileID = 1;
* @return The fileID.
*/
public com.hedera.hashgraph.sdk.proto.FileID getFileID() {
if (fileIDBuilder_ == null) {
return fileID_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FileID value) {
if (fileIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileID_ = value;
} else {
fileIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The file ID of the file for which information is requested
*
*
* .proto.FileID fileID = 1;
*/
public Builder setFileID(
com.hedera.hashgraph.sdk.proto.FileID.Builder builderForValue) {
if (fileIDBuilder_ == null) {
fileID_ = builderForValue.build();
} else {
fileIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The file ID of the file for which information is requested
*
*
* .proto.FileID fileID = 1;
*/
public Builder mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
if (fileIDBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
fileID_ != null &&
fileID_ != com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance()) {
getFileIDBuilder().mergeFrom(value);
} else {
fileID_ = value;
}
} else {
fileIDBuilder_.mergeFrom(value);
}
if (fileID_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The file ID of the file for which information is requested
*
*
* .proto.FileID fileID = 1;
*/
public Builder clearFileID() {
bitField0_ = (bitField0_ & ~0x00000001);
fileID_ = null;
if (fileIDBuilder_ != null) {
fileIDBuilder_.dispose();
fileIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The file ID of the file for which information is requested
*
*
* .proto.FileID fileID = 1;
*/
public com.hedera.hashgraph.sdk.proto.FileID.Builder getFileIDBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getFileIDFieldBuilder().getBuilder();
}
/**
*
**
* The file ID of the file for which information is requested
*
*
* .proto.FileID fileID = 1;
*/
public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() {
if (fileIDBuilder_ != null) {
return fileIDBuilder_.getMessageOrBuilder();
} else {
return fileID_ == null ?
com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
}
}
/**
*
**
* The file ID of the file for which information is requested
*
*
* .proto.FileID fileID = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder>
getFileIDFieldBuilder() {
if (fileIDBuilder_ == null) {
fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Number of bytes in contents
*
*
* int64 size = 2;
* @return This builder for chaining.
*/
public Builder clearSize() {
bitField0_ = (bitField0_ & ~0x00000002);
size_ = 0L;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.Timestamp expirationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The current time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 3;
* @return The expirationTime.
*/
public com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() {
if (expirationTimeBuilder_ == null) {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expirationTime_ = value;
} else {
expirationTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The current time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 3;
*/
public Builder setExpirationTime(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (expirationTimeBuilder_ == null) {
expirationTime_ = builderForValue.build();
} else {
expirationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The current time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 3;
*/
public Builder mergeExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
expirationTime_ != null &&
expirationTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
getExpirationTimeBuilder().mergeFrom(value);
} else {
expirationTime_ = value;
}
} else {
expirationTimeBuilder_.mergeFrom(value);
}
if (expirationTime_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
**
* The current time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 3;
*/
public Builder clearExpirationTime() {
bitField0_ = (bitField0_ & ~0x00000004);
expirationTime_ = null;
if (expirationTimeBuilder_ != null) {
expirationTimeBuilder_.dispose();
expirationTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The current time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 3;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getExpirationTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getExpirationTimeFieldBuilder().getBuilder();
}
/**
*
**
* The current time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 3;
*/
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() {
if (expirationTimeBuilder_ != null) {
return expirationTimeBuilder_.getMessageOrBuilder();
} else {
return expirationTime_ == null ?
com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
}
}
/**
*
**
* The current time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getExpirationTimeFieldBuilder() {
if (expirationTimeBuilder_ == null) {
expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* True if deleted but not yet expired
*
*
* bool deleted = 4;
* @return This builder for chaining.
*/
public Builder clearDeleted() {
bitField0_ = (bitField0_ & ~0x00000008);
deleted_ = false;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.KeyList keys_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.KeyList, com.hedera.hashgraph.sdk.proto.KeyList.Builder, com.hedera.hashgraph.sdk.proto.KeyListOrBuilder> keysBuilder_;
/**
*
**
* 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 ((bitField0_ & 0x00000010) != 0);
}
/**
*
**
* One of these keys must sign in order to modify or delete the file
*
*
* .proto.KeyList keys = 5;
* @return The keys.
*/
public com.hedera.hashgraph.sdk.proto.KeyList getKeys() {
if (keysBuilder_ == null) {
return keys_ == null ? com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance() : keys_;
} else {
return keysBuilder_.getMessage();
}
}
/**
*
**
* One of these keys must sign in order to modify or delete the file
*
*
* .proto.KeyList keys = 5;
*/
public Builder setKeys(com.hedera.hashgraph.sdk.proto.KeyList value) {
if (keysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
keys_ = value;
} else {
keysBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* One of these keys must sign in order to modify or delete the file
*
*
* .proto.KeyList keys = 5;
*/
public Builder setKeys(
com.hedera.hashgraph.sdk.proto.KeyList.Builder builderForValue) {
if (keysBuilder_ == null) {
keys_ = builderForValue.build();
} else {
keysBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* One of these keys must sign in order to modify or delete the file
*
*
* .proto.KeyList keys = 5;
*/
public Builder mergeKeys(com.hedera.hashgraph.sdk.proto.KeyList value) {
if (keysBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
keys_ != null &&
keys_ != com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance()) {
getKeysBuilder().mergeFrom(value);
} else {
keys_ = value;
}
} else {
keysBuilder_.mergeFrom(value);
}
if (keys_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
**
* One of these keys must sign in order to modify or delete the file
*
*
* .proto.KeyList keys = 5;
*/
public Builder clearKeys() {
bitField0_ = (bitField0_ & ~0x00000010);
keys_ = null;
if (keysBuilder_ != null) {
keysBuilder_.dispose();
keysBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* One of these keys must sign in order to modify or delete the file
*
*
* .proto.KeyList keys = 5;
*/
public com.hedera.hashgraph.sdk.proto.KeyList.Builder getKeysBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getKeysFieldBuilder().getBuilder();
}
/**
*
**
* One of these keys must sign in order to modify or delete the file
*
*
* .proto.KeyList keys = 5;
*/
public com.hedera.hashgraph.sdk.proto.KeyListOrBuilder getKeysOrBuilder() {
if (keysBuilder_ != null) {
return keysBuilder_.getMessageOrBuilder();
} else {
return keys_ == null ?
com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance() : keys_;
}
}
/**
*
**
* One of these keys must sign in order to modify or delete the file
*
*
* .proto.KeyList keys = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.KeyList, com.hedera.hashgraph.sdk.proto.KeyList.Builder, com.hedera.hashgraph.sdk.proto.KeyListOrBuilder>
getKeysFieldBuilder() {
if (keysBuilder_ == null) {
keysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.KeyList, com.hedera.hashgraph.sdk.proto.KeyList.Builder, com.hedera.hashgraph.sdk.proto.KeyListOrBuilder>(
getKeys(),
getParentForChildren(),
isClean());
keys_ = null;
}
return keysBuilder_;
}
private 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;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* The memo associated with the file
*
*
* string memo = 6;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
bitField0_ = (bitField0_ & ~0x00000020);
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;
bitField0_ |= 0x00000020;
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;
bitField0_ |= 0x00000040;
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() {
bitField0_ = (bitField0_ & ~0x00000040);
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.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo();
}
public static com.hedera.hashgraph.sdk.proto.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int HEADER_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* 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.hedera.hashgraph.sdk.proto.ResponseHeader getHeader() {
return header_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder getHeaderOrBuilder() {
return header_ == null ? com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance() : header_;
}
public static final int FILEINFO_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The information about the file
*
*
* .proto.FileGetInfoResponse.FileInfo fileInfo = 2;
* @return The fileInfo.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo getFileInfo() {
return fileInfo_ == null ? com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.getDefaultInstance() : fileInfo_;
}
/**
*
**
* The information about the file
*
*
* .proto.FileGetInfoResponse.FileInfo fileInfo = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfoOrBuilder getFileInfoOrBuilder() {
return fileInfo_ == null ? com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.getDefaultInstance() : fileInfo_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getHeader());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getFileInfo());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFileInfo());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hedera.hashgraph.sdk.proto.FileGetInfoResponse)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse other = (com.hedera.hashgraph.sdk.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.FileGetInfoResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FileGetInfoResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.FileGetInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FileGetInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FileGetInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.FileGetInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FileGetInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FileGetInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FileGetInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.FileGetInfo.internal_static_proto_FileGetInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.FileGetInfo.internal_static_proto_FileGetInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.class, com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.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) {
getHeaderFieldBuilder();
getFileInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
header_ = null;
if (headerBuilder_ != null) {
headerBuilder_.dispose();
headerBuilder_ = null;
}
fileInfo_ = null;
if (fileInfoBuilder_ != null) {
fileInfoBuilder_.dispose();
fileInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.FileGetInfo.internal_static_proto_FileGetInfoResponse_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetInfoResponse getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetInfoResponse build() {
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetInfoResponse buildPartial() {
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse result = new com.hedera.hashgraph.sdk.proto.FileGetInfoResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.FileGetInfoResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.header_ = headerBuilder_ == null
? header_
: headerBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.fileInfo_ = fileInfoBuilder_ == null
? fileInfo_
: fileInfoBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hedera.hashgraph.sdk.proto.FileGetInfoResponse) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.FileGetInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.FileGetInfoResponse other) {
if (other == com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasFileInfo()) {
mergeFileInfo(other.getFileInfo());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getHeaderFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getFileInfoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.hedera.hashgraph.sdk.proto.ResponseHeader header_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ResponseHeader, com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* 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.hedera.hashgraph.sdk.proto.ResponseHeader getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ResponseHeader value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
} else {
headerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
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.hedera.hashgraph.sdk.proto.ResponseHeader.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
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.hedera.hashgraph.sdk.proto.ResponseHeader value) {
if (headerBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
header_ != null &&
header_ != com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance()) {
getHeaderBuilder().mergeFrom(value);
} else {
header_ = value;
}
} else {
headerBuilder_.mergeFrom(value);
}
if (header_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
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() {
bitField0_ = (bitField0_ & ~0x00000001);
header_ = null;
if (headerBuilder_ != null) {
headerBuilder_.dispose();
headerBuilder_ = null;
}
onChanged();
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.hedera.hashgraph.sdk.proto.ResponseHeader.Builder getHeaderBuilder() {
bitField0_ |= 0x00000001;
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.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ResponseHeader, com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder, com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ResponseHeader, com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder, com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo fileInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo, com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.Builder, com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfoOrBuilder> fileInfoBuilder_;
/**
*
**
* The information about the file
*
*
* .proto.FileGetInfoResponse.FileInfo fileInfo = 2;
* @return Whether the fileInfo field is set.
*/
public boolean hasFileInfo() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The information about the file
*
*
* .proto.FileGetInfoResponse.FileInfo fileInfo = 2;
* @return The fileInfo.
*/
public com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo getFileInfo() {
if (fileInfoBuilder_ == null) {
return fileInfo_ == null ? com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.getDefaultInstance() : fileInfo_;
} else {
return fileInfoBuilder_.getMessage();
}
}
/**
*
**
* The information about the file
*
*
* .proto.FileGetInfoResponse.FileInfo fileInfo = 2;
*/
public Builder setFileInfo(com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo value) {
if (fileInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileInfo_ = value;
} else {
fileInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The information about the file
*
*
* .proto.FileGetInfoResponse.FileInfo fileInfo = 2;
*/
public Builder setFileInfo(
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.Builder builderForValue) {
if (fileInfoBuilder_ == null) {
fileInfo_ = builderForValue.build();
} else {
fileInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The information about the file
*
*
* .proto.FileGetInfoResponse.FileInfo fileInfo = 2;
*/
public Builder mergeFileInfo(com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo value) {
if (fileInfoBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
fileInfo_ != null &&
fileInfo_ != com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.getDefaultInstance()) {
getFileInfoBuilder().mergeFrom(value);
} else {
fileInfo_ = value;
}
} else {
fileInfoBuilder_.mergeFrom(value);
}
if (fileInfo_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* The information about the file
*
*
* .proto.FileGetInfoResponse.FileInfo fileInfo = 2;
*/
public Builder clearFileInfo() {
bitField0_ = (bitField0_ & ~0x00000002);
fileInfo_ = null;
if (fileInfoBuilder_ != null) {
fileInfoBuilder_.dispose();
fileInfoBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The information about the file
*
*
* .proto.FileGetInfoResponse.FileInfo fileInfo = 2;
*/
public com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.Builder getFileInfoBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getFileInfoFieldBuilder().getBuilder();
}
/**
*
**
* The information about the file
*
*
* .proto.FileGetInfoResponse.FileInfo fileInfo = 2;
*/
public com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfoOrBuilder getFileInfoOrBuilder() {
if (fileInfoBuilder_ != null) {
return fileInfoBuilder_.getMessageOrBuilder();
} else {
return fileInfo_ == null ?
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.getDefaultInstance() : fileInfo_;
}
}
/**
*
**
* The information about the file
*
*
* .proto.FileGetInfoResponse.FileInfo fileInfo = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo, com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.Builder, com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfoOrBuilder>
getFileInfoFieldBuilder() {
if (fileInfoBuilder_ == null) {
fileInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo, com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo.Builder, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.FileGetInfoResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.FileGetInfoResponse();
}
public static com.hedera.hashgraph.sdk.proto.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetInfoResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}