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

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

There is a newer version: 2.39.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: file_delete.proto

package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * Delete the given file. After deletion, it will be marked as deleted and will have no contents.
 * But information about it will continue to exist until it expires. A list of keys was given when
 * the file was created. All the top level keys on that list must sign transactions to create or
 * modify the file, but any single one of the top level keys can be used to delete the file. This
 * transaction must be signed by 1-of-M KeyList keys. If keys contains additional KeyList or
 * ThresholdKey then 1-of-M secondary KeyList or ThresholdKey signing requirements must be meet.
 * 
* * Protobuf type {@code proto.FileDeleteTransactionBody} */ public final class FileDeleteTransactionBody extends com.google.protobuf.GeneratedMessageLite< FileDeleteTransactionBody, FileDeleteTransactionBody.Builder> implements // @@protoc_insertion_point(message_implements:proto.FileDeleteTransactionBody) FileDeleteTransactionBodyOrBuilder { private FileDeleteTransactionBody() { } private int bitField0_; public static final int FILEID_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.FileID fileID_; /** *
   **
   * The file to delete. It will be marked as deleted until it expires. Then it will disappear.
   * 
* * .proto.FileID fileID = 2; */ @java.lang.Override public boolean hasFileID() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The file to delete. It will be marked as deleted until it expires. Then it will disappear.
   * 
* * .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 delete. It will be marked as deleted until it expires. Then it will disappear.
   * 
* * .proto.FileID fileID = 2; */ private void setFileID(com.hedera.hashgraph.sdk.proto.FileID value) { value.getClass(); fileID_ = value; bitField0_ |= 0x00000001; } /** *
   **
   * The file to delete. It will be marked as deleted until it expires. Then it will disappear.
   * 
* * .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; } bitField0_ |= 0x00000001; } /** *
   **
   * The file to delete. It will be marked as deleted until it expires. Then it will disappear.
   * 
* * .proto.FileID fileID = 2; */ private void clearFileID() { fileID_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static com.hedera.hashgraph.sdk.proto.FileDeleteTransactionBody 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.FileDeleteTransactionBody 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.FileDeleteTransactionBody 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.FileDeleteTransactionBody 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.FileDeleteTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.FileDeleteTransactionBody 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.FileDeleteTransactionBody 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.FileDeleteTransactionBody 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.FileDeleteTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.FileDeleteTransactionBody 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.FileDeleteTransactionBody 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.FileDeleteTransactionBody 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.FileDeleteTransactionBody prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * Delete the given file. After deletion, it will be marked as deleted and will have no contents.
   * But information about it will continue to exist until it expires. A list of keys was given when
   * the file was created. All the top level keys on that list must sign transactions to create or
   * modify the file, but any single one of the top level keys can be used to delete the file. This
   * transaction must be signed by 1-of-M KeyList keys. If keys contains additional KeyList or
   * ThresholdKey then 1-of-M secondary KeyList or ThresholdKey signing requirements must be meet.
   * 
* * Protobuf type {@code proto.FileDeleteTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.FileDeleteTransactionBody, Builder> implements // @@protoc_insertion_point(builder_implements:proto.FileDeleteTransactionBody) com.hedera.hashgraph.sdk.proto.FileDeleteTransactionBodyOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.FileDeleteTransactionBody.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * The file to delete. It will be marked as deleted until it expires. Then it will disappear.
     * 
* * .proto.FileID fileID = 2; */ @java.lang.Override public boolean hasFileID() { return instance.hasFileID(); } /** *
     **
     * The file to delete. It will be marked as deleted until it expires. Then it will disappear.
     * 
* * .proto.FileID fileID = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FileID getFileID() { return instance.getFileID(); } /** *
     **
     * The file to delete. It will be marked as deleted until it expires. Then it will disappear.
     * 
* * .proto.FileID fileID = 2; */ public Builder setFileID(com.hedera.hashgraph.sdk.proto.FileID value) { copyOnWrite(); instance.setFileID(value); return this; } /** *
     **
     * The file to delete. It will be marked as deleted until it expires. Then it will disappear.
     * 
* * .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 delete. It will be marked as deleted until it expires. Then it will disappear.
     * 
* * .proto.FileID fileID = 2; */ public Builder mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) { copyOnWrite(); instance.mergeFileID(value); return this; } /** *
     **
     * The file to delete. It will be marked as deleted until it expires. Then it will disappear.
     * 
* * .proto.FileID fileID = 2; */ public Builder clearFileID() { copyOnWrite(); instance.clearFileID(); return this; } // @@protoc_insertion_point(builder_scope:proto.FileDeleteTransactionBody) } @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.FileDeleteTransactionBody(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "fileID_", }; java.lang.String info = "\u0000\u0001\u0000\u0001\u0002\u0002\u0001\u0000\u0000\u0000\u0002\u1009\u0000"; 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.FileDeleteTransactionBody.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.FileDeleteTransactionBody) private static final com.hedera.hashgraph.sdk.proto.FileDeleteTransactionBody DEFAULT_INSTANCE; static { FileDeleteTransactionBody defaultInstance = new FileDeleteTransactionBody(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( FileDeleteTransactionBody.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.FileDeleteTransactionBody 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