@teespring/user-identity-service-proto
Advanced tools
Comparing version 0.0.3 to 0.1.0
export { UserIdentityServiceClient } from './v1/useridentityservice_grpc_pb'; | ||
export { | ||
HealthCheckRequest, HealthCheckResponse, | ||
CreateUserIdentityRequest, CreateUserIdentityResponse, | ||
GetUserIdentityRequest, GetUserIdentityResponse, | ||
PersonaSurveySubmissionRequest, PersonaSurveySubmissionResponse | ||
} from './v1/useridentityservice_pb'; |
@@ -12,2 +12,3 @@ // GENERATED CODE -- DO NOT EDIT! | ||
createUserIdentity: grpc.MethodDefinition<useridentityservice_v1_useridentityservice_pb.CreateUserIdentityRequest, useridentityservice_v1_useridentityservice_pb.CreateUserIdentityResponse>; | ||
getUserIdentity: grpc.MethodDefinition<useridentityservice_v1_useridentityservice_pb.GetUserIdentityRequest, useridentityservice_v1_useridentityservice_pb.GetUserIdentityResponse>; | ||
submitPersonaSurveyAnswer: grpc.MethodDefinition<useridentityservice_v1_useridentityservice_pb.PersonaSurveySubmissionRequest, useridentityservice_v1_useridentityservice_pb.PersonaSurveySubmissionResponse>; | ||
@@ -21,2 +22,3 @@ } | ||
createUserIdentity: grpc.handleUnaryCall<useridentityservice_v1_useridentityservice_pb.CreateUserIdentityRequest, useridentityservice_v1_useridentityservice_pb.CreateUserIdentityResponse>; | ||
getUserIdentity: grpc.handleUnaryCall<useridentityservice_v1_useridentityservice_pb.GetUserIdentityRequest, useridentityservice_v1_useridentityservice_pb.GetUserIdentityResponse>; | ||
submitPersonaSurveyAnswer: grpc.handleUnaryCall<useridentityservice_v1_useridentityservice_pb.PersonaSurveySubmissionRequest, useridentityservice_v1_useridentityservice_pb.PersonaSurveySubmissionResponse>; | ||
@@ -33,2 +35,5 @@ } | ||
createUserIdentity(argument: useridentityservice_v1_useridentityservice_pb.CreateUserIdentityRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<useridentityservice_v1_useridentityservice_pb.CreateUserIdentityResponse>): grpc.ClientUnaryCall; | ||
getUserIdentity(argument: useridentityservice_v1_useridentityservice_pb.GetUserIdentityRequest, callback: grpc.requestCallback<useridentityservice_v1_useridentityservice_pb.GetUserIdentityResponse>): grpc.ClientUnaryCall; | ||
getUserIdentity(argument: useridentityservice_v1_useridentityservice_pb.GetUserIdentityRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<useridentityservice_v1_useridentityservice_pb.GetUserIdentityResponse>): grpc.ClientUnaryCall; | ||
getUserIdentity(argument: useridentityservice_v1_useridentityservice_pb.GetUserIdentityRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<useridentityservice_v1_useridentityservice_pb.GetUserIdentityResponse>): grpc.ClientUnaryCall; | ||
submitPersonaSurveyAnswer(argument: useridentityservice_v1_useridentityservice_pb.PersonaSurveySubmissionRequest, callback: grpc.requestCallback<useridentityservice_v1_useridentityservice_pb.PersonaSurveySubmissionResponse>): grpc.ClientUnaryCall; | ||
@@ -35,0 +40,0 @@ submitPersonaSurveyAnswer(argument: useridentityservice_v1_useridentityservice_pb.PersonaSurveySubmissionRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<useridentityservice_v1_useridentityservice_pb.PersonaSurveySubmissionResponse>): grpc.ClientUnaryCall; |
@@ -7,2 +7,3 @@ // GENERATED CODE -- DO NOT EDIT! | ||
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); | ||
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); | ||
@@ -31,2 +32,24 @@ function serialize_useridentityservice_v1_CreateUserIdentityRequest(arg) { | ||
function serialize_useridentityservice_v1_GetUserIdentityRequest(arg) { | ||
if (!(arg instanceof useridentityservice_v1_useridentityservice_pb.GetUserIdentityRequest)) { | ||
throw new Error('Expected argument of type useridentityservice.v1.GetUserIdentityRequest'); | ||
} | ||
return Buffer.from(arg.serializeBinary()); | ||
} | ||
function deserialize_useridentityservice_v1_GetUserIdentityRequest(buffer_arg) { | ||
return useridentityservice_v1_useridentityservice_pb.GetUserIdentityRequest.deserializeBinary(new Uint8Array(buffer_arg)); | ||
} | ||
function serialize_useridentityservice_v1_GetUserIdentityResponse(arg) { | ||
if (!(arg instanceof useridentityservice_v1_useridentityservice_pb.GetUserIdentityResponse)) { | ||
throw new Error('Expected argument of type useridentityservice.v1.GetUserIdentityResponse'); | ||
} | ||
return Buffer.from(arg.serializeBinary()); | ||
} | ||
function deserialize_useridentityservice_v1_GetUserIdentityResponse(buffer_arg) { | ||
return useridentityservice_v1_useridentityservice_pb.GetUserIdentityResponse.deserializeBinary(new Uint8Array(buffer_arg)); | ||
} | ||
function serialize_useridentityservice_v1_HealthCheckRequest(arg) { | ||
@@ -104,2 +127,13 @@ if (!(arg instanceof useridentityservice_v1_useridentityservice_pb.HealthCheckRequest)) { | ||
}, | ||
getUserIdentity: { | ||
path: '/useridentityservice.v1.UserIdentityService/GetUserIdentity', | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: useridentityservice_v1_useridentityservice_pb.GetUserIdentityRequest, | ||
responseType: useridentityservice_v1_useridentityservice_pb.GetUserIdentityResponse, | ||
requestSerialize: serialize_useridentityservice_v1_GetUserIdentityRequest, | ||
requestDeserialize: deserialize_useridentityservice_v1_GetUserIdentityRequest, | ||
responseSerialize: serialize_useridentityservice_v1_GetUserIdentityResponse, | ||
responseDeserialize: deserialize_useridentityservice_v1_GetUserIdentityResponse, | ||
}, | ||
submitPersonaSurveyAnswer: { | ||
@@ -106,0 +140,0 @@ path: '/useridentityservice.v1.UserIdentityService/SubmitPersonaSurveyAnswer', |
@@ -6,2 +6,3 @@ // package: useridentityservice.v1 | ||
import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; | ||
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; | ||
@@ -108,2 +109,62 @@ export class HealthCheckRequest extends jspb.Message { | ||
export class GetUserIdentityRequest extends jspb.Message { | ||
getId(): number; | ||
setId(value: number): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): GetUserIdentityRequest.AsObject; | ||
static toObject(includeInstance: boolean, msg: GetUserIdentityRequest): GetUserIdentityRequest.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: GetUserIdentityRequest, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): GetUserIdentityRequest; | ||
static deserializeBinaryFromReader(message: GetUserIdentityRequest, reader: jspb.BinaryReader): GetUserIdentityRequest; | ||
} | ||
export namespace GetUserIdentityRequest { | ||
export type AsObject = { | ||
id: number, | ||
} | ||
} | ||
export class GetUserIdentityResponse extends jspb.Message { | ||
getId(): number; | ||
setId(value: number): void; | ||
getEmail(): string; | ||
setEmail(value: string): void; | ||
getName(): string; | ||
setName(value: string): void; | ||
hasCreatedAt(): boolean; | ||
clearCreatedAt(): void; | ||
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; | ||
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; | ||
hasModifiedAt(): boolean; | ||
clearModifiedAt(): void; | ||
getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; | ||
setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): GetUserIdentityResponse.AsObject; | ||
static toObject(includeInstance: boolean, msg: GetUserIdentityResponse): GetUserIdentityResponse.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: GetUserIdentityResponse, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): GetUserIdentityResponse; | ||
static deserializeBinaryFromReader(message: GetUserIdentityResponse, reader: jspb.BinaryReader): GetUserIdentityResponse; | ||
} | ||
export namespace GetUserIdentityResponse { | ||
export type AsObject = { | ||
id: number, | ||
email: string, | ||
name: string, | ||
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, | ||
modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, | ||
} | ||
} | ||
export class PersonaSurveySubmissionRequest extends jspb.Message { | ||
@@ -110,0 +171,0 @@ getUserId(): number; |
@@ -17,4 +17,8 @@ // source: useridentityservice/v1/useridentityservice.proto | ||
goog.object.extend(proto, google_protobuf_wrappers_pb); | ||
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); | ||
goog.object.extend(proto, google_protobuf_timestamp_pb); | ||
goog.exportSymbol('proto.useridentityservice.v1.CreateUserIdentityRequest', null, global); | ||
goog.exportSymbol('proto.useridentityservice.v1.CreateUserIdentityResponse', null, global); | ||
goog.exportSymbol('proto.useridentityservice.v1.GetUserIdentityRequest', null, global); | ||
goog.exportSymbol('proto.useridentityservice.v1.GetUserIdentityResponse', null, global); | ||
goog.exportSymbol('proto.useridentityservice.v1.HealthCheckRequest', null, global); | ||
@@ -118,2 +122,44 @@ goog.exportSymbol('proto.useridentityservice.v1.HealthCheckResponse', null, global); | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityRequest = function(opt_data) { | ||
jspb.Message.initialize(this, opt_data, 0, -1, null, null); | ||
}; | ||
goog.inherits(proto.useridentityservice.v1.GetUserIdentityRequest, jspb.Message); | ||
if (goog.DEBUG && !COMPILED) { | ||
/** | ||
* @public | ||
* @override | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityRequest.displayName = 'proto.useridentityservice.v1.GetUserIdentityRequest'; | ||
} | ||
/** | ||
* Generated by JsPbCodeGenerator. | ||
* @param {Array=} opt_data Optional initial data array, typically from a | ||
* server response, or constructed directly in Javascript. The array is used | ||
* in place and becomes part of the constructed object. It is not cloned. | ||
* If no data is provided, the constructed object will be empty, but still | ||
* valid. | ||
* @extends {jspb.Message} | ||
* @constructor | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse = function(opt_data) { | ||
jspb.Message.initialize(this, opt_data, 0, -1, null, null); | ||
}; | ||
goog.inherits(proto.useridentityservice.v1.GetUserIdentityResponse, jspb.Message); | ||
if (goog.DEBUG && !COMPILED) { | ||
/** | ||
* @public | ||
* @override | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.displayName = 'proto.useridentityservice.v1.GetUserIdentityResponse'; | ||
} | ||
/** | ||
* Generated by JsPbCodeGenerator. | ||
* @param {Array=} opt_data Optional initial data array, typically from a | ||
* server response, or constructed directly in Javascript. The array is used | ||
* in place and becomes part of the constructed object. It is not cloned. | ||
* If no data is provided, the constructed object will be empty, but still | ||
* valid. | ||
* @extends {jspb.Message} | ||
* @constructor | ||
*/ | ||
proto.useridentityservice.v1.PersonaSurveySubmissionRequest = function(opt_data) { | ||
@@ -835,3 +881,425 @@ jspb.Message.initialize(this, opt_data, 0, -1, proto.useridentityservice.v1.PersonaSurveySubmissionRequest.repeatedFields_, null); | ||
if (jspb.Message.GENERATE_TO_OBJECT) { | ||
/** | ||
* Creates an object representation of this proto. | ||
* Field names that are reserved in JavaScript and will be renamed to pb_name. | ||
* Optional fields that are not set will be set to undefined. | ||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. | ||
* For the list of reserved names please see: | ||
* net/proto2/compiler/js/internal/generator.cc#kKeyword. | ||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the | ||
* JSPB instance for transitional soy proto support: | ||
* http://goto/soy-param-migration | ||
* @return {!Object} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityRequest.prototype.toObject = function(opt_includeInstance) { | ||
return proto.useridentityservice.v1.GetUserIdentityRequest.toObject(opt_includeInstance, this); | ||
}; | ||
/** | ||
* Static version of the {@see toObject} method. | ||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include | ||
* the JSPB instance for transitional soy proto support: | ||
* http://goto/soy-param-migration | ||
* @param {!proto.useridentityservice.v1.GetUserIdentityRequest} msg The msg instance to transform. | ||
* @return {!Object} | ||
* @suppress {unusedLocalVariables} f is only used for nested messages | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityRequest.toObject = function(includeInstance, msg) { | ||
var f, obj = { | ||
id: jspb.Message.getFieldWithDefault(msg, 1, 0) | ||
}; | ||
if (includeInstance) { | ||
obj.$jspbMessageInstance = msg; | ||
} | ||
return obj; | ||
}; | ||
} | ||
/** | ||
* Deserializes binary data (in protobuf wire format). | ||
* @param {jspb.ByteSource} bytes The bytes to deserialize. | ||
* @return {!proto.useridentityservice.v1.GetUserIdentityRequest} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityRequest.deserializeBinary = function(bytes) { | ||
var reader = new jspb.BinaryReader(bytes); | ||
var msg = new proto.useridentityservice.v1.GetUserIdentityRequest; | ||
return proto.useridentityservice.v1.GetUserIdentityRequest.deserializeBinaryFromReader(msg, reader); | ||
}; | ||
/** | ||
* Deserializes binary data (in protobuf wire format) from the | ||
* given reader into the given message object. | ||
* @param {!proto.useridentityservice.v1.GetUserIdentityRequest} msg The message object to deserialize into. | ||
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | ||
* @return {!proto.useridentityservice.v1.GetUserIdentityRequest} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityRequest.deserializeBinaryFromReader = function(msg, reader) { | ||
while (reader.nextField()) { | ||
if (reader.isEndGroup()) { | ||
break; | ||
} | ||
var field = reader.getFieldNumber(); | ||
switch (field) { | ||
case 1: | ||
var value = /** @type {number} */ (reader.readInt32()); | ||
msg.setId(value); | ||
break; | ||
default: | ||
reader.skipField(); | ||
break; | ||
} | ||
} | ||
return msg; | ||
}; | ||
/** | ||
* Serializes the message to binary data (in protobuf wire format). | ||
* @return {!Uint8Array} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityRequest.prototype.serializeBinary = function() { | ||
var writer = new jspb.BinaryWriter(); | ||
proto.useridentityservice.v1.GetUserIdentityRequest.serializeBinaryToWriter(this, writer); | ||
return writer.getResultBuffer(); | ||
}; | ||
/** | ||
* Serializes the given message to binary data (in protobuf wire | ||
* format), writing to the given BinaryWriter. | ||
* @param {!proto.useridentityservice.v1.GetUserIdentityRequest} message | ||
* @param {!jspb.BinaryWriter} writer | ||
* @suppress {unusedLocalVariables} f is only used for nested messages | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityRequest.serializeBinaryToWriter = function(message, writer) { | ||
var f = undefined; | ||
f = message.getId(); | ||
if (f !== 0) { | ||
writer.writeInt32( | ||
1, | ||
f | ||
); | ||
} | ||
}; | ||
/** | ||
* optional int32 id = 1; | ||
* @return {number} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityRequest.prototype.getId = function() { | ||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); | ||
}; | ||
/** | ||
* @param {number} value | ||
* @return {!proto.useridentityservice.v1.GetUserIdentityRequest} returns this | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityRequest.prototype.setId = function(value) { | ||
return jspb.Message.setProto3IntField(this, 1, value); | ||
}; | ||
if (jspb.Message.GENERATE_TO_OBJECT) { | ||
/** | ||
* Creates an object representation of this proto. | ||
* Field names that are reserved in JavaScript and will be renamed to pb_name. | ||
* Optional fields that are not set will be set to undefined. | ||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. | ||
* For the list of reserved names please see: | ||
* net/proto2/compiler/js/internal/generator.cc#kKeyword. | ||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the | ||
* JSPB instance for transitional soy proto support: | ||
* http://goto/soy-param-migration | ||
* @return {!Object} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.toObject = function(opt_includeInstance) { | ||
return proto.useridentityservice.v1.GetUserIdentityResponse.toObject(opt_includeInstance, this); | ||
}; | ||
/** | ||
* Static version of the {@see toObject} method. | ||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include | ||
* the JSPB instance for transitional soy proto support: | ||
* http://goto/soy-param-migration | ||
* @param {!proto.useridentityservice.v1.GetUserIdentityResponse} msg The msg instance to transform. | ||
* @return {!Object} | ||
* @suppress {unusedLocalVariables} f is only used for nested messages | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.toObject = function(includeInstance, msg) { | ||
var f, obj = { | ||
id: jspb.Message.getFieldWithDefault(msg, 1, 0), | ||
email: jspb.Message.getFieldWithDefault(msg, 2, ""), | ||
name: jspb.Message.getFieldWithDefault(msg, 3, ""), | ||
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), | ||
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) | ||
}; | ||
if (includeInstance) { | ||
obj.$jspbMessageInstance = msg; | ||
} | ||
return obj; | ||
}; | ||
} | ||
/** | ||
* Deserializes binary data (in protobuf wire format). | ||
* @param {jspb.ByteSource} bytes The bytes to deserialize. | ||
* @return {!proto.useridentityservice.v1.GetUserIdentityResponse} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.deserializeBinary = function(bytes) { | ||
var reader = new jspb.BinaryReader(bytes); | ||
var msg = new proto.useridentityservice.v1.GetUserIdentityResponse; | ||
return proto.useridentityservice.v1.GetUserIdentityResponse.deserializeBinaryFromReader(msg, reader); | ||
}; | ||
/** | ||
* Deserializes binary data (in protobuf wire format) from the | ||
* given reader into the given message object. | ||
* @param {!proto.useridentityservice.v1.GetUserIdentityResponse} msg The message object to deserialize into. | ||
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | ||
* @return {!proto.useridentityservice.v1.GetUserIdentityResponse} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.deserializeBinaryFromReader = function(msg, reader) { | ||
while (reader.nextField()) { | ||
if (reader.isEndGroup()) { | ||
break; | ||
} | ||
var field = reader.getFieldNumber(); | ||
switch (field) { | ||
case 1: | ||
var value = /** @type {number} */ (reader.readInt32()); | ||
msg.setId(value); | ||
break; | ||
case 2: | ||
var value = /** @type {string} */ (reader.readString()); | ||
msg.setEmail(value); | ||
break; | ||
case 3: | ||
var value = /** @type {string} */ (reader.readString()); | ||
msg.setName(value); | ||
break; | ||
case 4: | ||
var value = new google_protobuf_timestamp_pb.Timestamp; | ||
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); | ||
msg.setCreatedAt(value); | ||
break; | ||
case 5: | ||
var value = new google_protobuf_timestamp_pb.Timestamp; | ||
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); | ||
msg.setModifiedAt(value); | ||
break; | ||
default: | ||
reader.skipField(); | ||
break; | ||
} | ||
} | ||
return msg; | ||
}; | ||
/** | ||
* Serializes the message to binary data (in protobuf wire format). | ||
* @return {!Uint8Array} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.serializeBinary = function() { | ||
var writer = new jspb.BinaryWriter(); | ||
proto.useridentityservice.v1.GetUserIdentityResponse.serializeBinaryToWriter(this, writer); | ||
return writer.getResultBuffer(); | ||
}; | ||
/** | ||
* Serializes the given message to binary data (in protobuf wire | ||
* format), writing to the given BinaryWriter. | ||
* @param {!proto.useridentityservice.v1.GetUserIdentityResponse} message | ||
* @param {!jspb.BinaryWriter} writer | ||
* @suppress {unusedLocalVariables} f is only used for nested messages | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.serializeBinaryToWriter = function(message, writer) { | ||
var f = undefined; | ||
f = message.getId(); | ||
if (f !== 0) { | ||
writer.writeInt32( | ||
1, | ||
f | ||
); | ||
} | ||
f = message.getEmail(); | ||
if (f.length > 0) { | ||
writer.writeString( | ||
2, | ||
f | ||
); | ||
} | ||
f = message.getName(); | ||
if (f.length > 0) { | ||
writer.writeString( | ||
3, | ||
f | ||
); | ||
} | ||
f = message.getCreatedAt(); | ||
if (f != null) { | ||
writer.writeMessage( | ||
4, | ||
f, | ||
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter | ||
); | ||
} | ||
f = message.getModifiedAt(); | ||
if (f != null) { | ||
writer.writeMessage( | ||
5, | ||
f, | ||
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter | ||
); | ||
} | ||
}; | ||
/** | ||
* optional int32 id = 1; | ||
* @return {number} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.getId = function() { | ||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); | ||
}; | ||
/** | ||
* @param {number} value | ||
* @return {!proto.useridentityservice.v1.GetUserIdentityResponse} returns this | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.setId = function(value) { | ||
return jspb.Message.setProto3IntField(this, 1, value); | ||
}; | ||
/** | ||
* optional string email = 2; | ||
* @return {string} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.getEmail = function() { | ||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); | ||
}; | ||
/** | ||
* @param {string} value | ||
* @return {!proto.useridentityservice.v1.GetUserIdentityResponse} returns this | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.setEmail = function(value) { | ||
return jspb.Message.setProto3StringField(this, 2, value); | ||
}; | ||
/** | ||
* optional string name = 3; | ||
* @return {string} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.getName = function() { | ||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); | ||
}; | ||
/** | ||
* @param {string} value | ||
* @return {!proto.useridentityservice.v1.GetUserIdentityResponse} returns this | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.setName = function(value) { | ||
return jspb.Message.setProto3StringField(this, 3, value); | ||
}; | ||
/** | ||
* optional google.protobuf.Timestamp created_at = 4; | ||
* @return {?proto.google.protobuf.Timestamp} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.getCreatedAt = function() { | ||
return /** @type{?proto.google.protobuf.Timestamp} */ ( | ||
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); | ||
}; | ||
/** | ||
* @param {?proto.google.protobuf.Timestamp|undefined} value | ||
* @return {!proto.useridentityservice.v1.GetUserIdentityResponse} returns this | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.setCreatedAt = function(value) { | ||
return jspb.Message.setWrapperField(this, 4, value); | ||
}; | ||
/** | ||
* Clears the message field making it undefined. | ||
* @return {!proto.useridentityservice.v1.GetUserIdentityResponse} returns this | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.clearCreatedAt = function() { | ||
return this.setCreatedAt(undefined); | ||
}; | ||
/** | ||
* Returns whether this field is set. | ||
* @return {boolean} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.hasCreatedAt = function() { | ||
return jspb.Message.getField(this, 4) != null; | ||
}; | ||
/** | ||
* optional google.protobuf.Timestamp modified_at = 5; | ||
* @return {?proto.google.protobuf.Timestamp} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.getModifiedAt = function() { | ||
return /** @type{?proto.google.protobuf.Timestamp} */ ( | ||
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); | ||
}; | ||
/** | ||
* @param {?proto.google.protobuf.Timestamp|undefined} value | ||
* @return {!proto.useridentityservice.v1.GetUserIdentityResponse} returns this | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.setModifiedAt = function(value) { | ||
return jspb.Message.setWrapperField(this, 5, value); | ||
}; | ||
/** | ||
* Clears the message field making it undefined. | ||
* @return {!proto.useridentityservice.v1.GetUserIdentityResponse} returns this | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.clearModifiedAt = function() { | ||
return this.setModifiedAt(undefined); | ||
}; | ||
/** | ||
* Returns whether this field is set. | ||
* @return {boolean} | ||
*/ | ||
proto.useridentityservice.v1.GetUserIdentityResponse.prototype.hasModifiedAt = function() { | ||
return jspb.Message.getField(this, 5) != null; | ||
}; | ||
/** | ||
* List of repeated fields within this message type. | ||
@@ -838,0 +1306,0 @@ * @private {!Array<number>} |
@@ -5,4 +5,6 @@ export { | ||
HealthCheckRequest, HealthCheckResponse, | ||
CreateUserIdentityRequest, CreateUserIdentityResponse, | ||
GetUserIdentityRequest, GetUserIdentityResponse, | ||
PersonaSurveySubmissionRequest, PersonaSurveySubmissionResponse | ||
} from './generated/useridentityservice'; |
{ | ||
"name": "@teespring/user-identity-service-proto", | ||
"version": "0.0.3", | ||
"version": "0.1.0", | ||
"description": "User/Identity Service proto files and generated code", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
Sorry, the diff of this file is not supported yet
81111
1806