Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class FreezeTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<FreezeTransactionBody,FreezeTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<FreezeTransactionBody,FreezeTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.FreezeTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,FreezeTransactionBodyOrBuilder,Cloneable
- Enclosing class:
FreezeTransactionBody
public static final class FreezeTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<FreezeTransactionBody,FreezeTransactionBody.Builder>
implements FreezeTransactionBodyOrBuilder
* A transaction body for all five freeze transactions. Combining five different transactions into a single message, this transaction body MUST support options to schedule a freeze, abort a scheduled freeze, prepare a software upgrade, prepare a telemetry upgrade, or initiate a software upgrade. For a scheduled freeze, at the scheduled time, according to network consensus time - A freeze (`FREEZE_ONLY`) causes the network nodes to stop creating events or accepting transactions, and enter a persistent maintenance state. - A freeze upgrade (`FREEZE_UPGRADE`) causes the network nodes to stop creating events or accepting transactions, and upgrade the node software from a previously prepared upgrade package. The network nodes then restart and rejoin the network after upgrading. For other freeze types, immediately upon processing the freeze transaction - A Freeze Abort (`FREEZE_ABORT`) cancels any pending scheduled freeze. - A prepare upgrade (`PREPARE_UPGRADE`) begins to extract the contents of the specified upgrade file to the local filesystem. - A telemetry upgrade (`TELEMETRY_UPGRADE`) causes the network nodes to extract a telemetry upgrade package to the local filesystem and signal other software on the machine to upgrade, without impacting the node or network processing. ### Block Stream Effects UnknownProtobuf type
proto.FreezeTransactionBody-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.proto.FreezeTransactionBody.endHour is deprecated.Deprecated.proto.FreezeTransactionBody.endMin is deprecated.* A SHA384 hash of file content.<br/> This is a hash of the file identified by `update_file`.* The type of freeze.Deprecated.proto.FreezeTransactionBody.startHour is deprecated.Deprecated.proto.FreezeTransactionBody.startMin is deprecated.* A start time for the freeze.* An upgrade file.intDeprecated.proto.FreezeTransactionBody.endHour is deprecated.intDeprecated.proto.FreezeTransactionBody.endMin is deprecated.com.google.protobuf.ByteString* A SHA384 hash of file content.<br/> This is a hash of the file identified by `update_file`.* The type of freeze.int* The type of freeze.intDeprecated.proto.FreezeTransactionBody.startHour is deprecated.intDeprecated.proto.FreezeTransactionBody.startMin is deprecated.* A start time for the freeze.* An upgrade file.boolean* A start time for the freeze.boolean* An upgrade file.mergeStartTime(Timestamp value) * A start time for the freeze.mergeUpdateFile(FileID value) * An upgrade file.setEndHour(int value) Deprecated.proto.FreezeTransactionBody.endHour is deprecated.setEndMin(int value) Deprecated.proto.FreezeTransactionBody.endMin is deprecated.setFileHash(com.google.protobuf.ByteString value) * A SHA384 hash of file content.<br/> This is a hash of the file identified by `update_file`.setFreezeType(FreezeType value) * The type of freeze.setFreezeTypeValue(int value) * The type of freeze.setStartHour(int value) Deprecated.proto.FreezeTransactionBody.startHour is deprecated.setStartMin(int value) Deprecated.proto.FreezeTransactionBody.startMin is deprecated.setStartTime(Timestamp value) * A start time for the freeze.setStartTime(Timestamp.Builder builderForValue) * A start time for the freeze.setUpdateFile(FileID value) * An upgrade file.setUpdateFile(FileID.Builder builderForValue) * An upgrade file.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getStartHour
Deprecated.proto.FreezeTransactionBody.startHour is deprecated. See freeze.proto;l=59* Rejected if set; replace with `start_time`.<br/> The start hour (in UTC time), a value between 0 and 23
int32 startHour = 1 [deprecated = true];- Specified by:
getStartHourin interfaceFreezeTransactionBodyOrBuilder- Returns:
- The startHour.
-
setStartHour
Deprecated.proto.FreezeTransactionBody.startHour is deprecated. See freeze.proto;l=59* Rejected if set; replace with `start_time`.<br/> The start hour (in UTC time), a value between 0 and 23
int32 startHour = 1 [deprecated = true];- Parameters:
value- The startHour to set.- Returns:
- This builder for chaining.
-
clearStartHour
Deprecated.proto.FreezeTransactionBody.startHour is deprecated. See freeze.proto;l=59* Rejected if set; replace with `start_time`.<br/> The start hour (in UTC time), a value between 0 and 23
int32 startHour = 1 [deprecated = true];- Returns:
- This builder for chaining.
-
getStartMin
Deprecated.proto.FreezeTransactionBody.startMin is deprecated. See freeze.proto;l=65* Rejected if set; replace with `start_time`.<br/> The start minute (in UTC time), a value between 0 and 59
int32 startMin = 2 [deprecated = true];- Specified by:
getStartMinin interfaceFreezeTransactionBodyOrBuilder- Returns:
- The startMin.
-
setStartMin
Deprecated.proto.FreezeTransactionBody.startMin is deprecated. See freeze.proto;l=65* Rejected if set; replace with `start_time`.<br/> The start minute (in UTC time), a value between 0 and 59
int32 startMin = 2 [deprecated = true];- Parameters:
value- The startMin to set.- Returns:
- This builder for chaining.
-
clearStartMin
Deprecated.proto.FreezeTransactionBody.startMin is deprecated. See freeze.proto;l=65* Rejected if set; replace with `start_time`.<br/> The start minute (in UTC time), a value between 0 and 59
int32 startMin = 2 [deprecated = true];- Returns:
- This builder for chaining.
-
getEndHour
Deprecated.proto.FreezeTransactionBody.endHour is deprecated. See freeze.proto;l=72* Rejected if set; end time is neither assigned nor guaranteed and depends on many uncontrolled factors.<br/> The end hour (in UTC time), a value between 0 and 23
int32 endHour = 3 [deprecated = true];- Specified by:
getEndHourin interfaceFreezeTransactionBodyOrBuilder- Returns:
- The endHour.
-
setEndHour
Deprecated.proto.FreezeTransactionBody.endHour is deprecated. See freeze.proto;l=72* Rejected if set; end time is neither assigned nor guaranteed and depends on many uncontrolled factors.<br/> The end hour (in UTC time), a value between 0 and 23
int32 endHour = 3 [deprecated = true];- Parameters:
value- The endHour to set.- Returns:
- This builder for chaining.
-
clearEndHour
Deprecated.proto.FreezeTransactionBody.endHour is deprecated. See freeze.proto;l=72* Rejected if set; end time is neither assigned nor guaranteed and depends on many uncontrolled factors.<br/> The end hour (in UTC time), a value between 0 and 23
int32 endHour = 3 [deprecated = true];- Returns:
- This builder for chaining.
-
getEndMin
Deprecated.proto.FreezeTransactionBody.endMin is deprecated. See freeze.proto;l=79* Rejected if set; end time is neither assigned nor guaranteed and depends on many uncontrolled factors.<br/> The end minute (in UTC time), a value between 0 and 59
int32 endMin = 4 [deprecated = true];- Specified by:
getEndMinin interfaceFreezeTransactionBodyOrBuilder- Returns:
- The endMin.
-
setEndMin
Deprecated.proto.FreezeTransactionBody.endMin is deprecated. See freeze.proto;l=79* Rejected if set; end time is neither assigned nor guaranteed and depends on many uncontrolled factors.<br/> The end minute (in UTC time), a value between 0 and 59
int32 endMin = 4 [deprecated = true];- Parameters:
value- The endMin to set.- Returns:
- This builder for chaining.
-
clearEndMin
Deprecated.proto.FreezeTransactionBody.endMin is deprecated. See freeze.proto;l=79* Rejected if set; end time is neither assigned nor guaranteed and depends on many uncontrolled factors.<br/> The end minute (in UTC time), a value between 0 and 59
int32 endMin = 4 [deprecated = true];- Returns:
- This builder for chaining.
-
hasUpdateFile
public boolean hasUpdateFile()* An upgrade file. <p> If set, the identifier of a file in network state.<br/> The contents of this file MUST be a `zip` file and this data SHALL be extracted to the node filesystem during a `PREPARE_UPGRADE` or `TELEMETRY_UPGRADE` freeze type.<br/> The `file_hash` field MUST match the SHA384 hash of the content of this file.<br/> The extracted data SHALL be used to perform a network software update if a `FREEZE_UPGRADE` freeze type is subsequently processed.
.proto.FileID update_file = 5;- Specified by:
hasUpdateFilein interfaceFreezeTransactionBodyOrBuilder- Returns:
- Whether the updateFile field is set.
-
getUpdateFile
* An upgrade file. <p> If set, the identifier of a file in network state.<br/> The contents of this file MUST be a `zip` file and this data SHALL be extracted to the node filesystem during a `PREPARE_UPGRADE` or `TELEMETRY_UPGRADE` freeze type.<br/> The `file_hash` field MUST match the SHA384 hash of the content of this file.<br/> The extracted data SHALL be used to perform a network software update if a `FREEZE_UPGRADE` freeze type is subsequently processed.
.proto.FileID update_file = 5;- Specified by:
getUpdateFilein interfaceFreezeTransactionBodyOrBuilder- Returns:
- The updateFile.
-
setUpdateFile
* An upgrade file. <p> If set, the identifier of a file in network state.<br/> The contents of this file MUST be a `zip` file and this data SHALL be extracted to the node filesystem during a `PREPARE_UPGRADE` or `TELEMETRY_UPGRADE` freeze type.<br/> The `file_hash` field MUST match the SHA384 hash of the content of this file.<br/> The extracted data SHALL be used to perform a network software update if a `FREEZE_UPGRADE` freeze type is subsequently processed.
.proto.FileID update_file = 5; -
setUpdateFile
* An upgrade file. <p> If set, the identifier of a file in network state.<br/> The contents of this file MUST be a `zip` file and this data SHALL be extracted to the node filesystem during a `PREPARE_UPGRADE` or `TELEMETRY_UPGRADE` freeze type.<br/> The `file_hash` field MUST match the SHA384 hash of the content of this file.<br/> The extracted data SHALL be used to perform a network software update if a `FREEZE_UPGRADE` freeze type is subsequently processed.
.proto.FileID update_file = 5; -
mergeUpdateFile
* An upgrade file. <p> If set, the identifier of a file in network state.<br/> The contents of this file MUST be a `zip` file and this data SHALL be extracted to the node filesystem during a `PREPARE_UPGRADE` or `TELEMETRY_UPGRADE` freeze type.<br/> The `file_hash` field MUST match the SHA384 hash of the content of this file.<br/> The extracted data SHALL be used to perform a network software update if a `FREEZE_UPGRADE` freeze type is subsequently processed.
.proto.FileID update_file = 5; -
clearUpdateFile
* An upgrade file. <p> If set, the identifier of a file in network state.<br/> The contents of this file MUST be a `zip` file and this data SHALL be extracted to the node filesystem during a `PREPARE_UPGRADE` or `TELEMETRY_UPGRADE` freeze type.<br/> The `file_hash` field MUST match the SHA384 hash of the content of this file.<br/> The extracted data SHALL be used to perform a network software update if a `FREEZE_UPGRADE` freeze type is subsequently processed.
.proto.FileID update_file = 5; -
getFileHash
public com.google.protobuf.ByteString getFileHash()* A SHA384 hash of file content.<br/> This is a hash of the file identified by `update_file`. <p> This MUST be set if `update_file` is set, and MUST match the SHA384 hash of the contents of that file.
bytes file_hash = 6;- Specified by:
getFileHashin interfaceFreezeTransactionBodyOrBuilder- Returns:
- The fileHash.
-
setFileHash
* A SHA384 hash of file content.<br/> This is a hash of the file identified by `update_file`. <p> This MUST be set if `update_file` is set, and MUST match the SHA384 hash of the contents of that file.
bytes file_hash = 6;- Parameters:
value- The fileHash to set.- Returns:
- This builder for chaining.
-
clearFileHash
* A SHA384 hash of file content.<br/> This is a hash of the file identified by `update_file`. <p> This MUST be set if `update_file` is set, and MUST match the SHA384 hash of the contents of that file.
bytes file_hash = 6;- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()* A start time for the freeze. <p> If this field is REQUIRED for the specified `freeze_type`, then when the network consensus time reaches this instant<ol> <li>The network SHALL stop accepting transactions.</li> <li>The network SHALL gossip a freeze state.</li> <li>The nodes SHALL, in coordinated order, disconnect and shut down.</li> <li>The nodes SHALL halt or perform a software upgrade, depending on `freeze_type`.</li> <li>If the `freeze_type` is `FREEZE_UPGRADE`, the nodes SHALL restart and rejoin the network upon completion of the software upgrade.</li> </ol> <blockquote> If the `freeze_type` is `TELEMETRY_UPGRADE`, the start time is required, but the network SHALL NOT stop, halt, or interrupt transaction processing. The required field is an historical anomaly and SHOULD change in a future release.</blockquote>
.proto.Timestamp start_time = 7;- Specified by:
hasStartTimein interfaceFreezeTransactionBodyOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
* A start time for the freeze. <p> If this field is REQUIRED for the specified `freeze_type`, then when the network consensus time reaches this instant<ol> <li>The network SHALL stop accepting transactions.</li> <li>The network SHALL gossip a freeze state.</li> <li>The nodes SHALL, in coordinated order, disconnect and shut down.</li> <li>The nodes SHALL halt or perform a software upgrade, depending on `freeze_type`.</li> <li>If the `freeze_type` is `FREEZE_UPGRADE`, the nodes SHALL restart and rejoin the network upon completion of the software upgrade.</li> </ol> <blockquote> If the `freeze_type` is `TELEMETRY_UPGRADE`, the start time is required, but the network SHALL NOT stop, halt, or interrupt transaction processing. The required field is an historical anomaly and SHOULD change in a future release.</blockquote>
.proto.Timestamp start_time = 7;- Specified by:
getStartTimein interfaceFreezeTransactionBodyOrBuilder- Returns:
- The startTime.
-
setStartTime
* A start time for the freeze. <p> If this field is REQUIRED for the specified `freeze_type`, then when the network consensus time reaches this instant<ol> <li>The network SHALL stop accepting transactions.</li> <li>The network SHALL gossip a freeze state.</li> <li>The nodes SHALL, in coordinated order, disconnect and shut down.</li> <li>The nodes SHALL halt or perform a software upgrade, depending on `freeze_type`.</li> <li>If the `freeze_type` is `FREEZE_UPGRADE`, the nodes SHALL restart and rejoin the network upon completion of the software upgrade.</li> </ol> <blockquote> If the `freeze_type` is `TELEMETRY_UPGRADE`, the start time is required, but the network SHALL NOT stop, halt, or interrupt transaction processing. The required field is an historical anomaly and SHOULD change in a future release.</blockquote>
.proto.Timestamp start_time = 7; -
setStartTime
* A start time for the freeze. <p> If this field is REQUIRED for the specified `freeze_type`, then when the network consensus time reaches this instant<ol> <li>The network SHALL stop accepting transactions.</li> <li>The network SHALL gossip a freeze state.</li> <li>The nodes SHALL, in coordinated order, disconnect and shut down.</li> <li>The nodes SHALL halt or perform a software upgrade, depending on `freeze_type`.</li> <li>If the `freeze_type` is `FREEZE_UPGRADE`, the nodes SHALL restart and rejoin the network upon completion of the software upgrade.</li> </ol> <blockquote> If the `freeze_type` is `TELEMETRY_UPGRADE`, the start time is required, but the network SHALL NOT stop, halt, or interrupt transaction processing. The required field is an historical anomaly and SHOULD change in a future release.</blockquote>
.proto.Timestamp start_time = 7; -
mergeStartTime
* A start time for the freeze. <p> If this field is REQUIRED for the specified `freeze_type`, then when the network consensus time reaches this instant<ol> <li>The network SHALL stop accepting transactions.</li> <li>The network SHALL gossip a freeze state.</li> <li>The nodes SHALL, in coordinated order, disconnect and shut down.</li> <li>The nodes SHALL halt or perform a software upgrade, depending on `freeze_type`.</li> <li>If the `freeze_type` is `FREEZE_UPGRADE`, the nodes SHALL restart and rejoin the network upon completion of the software upgrade.</li> </ol> <blockquote> If the `freeze_type` is `TELEMETRY_UPGRADE`, the start time is required, but the network SHALL NOT stop, halt, or interrupt transaction processing. The required field is an historical anomaly and SHOULD change in a future release.</blockquote>
.proto.Timestamp start_time = 7; -
clearStartTime
* A start time for the freeze. <p> If this field is REQUIRED for the specified `freeze_type`, then when the network consensus time reaches this instant<ol> <li>The network SHALL stop accepting transactions.</li> <li>The network SHALL gossip a freeze state.</li> <li>The nodes SHALL, in coordinated order, disconnect and shut down.</li> <li>The nodes SHALL halt or perform a software upgrade, depending on `freeze_type`.</li> <li>If the `freeze_type` is `FREEZE_UPGRADE`, the nodes SHALL restart and rejoin the network upon completion of the software upgrade.</li> </ol> <blockquote> If the `freeze_type` is `TELEMETRY_UPGRADE`, the start time is required, but the network SHALL NOT stop, halt, or interrupt transaction processing. The required field is an historical anomaly and SHOULD change in a future release.</blockquote>
.proto.Timestamp start_time = 7; -
getFreezeTypeValue
public int getFreezeTypeValue()* The type of freeze. <p> This REQUIRED field effectively selects between five quite different transactions in the same transaction body. Depending on this value the service may schedule a freeze, prepare upgrades, perform upgrades, or even abort a previously scheduled freeze.
.proto.FreezeType freeze_type = 8;- Specified by:
getFreezeTypeValuein interfaceFreezeTransactionBodyOrBuilder- Returns:
- The enum numeric value on the wire for freezeType.
-
setFreezeTypeValue
* The type of freeze. <p> This REQUIRED field effectively selects between five quite different transactions in the same transaction body. Depending on this value the service may schedule a freeze, prepare upgrades, perform upgrades, or even abort a previously scheduled freeze.
.proto.FreezeType freeze_type = 8;- Parameters:
value- The freezeType to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getFreezeType
* The type of freeze. <p> This REQUIRED field effectively selects between five quite different transactions in the same transaction body. Depending on this value the service may schedule a freeze, prepare upgrades, perform upgrades, or even abort a previously scheduled freeze.
.proto.FreezeType freeze_type = 8;- Specified by:
getFreezeTypein interfaceFreezeTransactionBodyOrBuilder- Returns:
- The freezeType.
-
setFreezeType
* The type of freeze. <p> This REQUIRED field effectively selects between five quite different transactions in the same transaction body. Depending on this value the service may schedule a freeze, prepare upgrades, perform upgrades, or even abort a previously scheduled freeze.
.proto.FreezeType freeze_type = 8;- Parameters:
value- The enum numeric value on the wire for freezeType to set.- Returns:
- This builder for chaining.
-
clearFreezeType
* The type of freeze. <p> This REQUIRED field effectively selects between five quite different transactions in the same transaction body. Depending on this value the service may schedule a freeze, prepare upgrades, perform upgrades, or even abort a previously scheduled freeze.
.proto.FreezeType freeze_type = 8;- Returns:
- This builder for chaining.
-