-
Notifications
You must be signed in to change notification settings - Fork 2
/
denygrantresponse.js
244 lines (209 loc) · 7.85 KB
/
denygrantresponse.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
// source: cs3/storage/provider/v1beta1/provider_api.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
goog.provide('proto.cs3.storage.provider.v1beta1.DenyGrantResponse');
goog.require('jspb.BinaryReader');
goog.require('jspb.BinaryWriter');
goog.require('jspb.Message');
goog.require('proto.cs3.rpc.v1beta1.Status');
goog.require('proto.cs3.types.v1beta1.Opaque');
/**
* 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.cs3.storage.provider.v1beta1.DenyGrantResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cs3.storage.provider.v1beta1.DenyGrantResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.displayName = 'proto.cs3.storage.provider.v1beta1.DenyGrantResponse';
}
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.cs3.storage.provider.v1beta1.DenyGrantResponse.prototype.toObject = function(opt_includeInstance) {
return proto.cs3.storage.provider.v1beta1.DenyGrantResponse.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.cs3.storage.provider.v1beta1.DenyGrantResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.toObject = function(includeInstance, msg) {
var f, obj = {
status: (f = msg.getStatus()) && proto.cs3.rpc.v1beta1.Status.toObject(includeInstance, f),
opaque: (f = msg.getOpaque()) && proto.cs3.types.v1beta1.Opaque.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.cs3.storage.provider.v1beta1.DenyGrantResponse}
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cs3.storage.provider.v1beta1.DenyGrantResponse;
return proto.cs3.storage.provider.v1beta1.DenyGrantResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cs3.storage.provider.v1beta1.DenyGrantResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cs3.storage.provider.v1beta1.DenyGrantResponse}
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.cs3.rpc.v1beta1.Status;
reader.readMessage(value,proto.cs3.rpc.v1beta1.Status.deserializeBinaryFromReader);
msg.setStatus(value);
break;
case 2:
var value = new proto.cs3.types.v1beta1.Opaque;
reader.readMessage(value,proto.cs3.types.v1beta1.Opaque.deserializeBinaryFromReader);
msg.setOpaque(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.cs3.storage.provider.v1beta1.DenyGrantResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getStatus();
if (f != null) {
writer.writeMessage(
1,
f,
proto.cs3.rpc.v1beta1.Status.serializeBinaryToWriter
);
}
f = message.getOpaque();
if (f != null) {
writer.writeMessage(
2,
f,
proto.cs3.types.v1beta1.Opaque.serializeBinaryToWriter
);
}
};
/**
* optional cs3.rpc.v1beta1.Status status = 1;
* @return {?proto.cs3.rpc.v1beta1.Status}
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.prototype.getStatus = function() {
return /** @type{?proto.cs3.rpc.v1beta1.Status} */ (
jspb.Message.getWrapperField(this, proto.cs3.rpc.v1beta1.Status, 1));
};
/**
* @param {?proto.cs3.rpc.v1beta1.Status|undefined} value
* @return {!proto.cs3.storage.provider.v1beta1.DenyGrantResponse} returns this
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.prototype.setStatus = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cs3.storage.provider.v1beta1.DenyGrantResponse} returns this
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.prototype.clearStatus = function() {
return this.setStatus(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.prototype.hasStatus = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional cs3.types.v1beta1.Opaque opaque = 2;
* @return {?proto.cs3.types.v1beta1.Opaque}
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.prototype.getOpaque = function() {
return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
jspb.Message.getWrapperField(this, proto.cs3.types.v1beta1.Opaque, 2));
};
/**
* @param {?proto.cs3.types.v1beta1.Opaque|undefined} value
* @return {!proto.cs3.storage.provider.v1beta1.DenyGrantResponse} returns this
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.prototype.setOpaque = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cs3.storage.provider.v1beta1.DenyGrantResponse} returns this
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.prototype.clearOpaque = function() {
return this.setOpaque(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cs3.storage.provider.v1beta1.DenyGrantResponse.prototype.hasOpaque = function() {
return jspb.Message.getField(this, 2) != null;
};