Skip to content

Commit

Permalink
Sync proto models for servers
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesChenX committed Dec 30, 2024
1 parent 9285136 commit 12323b7
Show file tree
Hide file tree
Showing 267 changed files with 3,779 additions and 1,741 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public enum DeviceType implements com.google.protobuf.ProtocolMessageEnum {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
DeviceType.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ private DeviceTypeOuterClass() {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
DeviceTypeOuterClass.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public enum GroupMemberRole implements com.google.protobuf.ProtocolMessageEnum {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
GroupMemberRole.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ private GroupMemberRoleOuterClass() {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
GroupMemberRoleOuterClass.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public enum ProfileAccessStrategy implements com.google.protobuf.ProtocolMessage
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
ProfileAccessStrategy.class.getName());
}
Expand Down Expand Up @@ -93,7 +93,7 @@ public static com.google.protobuf.Internal.EnumLiteMap<ProfileAccessStrategy> in
}

private static final com.google.protobuf.Internal.EnumLiteMap<ProfileAccessStrategy> internalValueMap =
number -> ProfileAccessStrategy.forNumber(number);
ProfileAccessStrategy::forNumber;

public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
Expand All @@ -112,7 +112,7 @@ public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return im.turms.server.common.access.client.dto.constant.ProfileAccessStrategyOuterClass
.getDescriptor()
.getEnumTypes()
.get(0);
.getFirst();
}

private static final ProfileAccessStrategy[] VALUES = values();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ private ProfileAccessStrategyOuterClass() {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
ProfileAccessStrategyOuterClass.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public enum RequestStatus implements com.google.protobuf.ProtocolMessageEnum {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
RequestStatus.class.getName());
}
Expand Down Expand Up @@ -129,7 +129,7 @@ public static com.google.protobuf.Internal.EnumLiteMap<RequestStatus> internalGe
}

private static final com.google.protobuf.Internal.EnumLiteMap<RequestStatus> internalValueMap =
number -> RequestStatus.forNumber(number);
RequestStatus::forNumber;

public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
Expand All @@ -148,7 +148,7 @@ public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return im.turms.server.common.access.client.dto.constant.RequestStatusOuterClass
.getDescriptor()
.getEnumTypes()
.get(0);
.getFirst();
}

private static final RequestStatus[] VALUES = values();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ private RequestStatusOuterClass() {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
RequestStatusOuterClass.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public enum ResponseAction implements com.google.protobuf.ProtocolMessageEnum {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
ResponseAction.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ private ResponseActionOuterClass() {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
ResponseActionOuterClass.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public enum StorageResourceType implements com.google.protobuf.ProtocolMessageEn
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
StorageResourceType.class.getName());
}
Expand Down Expand Up @@ -93,7 +93,7 @@ public static com.google.protobuf.Internal.EnumLiteMap<StorageResourceType> inte
}

private static final com.google.protobuf.Internal.EnumLiteMap<StorageResourceType> internalValueMap =
number -> StorageResourceType.forNumber(number);
StorageResourceType::forNumber;

public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
Expand All @@ -112,7 +112,7 @@ public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return im.turms.server.common.access.client.dto.constant.StorageResourceTypeOuterClass
.getDescriptor()
.getEnumTypes()
.get(0);
.getFirst();
}

private static final StorageResourceType[] VALUES = values();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ private StorageResourceTypeOuterClass() {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
StorageResourceTypeOuterClass.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public enum UserStatus implements com.google.protobuf.ProtocolMessageEnum {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
UserStatus.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ private UserStatusOuterClass() {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
UserStatusOuterClass.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public final class LongsWithVersion extends com.google.protobuf.GeneratedMessage
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
LongsWithVersion.class.getName());
}
Expand Down Expand Up @@ -92,7 +92,7 @@ public long getLongs(int index) {
private int longsMemoizedSerializedSize = -1;

public static final int LAST_UPDATED_DATE_FIELD_NUMBER = 2;
private long lastUpdatedDate_;
private long lastUpdatedDate_ = 0L;

/**
* <code>optional int64 last_updated_date = 2;</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ private LongsWithVersionOuterClass() {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
LongsWithVersionOuterClass.class.getName());
}
Expand Down Expand Up @@ -58,7 +58,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.Descriptors.FileDescriptor[]{});
internal_static_im_turms_proto_LongsWithVersion_descriptor =
getDescriptor().getMessageTypes()
.get(0);
.getFirst();
internal_static_im_turms_proto_LongsWithVersion_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_im_turms_proto_LongsWithVersion_descriptor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public final class StringsWithVersion extends com.google.protobuf.GeneratedMessa
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
StringsWithVersion.class.getName());
}
Expand Down Expand Up @@ -100,7 +100,7 @@ public com.google.protobuf.ByteString getStringsBytes(int index) {
}

public static final int LAST_UPDATED_DATE_FIELD_NUMBER = 2;
private long lastUpdatedDate_;
private long lastUpdatedDate_ = 0L;

/**
* <code>optional int64 last_updated_date = 2;</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ private StringsWithVersionOuterClass() {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
StringsWithVersionOuterClass.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public final class Value extends com.google.protobuf.GeneratedMessage implements
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
Value.class.getName());
}
Expand All @@ -55,7 +55,7 @@ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFie
im.turms.server.common.access.client.dto.model.common.Value.Builder.class);
}

private int kindCase_;
private int kindCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object kind_;

Expand Down Expand Up @@ -181,7 +181,7 @@ public float getFloatValue() {
if (kindCase_ == 3) {
return (java.lang.Float) kind_;
}
return 0.0F;
return 0F;
}

public static final int DOUBLE_VALUE_FIELD_NUMBER = 4;
Expand All @@ -206,7 +206,7 @@ public double getDoubleValue() {
if (kindCase_ == 4) {
return (java.lang.Double) kind_;
}
return 0.0D;
return 0D;
}

public static final int BOOL_VALUE_FIELD_NUMBER = 5;
Expand Down Expand Up @@ -899,7 +899,7 @@ public Builder mergeFrom(
return this;
}

private int kindCase_;
private int kindCase_ = 0;
private java.lang.Object kind_;

public KindCase getKindCase() {
Expand Down Expand Up @@ -1031,7 +1031,7 @@ public float getFloatValue() {
if (kindCase_ == 3) {
return (java.lang.Float) kind_;
}
return 0.0F;
return 0F;
}

/**
Expand Down Expand Up @@ -1080,7 +1080,7 @@ public double getDoubleValue() {
if (kindCase_ == 4) {
return (java.lang.Double) kind_;
}
return 0.0D;
return 0D;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ private ValueOuterClass() {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
ValueOuterClass.class.getName());
}
Expand Down Expand Up @@ -60,7 +60,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{});
internal_static_im_turms_proto_Value_descriptor = getDescriptor().getMessageTypes()
.get(0);
.getFirst();
internal_static_im_turms_proto_Value_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_im_turms_proto_Value_descriptor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public final class Meeting extends com.google.protobuf.GeneratedMessage implemen
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
Meeting.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ private MeetingOuterClass() {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
MeetingOuterClass.class.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public final class Meetings extends com.google.protobuf.GeneratedMessage impleme
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* minor= */ 29,
/* patch= */ 1,
/* suffix= */ "",
Meetings.class.getName());
}
Expand Down
Loading

0 comments on commit 12323b7

Please sign in to comment.