com.hedera.hashgraph.sdk.proto.FreezeTransactionBody Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: freeze.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* At consensus, sets the consensus time at which the platform should stop creating events and
* accepting transactions, and enter a maintenance window.
*
*
* Protobuf type {@code proto.FreezeTransactionBody}
*/
public final class FreezeTransactionBody extends
com.google.protobuf.GeneratedMessageLite<
FreezeTransactionBody, FreezeTransactionBody.Builder> implements
// @@protoc_insertion_point(message_implements:proto.FreezeTransactionBody)
FreezeTransactionBodyOrBuilder {
private FreezeTransactionBody() {
fileHash_ = com.google.protobuf.ByteString.EMPTY;
}
private int bitField0_;
public static final int STARTHOUR_FIELD_NUMBER = 1;
private int startHour_;
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The start hour (in UTC time), a value between 0 and 23
*
*
* int32 startHour = 1 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.startHour is deprecated.
* See freeze.proto;l=41
* @return The startHour.
*/
@java.lang.Override
@java.lang.Deprecated public int getStartHour() {
return startHour_;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The start hour (in UTC time), a value between 0 and 23
*
*
* int32 startHour = 1 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.startHour is deprecated.
* See freeze.proto;l=41
* @param value The startHour to set.
*/
private void setStartHour(int value) {
startHour_ = value;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The start hour (in UTC time), a value between 0 and 23
*
*
* int32 startHour = 1 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.startHour is deprecated.
* See freeze.proto;l=41
*/
private void clearStartHour() {
startHour_ = 0;
}
public static final int STARTMIN_FIELD_NUMBER = 2;
private int startMin_;
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The start minute (in UTC time), a value between 0 and 59
*
*
* int32 startMin = 2 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.startMin is deprecated.
* See freeze.proto;l=47
* @return The startMin.
*/
@java.lang.Override
@java.lang.Deprecated public int getStartMin() {
return startMin_;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The start minute (in UTC time), a value between 0 and 59
*
*
* int32 startMin = 2 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.startMin is deprecated.
* See freeze.proto;l=47
* @param value The startMin to set.
*/
private void setStartMin(int value) {
startMin_ = value;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The start minute (in UTC time), a value between 0 and 59
*
*
* int32 startMin = 2 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.startMin is deprecated.
* See freeze.proto;l=47
*/
private void clearStartMin() {
startMin_ = 0;
}
public static final int ENDHOUR_FIELD_NUMBER = 3;
private int endHour_;
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The end hour (in UTC time), a value between 0 and 23
*
*
* int32 endHour = 3 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.endHour is deprecated.
* See freeze.proto;l=53
* @return The endHour.
*/
@java.lang.Override
@java.lang.Deprecated public int getEndHour() {
return endHour_;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The end hour (in UTC time), a value between 0 and 23
*
*
* int32 endHour = 3 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.endHour is deprecated.
* See freeze.proto;l=53
* @param value The endHour to set.
*/
private void setEndHour(int value) {
endHour_ = value;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The end hour (in UTC time), a value between 0 and 23
*
*
* int32 endHour = 3 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.endHour is deprecated.
* See freeze.proto;l=53
*/
private void clearEndHour() {
endHour_ = 0;
}
public static final int ENDMIN_FIELD_NUMBER = 4;
private int endMin_;
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The end minute (in UTC time), a value between 0 and 59
*
*
* int32 endMin = 4 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.endMin is deprecated.
* See freeze.proto;l=59
* @return The endMin.
*/
@java.lang.Override
@java.lang.Deprecated public int getEndMin() {
return endMin_;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The end minute (in UTC time), a value between 0 and 59
*
*
* int32 endMin = 4 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.endMin is deprecated.
* See freeze.proto;l=59
* @param value The endMin to set.
*/
private void setEndMin(int value) {
endMin_ = value;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The end minute (in UTC time), a value between 0 and 59
*
*
* int32 endMin = 4 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.endMin is deprecated.
* See freeze.proto;l=59
*/
private void clearEndMin() {
endMin_ = 0;
}
public static final int UPDATE_FILE_FIELD_NUMBER = 5;
private com.hedera.hashgraph.sdk.proto.FileID updateFile_;
/**
*
**
* If set, the file whose contents should be used for a network software update during the
* maintenance window.
*
*
* .proto.FileID update_file = 5;
*/
@java.lang.Override
public boolean hasUpdateFile() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* If set, the file whose contents should be used for a network software update during the
* maintenance window.
*
*
* .proto.FileID update_file = 5;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileID getUpdateFile() {
return updateFile_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : updateFile_;
}
/**
*
**
* If set, the file whose contents should be used for a network software update during the
* maintenance window.
*
*
* .proto.FileID update_file = 5;
*/
private void setUpdateFile(com.hedera.hashgraph.sdk.proto.FileID value) {
value.getClass();
updateFile_ = value;
bitField0_ |= 0x00000001;
}
/**
*
**
* If set, the file whose contents should be used for a network software update during the
* maintenance window.
*
*
* .proto.FileID update_file = 5;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeUpdateFile(com.hedera.hashgraph.sdk.proto.FileID value) {
value.getClass();
if (updateFile_ != null &&
updateFile_ != com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance()) {
updateFile_ =
com.hedera.hashgraph.sdk.proto.FileID.newBuilder(updateFile_).mergeFrom(value).buildPartial();
} else {
updateFile_ = value;
}
bitField0_ |= 0x00000001;
}
/**
*
**
* If set, the file whose contents should be used for a network software update during the
* maintenance window.
*
*
* .proto.FileID update_file = 5;
*/
private void clearUpdateFile() { updateFile_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int FILE_HASH_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString fileHash_;
/**
*
**
* If set, the expected hash of the contents of the update file (used to verify the update).
*
*
* bytes file_hash = 6;
* @return The fileHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFileHash() {
return fileHash_;
}
/**
*
**
* If set, the expected hash of the contents of the update file (used to verify the update).
*
*
* bytes file_hash = 6;
* @param value The fileHash to set.
*/
private void setFileHash(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
fileHash_ = value;
}
/**
*
**
* If set, the expected hash of the contents of the update file (used to verify the update).
*
*
* bytes file_hash = 6;
*/
private void clearFileHash() {
fileHash_ = getDefaultInstance().getFileHash();
}
public static final int START_TIME_FIELD_NUMBER = 7;
private com.hedera.hashgraph.sdk.proto.Timestamp startTime_;
/**
*
**
* The consensus time at which the maintenance window should begin.
*
*
* .proto.Timestamp start_time = 7;
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The consensus time at which the maintenance window should begin.
*
*
* .proto.Timestamp start_time = 7;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getStartTime() {
return startTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : startTime_;
}
/**
*
**
* The consensus time at which the maintenance window should begin.
*
*
* .proto.Timestamp start_time = 7;
*/
private void setStartTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
value.getClass();
startTime_ = value;
bitField0_ |= 0x00000002;
}
/**
*
**
* The consensus time at which the maintenance window should begin.
*
*
* .proto.Timestamp start_time = 7;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeStartTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
value.getClass();
if (startTime_ != null &&
startTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
startTime_ =
com.hedera.hashgraph.sdk.proto.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
} else {
startTime_ = value;
}
bitField0_ |= 0x00000002;
}
/**
*
**
* The consensus time at which the maintenance window should begin.
*
*
* .proto.Timestamp start_time = 7;
*/
private void clearStartTime() { startTime_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int FREEZE_TYPE_FIELD_NUMBER = 8;
private int freezeType_;
/**
*
**
* The type of network freeze or upgrade operation to perform.
*
*
* .proto.FreezeType freeze_type = 8;
* @return The enum numeric value on the wire for freezeType.
*/
@java.lang.Override
public int getFreezeTypeValue() {
return freezeType_;
}
/**
*
**
* The type of network freeze or upgrade operation to perform.
*
*
* .proto.FreezeType freeze_type = 8;
* @return The freezeType.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FreezeType getFreezeType() {
com.hedera.hashgraph.sdk.proto.FreezeType result = com.hedera.hashgraph.sdk.proto.FreezeType.forNumber(freezeType_);
return result == null ? com.hedera.hashgraph.sdk.proto.FreezeType.UNRECOGNIZED : result;
}
/**
*
**
* The type of network freeze or upgrade operation to perform.
*
*
* .proto.FreezeType freeze_type = 8;
* @param value The enum numeric value on the wire for freezeType to set.
*/
private void setFreezeTypeValue(int value) {
freezeType_ = value;
}
/**
*
**
* The type of network freeze or upgrade operation to perform.
*
*
* .proto.FreezeType freeze_type = 8;
* @param value The freezeType to set.
*/
private void setFreezeType(com.hedera.hashgraph.sdk.proto.FreezeType value) {
freezeType_ = value.getNumber();
}
/**
*
**
* The type of network freeze or upgrade operation to perform.
*
*
* .proto.FreezeType freeze_type = 8;
*/
private void clearFreezeType() {
freezeType_ = 0;
}
public static com.hedera.hashgraph.sdk.proto.FreezeTransactionBody 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.FreezeTransactionBody 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.FreezeTransactionBody 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.FreezeTransactionBody 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.FreezeTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.FreezeTransactionBody 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.FreezeTransactionBody 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.FreezeTransactionBody 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.FreezeTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.FreezeTransactionBody 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.FreezeTransactionBody 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.FreezeTransactionBody 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.FreezeTransactionBody prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* At consensus, sets the consensus time at which the platform should stop creating events and
* accepting transactions, and enter a maintenance window.
*
*
* Protobuf type {@code proto.FreezeTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.FreezeTransactionBody, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.FreezeTransactionBody)
com.hedera.hashgraph.sdk.proto.FreezeTransactionBodyOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.FreezeTransactionBody.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The start hour (in UTC time), a value between 0 and 23
*
*
* int32 startHour = 1 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.startHour is deprecated.
* See freeze.proto;l=41
* @return The startHour.
*/
@java.lang.Override
@java.lang.Deprecated public int getStartHour() {
return instance.getStartHour();
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The start hour (in UTC time), a value between 0 and 23
*
*
* int32 startHour = 1 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.startHour is deprecated.
* See freeze.proto;l=41
* @param value The startHour to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setStartHour(int value) {
copyOnWrite();
instance.setStartHour(value);
return this;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The start hour (in UTC time), a value between 0 and 23
*
*
* int32 startHour = 1 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.startHour is deprecated.
* See freeze.proto;l=41
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearStartHour() {
copyOnWrite();
instance.clearStartHour();
return this;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The start minute (in UTC time), a value between 0 and 59
*
*
* int32 startMin = 2 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.startMin is deprecated.
* See freeze.proto;l=47
* @return The startMin.
*/
@java.lang.Override
@java.lang.Deprecated public int getStartMin() {
return instance.getStartMin();
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The start minute (in UTC time), a value between 0 and 59
*
*
* int32 startMin = 2 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.startMin is deprecated.
* See freeze.proto;l=47
* @param value The startMin to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setStartMin(int value) {
copyOnWrite();
instance.setStartMin(value);
return this;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The start minute (in UTC time), a value between 0 and 59
*
*
* int32 startMin = 2 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.startMin is deprecated.
* See freeze.proto;l=47
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearStartMin() {
copyOnWrite();
instance.clearStartMin();
return this;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The end hour (in UTC time), a value between 0 and 23
*
*
* int32 endHour = 3 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.endHour is deprecated.
* See freeze.proto;l=53
* @return The endHour.
*/
@java.lang.Override
@java.lang.Deprecated public int getEndHour() {
return instance.getEndHour();
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The end hour (in UTC time), a value between 0 and 23
*
*
* int32 endHour = 3 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.endHour is deprecated.
* See freeze.proto;l=53
* @param value The endHour to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setEndHour(int value) {
copyOnWrite();
instance.setEndHour(value);
return this;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The end hour (in UTC time), a value between 0 and 23
*
*
* int32 endHour = 3 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.endHour is deprecated.
* See freeze.proto;l=53
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearEndHour() {
copyOnWrite();
instance.clearEndHour();
return this;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The end minute (in UTC time), a value between 0 and 59
*
*
* int32 endMin = 4 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.endMin is deprecated.
* See freeze.proto;l=59
* @return The endMin.
*/
@java.lang.Override
@java.lang.Deprecated public int getEndMin() {
return instance.getEndMin();
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The end minute (in UTC time), a value between 0 and 59
*
*
* int32 endMin = 4 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.endMin is deprecated.
* See freeze.proto;l=59
* @param value The endMin to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setEndMin(int value) {
copyOnWrite();
instance.setEndMin(value);
return this;
}
/**
*
**
* !! DEPRECATED and REJECTED by nodes
* The end minute (in UTC time), a value between 0 and 59
*
*
* int32 endMin = 4 [deprecated = true];
* @deprecated proto.FreezeTransactionBody.endMin is deprecated.
* See freeze.proto;l=59
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearEndMin() {
copyOnWrite();
instance.clearEndMin();
return this;
}
/**
*
**
* If set, the file whose contents should be used for a network software update during the
* maintenance window.
*
*
* .proto.FileID update_file = 5;
*/
@java.lang.Override
public boolean hasUpdateFile() {
return instance.hasUpdateFile();
}
/**
*
**
* If set, the file whose contents should be used for a network software update during the
* maintenance window.
*
*
* .proto.FileID update_file = 5;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileID getUpdateFile() {
return instance.getUpdateFile();
}
/**
*
**
* If set, the file whose contents should be used for a network software update during the
* maintenance window.
*
*
* .proto.FileID update_file = 5;
*/
public Builder setUpdateFile(com.hedera.hashgraph.sdk.proto.FileID value) {
copyOnWrite();
instance.setUpdateFile(value);
return this;
}
/**
*
**
* If set, the file whose contents should be used for a network software update during the
* maintenance window.
*
*
* .proto.FileID update_file = 5;
*/
public Builder setUpdateFile(
com.hedera.hashgraph.sdk.proto.FileID.Builder builderForValue) {
copyOnWrite();
instance.setUpdateFile(builderForValue.build());
return this;
}
/**
*
**
* If set, the file whose contents should be used for a network software update during the
* maintenance window.
*
*
* .proto.FileID update_file = 5;
*/
public Builder mergeUpdateFile(com.hedera.hashgraph.sdk.proto.FileID value) {
copyOnWrite();
instance.mergeUpdateFile(value);
return this;
}
/**
*
**
* If set, the file whose contents should be used for a network software update during the
* maintenance window.
*
*
* .proto.FileID update_file = 5;
*/
public Builder clearUpdateFile() { copyOnWrite();
instance.clearUpdateFile();
return this;
}
/**
*
**
* If set, the expected hash of the contents of the update file (used to verify the update).
*
*
* bytes file_hash = 6;
* @return The fileHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFileHash() {
return instance.getFileHash();
}
/**
*
**
* If set, the expected hash of the contents of the update file (used to verify the update).
*
*
* bytes file_hash = 6;
* @param value The fileHash to set.
* @return This builder for chaining.
*/
public Builder setFileHash(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setFileHash(value);
return this;
}
/**
*
**
* If set, the expected hash of the contents of the update file (used to verify the update).
*
*
* bytes file_hash = 6;
* @return This builder for chaining.
*/
public Builder clearFileHash() {
copyOnWrite();
instance.clearFileHash();
return this;
}
/**
*
**
* The consensus time at which the maintenance window should begin.
*
*
* .proto.Timestamp start_time = 7;
*/
@java.lang.Override
public boolean hasStartTime() {
return instance.hasStartTime();
}
/**
*
**
* The consensus time at which the maintenance window should begin.
*
*
* .proto.Timestamp start_time = 7;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getStartTime() {
return instance.getStartTime();
}
/**
*
**
* The consensus time at which the maintenance window should begin.
*
*
* .proto.Timestamp start_time = 7;
*/
public Builder setStartTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
copyOnWrite();
instance.setStartTime(value);
return this;
}
/**
*
**
* The consensus time at which the maintenance window should begin.
*
*
* .proto.Timestamp start_time = 7;
*/
public Builder setStartTime(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
copyOnWrite();
instance.setStartTime(builderForValue.build());
return this;
}
/**
*
**
* The consensus time at which the maintenance window should begin.
*
*
* .proto.Timestamp start_time = 7;
*/
public Builder mergeStartTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
copyOnWrite();
instance.mergeStartTime(value);
return this;
}
/**
*
**
* The consensus time at which the maintenance window should begin.
*
*
* .proto.Timestamp start_time = 7;
*/
public Builder clearStartTime() { copyOnWrite();
instance.clearStartTime();
return this;
}
/**
*
**
* The type of network freeze or upgrade operation to perform.
*
*
* .proto.FreezeType freeze_type = 8;
* @return The enum numeric value on the wire for freezeType.
*/
@java.lang.Override
public int getFreezeTypeValue() {
return instance.getFreezeTypeValue();
}
/**
*
**
* The type of network freeze or upgrade operation to perform.
*
*
* .proto.FreezeType freeze_type = 8;
* @param value The freezeType to set.
* @return This builder for chaining.
*/
public Builder setFreezeTypeValue(int value) {
copyOnWrite();
instance.setFreezeTypeValue(value);
return this;
}
/**
*
**
* The type of network freeze or upgrade operation to perform.
*
*
* .proto.FreezeType freeze_type = 8;
* @return The freezeType.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FreezeType getFreezeType() {
return instance.getFreezeType();
}
/**
*
**
* The type of network freeze or upgrade operation to perform.
*
*
* .proto.FreezeType freeze_type = 8;
* @param value The enum numeric value on the wire for freezeType to set.
* @return This builder for chaining.
*/
public Builder setFreezeType(com.hedera.hashgraph.sdk.proto.FreezeType value) {
copyOnWrite();
instance.setFreezeType(value);
return this;
}
/**
*
**
* The type of network freeze or upgrade operation to perform.
*
*
* .proto.FreezeType freeze_type = 8;
* @return This builder for chaining.
*/
public Builder clearFreezeType() {
copyOnWrite();
instance.clearFreezeType();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.FreezeTransactionBody)
}
@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.FreezeTransactionBody();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"startHour_",
"startMin_",
"endHour_",
"endMin_",
"updateFile_",
"fileHash_",
"startTime_",
"freezeType_",
};
java.lang.String info =
"\u0000\b\u0000\u0001\u0001\b\b\u0000\u0000\u0000\u0001\u0004\u0002\u0004\u0003\u0004" +
"\u0004\u0004\u0005\u1009\u0000\u0006\n\u0007\u1009\u0001\b\f";
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.FreezeTransactionBody.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.FreezeTransactionBody)
private static final com.hedera.hashgraph.sdk.proto.FreezeTransactionBody DEFAULT_INSTANCE;
static {
FreezeTransactionBody defaultInstance = new FreezeTransactionBody();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
FreezeTransactionBody.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.FreezeTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}