shgraph.hedera-protobuf-java-api.0.56.2.source-code.file_update.proto Maven / Gradle / Ivy
syntax = "proto3";
package proto;
/*-
*
* Hedera Network Services Protobuf
*
* Copyright (C) 2018 - 2021 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
option java_package = "com.hederahashgraph.api.proto.java";
// <<>> This comment is special code for setting PBJ Compiler java package
option java_multiple_files = true;
import "basic_types.proto";
import "timestamp.proto";
import "google/protobuf/wrappers.proto";
/**
* Modify the metadata and/or contents of a file. If a field is not set in the transaction body, the
* corresponding file attribute will be unchanged. This transaction must be signed by all the keys
* in the top level of a key list (M-of-M) of the file being updated. If the keys themselves are
* being updated, then the transaction must also be signed by all the new keys. If the keys contain
* additional KeyList or ThresholdKey then M-of-M secondary KeyList or ThresholdKey signing
* requirements must be meet If the update transaction sets the auto_renew_account_id field
* to anything other than the sentinel 0.0.0, the key of the referenced account must sign.
*/
message FileUpdateTransactionBody {
/**
* The ID of the file to update
*/
FileID fileID = 1;
/**
* The new expiry time (ignored if not later than the current expiry)
*/
Timestamp expirationTime = 2;
/**
* The new list of keys that can modify or delete the file
*/
KeyList keys = 3;
/**
* The new contents that should overwrite the file's current contents
*/
bytes contents = 4;
/**
* If set, the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
*/
google.protobuf.StringValue memo = 5;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy