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

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

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

package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * Append the given contents to the end of the specified file. If a file is too big to create with a
 * single FileCreateTransaction, then it can be created with the first part of its contents, and
 * then appended as many times as necessary to create the entire file. This transaction must be
 * signed by all initial M-of-M KeyList keys. If keys contains additional KeyList or ThresholdKey
 * then M-of-M secondary KeyList or ThresholdKey signing requirements must be meet. 
 * 
* * Protobuf type {@code proto.FileAppendTransactionBody} */ public final class FileAppendTransactionBody extends com.google.protobuf.GeneratedMessageLite< FileAppendTransactionBody, FileAppendTransactionBody.Builder> implements // @@protoc_insertion_point(message_implements:proto.FileAppendTransactionBody) FileAppendTransactionBodyOrBuilder { private FileAppendTransactionBody() { contents_ = com.google.protobuf.ByteString.EMPTY; } public static final int FILEID_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.FileID fileID_; /** *
   **
   * The file to which the bytes will be appended
   * 
* * .proto.FileID fileID = 2; */ @java.lang.Override public boolean hasFileID() { return fileID_ != null; } /** *
   **
   * The file to which the bytes will be appended
   * 
* * .proto.FileID fileID = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FileID getFileID() { return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_; } /** *
   **
   * The file to which the bytes will be appended
   * 
* * .proto.FileID fileID = 2; */ private void setFileID(com.hedera.hashgraph.sdk.proto.FileID value) { value.getClass(); fileID_ = value; } /** *
   **
   * The file to which the bytes will be appended
   * 
* * .proto.FileID fileID = 2; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) { value.getClass(); if (fileID_ != null && fileID_ != com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance()) { fileID_ = com.hedera.hashgraph.sdk.proto.FileID.newBuilder(fileID_).mergeFrom(value).buildPartial(); } else { fileID_ = value; } } /** *
   **
   * The file to which the bytes will be appended
   * 
* * .proto.FileID fileID = 2; */ private void clearFileID() { fileID_ = null; } public static final int CONTENTS_FIELD_NUMBER = 4; private com.google.protobuf.ByteString contents_; /** *
   **
   * The bytes that will be appended to the end of the specified file
   * 
* * bytes contents = 4; * @return The contents. */ @java.lang.Override public com.google.protobuf.ByteString getContents() { return contents_; } /** *
   **
   * The bytes that will be appended to the end of the specified file
   * 
* * bytes contents = 4; * @param value The contents to set. */ private void setContents(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); contents_ = value; } /** *
   **
   * The bytes that will be appended to the end of the specified file
   * 
* * bytes contents = 4; */ private void clearContents() { contents_ = getDefaultInstance().getContents(); } public static com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * Append the given contents to the end of the specified file. If a file is too big to create with a
   * single FileCreateTransaction, then it can be created with the first part of its contents, and
   * then appended as many times as necessary to create the entire file. This transaction must be
   * signed by all initial M-of-M KeyList keys. If keys contains additional KeyList or ThresholdKey
   * then M-of-M secondary KeyList or ThresholdKey signing requirements must be meet. 
   * 
* * Protobuf type {@code proto.FileAppendTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody, Builder> implements // @@protoc_insertion_point(builder_implements:proto.FileAppendTransactionBody) com.hedera.hashgraph.sdk.proto.FileAppendTransactionBodyOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * The file to which the bytes will be appended
     * 
* * .proto.FileID fileID = 2; */ @java.lang.Override public boolean hasFileID() { return instance.hasFileID(); } /** *
     **
     * The file to which the bytes will be appended
     * 
* * .proto.FileID fileID = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FileID getFileID() { return instance.getFileID(); } /** *
     **
     * The file to which the bytes will be appended
     * 
* * .proto.FileID fileID = 2; */ public Builder setFileID(com.hedera.hashgraph.sdk.proto.FileID value) { copyOnWrite(); instance.setFileID(value); return this; } /** *
     **
     * The file to which the bytes will be appended
     * 
* * .proto.FileID fileID = 2; */ public Builder setFileID( com.hedera.hashgraph.sdk.proto.FileID.Builder builderForValue) { copyOnWrite(); instance.setFileID(builderForValue.build()); return this; } /** *
     **
     * The file to which the bytes will be appended
     * 
* * .proto.FileID fileID = 2; */ public Builder mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) { copyOnWrite(); instance.mergeFileID(value); return this; } /** *
     **
     * The file to which the bytes will be appended
     * 
* * .proto.FileID fileID = 2; */ public Builder clearFileID() { copyOnWrite(); instance.clearFileID(); return this; } /** *
     **
     * The bytes that will be appended to the end of the specified file
     * 
* * bytes contents = 4; * @return The contents. */ @java.lang.Override public com.google.protobuf.ByteString getContents() { return instance.getContents(); } /** *
     **
     * The bytes that will be appended to the end of the specified file
     * 
* * bytes contents = 4; * @param value The contents to set. * @return This builder for chaining. */ public Builder setContents(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setContents(value); return this; } /** *
     **
     * The bytes that will be appended to the end of the specified file
     * 
* * bytes contents = 4; * @return This builder for chaining. */ public Builder clearContents() { copyOnWrite(); instance.clearContents(); return this; } // @@protoc_insertion_point(builder_scope:proto.FileAppendTransactionBody) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "fileID_", "contents_", }; java.lang.String info = "\u0000\u0002\u0000\u0000\u0002\u0004\u0002\u0000\u0000\u0000\u0002\t\u0004\n"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.FileAppendTransactionBody) private static final com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody DEFAULT_INSTANCE; static { FileAppendTransactionBody defaultInstance = new FileAppendTransactionBody(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( FileAppendTransactionBody.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy