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

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.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FreezeTransactionBody) FreezeTransactionBodyOrBuilder { private static final long serialVersionUID = 0L; // Use FreezeTransactionBody.newBuilder() to construct. private FreezeTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FreezeTransactionBody() { fileHash_ = com.google.protobuf.ByteString.EMPTY; freezeType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FreezeTransactionBody(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.Freeze.internal_static_proto_FreezeTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.Freeze.internal_static_proto_FreezeTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.FreezeTransactionBody.class, com.hedera.hashgraph.sdk.proto.FreezeTransactionBody.Builder.class); } private int bitField0_; public static final int STARTHOUR_FIELD_NUMBER = 1; private int startHour_ = 0; /** *
   **
   * !! 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_; } public static final int STARTMIN_FIELD_NUMBER = 2; private int startMin_ = 0; /** *
   **
   * !! 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_; } public static final int ENDHOUR_FIELD_NUMBER = 3; private int endHour_ = 0; /** *
   **
   * !! 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_; } public static final int ENDMIN_FIELD_NUMBER = 4; private int endMin_ = 0; /** *
   **
   * !! 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_; } 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; * @return Whether the updateFile field is set. */ @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; * @return The updateFile. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getUpdateFileOrBuilder() { return updateFile_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : updateFile_; } public static final int FILE_HASH_FIELD_NUMBER = 6; private com.google.protobuf.ByteString fileHash_ = com.google.protobuf.ByteString.EMPTY; /** *
   **
   * 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_; } 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; * @return Whether the startTime field is set. */ @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; * @return The startTime. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getStartTimeOrBuilder() { return startTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : startTime_; } public static final int FREEZE_TYPE_FIELD_NUMBER = 8; private int freezeType_ = 0; /** *
   **
   * 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; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startHour_ != 0) { output.writeInt32(1, startHour_); } if (startMin_ != 0) { output.writeInt32(2, startMin_); } if (endHour_ != 0) { output.writeInt32(3, endHour_); } if (endMin_ != 0) { output.writeInt32(4, endMin_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getUpdateFile()); } if (!fileHash_.isEmpty()) { output.writeBytes(6, fileHash_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(7, getStartTime()); } if (freezeType_ != com.hedera.hashgraph.sdk.proto.FreezeType.UNKNOWN_FREEZE_TYPE.getNumber()) { output.writeEnum(8, freezeType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startHour_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, startHour_); } if (startMin_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, startMin_); } if (endHour_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, endHour_); } if (endMin_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, endMin_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getUpdateFile()); } if (!fileHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, fileHash_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getStartTime()); } if (freezeType_ != com.hedera.hashgraph.sdk.proto.FreezeType.UNKNOWN_FREEZE_TYPE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, freezeType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.hashgraph.sdk.proto.FreezeTransactionBody)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.FreezeTransactionBody other = (com.hedera.hashgraph.sdk.proto.FreezeTransactionBody) obj; if (getStartHour() != other.getStartHour()) return false; if (getStartMin() != other.getStartMin()) return false; if (getEndHour() != other.getEndHour()) return false; if (getEndMin() != other.getEndMin()) return false; if (hasUpdateFile() != other.hasUpdateFile()) return false; if (hasUpdateFile()) { if (!getUpdateFile() .equals(other.getUpdateFile())) return false; } if (!getFileHash() .equals(other.getFileHash())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime() .equals(other.getStartTime())) return false; } if (freezeType_ != other.freezeType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STARTHOUR_FIELD_NUMBER; hash = (53 * hash) + getStartHour(); hash = (37 * hash) + STARTMIN_FIELD_NUMBER; hash = (53 * hash) + getStartMin(); hash = (37 * hash) + ENDHOUR_FIELD_NUMBER; hash = (53 * hash) + getEndHour(); hash = (37 * hash) + ENDMIN_FIELD_NUMBER; hash = (53 * hash) + getEndMin(); if (hasUpdateFile()) { hash = (37 * hash) + UPDATE_FILE_FIELD_NUMBER; hash = (53 * hash) + getUpdateFile().hashCode(); } hash = (37 * hash) + FILE_HASH_FIELD_NUMBER; hash = (53 * hash) + getFileHash().hashCode(); if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } hash = (37 * hash) + FREEZE_TYPE_FIELD_NUMBER; hash = (53 * hash) + freezeType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.FreezeTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FreezeTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FreezeTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.FreezeTransactionBody parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FreezeTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, 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.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FreezeTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.FreezeTransactionBody parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FreezeTransactionBody parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, 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.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.FreezeTransactionBody prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   **
   * 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.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FreezeTransactionBody) com.hedera.hashgraph.sdk.proto.FreezeTransactionBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.Freeze.internal_static_proto_FreezeTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.Freeze.internal_static_proto_FreezeTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.FreezeTransactionBody.class, com.hedera.hashgraph.sdk.proto.FreezeTransactionBody.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.FreezeTransactionBody.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUpdateFileFieldBuilder(); getStartTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; startHour_ = 0; startMin_ = 0; endHour_ = 0; endMin_ = 0; updateFile_ = null; if (updateFileBuilder_ != null) { updateFileBuilder_.dispose(); updateFileBuilder_ = null; } fileHash_ = com.google.protobuf.ByteString.EMPTY; startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } freezeType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.Freeze.internal_static_proto_FreezeTransactionBody_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.FreezeTransactionBody getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.FreezeTransactionBody.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.FreezeTransactionBody build() { com.hedera.hashgraph.sdk.proto.FreezeTransactionBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.FreezeTransactionBody buildPartial() { com.hedera.hashgraph.sdk.proto.FreezeTransactionBody result = new com.hedera.hashgraph.sdk.proto.FreezeTransactionBody(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.FreezeTransactionBody result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.startHour_ = startHour_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.startMin_ = startMin_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.endHour_ = endHour_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.endMin_ = endMin_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.updateFile_ = updateFileBuilder_ == null ? updateFile_ : updateFileBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.fileHash_ = fileHash_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000080) != 0)) { result.freezeType_ = freezeType_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hashgraph.sdk.proto.FreezeTransactionBody) { return mergeFrom((com.hedera.hashgraph.sdk.proto.FreezeTransactionBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.FreezeTransactionBody other) { if (other == com.hedera.hashgraph.sdk.proto.FreezeTransactionBody.getDefaultInstance()) return this; if (other.getStartHour() != 0) { setStartHour(other.getStartHour()); } if (other.getStartMin() != 0) { setStartMin(other.getStartMin()); } if (other.getEndHour() != 0) { setEndHour(other.getEndHour()); } if (other.getEndMin() != 0) { setEndMin(other.getEndMin()); } if (other.hasUpdateFile()) { mergeUpdateFile(other.getUpdateFile()); } if (other.getFileHash() != com.google.protobuf.ByteString.EMPTY) { setFileHash(other.getFileHash()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.freezeType_ != 0) { setFreezeTypeValue(other.getFreezeTypeValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { startHour_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { startMin_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { endHour_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { endMin_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage( getUpdateFileFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { fileHash_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getStartTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 64: { freezeType_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setStartHour(int value) { startHour_ = value; bitField0_ |= 0x00000001; onChanged(); 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() { bitField0_ = (bitField0_ & ~0x00000001); startHour_ = 0; onChanged(); return this; } 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. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setStartMin(int value) { startMin_ = value; bitField0_ |= 0x00000002; onChanged(); 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() { bitField0_ = (bitField0_ & ~0x00000002); startMin_ = 0; onChanged(); return this; } 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. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setEndHour(int value) { endHour_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { bitField0_ = (bitField0_ & ~0x00000004); endHour_ = 0; onChanged(); return this; } 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. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setEndMin(int value) { endMin_ = value; bitField0_ |= 0x00000008; onChanged(); 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() { bitField0_ = (bitField0_ & ~0x00000008); endMin_ = 0; onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.FileID updateFile_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder> updateFileBuilder_; /** *
     **
     * If set, the file whose contents should be used for a network software update during the
     * maintenance window.
     * 
* * .proto.FileID update_file = 5; * @return Whether the updateFile field is set. */ public boolean hasUpdateFile() { return ((bitField0_ & 0x00000010) != 0); } /** *
     **
     * If set, the file whose contents should be used for a network software update during the
     * maintenance window.
     * 
* * .proto.FileID update_file = 5; * @return The updateFile. */ public com.hedera.hashgraph.sdk.proto.FileID getUpdateFile() { if (updateFileBuilder_ == null) { return updateFile_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : updateFile_; } else { return updateFileBuilder_.getMessage(); } } /** *
     **
     * 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) { if (updateFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateFile_ = value; } else { updateFileBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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) { if (updateFileBuilder_ == null) { updateFile_ = builderForValue.build(); } else { updateFileBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); 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) { if (updateFileBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && updateFile_ != null && updateFile_ != com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance()) { getUpdateFileBuilder().mergeFrom(value); } else { updateFile_ = value; } } else { updateFileBuilder_.mergeFrom(value); } if (updateFile_ != null) { bitField0_ |= 0x00000010; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000010); updateFile_ = null; if (updateFileBuilder_ != null) { updateFileBuilder_.dispose(); updateFileBuilder_ = null; } onChanged(); 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 com.hedera.hashgraph.sdk.proto.FileID.Builder getUpdateFileBuilder() { bitField0_ |= 0x00000010; onChanged(); return getUpdateFileFieldBuilder().getBuilder(); } /** *
     **
     * If set, the file whose contents should be used for a network software update during the
     * maintenance window.
     * 
* * .proto.FileID update_file = 5; */ public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getUpdateFileOrBuilder() { if (updateFileBuilder_ != null) { return updateFileBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder> getUpdateFileFieldBuilder() { if (updateFileBuilder_ == null) { updateFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder>( getUpdateFile(), getParentForChildren(), isClean()); updateFile_ = null; } return updateFileBuilder_; } private com.google.protobuf.ByteString fileHash_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * 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. * @return This builder for chaining. */ public Builder setFileHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } fileHash_ = value; bitField0_ |= 0x00000020; onChanged(); 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() { bitField0_ = (bitField0_ & ~0x00000020); fileHash_ = getDefaultInstance().getFileHash(); onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> startTimeBuilder_; /** *
     **
     * The consensus time at which the maintenance window should begin.
     * 
* * .proto.Timestamp start_time = 7; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000040) != 0); } /** *
     **
     * The consensus time at which the maintenance window should begin.
     * 
* * .proto.Timestamp start_time = 7; * @return The startTime. */ public com.hedera.hashgraph.sdk.proto.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** *
     **
     * 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) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; } else { startTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); 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) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); 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) { if (startTimeBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && startTime_ != null && startTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } } else { startTimeBuilder_.mergeFrom(value); } if (startTime_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     **
     * The consensus time at which the maintenance window should begin.
     * 
* * .proto.Timestamp start_time = 7; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000040); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The consensus time at which the maintenance window should begin.
     * 
* * .proto.Timestamp start_time = 7; */ public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000040; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** *
     **
     * The consensus time at which the maintenance window should begin.
     * 
* * .proto.Timestamp start_time = 7; */ public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private int freezeType_ = 0; /** *
     **
     * 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; * @param value The enum numeric value on the wire for freezeType to set. * @return This builder for chaining. */ public Builder setFreezeTypeValue(int value) { freezeType_ = value; bitField0_ |= 0x00000080; onChanged(); 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() { 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 freezeType to set. * @return This builder for chaining. */ public Builder setFreezeType(com.hedera.hashgraph.sdk.proto.FreezeType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; freezeType_ = value.getNumber(); onChanged(); 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() { bitField0_ = (bitField0_ & ~0x00000080); freezeType_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.FreezeTransactionBody) } // @@protoc_insertion_point(class_scope:proto.FreezeTransactionBody) private static final com.hedera.hashgraph.sdk.proto.FreezeTransactionBody DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.FreezeTransactionBody(); } public static com.hedera.hashgraph.sdk.proto.FreezeTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FreezeTransactionBody parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.FreezeTransactionBody getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy