// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: PingReq.proto
package emu.grasscutter.net.proto;
public final class PingReqOuterClass {
private PingReqOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface PingReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:PingReq)
com.google.protobuf.MessageOrBuilder {
/**
* double total_tick_time = 8;
* @return The totalTickTime.
*/
double getTotalTickTime();
/**
* uint32 client_time = 2;
* @return The clientTime.
*/
int getClientTime();
/**
* float ue_time = 12;
* @return The ueTime.
*/
float getUeTime();
/**
* bytes sc_data = 6;
* @return The scData.
*/
com.google.protobuf.ByteString getScData();
/**
* uint32 seq = 10;
* @return The seq.
*/
int getSeq();
}
/**
*
* CmdId: 5285 * Obf: EIMFFIJOBHL ** * Protobuf type {@code PingReq} */ public static final class PingReq extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:PingReq) PingReqOrBuilder { private static final long serialVersionUID = 0L; // Use PingReq.newBuilder() to construct. private PingReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private PingReq() { scData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PingReq(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PingReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16: { clientTime_ = input.readUInt32(); break; } case 50: { scData_ = input.readBytes(); break; } case 65: { totalTickTime_ = input.readDouble(); break; } case 80: { seq_ = input.readUInt32(); break; } case 101: { ueTime_ = input.readFloat(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.PingReqOuterClass.internal_static_PingReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.PingReqOuterClass.internal_static_PingReq_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.PingReqOuterClass.PingReq.class, emu.grasscutter.net.proto.PingReqOuterClass.PingReq.Builder.class); } public static final int TOTAL_TICK_TIME_FIELD_NUMBER = 8; private double totalTickTime_; /** *
double total_tick_time = 8;
* @return The totalTickTime.
*/
@java.lang.Override
public double getTotalTickTime() {
return totalTickTime_;
}
public static final int CLIENT_TIME_FIELD_NUMBER = 2;
private int clientTime_;
/**
* uint32 client_time = 2;
* @return The clientTime.
*/
@java.lang.Override
public int getClientTime() {
return clientTime_;
}
public static final int UE_TIME_FIELD_NUMBER = 12;
private float ueTime_;
/**
* float ue_time = 12;
* @return The ueTime.
*/
@java.lang.Override
public float getUeTime() {
return ueTime_;
}
public static final int SC_DATA_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString scData_;
/**
* bytes sc_data = 6;
* @return The scData.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScData() {
return scData_;
}
public static final int SEQ_FIELD_NUMBER = 10;
private int seq_;
/**
* uint32 seq = 10;
* @return The seq.
*/
@java.lang.Override
public int getSeq() {
return seq_;
}
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 (clientTime_ != 0) {
output.writeUInt32(2, clientTime_);
}
if (!scData_.isEmpty()) {
output.writeBytes(6, scData_);
}
if (totalTickTime_ != 0D) {
output.writeDouble(8, totalTickTime_);
}
if (seq_ != 0) {
output.writeUInt32(10, seq_);
}
if (ueTime_ != 0F) {
output.writeFloat(12, ueTime_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (clientTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, clientTime_);
}
if (!scData_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, scData_);
}
if (totalTickTime_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, totalTickTime_);
}
if (seq_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, seq_);
}
if (ueTime_ != 0F) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(12, ueTime_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.grasscutter.net.proto.PingReqOuterClass.PingReq)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.PingReqOuterClass.PingReq other = (emu.grasscutter.net.proto.PingReqOuterClass.PingReq) obj;
if (java.lang.Double.doubleToLongBits(getTotalTickTime())
!= java.lang.Double.doubleToLongBits(
other.getTotalTickTime())) return false;
if (getClientTime()
!= other.getClientTime()) return false;
if (java.lang.Float.floatToIntBits(getUeTime())
!= java.lang.Float.floatToIntBits(
other.getUeTime())) return false;
if (!getScData()
.equals(other.getScData())) return false;
if (getSeq()
!= other.getSeq()) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + TOTAL_TICK_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTotalTickTime()));
hash = (37 * hash) + CLIENT_TIME_FIELD_NUMBER;
hash = (53 * hash) + getClientTime();
hash = (37 * hash) + UE_TIME_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getUeTime());
hash = (37 * hash) + SC_DATA_FIELD_NUMBER;
hash = (53 * hash) + getScData().hashCode();
hash = (37 * hash) + SEQ_FIELD_NUMBER;
hash = (53 * hash) + getSeq();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq 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 emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq 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 emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq 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(emu.grasscutter.net.proto.PingReqOuterClass.PingReq 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;
}
/**
* * CmdId: 5285 * Obf: EIMFFIJOBHL ** * Protobuf type {@code PingReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
double total_tick_time = 8;
* @return The totalTickTime.
*/
@java.lang.Override
public double getTotalTickTime() {
return totalTickTime_;
}
/**
* double total_tick_time = 8;
* @param value The totalTickTime to set.
* @return This builder for chaining.
*/
public Builder setTotalTickTime(double value) {
totalTickTime_ = value;
onChanged();
return this;
}
/**
* double total_tick_time = 8;
* @return This builder for chaining.
*/
public Builder clearTotalTickTime() {
totalTickTime_ = 0D;
onChanged();
return this;
}
private int clientTime_ ;
/**
* uint32 client_time = 2;
* @return The clientTime.
*/
@java.lang.Override
public int getClientTime() {
return clientTime_;
}
/**
* uint32 client_time = 2;
* @param value The clientTime to set.
* @return This builder for chaining.
*/
public Builder setClientTime(int value) {
clientTime_ = value;
onChanged();
return this;
}
/**
* uint32 client_time = 2;
* @return This builder for chaining.
*/
public Builder clearClientTime() {
clientTime_ = 0;
onChanged();
return this;
}
private float ueTime_ ;
/**
* float ue_time = 12;
* @return The ueTime.
*/
@java.lang.Override
public float getUeTime() {
return ueTime_;
}
/**
* float ue_time = 12;
* @param value The ueTime to set.
* @return This builder for chaining.
*/
public Builder setUeTime(float value) {
ueTime_ = value;
onChanged();
return this;
}
/**
* float ue_time = 12;
* @return This builder for chaining.
*/
public Builder clearUeTime() {
ueTime_ = 0F;
onChanged();
return this;
}
private com.google.protobuf.ByteString scData_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes sc_data = 6;
* @return The scData.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScData() {
return scData_;
}
/**
* bytes sc_data = 6;
* @param value The scData to set.
* @return This builder for chaining.
*/
public Builder setScData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
scData_ = value;
onChanged();
return this;
}
/**
* bytes sc_data = 6;
* @return This builder for chaining.
*/
public Builder clearScData() {
scData_ = getDefaultInstance().getScData();
onChanged();
return this;
}
private int seq_ ;
/**
* uint32 seq = 10;
* @return The seq.
*/
@java.lang.Override
public int getSeq() {
return seq_;
}
/**
* uint32 seq = 10;
* @param value The seq to set.
* @return This builder for chaining.
*/
public Builder setSeq(int value) {
seq_ = value;
onChanged();
return this;
}
/**
* uint32 seq = 10;
* @return This builder for chaining.
*/
public Builder clearSeq() {
seq_ = 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:PingReq)
}
// @@protoc_insertion_point(class_scope:PingReq)
private static final emu.grasscutter.net.proto.PingReqOuterClass.PingReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PingReqOuterClass.PingReq();
}
public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser