From 7de407982548e425aeeac01960f4a5e84febe860 Mon Sep 17 00:00:00 2001 From: meysamzamani Date: Wed, 15 Dec 2021 16:42:26 +0330 Subject: [PATCH] Added needFcmToken in LoginResponse --- .../java/net/iGap/proto/ProtoUserLogin.java | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/src/main/java/net/iGap/proto/ProtoUserLogin.java b/src/main/java/net/iGap/proto/ProtoUserLogin.java index fd3eff0..25eea22 100644 --- a/src/main/java/net/iGap/proto/ProtoUserLogin.java +++ b/src/main/java/net/iGap/proto/ProtoUserLogin.java @@ -1468,6 +1468,11 @@ public interface UserLoginResponseOrBuilder extends * optional int32 role = 11; */ int getRole(); + + /** + * optional bool need_fcm_token = 12; + */ + boolean getNeedFcmToken(); } /** * Protobuf type {@code proto.UserLoginResponse} @@ -1833,6 +1838,29 @@ private void clearRole() { role_ = 0; } + public static final int NEED_FCM_TOKEN_FIELD_NUMBER = 12; + private boolean needFcmToken_; + /** + * optional bool need_fcm_token = 12; + */ + public boolean getNeedFcmToken() { + return needFcmToken_; + } + /** + * optional bool need_fcm_token = 12; + */ + private void setNeedFcmToken(boolean value) { + + needFcmToken_ = value; + } + /** + * optional bool need_fcm_token = 12; + */ + private void clearNeedFcmToken() { + + needFcmToken_ = false; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (response_ != null) { @@ -1868,6 +1896,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (role_ != 0) { output.writeInt32(11, role_); } + if (needFcmToken_ != false) { + output.writeBool(12, needFcmToken_); + } } public int getSerializedSize() { @@ -1919,6 +1950,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, role_); } + if (needFcmToken_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, needFcmToken_); + } memoizedSerializedSize = size; return size; } @@ -2331,6 +2366,29 @@ public Builder clearRole() { return this; } + /** + * optional bool need_fcm_token = 12; + */ + public boolean getNeedFcmToken() { + return instance.getNeedFcmToken(); + } + /** + * optional bool need_fcm_token = 12; + */ + public Builder setNeedFcmToken(boolean value) { + copyOnWrite(); + instance.setNeedFcmToken(value); + return this; + } + /** + * optional bool need_fcm_token = 12; + */ + public Builder clearNeedFcmToken() { + copyOnWrite(); + instance.clearNeedFcmToken(); + return this; + } + // @@protoc_insertion_point(builder_scope:proto.UserLoginResponse) } protected final Object dynamicMethod( @@ -2373,6 +2431,8 @@ protected final Object dynamicMethod( !other.contactHash_.isEmpty(), other.contactHash_); role_ = visitor.visitInt(role_ != 0, role_, other.role_ != 0, other.role_); + needFcmToken_ = visitor.visitBoolean(needFcmToken_ != false, needFcmToken_, + other.needFcmToken_ != false, other.needFcmToken_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { } @@ -2463,6 +2523,11 @@ protected final Object dynamicMethod( role_ = input.readInt32(); break; } + case 96: { + + needFcmToken_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) {