Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class FileUpdateTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<FileUpdateTransactionBody,FileUpdateTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<FileUpdateTransactionBody,FileUpdateTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,FileUpdateTransactionBodyOrBuilder
@Generated
public final class FileUpdateTransactionBody
extends com.google.protobuf.GeneratedMessageLite<FileUpdateTransactionBody,FileUpdateTransactionBody.Builder>
implements FileUpdateTransactionBodyOrBuilder
* Update the metadata, and/or replace the content, of a file in the Hedera File Service (HFS). Any field which is not set (i.e. is null) in this message, other than `fileID`, SHALL be ignored.<br/> If the `keys` list for the identified file is an empty `KeyList`, then this message MUST NOT set any field except `expirationTime`. #### Signature Requirements Every `Key` in the `keys` list for the identified file MUST sign this transaction, if any field other than `expirationTime` is to be updated.<br/> If the `keys` list for the identified file is an empty `KeyList` (because this file was previously created or updated to have an empty `KeyList`), then the file is considered immutable and this message MUST NOT set any field except `expirationTime`.<br/> See the [File Service](#FileService) specification for a detailed explanation of the signature requirements for all file transactions. ### Block Stream Effects NoneProtobuf type
proto.FileUpdateTransactionBody-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Update the metadata, and/or replace the content, of a file in the Hedera File Service (HFS).Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) com.google.protobuf.ByteString* An array of bytes.static FileUpdateTransactionBody* An expiration timestamp.* A file identifier for the file to update.getKeys()* The new list of keys that "own" this file.com.google.protobuf.StringValuegetMemo()* A short description of this file.boolean* An expiration timestamp.boolean* A file identifier for the file to update.booleanhasKeys()* The new list of keys that "own" this file.booleanhasMemo()* A short description of this file.newBuilder(FileUpdateTransactionBody prototype) static FileUpdateTransactionBodyparseDelimitedFrom(InputStream input) static FileUpdateTransactionBodyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FileUpdateTransactionBodyparseFrom(byte[] data) static FileUpdateTransactionBodyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FileUpdateTransactionBodyparseFrom(com.google.protobuf.ByteString data) static FileUpdateTransactionBodyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FileUpdateTransactionBodyparseFrom(com.google.protobuf.CodedInputStream input) static FileUpdateTransactionBodyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FileUpdateTransactionBodyparseFrom(InputStream input) static FileUpdateTransactionBodyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FileUpdateTransactionBodyparseFrom(ByteBuffer data) static FileUpdateTransactionBodyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FileUpdateTransactionBody> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
FILEID_FIELD_NUMBER
public static final int FILEID_FIELD_NUMBER- See Also:
-
EXPIRATIONTIME_FIELD_NUMBER
public static final int EXPIRATIONTIME_FIELD_NUMBER- See Also:
-
KEYS_FIELD_NUMBER
public static final int KEYS_FIELD_NUMBER- See Also:
-
CONTENTS_FIELD_NUMBER
public static final int CONTENTS_FIELD_NUMBER- See Also:
-
MEMO_FIELD_NUMBER
public static final int MEMO_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasFileID
public boolean hasFileID()* A file identifier for the file to update. <p> This field is REQUIRED.
.proto.FileID fileID = 1;- Specified by:
hasFileIDin interfaceFileUpdateTransactionBodyOrBuilder- Returns:
- Whether the fileID field is set.
-
getFileID
* A file identifier for the file to update. <p> This field is REQUIRED.
.proto.FileID fileID = 1;- Specified by:
getFileIDin interfaceFileUpdateTransactionBodyOrBuilder- Returns:
- The fileID.
-
hasExpirationTime
public boolean hasExpirationTime()* An expiration timestamp. <p> If set, this value MUST be strictly later than the existing `expirationTime` value, or else it will be ignored.<br/> If set, this value SHALL replace the existing `expirationTime`.<br/> If this field is the only field set, then this transaction SHALL NOT require any signature other than the `payer` for the transaction.<br/> When the network consensus time exceeds the then-current `expirationTime`, the network SHALL expire the file.
.proto.Timestamp expirationTime = 2;- Specified by:
hasExpirationTimein interfaceFileUpdateTransactionBodyOrBuilder- Returns:
- Whether the expirationTime field is set.
-
getExpirationTime
* An expiration timestamp. <p> If set, this value MUST be strictly later than the existing `expirationTime` value, or else it will be ignored.<br/> If set, this value SHALL replace the existing `expirationTime`.<br/> If this field is the only field set, then this transaction SHALL NOT require any signature other than the `payer` for the transaction.<br/> When the network consensus time exceeds the then-current `expirationTime`, the network SHALL expire the file.
.proto.Timestamp expirationTime = 2;- Specified by:
getExpirationTimein interfaceFileUpdateTransactionBodyOrBuilder- Returns:
- The expirationTime.
-
hasKeys
public boolean hasKeys()* The new list of keys that "own" this file. <p> If set, every key in this `KeyList` MUST sign this transaction.<br/> If set, every key in the _previous_ `KeyList` MUST _also_ sign this transaction.<br/> If this value is an empty `KeyList`, then the file SHALL be immutable after completion of this transaction.
.proto.KeyList keys = 3;- Specified by:
hasKeysin interfaceFileUpdateTransactionBodyOrBuilder- Returns:
- Whether the keys field is set.
-
getKeys
* The new list of keys that "own" this file. <p> If set, every key in this `KeyList` MUST sign this transaction.<br/> If set, every key in the _previous_ `KeyList` MUST _also_ sign this transaction.<br/> If this value is an empty `KeyList`, then the file SHALL be immutable after completion of this transaction.
.proto.KeyList keys = 3;- Specified by:
getKeysin interfaceFileUpdateTransactionBodyOrBuilder- Returns:
- The keys.
-
getContents
public com.google.protobuf.ByteString getContents()* An array of bytes. <p> This value, if set, SHALL _replace_ the existing file content. If this value is set to an empty byte array, the content of the file SHALL be unchanged.
bytes contents = 4;- Specified by:
getContentsin interfaceFileUpdateTransactionBodyOrBuilder- Returns:
- The contents.
-
hasMemo
public boolean hasMemo()* A short description of this file. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
.google.protobuf.StringValue memo = 5;- Specified by:
hasMemoin interfaceFileUpdateTransactionBodyOrBuilder- Returns:
- Whether the memo field is set.
-
getMemo
public com.google.protobuf.StringValue getMemo()* A short description of this file. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
.google.protobuf.StringValue memo = 5;- Specified by:
getMemoin interfaceFileUpdateTransactionBodyOrBuilder- Returns:
- The memo.
-
parseFrom
public static FileUpdateTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FileUpdateTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FileUpdateTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FileUpdateTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FileUpdateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FileUpdateTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FileUpdateTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static FileUpdateTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static FileUpdateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static FileUpdateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<FileUpdateTransactionBody,FileUpdateTransactionBody.Builder>
-
getDefaultInstance
-
parser
-