com.hedera.hashgraph.sdk.proto.FileGetContentsResponse 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_contents.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Response when the client sends the node FileGetContentsQuery
*
*
* Protobuf type {@code proto.FileGetContentsResponse}
*/
public final class FileGetContentsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.FileGetContentsResponse)
FileGetContentsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileGetContentsResponse.newBuilder() to construct.
private FileGetContentsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileGetContentsResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileGetContentsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.FileGetContents.internal_static_proto_FileGetContentsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.FileGetContents.internal_static_proto_FileGetContentsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.class, com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.Builder.class);
}
public interface FileContentsOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto.FileGetContentsResponse.FileContents)
com.google.protobuf.MessageOrBuilder {
/**
*
**
* The file ID of the file whose contents are being returned
*
*
* .proto.FileID fileID = 1;
* @return Whether the fileID field is set.
*/
boolean hasFileID();
/**
*
**
* The file ID of the file whose contents are being returned
*
*
* .proto.FileID fileID = 1;
* @return The fileID.
*/
com.hedera.hashgraph.sdk.proto.FileID getFileID();
/**
*
**
* The file ID of the file whose contents are being returned
*
*
* .proto.FileID fileID = 1;
*/
com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder();
/**
*
**
* The bytes contained in the file
*
*
* bytes contents = 2;
* @return The contents.
*/
com.google.protobuf.ByteString getContents();
}
/**
* Protobuf type {@code proto.FileGetContentsResponse.FileContents}
*/
public static final class FileContents extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.FileGetContentsResponse.FileContents)
FileContentsOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileContents.newBuilder() to construct.
private FileContents(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileContents() {
contents_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileContents();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.FileGetContents.internal_static_proto_FileGetContentsResponse_FileContents_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.FileGetContents.internal_static_proto_FileGetContentsResponse_FileContents_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.class, com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.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 whose contents are being returned
*
*
* .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 whose contents are being returned
*
*
* .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 whose contents are being returned
*
*
* .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 CONTENTS_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The bytes contained in the file
*
*
* bytes contents = 2;
* @return The contents.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContents() {
return contents_;
}
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 (!contents_.isEmpty()) {
output.writeBytes(2, contents_);
}
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 (!contents_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, contents_);
}
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.FileGetContentsResponse.FileContents)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents other = (com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents) obj;
if (hasFileID() != other.hasFileID()) return false;
if (hasFileID()) {
if (!getFileID()
.equals(other.getFileID())) return false;
}
if (!getContents()
.equals(other.getContents())) 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) + CONTENTS_FIELD_NUMBER;
hash = (53 * hash) + getContents().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents 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.FileGetContentsResponse.FileContents parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents 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.FileGetContentsResponse.FileContents parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents 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.FileGetContentsResponse.FileContents parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents 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.FileGetContentsResponse.FileContents parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents 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.FileGetContentsResponse.FileContents 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.FileGetContentsResponse.FileContents 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.FileGetContentsResponse.FileContents 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.FileGetContentsResponse.FileContents}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.FileGetContentsResponse.FileContents)
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContentsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.FileGetContents.internal_static_proto_FileGetContentsResponse_FileContents_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.FileGetContents.internal_static_proto_FileGetContentsResponse_FileContents_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.class, com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.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();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
fileID_ = null;
if (fileIDBuilder_ != null) {
fileIDBuilder_.dispose();
fileIDBuilder_ = null;
}
contents_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.FileGetContents.internal_static_proto_FileGetContentsResponse_FileContents_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents build() {
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents buildPartial() {
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents result = new com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents 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.contents_ = contents_;
}
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.FileGetContentsResponse.FileContents) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents other) {
if (other == com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.getDefaultInstance()) return this;
if (other.hasFileID()) {
mergeFileID(other.getFileID());
}
if (other.getContents() != com.google.protobuf.ByteString.EMPTY) {
setContents(other.getContents());
}
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 18: {
contents_ = input.readBytes();
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.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 whose contents are being returned
*
*
* .proto.FileID fileID = 1;
* @return Whether the fileID field is set.
*/
public boolean hasFileID() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The file ID of the file whose contents are being returned
*
*
* .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 whose contents are being returned
*
*
* .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 whose contents are being returned
*
*
* .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 whose contents are being returned
*
*
* .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 whose contents are being returned
*
*
* .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 whose contents are being returned
*
*
* .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 whose contents are being returned
*
*
* .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 whose contents are being returned
*
*
* .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 com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The bytes contained in the file
*
*
* bytes contents = 2;
* @return The contents.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContents() {
return contents_;
}
/**
*
**
* The bytes contained in the file
*
*
* bytes contents = 2;
* @param value The contents to set.
* @return This builder for chaining.
*/
public Builder setContents(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
contents_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The bytes contained in the file
*
*
* bytes contents = 2;
* @return This builder for chaining.
*/
public Builder clearContents() {
bitField0_ = (bitField0_ & ~0x00000002);
contents_ = getDefaultInstance().getContents();
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.FileGetContentsResponse.FileContents)
}
// @@protoc_insertion_point(class_scope:proto.FileGetContentsResponse.FileContents)
private static final com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents();
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileContents 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.FileGetContentsResponse.FileContents 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 FILECONTENTS_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents fileContents_;
/**
*
**
* the file ID and contents (a state proof can be generated for this)
*
*
* .proto.FileGetContentsResponse.FileContents fileContents = 2;
* @return Whether the fileContents field is set.
*/
@java.lang.Override
public boolean hasFileContents() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* the file ID and contents (a state proof can be generated for this)
*
*
* .proto.FileGetContentsResponse.FileContents fileContents = 2;
* @return The fileContents.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents getFileContents() {
return fileContents_ == null ? com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.getDefaultInstance() : fileContents_;
}
/**
*
**
* the file ID and contents (a state proof can be generated for this)
*
*
* .proto.FileGetContentsResponse.FileContents fileContents = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContentsOrBuilder getFileContentsOrBuilder() {
return fileContents_ == null ? com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.getDefaultInstance() : fileContents_;
}
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, getFileContents());
}
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, getFileContents());
}
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.FileGetContentsResponse)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse other = (com.hedera.hashgraph.sdk.proto.FileGetContentsResponse) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (hasFileContents() != other.hasFileContents()) return false;
if (hasFileContents()) {
if (!getFileContents()
.equals(other.getFileContents())) 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 (hasFileContents()) {
hash = (37 * hash) + FILECONTENTS_FIELD_NUMBER;
hash = (53 * hash) + getFileContents().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse 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.FileGetContentsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse 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.FileGetContentsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse 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.FileGetContentsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse 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.FileGetContentsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse 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.FileGetContentsResponse 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.FileGetContentsResponse 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.FileGetContentsResponse 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 FileGetContentsQuery
*
*
* Protobuf type {@code proto.FileGetContentsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.FileGetContentsResponse)
com.hedera.hashgraph.sdk.proto.FileGetContentsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.FileGetContents.internal_static_proto_FileGetContentsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.FileGetContents.internal_static_proto_FileGetContentsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.class, com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.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();
getFileContentsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
header_ = null;
if (headerBuilder_ != null) {
headerBuilder_.dispose();
headerBuilder_ = null;
}
fileContents_ = null;
if (fileContentsBuilder_ != null) {
fileContentsBuilder_.dispose();
fileContentsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.FileGetContents.internal_static_proto_FileGetContentsResponse_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetContentsResponse getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetContentsResponse build() {
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileGetContentsResponse buildPartial() {
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse result = new com.hedera.hashgraph.sdk.proto.FileGetContentsResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.FileGetContentsResponse 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.fileContents_ = fileContentsBuilder_ == null
? fileContents_
: fileContentsBuilder_.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.FileGetContentsResponse) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.FileGetContentsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.FileGetContentsResponse other) {
if (other == com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasFileContents()) {
mergeFileContents(other.getFileContents());
}
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(
getFileContentsFieldBuilder().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.FileGetContentsResponse.FileContents fileContents_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents, com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.Builder, com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContentsOrBuilder> fileContentsBuilder_;
/**
*
**
* the file ID and contents (a state proof can be generated for this)
*
*
* .proto.FileGetContentsResponse.FileContents fileContents = 2;
* @return Whether the fileContents field is set.
*/
public boolean hasFileContents() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* the file ID and contents (a state proof can be generated for this)
*
*
* .proto.FileGetContentsResponse.FileContents fileContents = 2;
* @return The fileContents.
*/
public com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents getFileContents() {
if (fileContentsBuilder_ == null) {
return fileContents_ == null ? com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.getDefaultInstance() : fileContents_;
} else {
return fileContentsBuilder_.getMessage();
}
}
/**
*
**
* the file ID and contents (a state proof can be generated for this)
*
*
* .proto.FileGetContentsResponse.FileContents fileContents = 2;
*/
public Builder setFileContents(com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents value) {
if (fileContentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileContents_ = value;
} else {
fileContentsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* the file ID and contents (a state proof can be generated for this)
*
*
* .proto.FileGetContentsResponse.FileContents fileContents = 2;
*/
public Builder setFileContents(
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.Builder builderForValue) {
if (fileContentsBuilder_ == null) {
fileContents_ = builderForValue.build();
} else {
fileContentsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* the file ID and contents (a state proof can be generated for this)
*
*
* .proto.FileGetContentsResponse.FileContents fileContents = 2;
*/
public Builder mergeFileContents(com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents value) {
if (fileContentsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
fileContents_ != null &&
fileContents_ != com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.getDefaultInstance()) {
getFileContentsBuilder().mergeFrom(value);
} else {
fileContents_ = value;
}
} else {
fileContentsBuilder_.mergeFrom(value);
}
if (fileContents_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* the file ID and contents (a state proof can be generated for this)
*
*
* .proto.FileGetContentsResponse.FileContents fileContents = 2;
*/
public Builder clearFileContents() {
bitField0_ = (bitField0_ & ~0x00000002);
fileContents_ = null;
if (fileContentsBuilder_ != null) {
fileContentsBuilder_.dispose();
fileContentsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* the file ID and contents (a state proof can be generated for this)
*
*
* .proto.FileGetContentsResponse.FileContents fileContents = 2;
*/
public com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.Builder getFileContentsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getFileContentsFieldBuilder().getBuilder();
}
/**
*
**
* the file ID and contents (a state proof can be generated for this)
*
*
* .proto.FileGetContentsResponse.FileContents fileContents = 2;
*/
public com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContentsOrBuilder getFileContentsOrBuilder() {
if (fileContentsBuilder_ != null) {
return fileContentsBuilder_.getMessageOrBuilder();
} else {
return fileContents_ == null ?
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.getDefaultInstance() : fileContents_;
}
}
/**
*
**
* the file ID and contents (a state proof can be generated for this)
*
*
* .proto.FileGetContentsResponse.FileContents fileContents = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents, com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.Builder, com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContentsOrBuilder>
getFileContentsFieldBuilder() {
if (fileContentsBuilder_ == null) {
fileContentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents, com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.Builder, com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContentsOrBuilder>(
getFileContents(),
getParentForChildren(),
isClean());
fileContents_ = null;
}
return fileContentsBuilder_;
}
@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.FileGetContentsResponse)
}
// @@protoc_insertion_point(class_scope:proto.FileGetContentsResponse)
private static final com.hedera.hashgraph.sdk.proto.FileGetContentsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.FileGetContentsResponse();
}
public static com.hedera.hashgraph.sdk.proto.FileGetContentsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileGetContentsResponse 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.FileGetContentsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}