@superblocksteam/sabs-types-js 0.0.1-demo-databricks-deploy → 0.0.1-lock-mechanism-sabs

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,6 @@ import * as protoc_gen_openapiv2_options_annotations_pb from "../../protoc-gen-o
11
11
 
12
12
  interface IBuildServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
13
13
  build: IBuildServiceService_IBuild;
14
- deployDatabricks: IBuildServiceService_IDeployDatabricks;
15
14
  status: IBuildServiceService_IStatus;
16
15
  list: IBuildServiceService_IList;
17
16
  terminate: IBuildServiceService_ITerminate;
@@ -27,15 +26,6 @@ interface IBuildServiceService_IBuild extends grpc.MethodDefinition<build_v1_ser
27
26
  responseSerialize: grpc.serialize<build_v1_service_pb.BuildResponse>;
28
27
  responseDeserialize: grpc.deserialize<build_v1_service_pb.BuildResponse>;
29
28
  }
30
- interface IBuildServiceService_IDeployDatabricks extends grpc.MethodDefinition<build_v1_service_pb.DeployDatabricksRequest, build_v1_service_pb.DeployDatabricksResponse> {
31
- path: "/build.v1.BuildService/DeployDatabricks";
32
- requestStream: false;
33
- responseStream: false;
34
- requestSerialize: grpc.serialize<build_v1_service_pb.DeployDatabricksRequest>;
35
- requestDeserialize: grpc.deserialize<build_v1_service_pb.DeployDatabricksRequest>;
36
- responseSerialize: grpc.serialize<build_v1_service_pb.DeployDatabricksResponse>;
37
- responseDeserialize: grpc.deserialize<build_v1_service_pb.DeployDatabricksResponse>;
38
- }
39
29
  interface IBuildServiceService_IStatus extends grpc.MethodDefinition<build_v1_service_pb.StatusRequest, build_v1_service_pb.StatusResponse> {
40
30
  path: "/build.v1.BuildService/Status";
41
31
  requestStream: false;
@@ -77,7 +67,6 @@ export const BuildServiceService: IBuildServiceService;
77
67
 
78
68
  export interface IBuildServiceServer extends grpc.UntypedServiceImplementation {
79
69
  build: grpc.handleUnaryCall<build_v1_service_pb.BuildRequest, build_v1_service_pb.BuildResponse>;
80
- deployDatabricks: grpc.handleUnaryCall<build_v1_service_pb.DeployDatabricksRequest, build_v1_service_pb.DeployDatabricksResponse>;
81
70
  status: grpc.handleUnaryCall<build_v1_service_pb.StatusRequest, build_v1_service_pb.StatusResponse>;
82
71
  list: grpc.handleUnaryCall<build_v1_service_pb.ListRequest, build_v1_service_pb.ListResponse>;
83
72
  terminate: grpc.handleUnaryCall<build_v1_service_pb.TerminateRequest, build_v1_service_pb.TerminateResponse>;
@@ -88,9 +77,6 @@ export interface IBuildServiceClient {
88
77
  build(request: build_v1_service_pb.BuildRequest, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.BuildResponse) => void): grpc.ClientUnaryCall;
89
78
  build(request: build_v1_service_pb.BuildRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.BuildResponse) => void): grpc.ClientUnaryCall;
90
79
  build(request: build_v1_service_pb.BuildRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.BuildResponse) => void): grpc.ClientUnaryCall;
91
- deployDatabricks(request: build_v1_service_pb.DeployDatabricksRequest, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.DeployDatabricksResponse) => void): grpc.ClientUnaryCall;
92
- deployDatabricks(request: build_v1_service_pb.DeployDatabricksRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.DeployDatabricksResponse) => void): grpc.ClientUnaryCall;
93
- deployDatabricks(request: build_v1_service_pb.DeployDatabricksRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.DeployDatabricksResponse) => void): grpc.ClientUnaryCall;
94
80
  status(request: build_v1_service_pb.StatusRequest, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.StatusResponse) => void): grpc.ClientUnaryCall;
95
81
  status(request: build_v1_service_pb.StatusRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.StatusResponse) => void): grpc.ClientUnaryCall;
96
82
  status(request: build_v1_service_pb.StatusRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.StatusResponse) => void): grpc.ClientUnaryCall;
@@ -110,9 +96,6 @@ export class BuildServiceClient extends grpc.Client implements IBuildServiceClie
110
96
  public build(request: build_v1_service_pb.BuildRequest, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.BuildResponse) => void): grpc.ClientUnaryCall;
111
97
  public build(request: build_v1_service_pb.BuildRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.BuildResponse) => void): grpc.ClientUnaryCall;
112
98
  public build(request: build_v1_service_pb.BuildRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.BuildResponse) => void): grpc.ClientUnaryCall;
113
- public deployDatabricks(request: build_v1_service_pb.DeployDatabricksRequest, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.DeployDatabricksResponse) => void): grpc.ClientUnaryCall;
114
- public deployDatabricks(request: build_v1_service_pb.DeployDatabricksRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.DeployDatabricksResponse) => void): grpc.ClientUnaryCall;
115
- public deployDatabricks(request: build_v1_service_pb.DeployDatabricksRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.DeployDatabricksResponse) => void): grpc.ClientUnaryCall;
116
99
  public status(request: build_v1_service_pb.StatusRequest, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.StatusResponse) => void): grpc.ClientUnaryCall;
117
100
  public status(request: build_v1_service_pb.StatusRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.StatusResponse) => void): grpc.ClientUnaryCall;
118
101
  public status(request: build_v1_service_pb.StatusRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: build_v1_service_pb.StatusResponse) => void): grpc.ClientUnaryCall;
@@ -51,28 +51,6 @@ function deserialize_build_v1_BulkStatusResponse(buffer_arg) {
51
51
  return build_v1_service_pb.BulkStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
52
52
  }
53
53
 
54
- function serialize_build_v1_DeployDatabricksRequest(arg) {
55
- if (!(arg instanceof build_v1_service_pb.DeployDatabricksRequest)) {
56
- throw new Error('Expected argument of type build.v1.DeployDatabricksRequest');
57
- }
58
- return Buffer.from(arg.serializeBinary());
59
- }
60
-
61
- function deserialize_build_v1_DeployDatabricksRequest(buffer_arg) {
62
- return build_v1_service_pb.DeployDatabricksRequest.deserializeBinary(new Uint8Array(buffer_arg));
63
- }
64
-
65
- function serialize_build_v1_DeployDatabricksResponse(arg) {
66
- if (!(arg instanceof build_v1_service_pb.DeployDatabricksResponse)) {
67
- throw new Error('Expected argument of type build.v1.DeployDatabricksResponse');
68
- }
69
- return Buffer.from(arg.serializeBinary());
70
- }
71
-
72
- function deserialize_build_v1_DeployDatabricksResponse(buffer_arg) {
73
- return build_v1_service_pb.DeployDatabricksResponse.deserializeBinary(new Uint8Array(buffer_arg));
74
- }
75
-
76
54
  function serialize_build_v1_ListRequest(arg) {
77
55
  if (!(arg instanceof build_v1_service_pb.ListRequest)) {
78
56
  throw new Error('Expected argument of type build.v1.ListRequest');
@@ -152,17 +130,6 @@ var BuildServiceService = exports.BuildServiceService = {
152
130
  responseSerialize: serialize_build_v1_BuildResponse,
153
131
  responseDeserialize: deserialize_build_v1_BuildResponse,
154
132
  },
155
- deployDatabricks: {
156
- path: '/build.v1.BuildService/DeployDatabricks',
157
- requestStream: false,
158
- responseStream: false,
159
- requestType: build_v1_service_pb.DeployDatabricksRequest,
160
- responseType: build_v1_service_pb.DeployDatabricksResponse,
161
- requestSerialize: serialize_build_v1_DeployDatabricksRequest,
162
- requestDeserialize: deserialize_build_v1_DeployDatabricksRequest,
163
- responseSerialize: serialize_build_v1_DeployDatabricksResponse,
164
- responseDeserialize: deserialize_build_v1_DeployDatabricksResponse,
165
- },
166
133
  status: {
167
134
  path: '/build.v1.BuildService/Status',
168
135
  requestStream: false,
@@ -92,67 +92,6 @@ export namespace BuildResponse {
92
92
  }
93
93
  }
94
94
 
95
- export class DeployDatabricksRequest extends jspb.Message {
96
- getDirectoryHash(): string;
97
- setDirectoryHash(value: string): DeployDatabricksRequest;
98
-
99
- hasApplicationMetadata(): boolean;
100
- clearApplicationMetadata(): void;
101
- getApplicationMetadata(): ApplicationMetadata | undefined;
102
- setApplicationMetadata(value?: ApplicationMetadata): DeployDatabricksRequest;
103
- getBuildKey(): string;
104
- setBuildKey(value: string): DeployDatabricksRequest;
105
-
106
- serializeBinary(): Uint8Array;
107
- toObject(includeInstance?: boolean): DeployDatabricksRequest.AsObject;
108
- static toObject(includeInstance: boolean, msg: DeployDatabricksRequest): DeployDatabricksRequest.AsObject;
109
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
110
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
111
- static serializeBinaryToWriter(message: DeployDatabricksRequest, writer: jspb.BinaryWriter): void;
112
- static deserializeBinary(bytes: Uint8Array): DeployDatabricksRequest;
113
- static deserializeBinaryFromReader(message: DeployDatabricksRequest, reader: jspb.BinaryReader): DeployDatabricksRequest;
114
- }
115
-
116
- export namespace DeployDatabricksRequest {
117
- export type AsObject = {
118
- directoryHash: string,
119
- applicationMetadata?: ApplicationMetadata.AsObject,
120
- buildKey: string,
121
- }
122
- }
123
-
124
- export class DeployDatabricksResponse extends jspb.Message {
125
- getBuildId(): string;
126
- setBuildId(value: string): DeployDatabricksResponse;
127
-
128
- hasCreated(): boolean;
129
- clearCreated(): void;
130
- getCreated(): google_protobuf_timestamp_pb.Timestamp | undefined;
131
- setCreated(value?: google_protobuf_timestamp_pb.Timestamp): DeployDatabricksResponse;
132
-
133
- hasUpdated(): boolean;
134
- clearUpdated(): void;
135
- getUpdated(): google_protobuf_timestamp_pb.Timestamp | undefined;
136
- setUpdated(value?: google_protobuf_timestamp_pb.Timestamp): DeployDatabricksResponse;
137
-
138
- serializeBinary(): Uint8Array;
139
- toObject(includeInstance?: boolean): DeployDatabricksResponse.AsObject;
140
- static toObject(includeInstance: boolean, msg: DeployDatabricksResponse): DeployDatabricksResponse.AsObject;
141
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
142
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
143
- static serializeBinaryToWriter(message: DeployDatabricksResponse, writer: jspb.BinaryWriter): void;
144
- static deserializeBinary(bytes: Uint8Array): DeployDatabricksResponse;
145
- static deserializeBinaryFromReader(message: DeployDatabricksResponse, reader: jspb.BinaryReader): DeployDatabricksResponse;
146
- }
147
-
148
- export namespace DeployDatabricksResponse {
149
- export type AsObject = {
150
- buildId: string,
151
- created?: google_protobuf_timestamp_pb.Timestamp.AsObject,
152
- updated?: google_protobuf_timestamp_pb.Timestamp.AsObject,
153
- }
154
- }
155
-
156
95
  export class ListRequest extends jspb.Message {
157
96
  getOrganizationId(): string;
158
97
  setOrganizationId(value: string): ListRequest;
@@ -27,8 +27,6 @@ goog.exportSymbol('proto.build.v1.BuildResponse', null, global);
27
27
  goog.exportSymbol('proto.build.v1.BuildStatus', null, global);
28
28
  goog.exportSymbol('proto.build.v1.BulkStatusRequest', null, global);
29
29
  goog.exportSymbol('proto.build.v1.BulkStatusResponse', null, global);
30
- goog.exportSymbol('proto.build.v1.DeployDatabricksRequest', null, global);
31
- goog.exportSymbol('proto.build.v1.DeployDatabricksResponse', null, global);
32
30
  goog.exportSymbol('proto.build.v1.ListRequest', null, global);
33
31
  goog.exportSymbol('proto.build.v1.ListResponse', null, global);
34
32
  goog.exportSymbol('proto.build.v1.StatusRequest', null, global);
@@ -98,48 +96,6 @@ if (goog.DEBUG && !COMPILED) {
98
96
  */
99
97
  proto.build.v1.BuildResponse.displayName = 'proto.build.v1.BuildResponse';
100
98
  }
101
- /**
102
- * Generated by JsPbCodeGenerator.
103
- * @param {Array=} opt_data Optional initial data array, typically from a
104
- * server response, or constructed directly in Javascript. The array is used
105
- * in place and becomes part of the constructed object. It is not cloned.
106
- * If no data is provided, the constructed object will be empty, but still
107
- * valid.
108
- * @extends {jspb.Message}
109
- * @constructor
110
- */
111
- proto.build.v1.DeployDatabricksRequest = function(opt_data) {
112
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
113
- };
114
- goog.inherits(proto.build.v1.DeployDatabricksRequest, jspb.Message);
115
- if (goog.DEBUG && !COMPILED) {
116
- /**
117
- * @public
118
- * @override
119
- */
120
- proto.build.v1.DeployDatabricksRequest.displayName = 'proto.build.v1.DeployDatabricksRequest';
121
- }
122
- /**
123
- * Generated by JsPbCodeGenerator.
124
- * @param {Array=} opt_data Optional initial data array, typically from a
125
- * server response, or constructed directly in Javascript. The array is used
126
- * in place and becomes part of the constructed object. It is not cloned.
127
- * If no data is provided, the constructed object will be empty, but still
128
- * valid.
129
- * @extends {jspb.Message}
130
- * @constructor
131
- */
132
- proto.build.v1.DeployDatabricksResponse = function(opt_data) {
133
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
134
- };
135
- goog.inherits(proto.build.v1.DeployDatabricksResponse, jspb.Message);
136
- if (goog.DEBUG && !COMPILED) {
137
- /**
138
- * @public
139
- * @override
140
- */
141
- proto.build.v1.DeployDatabricksResponse.displayName = 'proto.build.v1.DeployDatabricksResponse';
142
- }
143
99
  /**
144
100
  * Generated by JsPbCodeGenerator.
145
101
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -914,449 +870,6 @@ proto.build.v1.BuildResponse.prototype.hasUpdated = function() {
914
870
 
915
871
 
916
872
 
917
- if (jspb.Message.GENERATE_TO_OBJECT) {
918
- /**
919
- * Creates an object representation of this proto.
920
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
921
- * Optional fields that are not set will be set to undefined.
922
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
923
- * For the list of reserved names please see:
924
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
925
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
926
- * JSPB instance for transitional soy proto support:
927
- * http://goto/soy-param-migration
928
- * @return {!Object}
929
- */
930
- proto.build.v1.DeployDatabricksRequest.prototype.toObject = function(opt_includeInstance) {
931
- return proto.build.v1.DeployDatabricksRequest.toObject(opt_includeInstance, this);
932
- };
933
-
934
-
935
- /**
936
- * Static version of the {@see toObject} method.
937
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
938
- * the JSPB instance for transitional soy proto support:
939
- * http://goto/soy-param-migration
940
- * @param {!proto.build.v1.DeployDatabricksRequest} msg The msg instance to transform.
941
- * @return {!Object}
942
- * @suppress {unusedLocalVariables} f is only used for nested messages
943
- */
944
- proto.build.v1.DeployDatabricksRequest.toObject = function(includeInstance, msg) {
945
- var f, obj = {
946
- directoryHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
947
- applicationMetadata: (f = msg.getApplicationMetadata()) && proto.build.v1.ApplicationMetadata.toObject(includeInstance, f),
948
- buildKey: jspb.Message.getFieldWithDefault(msg, 3, "")
949
- };
950
-
951
- if (includeInstance) {
952
- obj.$jspbMessageInstance = msg;
953
- }
954
- return obj;
955
- };
956
- }
957
-
958
-
959
- /**
960
- * Deserializes binary data (in protobuf wire format).
961
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
962
- * @return {!proto.build.v1.DeployDatabricksRequest}
963
- */
964
- proto.build.v1.DeployDatabricksRequest.deserializeBinary = function(bytes) {
965
- var reader = new jspb.BinaryReader(bytes);
966
- var msg = new proto.build.v1.DeployDatabricksRequest;
967
- return proto.build.v1.DeployDatabricksRequest.deserializeBinaryFromReader(msg, reader);
968
- };
969
-
970
-
971
- /**
972
- * Deserializes binary data (in protobuf wire format) from the
973
- * given reader into the given message object.
974
- * @param {!proto.build.v1.DeployDatabricksRequest} msg The message object to deserialize into.
975
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
976
- * @return {!proto.build.v1.DeployDatabricksRequest}
977
- */
978
- proto.build.v1.DeployDatabricksRequest.deserializeBinaryFromReader = function(msg, reader) {
979
- while (reader.nextField()) {
980
- if (reader.isEndGroup()) {
981
- break;
982
- }
983
- var field = reader.getFieldNumber();
984
- switch (field) {
985
- case 1:
986
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
987
- msg.setDirectoryHash(value);
988
- break;
989
- case 2:
990
- var value = new proto.build.v1.ApplicationMetadata;
991
- reader.readMessage(value,proto.build.v1.ApplicationMetadata.deserializeBinaryFromReader);
992
- msg.setApplicationMetadata(value);
993
- break;
994
- case 3:
995
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
996
- msg.setBuildKey(value);
997
- break;
998
- default:
999
- reader.skipField();
1000
- break;
1001
- }
1002
- }
1003
- return msg;
1004
- };
1005
-
1006
-
1007
- /**
1008
- * Serializes the message to binary data (in protobuf wire format).
1009
- * @return {!Uint8Array}
1010
- */
1011
- proto.build.v1.DeployDatabricksRequest.prototype.serializeBinary = function() {
1012
- var writer = new jspb.BinaryWriter();
1013
- proto.build.v1.DeployDatabricksRequest.serializeBinaryToWriter(this, writer);
1014
- return writer.getResultBuffer();
1015
- };
1016
-
1017
-
1018
- /**
1019
- * Serializes the given message to binary data (in protobuf wire
1020
- * format), writing to the given BinaryWriter.
1021
- * @param {!proto.build.v1.DeployDatabricksRequest} message
1022
- * @param {!jspb.BinaryWriter} writer
1023
- * @suppress {unusedLocalVariables} f is only used for nested messages
1024
- */
1025
- proto.build.v1.DeployDatabricksRequest.serializeBinaryToWriter = function(message, writer) {
1026
- var f = undefined;
1027
- f = message.getDirectoryHash();
1028
- if (f.length > 0) {
1029
- writer.writeString(
1030
- 1,
1031
- f
1032
- );
1033
- }
1034
- f = message.getApplicationMetadata();
1035
- if (f != null) {
1036
- writer.writeMessage(
1037
- 2,
1038
- f,
1039
- proto.build.v1.ApplicationMetadata.serializeBinaryToWriter
1040
- );
1041
- }
1042
- f = message.getBuildKey();
1043
- if (f.length > 0) {
1044
- writer.writeString(
1045
- 3,
1046
- f
1047
- );
1048
- }
1049
- };
1050
-
1051
-
1052
- /**
1053
- * optional string directory_hash = 1;
1054
- * @return {string}
1055
- */
1056
- proto.build.v1.DeployDatabricksRequest.prototype.getDirectoryHash = function() {
1057
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1058
- };
1059
-
1060
-
1061
- /**
1062
- * @param {string} value
1063
- * @return {!proto.build.v1.DeployDatabricksRequest} returns this
1064
- */
1065
- proto.build.v1.DeployDatabricksRequest.prototype.setDirectoryHash = function(value) {
1066
- return jspb.Message.setProto3StringField(this, 1, value);
1067
- };
1068
-
1069
-
1070
- /**
1071
- * optional ApplicationMetadata application_metadata = 2;
1072
- * @return {?proto.build.v1.ApplicationMetadata}
1073
- */
1074
- proto.build.v1.DeployDatabricksRequest.prototype.getApplicationMetadata = function() {
1075
- return /** @type{?proto.build.v1.ApplicationMetadata} */ (
1076
- jspb.Message.getWrapperField(this, proto.build.v1.ApplicationMetadata, 2));
1077
- };
1078
-
1079
-
1080
- /**
1081
- * @param {?proto.build.v1.ApplicationMetadata|undefined} value
1082
- * @return {!proto.build.v1.DeployDatabricksRequest} returns this
1083
- */
1084
- proto.build.v1.DeployDatabricksRequest.prototype.setApplicationMetadata = function(value) {
1085
- return jspb.Message.setWrapperField(this, 2, value);
1086
- };
1087
-
1088
-
1089
- /**
1090
- * Clears the message field making it undefined.
1091
- * @return {!proto.build.v1.DeployDatabricksRequest} returns this
1092
- */
1093
- proto.build.v1.DeployDatabricksRequest.prototype.clearApplicationMetadata = function() {
1094
- return this.setApplicationMetadata(undefined);
1095
- };
1096
-
1097
-
1098
- /**
1099
- * Returns whether this field is set.
1100
- * @return {boolean}
1101
- */
1102
- proto.build.v1.DeployDatabricksRequest.prototype.hasApplicationMetadata = function() {
1103
- return jspb.Message.getField(this, 2) != null;
1104
- };
1105
-
1106
-
1107
- /**
1108
- * optional string build_key = 3;
1109
- * @return {string}
1110
- */
1111
- proto.build.v1.DeployDatabricksRequest.prototype.getBuildKey = function() {
1112
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1113
- };
1114
-
1115
-
1116
- /**
1117
- * @param {string} value
1118
- * @return {!proto.build.v1.DeployDatabricksRequest} returns this
1119
- */
1120
- proto.build.v1.DeployDatabricksRequest.prototype.setBuildKey = function(value) {
1121
- return jspb.Message.setProto3StringField(this, 3, value);
1122
- };
1123
-
1124
-
1125
-
1126
-
1127
-
1128
- if (jspb.Message.GENERATE_TO_OBJECT) {
1129
- /**
1130
- * Creates an object representation of this proto.
1131
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1132
- * Optional fields that are not set will be set to undefined.
1133
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1134
- * For the list of reserved names please see:
1135
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1136
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1137
- * JSPB instance for transitional soy proto support:
1138
- * http://goto/soy-param-migration
1139
- * @return {!Object}
1140
- */
1141
- proto.build.v1.DeployDatabricksResponse.prototype.toObject = function(opt_includeInstance) {
1142
- return proto.build.v1.DeployDatabricksResponse.toObject(opt_includeInstance, this);
1143
- };
1144
-
1145
-
1146
- /**
1147
- * Static version of the {@see toObject} method.
1148
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1149
- * the JSPB instance for transitional soy proto support:
1150
- * http://goto/soy-param-migration
1151
- * @param {!proto.build.v1.DeployDatabricksResponse} msg The msg instance to transform.
1152
- * @return {!Object}
1153
- * @suppress {unusedLocalVariables} f is only used for nested messages
1154
- */
1155
- proto.build.v1.DeployDatabricksResponse.toObject = function(includeInstance, msg) {
1156
- var f, obj = {
1157
- buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1158
- created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1159
- updated: (f = msg.getUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1160
- };
1161
-
1162
- if (includeInstance) {
1163
- obj.$jspbMessageInstance = msg;
1164
- }
1165
- return obj;
1166
- };
1167
- }
1168
-
1169
-
1170
- /**
1171
- * Deserializes binary data (in protobuf wire format).
1172
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1173
- * @return {!proto.build.v1.DeployDatabricksResponse}
1174
- */
1175
- proto.build.v1.DeployDatabricksResponse.deserializeBinary = function(bytes) {
1176
- var reader = new jspb.BinaryReader(bytes);
1177
- var msg = new proto.build.v1.DeployDatabricksResponse;
1178
- return proto.build.v1.DeployDatabricksResponse.deserializeBinaryFromReader(msg, reader);
1179
- };
1180
-
1181
-
1182
- /**
1183
- * Deserializes binary data (in protobuf wire format) from the
1184
- * given reader into the given message object.
1185
- * @param {!proto.build.v1.DeployDatabricksResponse} msg The message object to deserialize into.
1186
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1187
- * @return {!proto.build.v1.DeployDatabricksResponse}
1188
- */
1189
- proto.build.v1.DeployDatabricksResponse.deserializeBinaryFromReader = function(msg, reader) {
1190
- while (reader.nextField()) {
1191
- if (reader.isEndGroup()) {
1192
- break;
1193
- }
1194
- var field = reader.getFieldNumber();
1195
- switch (field) {
1196
- case 1:
1197
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1198
- msg.setBuildId(value);
1199
- break;
1200
- case 2:
1201
- var value = new google_protobuf_timestamp_pb.Timestamp;
1202
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1203
- msg.setCreated(value);
1204
- break;
1205
- case 3:
1206
- var value = new google_protobuf_timestamp_pb.Timestamp;
1207
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1208
- msg.setUpdated(value);
1209
- break;
1210
- default:
1211
- reader.skipField();
1212
- break;
1213
- }
1214
- }
1215
- return msg;
1216
- };
1217
-
1218
-
1219
- /**
1220
- * Serializes the message to binary data (in protobuf wire format).
1221
- * @return {!Uint8Array}
1222
- */
1223
- proto.build.v1.DeployDatabricksResponse.prototype.serializeBinary = function() {
1224
- var writer = new jspb.BinaryWriter();
1225
- proto.build.v1.DeployDatabricksResponse.serializeBinaryToWriter(this, writer);
1226
- return writer.getResultBuffer();
1227
- };
1228
-
1229
-
1230
- /**
1231
- * Serializes the given message to binary data (in protobuf wire
1232
- * format), writing to the given BinaryWriter.
1233
- * @param {!proto.build.v1.DeployDatabricksResponse} message
1234
- * @param {!jspb.BinaryWriter} writer
1235
- * @suppress {unusedLocalVariables} f is only used for nested messages
1236
- */
1237
- proto.build.v1.DeployDatabricksResponse.serializeBinaryToWriter = function(message, writer) {
1238
- var f = undefined;
1239
- f = message.getBuildId();
1240
- if (f.length > 0) {
1241
- writer.writeString(
1242
- 1,
1243
- f
1244
- );
1245
- }
1246
- f = message.getCreated();
1247
- if (f != null) {
1248
- writer.writeMessage(
1249
- 2,
1250
- f,
1251
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1252
- );
1253
- }
1254
- f = message.getUpdated();
1255
- if (f != null) {
1256
- writer.writeMessage(
1257
- 3,
1258
- f,
1259
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1260
- );
1261
- }
1262
- };
1263
-
1264
-
1265
- /**
1266
- * optional string build_id = 1;
1267
- * @return {string}
1268
- */
1269
- proto.build.v1.DeployDatabricksResponse.prototype.getBuildId = function() {
1270
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1271
- };
1272
-
1273
-
1274
- /**
1275
- * @param {string} value
1276
- * @return {!proto.build.v1.DeployDatabricksResponse} returns this
1277
- */
1278
- proto.build.v1.DeployDatabricksResponse.prototype.setBuildId = function(value) {
1279
- return jspb.Message.setProto3StringField(this, 1, value);
1280
- };
1281
-
1282
-
1283
- /**
1284
- * optional google.protobuf.Timestamp created = 2;
1285
- * @return {?proto.google.protobuf.Timestamp}
1286
- */
1287
- proto.build.v1.DeployDatabricksResponse.prototype.getCreated = function() {
1288
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1289
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
1290
- };
1291
-
1292
-
1293
- /**
1294
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1295
- * @return {!proto.build.v1.DeployDatabricksResponse} returns this
1296
- */
1297
- proto.build.v1.DeployDatabricksResponse.prototype.setCreated = function(value) {
1298
- return jspb.Message.setWrapperField(this, 2, value);
1299
- };
1300
-
1301
-
1302
- /**
1303
- * Clears the message field making it undefined.
1304
- * @return {!proto.build.v1.DeployDatabricksResponse} returns this
1305
- */
1306
- proto.build.v1.DeployDatabricksResponse.prototype.clearCreated = function() {
1307
- return this.setCreated(undefined);
1308
- };
1309
-
1310
-
1311
- /**
1312
- * Returns whether this field is set.
1313
- * @return {boolean}
1314
- */
1315
- proto.build.v1.DeployDatabricksResponse.prototype.hasCreated = function() {
1316
- return jspb.Message.getField(this, 2) != null;
1317
- };
1318
-
1319
-
1320
- /**
1321
- * optional google.protobuf.Timestamp updated = 3;
1322
- * @return {?proto.google.protobuf.Timestamp}
1323
- */
1324
- proto.build.v1.DeployDatabricksResponse.prototype.getUpdated = function() {
1325
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1326
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
1327
- };
1328
-
1329
-
1330
- /**
1331
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1332
- * @return {!proto.build.v1.DeployDatabricksResponse} returns this
1333
- */
1334
- proto.build.v1.DeployDatabricksResponse.prototype.setUpdated = function(value) {
1335
- return jspb.Message.setWrapperField(this, 3, value);
1336
- };
1337
-
1338
-
1339
- /**
1340
- * Clears the message field making it undefined.
1341
- * @return {!proto.build.v1.DeployDatabricksResponse} returns this
1342
- */
1343
- proto.build.v1.DeployDatabricksResponse.prototype.clearUpdated = function() {
1344
- return this.setUpdated(undefined);
1345
- };
1346
-
1347
-
1348
- /**
1349
- * Returns whether this field is set.
1350
- * @return {boolean}
1351
- */
1352
- proto.build.v1.DeployDatabricksResponse.prototype.hasUpdated = function() {
1353
- return jspb.Message.getField(this, 3) != null;
1354
- };
1355
-
1356
-
1357
-
1358
-
1359
-
1360
873
  if (jspb.Message.GENERATE_TO_OBJECT) {
1361
874
  /**
1362
875
  * Creates an object representation of this proto.
@@ -18,6 +18,8 @@ export class CreateLiveEditRequest extends jspb.Message {
18
18
  setSessionJwt(value: string): CreateLiveEditRequest;
19
19
  getExpiresIn(): number;
20
20
  setExpiresIn(value: number): CreateLiveEditRequest;
21
+ getClientKey(): string;
22
+ setClientKey(value: string): CreateLiveEditRequest;
21
23
 
22
24
  serializeBinary(): Uint8Array;
23
25
  toObject(includeInstance?: boolean): CreateLiveEditRequest.AsObject;
@@ -34,6 +36,7 @@ export namespace CreateLiveEditRequest {
34
36
  application?: Application.AsObject,
35
37
  sessionJwt: string,
36
38
  expiresIn: number,
39
+ clientKey: string,
37
40
  }
38
41
  }
39
42
 
@@ -166,7 +166,8 @@ proto.liveedit.v1.CreateLiveEditRequest.toObject = function(includeInstance, msg
166
166
  var f, obj = {
167
167
  application: (f = msg.getApplication()) && proto.liveedit.v1.Application.toObject(includeInstance, f),
168
168
  sessionJwt: jspb.Message.getFieldWithDefault(msg, 2, ""),
169
- expiresIn: jspb.Message.getFieldWithDefault(msg, 3, 0)
169
+ expiresIn: jspb.Message.getFieldWithDefault(msg, 3, 0),
170
+ clientKey: jspb.Message.getFieldWithDefault(msg, 4, "")
170
171
  };
171
172
 
172
173
  if (includeInstance) {
@@ -216,6 +217,10 @@ proto.liveedit.v1.CreateLiveEditRequest.deserializeBinaryFromReader = function(m
216
217
  var value = /** @type {number} */ (reader.readInt64());
217
218
  msg.setExpiresIn(value);
218
219
  break;
220
+ case 4:
221
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
222
+ msg.setClientKey(value);
223
+ break;
219
224
  default:
220
225
  reader.skipField();
221
226
  break;
@@ -267,6 +272,13 @@ proto.liveedit.v1.CreateLiveEditRequest.serializeBinaryToWriter = function(messa
267
272
  f
268
273
  );
269
274
  }
275
+ f = message.getClientKey();
276
+ if (f.length > 0) {
277
+ writer.writeString(
278
+ 4,
279
+ f
280
+ );
281
+ }
270
282
  };
271
283
 
272
284
 
@@ -343,6 +355,24 @@ proto.liveedit.v1.CreateLiveEditRequest.prototype.setExpiresIn = function(value)
343
355
  };
344
356
 
345
357
 
358
+ /**
359
+ * optional string client_key = 4;
360
+ * @return {string}
361
+ */
362
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.getClientKey = function() {
363
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
364
+ };
365
+
366
+
367
+ /**
368
+ * @param {string} value
369
+ * @return {!proto.liveedit.v1.CreateLiveEditRequest} returns this
370
+ */
371
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.setClientKey = function(value) {
372
+ return jspb.Message.setProto3StringField(this, 4, value);
373
+ };
374
+
375
+
346
376
 
347
377
 
348
378
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/sabs-types-js",
3
- "version": "0.0.1-demo-databricks-deploy",
3
+ "version": "0.0.1-lock-mechanism-sabs",
4
4
  "description": "Superblocks Application Build System Types for JavaScript",
5
5
  "repository": {
6
6
  "type": "git",