blob: 31392b446109b42be0bda9c32c7855b420bc3929 [file] [log] [blame]
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +02001// source: google/protobuf/empty.proto
2/**
3 * @fileoverview
4 * @enhanceable
5 * @suppress {missingRequire} reports error on implicit type usages.
6 * @suppress {messageConventions} JS Compiler reports an error if a variable or
7 * field starts with 'MSG_' and isn't a translatable message.
8 * @public
9 */
10// GENERATED CODE -- DO NOT EDIT!
11/* eslint-disable */
12// @ts-nocheck
13
14var jspb = require('google-protobuf');
15var goog = jspb;
16var proto = {};
17
18goog.exportSymbol('google.protobuf.Empty', null, proto);
19/**
20 * Generated by JsPbCodeGenerator.
21 * @param {Array=} opt_data Optional initial data array, typically from a
22 * server response, or constructed directly in Javascript. The array is used
23 * in place and becomes part of the constructed object. It is not cloned.
24 * If no data is provided, the constructed object will be empty, but still
25 * valid.
26 * @extends {jspb.Message}
27 * @constructor
28 */
29proto.google.protobuf.Empty = function(opt_data) {
30 jspb.Message.initialize(this, opt_data, 0, -1, null, null);
31};
32goog.inherits(proto.google.protobuf.Empty, jspb.Message);
33if (goog.DEBUG && !COMPILED) {
34 /**
35 * @public
36 * @override
37 */
38 proto.google.protobuf.Empty.displayName = 'proto.google.protobuf.Empty';
39}
40
41
42
43if (jspb.Message.GENERATE_TO_OBJECT) {
44/**
45 * Creates an object representation of this proto.
46 * Field names that are reserved in JavaScript and will be renamed to pb_name.
47 * Optional fields that are not set will be set to undefined.
48 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
49 * For the list of reserved names please see:
50 * net/proto2/compiler/js/internal/generator.cc#kKeyword.
51 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
52 * JSPB instance for transitional soy proto support:
53 * http://goto/soy-param-migration
54 * @return {!Object}
55 */
56proto.google.protobuf.Empty.prototype.toObject = function(opt_includeInstance) {
57 return proto.google.protobuf.Empty.toObject(opt_includeInstance, this);
58};
59
60
61/**
62 * Static version of the {@see toObject} method.
63 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
64 * the JSPB instance for transitional soy proto support:
65 * http://goto/soy-param-migration
66 * @param {!proto.google.protobuf.Empty} msg The msg instance to transform.
67 * @return {!Object}
68 * @suppress {unusedLocalVariables} f is only used for nested messages
69 */
70proto.google.protobuf.Empty.toObject = function(includeInstance, msg) {
71 var f, obj = {
72
73 };
74
75 if (includeInstance) {
76 obj.$jspbMessageInstance = msg;
77 }
78 return obj;
79};
80}
81
82
83/**
84 * Deserializes binary data (in protobuf wire format).
85 * @param {jspb.ByteSource} bytes The bytes to deserialize.
86 * @return {!proto.google.protobuf.Empty}
87 */
88proto.google.protobuf.Empty.deserializeBinary = function(bytes) {
89 var reader = new jspb.BinaryReader(bytes);
90 var msg = new proto.google.protobuf.Empty;
91 return proto.google.protobuf.Empty.deserializeBinaryFromReader(msg, reader);
92};
93
94
95/**
96 * Deserializes binary data (in protobuf wire format) from the
97 * given reader into the given message object.
98 * @param {!proto.google.protobuf.Empty} msg The message object to deserialize into.
99 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
100 * @return {!proto.google.protobuf.Empty}
101 */
102proto.google.protobuf.Empty.deserializeBinaryFromReader = function(msg, reader) {
103 while (reader.nextField()) {
104 if (reader.isEndGroup()) {
105 break;
106 }
107 var field = reader.getFieldNumber();
108 switch (field) {
109 default:
110 reader.skipField();
111 break;
112 }
113 }
114 return msg;
115};
116
117
118/**
119 * Serializes the message to binary data (in protobuf wire format).
120 * @return {!Uint8Array}
121 */
122proto.google.protobuf.Empty.prototype.serializeBinary = function() {
123 var writer = new jspb.BinaryWriter();
124 proto.google.protobuf.Empty.serializeBinaryToWriter(this, writer);
125 return writer.getResultBuffer();
126};
127
128
129/**
130 * Serializes the given message to binary data (in protobuf wire
131 * format), writing to the given BinaryWriter.
132 * @param {!proto.google.protobuf.Empty} message
133 * @param {!jspb.BinaryWriter} writer
134 * @suppress {unusedLocalVariables} f is only used for nested messages
135 */
136proto.google.protobuf.Empty.serializeBinaryToWriter = function(message, writer) {
137 var f = undefined;
138};
139
140
141goog.object.extend(exports, proto);