diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000..478b33b
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,3 @@
+CLIENT_ID=
+CLIENT_SECRET=
+REDIRECT_URL=
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 2e5ca9a..f5a1bea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,7 +4,6 @@
node_modules
.DS_Store
.env
-/build
/lib
/test
/examples
diff --git a/.npmignore b/.npmignore
index 781f531..12cd4c9 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,6 +1,4 @@
-build
test
-ts
gulpfile.js
tsconfig.json
*.tgz
diff --git a/build/examples/text-conversation.d.ts b/build/examples/text-conversation.d.ts
new file mode 100644
index 0000000..e69de29
diff --git a/build/examples/text-conversation.js b/build/examples/text-conversation.js
new file mode 100644
index 0000000..4c55c19
--- /dev/null
+++ b/build/examples/text-conversation.js
@@ -0,0 +1,114 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+require('dotenv').load(); /** Loading .env file where you can store your API keys for the app */
+const GoogleAssistant = require("../lib/google-assistant");
+const constants = GoogleAssistant.Constants;
+const encoding = constants.Encoding;
+const google = require('googleapis');
+const opn = require('opn');
+const OAuth2 = google.auth.OAuth2;
+let assistant = new GoogleAssistant({
+ output: {
+ encoding: encoding.LINEAR16,
+ sampleRateHertz: 16000,
+ volumePercentage: 100
+ },
+ device: {
+ deviceId: 'ga-desktop',
+ deviceModelId: 'ga-desktop-electron',
+ },
+ languageCode: 'en-US',
+});
+const readline = require('readline');
+const rl = readline.createInterface({
+ input: process.stdin,
+ output: process.stdout
+});
+// The Assistant is connected to Google and is ready to receive audio
+// data from the mic.
+assistant.on('ready', () => {
+ // We're not using this for the text conversation.
+});
+// Transcription of the Assistant's response.
+// Google sometimes does not send this text, so don't rely
+// to heavily on it.
+assistant.on('response-text', (text) => {
+ console.log('Google Assistant:', text);
+});
+assistant.on('follow-on', (object) => {
+ startConversation();
+});
+// There was an error somewhere. Stop the mic and speaker streams.
+assistant.on('error', (err) => {
+ console.error(err);
+ console.log("Error ocurred. Exiting...");
+});
+// The conversation is over. Close the microphone and the speakers.
+assistant.on('end', () => {
+ startConversation();
+});
+assistant.once('unauthorized', () => {
+ console.log("Not authorized. Exiting...");
+});
+// Authentication is a bit complicated since Google requires developers
+// to create a Google Cloud Platform project to use the Google Assistant.
+// You also need to enable the Google Assistant API in your GCP project
+// in order to use the SDK.
+// Defaulting the redirect URL to display the code so we can input it in the console.
+var authClient = new OAuth2(process.env.CLIENT_ID || 'YOUR_CLIENT_ID', process.env.CLIENT_SECRET || 'YOUR_CLIENT_SECRET', process.env.REDIRECT_URL || 'urn:ietf:wg:oauth:2.0:oob' // Default to output code oob in window
+);
+/** Saving profile name for nice chatty output */
+var url = authClient.generateAuthUrl({
+ // 'online' (default) or 'offline' (gets refresh_token)
+ access_type: 'offline',
+ // If you only need one scope you can pass it as a string
+ scope: ['https://www.googleapis.com/auth/assistant-sdk-prototype',
+ 'https://www.googleapis.com/auth/userinfo.profile'],
+});
+console.log('Login and get your refresh token.');
+console.log(url);
+try {
+ opn(url);
+}
+catch (error) {
+ //trying to open url, if not possible, use url mentioned in console.
+}
+let userName;
+/** Asking for auth code form authentication URL */
+rl.question('Auth code: ', function (code) {
+ /** Getting tokens from Google to authenticate */
+ authClient.getToken(code, function (err, tokens) {
+ if (!err) {
+ authClient.setCredentials(tokens);
+ console.log('Authentication succesful!');
+ /** Authenticating the Google Assistant */
+ assistant.authenticate(authClient);
+ /** Getting the user profile information */
+ var oauth2 = google.oauth2({
+ auth: authClient,
+ version: 'v2'
+ });
+ oauth2.userinfo.v2.me.get(function (err, result) {
+ /** Saving profile name for nice chatty output */
+ userName = result.given_name;
+ startConversation();
+ });
+ }
+ else {
+ console.log('Error happend, exiting....');
+ }
+ });
+});
+/** Starting a conversation, getting console input and sending it to google. */
+function startConversation() {
+ let textQuery;
+ rl.question(userName + ': ', (input) => {
+ if (input) {
+ assistant.assist(input);
+ }
+ else {
+ console.log('Whooppss, seems like you didn\'t say anything.');
+ }
+ });
+}
+//# sourceMappingURL=text-conversation.js.map
\ No newline at end of file
diff --git a/build/lib/audio-converter.d.ts b/build/lib/audio-converter.d.ts
new file mode 100644
index 0000000..52324da
--- /dev/null
+++ b/build/lib/audio-converter.d.ts
@@ -0,0 +1,7 @@
+///
+import * as stream from "stream";
+declare class AudioConverter extends stream.Transform {
+ constructor();
+ _transform(chunk: any, enc: string, cb: (err?: Error) => void): void;
+}
+export default AudioConverter;
diff --git a/build/lib/audio-converter.js b/build/lib/audio-converter.js
new file mode 100644
index 0000000..64ccd8c
--- /dev/null
+++ b/build/lib/audio-converter.js
@@ -0,0 +1,34 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const stream = require("stream");
+let messages = require('./googleapis/google/assistant/embedded/v1alpha2/embedded_assistant_pb');
+class AudioConverter extends stream.Transform {
+ constructor() {
+ super({ objectMode: true });
+ }
+ _transform(chunk, enc, cb) {
+ /** We're disabeling the transformation of data for now to see how Google response to it */
+ /**
+ var buff = Buffer.from(chunk)
+ var offset = 0;
+ var size = 1024 * 16;
+
+ for(var i = 0; i < chunk.length / size; i++) {
+ var nibble = buff.slice(offset, (offset + size));
+ offset += size;
+ var request = new messages.AssistRequest();
+ request.setAudioIn(nibble);
+ this.push(request);
+ }
+
+ return cb(null);
+
+ */
+ var request = new messages.AssistRequest();
+ request.setAudioIn(chunk);
+ this.push(request);
+ console.log('Pushing chunk...');
+ }
+}
+exports.default = AudioConverter;
+//# sourceMappingURL=audio-converter.js.map
\ No newline at end of file
diff --git a/build/lib/config.d.ts b/build/lib/config.d.ts
new file mode 100644
index 0000000..92de447
--- /dev/null
+++ b/build/lib/config.d.ts
@@ -0,0 +1,33 @@
+import { AudioInOptions, AudioOutOptions, DeviceOptions } from "./options";
+export interface AudioInConfig extends AudioInOptions {
+ setEncoding(encoding: number): void;
+ setSampleRateHertz(encoding: number): void;
+}
+export interface AudioOutConfig extends AudioOutOptions, AudioInConfig {
+ setVolumePercentage(percentage: number): void;
+}
+export interface DialogStateIn {
+ conversationState: Array | null;
+ languageCode: string | null;
+ setLanguageCode(languageCode: string): void;
+ setConversationState(state: Array | null): void;
+}
+export interface DeviceConfig extends DeviceOptions {
+ setDeviceId(id: string): void;
+ setDeviceModelId(id: string): void;
+}
+export interface AssistantConfig {
+ output: AudioOutOptions;
+ input?: AudioInOptions;
+ device: DeviceOptions;
+ languageCode: string;
+}
+export interface AssistConfig {
+ setAudioInConfig(config: AudioInConfig): void;
+ setAudioOutConfig(config: AudioOutConfig): void;
+ setDialogStateIn(state: DialogStateIn): void;
+ setDeviceConfig(config: DeviceConfig): void;
+ setTextQuery(value: string): void;
+ clearAudioInConfig(): void;
+ clearTextQuery(): void;
+}
diff --git a/build/lib/config.js b/build/lib/config.js
new file mode 100644
index 0000000..b464307
--- /dev/null
+++ b/build/lib/config.js
@@ -0,0 +1,3 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+//# sourceMappingURL=config.js.map
\ No newline at end of file
diff --git a/build/lib/constants.d.ts b/build/lib/constants.d.ts
new file mode 100644
index 0000000..6a5b894
--- /dev/null
+++ b/build/lib/constants.d.ts
@@ -0,0 +1,20 @@
+export declare enum State {
+ IN_PROGRESS = 0,
+ FINISHED = 1,
+}
+export declare enum Event {
+ END_OF_UTTERANCE = 1,
+}
+export declare enum MicMode {
+ CLOSE_MICROPHONE = 1,
+ DIALOG_FOLLOW_ON = 2,
+}
+export declare enum Encoding {
+ LINEAR16 = 1,
+ FLAC = 2,
+ MP3 = 2,
+ OPUS_IN_OGG = 3,
+}
+export declare module API {
+ const ENDPOINT = "embeddedassistant.googleapis.com";
+}
diff --git a/build/lib/constants.js b/build/lib/constants.js
new file mode 100644
index 0000000..df2c682
--- /dev/null
+++ b/build/lib/constants.js
@@ -0,0 +1,28 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var State;
+(function (State) {
+ State[State["IN_PROGRESS"] = 0] = "IN_PROGRESS";
+ State[State["FINISHED"] = 1] = "FINISHED";
+})(State = exports.State || (exports.State = {}));
+var Event;
+(function (Event) {
+ Event[Event["END_OF_UTTERANCE"] = 1] = "END_OF_UTTERANCE";
+})(Event = exports.Event || (exports.Event = {}));
+var MicMode;
+(function (MicMode) {
+ MicMode[MicMode["CLOSE_MICROPHONE"] = 1] = "CLOSE_MICROPHONE";
+ MicMode[MicMode["DIALOG_FOLLOW_ON"] = 2] = "DIALOG_FOLLOW_ON";
+})(MicMode = exports.MicMode || (exports.MicMode = {}));
+var Encoding;
+(function (Encoding) {
+ Encoding[Encoding["LINEAR16"] = 1] = "LINEAR16";
+ Encoding[Encoding["FLAC"] = 2] = "FLAC";
+ Encoding[Encoding["MP3"] = 2] = "MP3";
+ Encoding[Encoding["OPUS_IN_OGG"] = 3] = "OPUS_IN_OGG"; // Output
+})(Encoding = exports.Encoding || (exports.Encoding = {}));
+var API;
+(function (API) {
+ API.ENDPOINT = 'embeddedassistant.googleapis.com';
+})(API = exports.API || (exports.API = {}));
+//# sourceMappingURL=constants.js.map
\ No newline at end of file
diff --git a/build/lib/google-assistant.d.ts b/build/lib/google-assistant.d.ts
new file mode 100644
index 0000000..3e3335e
--- /dev/null
+++ b/build/lib/google-assistant.d.ts
@@ -0,0 +1,40 @@
+///
+import * as events from "events";
+import * as constants from "./constants";
+import { AudioInOptions, AudioOutOptions, DeviceOptions } from "./options";
+import { AssistantConfig } from "./config";
+declare class GoogleAssistant extends events.EventEmitter {
+ static Constants: typeof constants;
+ private state;
+ private service;
+ private channel;
+ private converter;
+ private assistConfig;
+ private conversationState;
+ private textQuery;
+ private languageCode;
+ private audioInConfig;
+ private audioOutConfig;
+ private dialogStateIn;
+ private deviceConfig;
+ constructor(config: AssistantConfig);
+ setDeviceConfig(config: DeviceOptions): void;
+ setInputConfig(config?: AudioInOptions): void;
+ setLanguageCode(languageCode: string): void;
+ setOutputConfig(config: AudioOutOptions): void;
+ private _updateAssistConfig();
+ authenticate(authClient: any): void;
+ assist(textQuery?: string): void;
+ writeAudio(data: any): void;
+ say(sentence: string): void;
+ private _handleEndOfUtterance(response);
+ private _handleAssistResponse(response);
+ private _handleAudioOut(response);
+ private _handleSpeechResults(response);
+ private _handleDialogStateOut(state);
+ private _handleConversationState(state);
+ _handleConversationEnd(): void;
+ _handleError(error: any): void;
+ stop(): void;
+}
+export = GoogleAssistant;
diff --git a/build/lib/google-assistant.js b/build/lib/google-assistant.js
new file mode 100644
index 0000000..92ed68d
--- /dev/null
+++ b/build/lib/google-assistant.js
@@ -0,0 +1,194 @@
+"use strict";
+const events = require("events");
+const constants = require("./constants");
+const audio_converter_1 = require("./audio-converter");
+const constants_1 = require("./constants");
+let grpc = require('grpc');
+let messages = require('./googleapis/google/assistant/embedded/v1alpha2/embedded_assistant_pb');
+let services = require('./googleapis/google/assistant/embedded/v1alpha2/embedded_assistant_grpc_pb');
+class GoogleAssistant extends events.EventEmitter {
+ constructor(config) {
+ super();
+ this.converter = new audio_converter_1.default();
+ this.assistConfig = new messages.AssistConfig();
+ this.audioInConfig = new messages.AudioInConfig();
+ this.audioOutConfig = new messages.AudioOutConfig();
+ this.dialogStateIn = new messages.DialogStateIn();
+ this.deviceConfig = new messages.DeviceConfig();
+ this.setInputConfig(config.input);
+ this.setOutputConfig(config.output);
+ this.setLanguageCode(config.languageCode);
+ this.setDeviceConfig(config.device);
+ }
+ setDeviceConfig(config) {
+ this.deviceConfig.setDeviceId(config.deviceId);
+ this.deviceConfig.setDeviceModelId(config.deviceModelId);
+ }
+ setInputConfig(config) {
+ if (config) {
+ this.audioInConfig.setEncoding(config.encoding);
+ this.audioInConfig.setSampleRateHertz(config.sampleRateHertz);
+ }
+ }
+ setLanguageCode(languageCode) {
+ this.languageCode = languageCode;
+ this.dialogStateIn.setLanguageCode(languageCode);
+ }
+ setOutputConfig(config) {
+ this.audioOutConfig.setEncoding(config.encoding);
+ this.audioOutConfig.setSampleRateHertz(config.sampleRateHertz);
+ this.audioOutConfig.setVolumePercentage(config.volumePercentage);
+ }
+ _updateAssistConfig() {
+ if (this.textQuery) {
+ this.assistConfig.setTextQuery(this.textQuery);
+ this.assistConfig.clearAudioInConfig();
+ }
+ else {
+ this.assistConfig.setAudioInConfig(this.audioInConfig);
+ this.assistConfig.clearTextQuery();
+ }
+ this.assistConfig.setAudioOutConfig(this.audioOutConfig);
+ this.assistConfig.setDialogStateIn(this.dialogStateIn);
+ this.assistConfig.setDeviceConfig(this.deviceConfig);
+ }
+ authenticate(authClient) {
+ let ssl_creds = grpc.credentials.createSsl();
+ let call_creds = grpc.credentials.createFromGoogleCredential(authClient);
+ let combined_creds = grpc.credentials.combineChannelCredentials(ssl_creds, call_creds);
+ this.service = new services.EmbeddedAssistantClient(constants_1.API.ENDPOINT, combined_creds);
+ }
+ assist(textQuery) {
+ if (this.state == constants_1.State.IN_PROGRESS && this.dialogStateIn.conversationState != null) {
+ this.assistConfig.setDialogStateIn(this.dialogStateIn);
+ this.dialogStateIn.conversationState = null;
+ }
+ this.textQuery = textQuery;
+ this._updateAssistConfig();
+ let request = new messages.AssistRequest();
+ request.setConfig(this.assistConfig);
+ // GUARD: Make sure service is created and authenticated
+ if (this.service == null) {
+ this.emit('unauthorized');
+ return;
+ }
+ this.channel = this.service.assist(new grpc.Metadata(), request);
+ // Setup event listeners
+ this.channel.on('data', this._handleAudioOut.bind(this));
+ this.channel.on('data', this._handleAssistResponse.bind(this));
+ this.channel.on('data', this._handleEndOfUtterance.bind(this));
+ this.channel.on('data', this._handleSpeechResults.bind(this));
+ this.channel.on('error', this._handleError.bind(this));
+ this.channel.on('end', this._handleConversationEnd.bind(this));
+ // Write first AssistRequest
+ this.channel.write(request);
+ this.state = constants_1.State.IN_PROGRESS;
+ // Wait for any errors to emerge before piping
+ // audio data
+ if (!this.textQuery) {
+ setTimeout(() => {
+ if (this.channel != null) {
+ // Signal that assistant is ready for audio input
+ this.emit('ready');
+ }
+ }, 100);
+ }
+ else {
+ this.emit('ready', this.textQuery);
+ }
+ }
+ // Write audio buffer to channel
+ writeAudio(data) {
+ if (this.channel) {
+ var request = new messages.AssistRequest();
+ request.setAudioIn(data);
+ this.channel.write(request);
+ }
+ }
+ say(sentence) {
+ this.assist('repeat after me '.concat(sentence));
+ }
+ _handleEndOfUtterance(response) {
+ if (response.getEventType() === constants_1.Event.END_OF_UTTERANCE) {
+ this.emit('end-of-utterance');
+ }
+ }
+ _handleAssistResponse(response) {
+ if (response.hasDialogStateOut()) {
+ this._handleDialogStateOut(response.getDialogStateOut());
+ }
+ if (response.hasDeviceAction()) {
+ this.emit('device-request', JSON.parse(response.getDeviceAction().toObject().deviceRequestJson));
+ }
+ }
+ _handleAudioOut(response) {
+ if (response.hasAudioOut()) {
+ this.emit('audio-data', new Buffer(response.getAudioOut().getAudioData()));
+ }
+ }
+ _handleSpeechResults(response) {
+ const speechResultsList = response.toObject().speechResultsList;
+ if (speechResultsList) {
+ this.emit('speech-results', speechResultsList);
+ }
+ }
+ _handleDialogStateOut(state) {
+ if (state.getSupplementalDisplayText()) {
+ this.emit('response-text', state.getSupplementalDisplayText());
+ }
+ if (state.getConversationState()) {
+ this.emit('state', new Buffer(state.getConversationState()));
+ this._handleConversationState(state);
+ }
+ }
+ _handleConversationState(state) {
+ // Determine state based on microphone mode.
+ if (state.getMicrophoneMode()) {
+ this.emit('mic-mode', state.getMicrophoneMode());
+ let micMode = state.getMicrophoneMode();
+ // Keep state, and expect more input
+ if (micMode == constants_1.MicMode.DIALOG_FOLLOW_ON) {
+ this.state = constants_1.State.IN_PROGRESS;
+ }
+ else if (micMode == constants_1.MicMode.CLOSE_MICROPHONE) {
+ this.state = constants_1.State.FINISHED;
+ }
+ }
+ // Handle continous conversations
+ if (state.getConversationState()) {
+ let diaState = new messages.DialogStateIn(this.dialogStateIn);
+ diaState.setLanguageCode(this.languageCode);
+ diaState.setConversationState(state.getConversationState());
+ this.dialogStateIn = diaState;
+ }
+ }
+ _handleConversationEnd() {
+ this.emit('end');
+ if (this.state == constants_1.State.IN_PROGRESS) {
+ this.emit('follow-on');
+ }
+ }
+ _handleError(error) {
+ if (this.channel != null) {
+ this.channel.end();
+ this.channel = null;
+ }
+ if (error.code && error.code == grpc.status.UNAUTHENTICATED) {
+ this.emit('unauthorized', error);
+ }
+ else {
+ this.emit('error', error);
+ }
+ }
+ stop() {
+ if (this.channel != null) {
+ this.channel.removeAllListeners();
+ this.channel.end();
+ this.channel = null;
+ this.emit('end');
+ }
+ }
+}
+GoogleAssistant.Constants = constants;
+module.exports = GoogleAssistant;
+//# sourceMappingURL=google-assistant.js.map
\ No newline at end of file
diff --git a/build/lib/googleapis/google/api/annotations_pb.js b/build/lib/googleapis/google/api/annotations_pb.js
new file mode 100644
index 0000000..a4995f6
--- /dev/null
+++ b/build/lib/googleapis/google/api/annotations_pb.js
@@ -0,0 +1,40 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_http_pb = require('../../google/api/http_pb.js');
+var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
+goog.exportSymbol('proto.google.api.http', null, global);
+
+/**
+ * A tuple of {field number, class constructor} for the extension
+ * field named `http`.
+ * @type {!jspb.ExtensionFieldInfo.}
+ */
+proto.google.api.http = new jspb.ExtensionFieldInfo(
+ 72295728,
+ {http: 0},
+ google_api_http_pb.HttpRule,
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
+ google_api_http_pb.HttpRule.toObject),
+ 0);
+
+google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295728] = new jspb.ExtensionFieldBinaryInfo(
+ proto.google.api.http,
+ jspb.BinaryReader.prototype.readMessage,
+ jspb.BinaryWriter.prototype.writeMessage,
+ google_api_http_pb.HttpRule.serializeBinaryToWriter,
+ google_api_http_pb.HttpRule.deserializeBinaryFromReader,
+ false);
+// This registers the extension field with the extended class, so that
+// toObject() will function correctly.
+google_protobuf_descriptor_pb.MethodOptions.extensions[72295728] = proto.google.api.http;
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/auth_pb.js b/build/lib/googleapis/google/api/auth_pb.js
new file mode 100644
index 0000000..34c9bfd
--- /dev/null
+++ b/build/lib/googleapis/google/api/auth_pb.js
@@ -0,0 +1,1030 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
+goog.exportSymbol('proto.google.api.AuthProvider', null, global);
+goog.exportSymbol('proto.google.api.AuthRequirement', null, global);
+goog.exportSymbol('proto.google.api.Authentication', null, global);
+goog.exportSymbol('proto.google.api.AuthenticationRule', null, global);
+goog.exportSymbol('proto.google.api.OAuthRequirements', null, global);
+
+/**
+ * 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.google.api.Authentication = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Authentication.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Authentication, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Authentication.displayName = 'proto.google.api.Authentication';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Authentication.repeatedFields_ = [3,4];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Authentication.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Authentication.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Authentication} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Authentication.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ rulesList: jspb.Message.toObjectList(msg.getRulesList(),
+ proto.google.api.AuthenticationRule.toObject, includeInstance),
+ providersList: jspb.Message.toObjectList(msg.getProvidersList(),
+ proto.google.api.AuthProvider.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Authentication}
+ */
+proto.google.api.Authentication.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Authentication;
+ return proto.google.api.Authentication.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Authentication} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Authentication}
+ */
+proto.google.api.Authentication.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 3:
+ var value = new proto.google.api.AuthenticationRule;
+ reader.readMessage(value,proto.google.api.AuthenticationRule.deserializeBinaryFromReader);
+ msg.addRules(value);
+ break;
+ case 4:
+ var value = new proto.google.api.AuthProvider;
+ reader.readMessage(value,proto.google.api.AuthProvider.deserializeBinaryFromReader);
+ msg.addProviders(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Authentication.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Authentication.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Authentication} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Authentication.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getRulesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 3,
+ f,
+ proto.google.api.AuthenticationRule.serializeBinaryToWriter
+ );
+ }
+ f = message.getProvidersList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 4,
+ f,
+ proto.google.api.AuthProvider.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * repeated AuthenticationRule rules = 3;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Authentication.prototype.getRulesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthenticationRule, 3));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Authentication.prototype.setRulesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 3, value);
+};
+
+
+/**
+ * @param {!proto.google.api.AuthenticationRule=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.AuthenticationRule}
+ */
+proto.google.api.Authentication.prototype.addRules = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.AuthenticationRule, opt_index);
+};
+
+
+proto.google.api.Authentication.prototype.clearRulesList = function() {
+ this.setRulesList([]);
+};
+
+
+/**
+ * repeated AuthProvider providers = 4;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Authentication.prototype.getProvidersList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthProvider, 4));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Authentication.prototype.setProvidersList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 4, value);
+};
+
+
+/**
+ * @param {!proto.google.api.AuthProvider=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.AuthProvider}
+ */
+proto.google.api.Authentication.prototype.addProviders = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.AuthProvider, opt_index);
+};
+
+
+proto.google.api.Authentication.prototype.clearProvidersList = function() {
+ this.setProvidersList([]);
+};
+
+
+
+/**
+ * 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.google.api.AuthenticationRule = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.AuthenticationRule.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.AuthenticationRule, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.AuthenticationRule.displayName = 'proto.google.api.AuthenticationRule';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.AuthenticationRule.repeatedFields_ = [7];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.AuthenticationRule.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.AuthenticationRule.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.AuthenticationRule} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.AuthenticationRule.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ oauth: (f = msg.getOauth()) && proto.google.api.OAuthRequirements.toObject(includeInstance, f),
+ allowWithoutCredential: jspb.Message.getFieldWithDefault(msg, 5, false),
+ requirementsList: jspb.Message.toObjectList(msg.getRequirementsList(),
+ proto.google.api.AuthRequirement.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.AuthenticationRule}
+ */
+proto.google.api.AuthenticationRule.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.AuthenticationRule;
+ return proto.google.api.AuthenticationRule.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.AuthenticationRule} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.AuthenticationRule}
+ */
+proto.google.api.AuthenticationRule.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSelector(value);
+ break;
+ case 2:
+ var value = new proto.google.api.OAuthRequirements;
+ reader.readMessage(value,proto.google.api.OAuthRequirements.deserializeBinaryFromReader);
+ msg.setOauth(value);
+ break;
+ case 5:
+ var value = /** @type {boolean} */ (reader.readBool());
+ msg.setAllowWithoutCredential(value);
+ break;
+ case 7:
+ var value = new proto.google.api.AuthRequirement;
+ reader.readMessage(value,proto.google.api.AuthRequirement.deserializeBinaryFromReader);
+ msg.addRequirements(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.AuthenticationRule.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.AuthenticationRule.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.AuthenticationRule} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.AuthenticationRule.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSelector();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getOauth();
+ if (f != null) {
+ writer.writeMessage(
+ 2,
+ f,
+ proto.google.api.OAuthRequirements.serializeBinaryToWriter
+ );
+ }
+ f = message.getAllowWithoutCredential();
+ if (f) {
+ writer.writeBool(
+ 5,
+ f
+ );
+ }
+ f = message.getRequirementsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 7,
+ f,
+ proto.google.api.AuthRequirement.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional string selector = 1;
+ * @return {string}
+ */
+proto.google.api.AuthenticationRule.prototype.getSelector = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.AuthenticationRule.prototype.setSelector = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional OAuthRequirements oauth = 2;
+ * @return {?proto.google.api.OAuthRequirements}
+ */
+proto.google.api.AuthenticationRule.prototype.getOauth = function() {
+ return /** @type{?proto.google.api.OAuthRequirements} */ (
+ jspb.Message.getWrapperField(this, proto.google.api.OAuthRequirements, 2));
+};
+
+
+/** @param {?proto.google.api.OAuthRequirements|undefined} value */
+proto.google.api.AuthenticationRule.prototype.setOauth = function(value) {
+ jspb.Message.setWrapperField(this, 2, value);
+};
+
+
+proto.google.api.AuthenticationRule.prototype.clearOauth = function() {
+ this.setOauth(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.AuthenticationRule.prototype.hasOauth = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+/**
+ * optional bool allow_without_credential = 5;
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
+ * You should avoid comparisons like {@code val === true/false} in those cases.
+ * @return {boolean}
+ */
+proto.google.api.AuthenticationRule.prototype.getAllowWithoutCredential = function() {
+ return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false));
+};
+
+
+/** @param {boolean} value */
+proto.google.api.AuthenticationRule.prototype.setAllowWithoutCredential = function(value) {
+ jspb.Message.setField(this, 5, value);
+};
+
+
+/**
+ * repeated AuthRequirement requirements = 7;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.AuthenticationRule.prototype.getRequirementsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthRequirement, 7));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.AuthenticationRule.prototype.setRequirementsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 7, value);
+};
+
+
+/**
+ * @param {!proto.google.api.AuthRequirement=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.AuthRequirement}
+ */
+proto.google.api.AuthenticationRule.prototype.addRequirements = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.google.api.AuthRequirement, opt_index);
+};
+
+
+proto.google.api.AuthenticationRule.prototype.clearRequirementsList = function() {
+ this.setRequirementsList([]);
+};
+
+
+
+/**
+ * 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.google.api.AuthProvider = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.AuthProvider, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.AuthProvider.displayName = 'proto.google.api.AuthProvider';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.AuthProvider.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.AuthProvider.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.AuthProvider} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.AuthProvider.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ issuer: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ jwksUri: jspb.Message.getFieldWithDefault(msg, 3, ""),
+ audiences: jspb.Message.getFieldWithDefault(msg, 4, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.AuthProvider}
+ */
+proto.google.api.AuthProvider.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.AuthProvider;
+ return proto.google.api.AuthProvider.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.AuthProvider} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.AuthProvider}
+ */
+proto.google.api.AuthProvider.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setId(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setIssuer(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setJwksUri(value);
+ break;
+ case 4:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setAudiences(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.AuthProvider.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.AuthProvider.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.AuthProvider} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.AuthProvider.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getId();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getIssuer();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getJwksUri();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+ f = message.getAudiences();
+ if (f.length > 0) {
+ writer.writeString(
+ 4,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string id = 1;
+ * @return {string}
+ */
+proto.google.api.AuthProvider.prototype.getId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.AuthProvider.prototype.setId = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string issuer = 2;
+ * @return {string}
+ */
+proto.google.api.AuthProvider.prototype.getIssuer = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.AuthProvider.prototype.setIssuer = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional string jwks_uri = 3;
+ * @return {string}
+ */
+proto.google.api.AuthProvider.prototype.getJwksUri = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.AuthProvider.prototype.setJwksUri = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional string audiences = 4;
+ * @return {string}
+ */
+proto.google.api.AuthProvider.prototype.getAudiences = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.AuthProvider.prototype.setAudiences = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+
+/**
+ * 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.google.api.OAuthRequirements = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.OAuthRequirements, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.OAuthRequirements.displayName = 'proto.google.api.OAuthRequirements';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.OAuthRequirements.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.OAuthRequirements.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.OAuthRequirements} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.OAuthRequirements.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ canonicalScopes: jspb.Message.getFieldWithDefault(msg, 1, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.OAuthRequirements}
+ */
+proto.google.api.OAuthRequirements.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.OAuthRequirements;
+ return proto.google.api.OAuthRequirements.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.OAuthRequirements} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.OAuthRequirements}
+ */
+proto.google.api.OAuthRequirements.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setCanonicalScopes(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.OAuthRequirements.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.OAuthRequirements.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.OAuthRequirements} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.OAuthRequirements.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getCanonicalScopes();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string canonical_scopes = 1;
+ * @return {string}
+ */
+proto.google.api.OAuthRequirements.prototype.getCanonicalScopes = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.OAuthRequirements.prototype.setCanonicalScopes = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+
+/**
+ * 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.google.api.AuthRequirement = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.AuthRequirement, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.AuthRequirement.displayName = 'proto.google.api.AuthRequirement';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.AuthRequirement.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.AuthRequirement.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.AuthRequirement} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.AuthRequirement.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ providerId: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ audiences: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.AuthRequirement}
+ */
+proto.google.api.AuthRequirement.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.AuthRequirement;
+ return proto.google.api.AuthRequirement.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.AuthRequirement} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.AuthRequirement}
+ */
+proto.google.api.AuthRequirement.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setProviderId(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setAudiences(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.AuthRequirement.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.AuthRequirement.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.AuthRequirement} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.AuthRequirement.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getProviderId();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getAudiences();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string provider_id = 1;
+ * @return {string}
+ */
+proto.google.api.AuthRequirement.prototype.getProviderId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.AuthRequirement.prototype.setProviderId = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string audiences = 2;
+ * @return {string}
+ */
+proto.google.api.AuthRequirement.prototype.getAudiences = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.AuthRequirement.prototype.setAudiences = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/backend_pb.js b/build/lib/googleapis/google/api/backend_pb.js
new file mode 100644
index 0000000..d785323
--- /dev/null
+++ b/build/lib/googleapis/google/api/backend_pb.js
@@ -0,0 +1,376 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+goog.exportSymbol('proto.google.api.Backend', null, global);
+goog.exportSymbol('proto.google.api.BackendRule', null, global);
+
+/**
+ * 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.google.api.Backend = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Backend.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Backend, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Backend.displayName = 'proto.google.api.Backend';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Backend.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Backend.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Backend.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Backend} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Backend.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ rulesList: jspb.Message.toObjectList(msg.getRulesList(),
+ proto.google.api.BackendRule.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Backend}
+ */
+proto.google.api.Backend.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Backend;
+ return proto.google.api.Backend.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Backend} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Backend}
+ */
+proto.google.api.Backend.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.api.BackendRule;
+ reader.readMessage(value,proto.google.api.BackendRule.deserializeBinaryFromReader);
+ msg.addRules(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Backend.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Backend.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Backend} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Backend.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getRulesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ proto.google.api.BackendRule.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * repeated BackendRule rules = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Backend.prototype.getRulesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.BackendRule, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Backend.prototype.setRulesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.api.BackendRule=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.BackendRule}
+ */
+proto.google.api.Backend.prototype.addRules = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.BackendRule, opt_index);
+};
+
+
+proto.google.api.Backend.prototype.clearRulesList = function() {
+ this.setRulesList([]);
+};
+
+
+
+/**
+ * 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.google.api.BackendRule = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.BackendRule, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.BackendRule.displayName = 'proto.google.api.BackendRule';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.BackendRule.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.BackendRule.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.BackendRule} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.BackendRule.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ address: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ deadline: +jspb.Message.getFieldWithDefault(msg, 3, 0.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.google.api.BackendRule}
+ */
+proto.google.api.BackendRule.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.BackendRule;
+ return proto.google.api.BackendRule.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.BackendRule} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.BackendRule}
+ */
+proto.google.api.BackendRule.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSelector(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setAddress(value);
+ break;
+ case 3:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setDeadline(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.BackendRule.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.BackendRule.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.BackendRule} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.BackendRule.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSelector();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getAddress();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getDeadline();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string selector = 1;
+ * @return {string}
+ */
+proto.google.api.BackendRule.prototype.getSelector = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.BackendRule.prototype.setSelector = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string address = 2;
+ * @return {string}
+ */
+proto.google.api.BackendRule.prototype.getAddress = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.BackendRule.prototype.setAddress = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional double deadline = 3;
+ * @return {number}
+ */
+proto.google.api.BackendRule.prototype.getDeadline = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 3, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.BackendRule.prototype.setDeadline = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/billing_pb.js b/build/lib/googleapis/google/api/billing_pb.js
new file mode 100644
index 0000000..bd44215
--- /dev/null
+++ b/build/lib/googleapis/google/api/billing_pb.js
@@ -0,0 +1,417 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
+var google_api_metric_pb = require('../../google/api/metric_pb.js');
+goog.exportSymbol('proto.google.api.Billing', null, global);
+goog.exportSymbol('proto.google.api.BillingStatusRule', null, global);
+
+/**
+ * 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.google.api.Billing = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Billing.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Billing, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Billing.displayName = 'proto.google.api.Billing';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Billing.repeatedFields_ = [1,5];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Billing.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Billing.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Billing} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Billing.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ metricsList: jspb.Message.getField(msg, 1),
+ rulesList: jspb.Message.toObjectList(msg.getRulesList(),
+ proto.google.api.BillingStatusRule.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Billing}
+ */
+proto.google.api.Billing.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Billing;
+ return proto.google.api.Billing.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Billing} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Billing}
+ */
+proto.google.api.Billing.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.addMetrics(value);
+ break;
+ case 5:
+ var value = new proto.google.api.BillingStatusRule;
+ reader.readMessage(value,proto.google.api.BillingStatusRule.deserializeBinaryFromReader);
+ msg.addRules(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Billing.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Billing.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Billing} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Billing.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getMetricsList();
+ if (f.length > 0) {
+ writer.writeRepeatedString(
+ 1,
+ f
+ );
+ }
+ f = message.getRulesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 5,
+ f,
+ proto.google.api.BillingStatusRule.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * repeated string metrics = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Billing.prototype.getMetricsList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Billing.prototype.setMetricsList = function(value) {
+ jspb.Message.setField(this, 1, value || []);
+};
+
+
+/**
+ * @param {!string} value
+ * @param {number=} opt_index
+ */
+proto.google.api.Billing.prototype.addMetrics = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 1, value, opt_index);
+};
+
+
+proto.google.api.Billing.prototype.clearMetricsList = function() {
+ this.setMetricsList([]);
+};
+
+
+/**
+ * repeated BillingStatusRule rules = 5;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Billing.prototype.getRulesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.BillingStatusRule, 5));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Billing.prototype.setRulesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 5, value);
+};
+
+
+/**
+ * @param {!proto.google.api.BillingStatusRule=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.BillingStatusRule}
+ */
+proto.google.api.Billing.prototype.addRules = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.api.BillingStatusRule, opt_index);
+};
+
+
+proto.google.api.Billing.prototype.clearRulesList = function() {
+ this.setRulesList([]);
+};
+
+
+
+/**
+ * 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.google.api.BillingStatusRule = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.BillingStatusRule.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.BillingStatusRule, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.BillingStatusRule.displayName = 'proto.google.api.BillingStatusRule';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.BillingStatusRule.repeatedFields_ = [2];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.BillingStatusRule.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.BillingStatusRule.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.BillingStatusRule} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.BillingStatusRule.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ allowedStatusesList: jspb.Message.getField(msg, 2)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.BillingStatusRule}
+ */
+proto.google.api.BillingStatusRule.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.BillingStatusRule;
+ return proto.google.api.BillingStatusRule.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.BillingStatusRule} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.BillingStatusRule}
+ */
+proto.google.api.BillingStatusRule.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSelector(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.addAllowedStatuses(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.BillingStatusRule.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.BillingStatusRule.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.BillingStatusRule} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.BillingStatusRule.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSelector();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getAllowedStatusesList();
+ if (f.length > 0) {
+ writer.writeRepeatedString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string selector = 1;
+ * @return {string}
+ */
+proto.google.api.BillingStatusRule.prototype.getSelector = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.BillingStatusRule.prototype.setSelector = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * repeated string allowed_statuses = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.BillingStatusRule.prototype.getAllowedStatusesList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.BillingStatusRule.prototype.setAllowedStatusesList = function(value) {
+ jspb.Message.setField(this, 2, value || []);
+};
+
+
+/**
+ * @param {!string} value
+ * @param {number=} opt_index
+ */
+proto.google.api.BillingStatusRule.prototype.addAllowedStatuses = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 2, value, opt_index);
+};
+
+
+proto.google.api.BillingStatusRule.prototype.clearAllowedStatusesList = function() {
+ this.setAllowedStatusesList([]);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/config_change_pb.js b/build/lib/googleapis/google/api/config_change_pb.js
new file mode 100644
index 0000000..6ce7995
--- /dev/null
+++ b/build/lib/googleapis/google/api/config_change_pb.js
@@ -0,0 +1,441 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+goog.exportSymbol('proto.google.api.Advice', null, global);
+goog.exportSymbol('proto.google.api.ChangeType', null, global);
+goog.exportSymbol('proto.google.api.ConfigChange', null, global);
+
+/**
+ * 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.google.api.ConfigChange = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ConfigChange.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.ConfigChange, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.ConfigChange.displayName = 'proto.google.api.ConfigChange';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.ConfigChange.repeatedFields_ = [5];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.ConfigChange.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.ConfigChange.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.ConfigChange} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.ConfigChange.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ element: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ oldValue: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ newValue: jspb.Message.getFieldWithDefault(msg, 3, ""),
+ changeType: jspb.Message.getFieldWithDefault(msg, 4, 0),
+ advicesList: jspb.Message.toObjectList(msg.getAdvicesList(),
+ proto.google.api.Advice.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.ConfigChange}
+ */
+proto.google.api.ConfigChange.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.ConfigChange;
+ return proto.google.api.ConfigChange.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.ConfigChange} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.ConfigChange}
+ */
+proto.google.api.ConfigChange.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setElement(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setOldValue(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setNewValue(value);
+ break;
+ case 4:
+ var value = /** @type {!proto.google.api.ChangeType} */ (reader.readEnum());
+ msg.setChangeType(value);
+ break;
+ case 5:
+ var value = new proto.google.api.Advice;
+ reader.readMessage(value,proto.google.api.Advice.deserializeBinaryFromReader);
+ msg.addAdvices(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.ConfigChange.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.ConfigChange.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.ConfigChange} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.ConfigChange.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getElement();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getOldValue();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getNewValue();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+ f = message.getChangeType();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 4,
+ f
+ );
+ }
+ f = message.getAdvicesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 5,
+ f,
+ proto.google.api.Advice.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional string element = 1;
+ * @return {string}
+ */
+proto.google.api.ConfigChange.prototype.getElement = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.ConfigChange.prototype.setElement = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string old_value = 2;
+ * @return {string}
+ */
+proto.google.api.ConfigChange.prototype.getOldValue = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.ConfigChange.prototype.setOldValue = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional string new_value = 3;
+ * @return {string}
+ */
+proto.google.api.ConfigChange.prototype.getNewValue = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.ConfigChange.prototype.setNewValue = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional ChangeType change_type = 4;
+ * @return {!proto.google.api.ChangeType}
+ */
+proto.google.api.ConfigChange.prototype.getChangeType = function() {
+ return /** @type {!proto.google.api.ChangeType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
+};
+
+
+/** @param {!proto.google.api.ChangeType} value */
+proto.google.api.ConfigChange.prototype.setChangeType = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+/**
+ * repeated Advice advices = 5;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.ConfigChange.prototype.getAdvicesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.Advice, 5));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.ConfigChange.prototype.setAdvicesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 5, value);
+};
+
+
+/**
+ * @param {!proto.google.api.Advice=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.Advice}
+ */
+proto.google.api.ConfigChange.prototype.addAdvices = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.api.Advice, opt_index);
+};
+
+
+proto.google.api.ConfigChange.prototype.clearAdvicesList = function() {
+ this.setAdvicesList([]);
+};
+
+
+
+/**
+ * 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.google.api.Advice = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.Advice, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Advice.displayName = 'proto.google.api.Advice';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Advice.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Advice.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Advice} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Advice.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ description: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Advice}
+ */
+proto.google.api.Advice.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Advice;
+ return proto.google.api.Advice.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Advice} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Advice}
+ */
+proto.google.api.Advice.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDescription(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Advice.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Advice.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Advice} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Advice.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string description = 2;
+ * @return {string}
+ */
+proto.google.api.Advice.prototype.getDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Advice.prototype.setDescription = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.api.ChangeType = {
+ CHANGE_TYPE_UNSPECIFIED: 0,
+ ADDED: 1,
+ REMOVED: 2,
+ MODIFIED: 3
+};
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/consumer_pb.js b/build/lib/googleapis/google/api/consumer_pb.js
new file mode 100644
index 0000000..963ffee
--- /dev/null
+++ b/build/lib/googleapis/google/api/consumer_pb.js
@@ -0,0 +1,388 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+goog.exportSymbol('proto.google.api.ProjectProperties', null, global);
+goog.exportSymbol('proto.google.api.Property', null, global);
+goog.exportSymbol('proto.google.api.Property.PropertyType', null, global);
+
+/**
+ * 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.google.api.ProjectProperties = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ProjectProperties.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.ProjectProperties, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.ProjectProperties.displayName = 'proto.google.api.ProjectProperties';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.ProjectProperties.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.ProjectProperties.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.ProjectProperties.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.ProjectProperties} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.ProjectProperties.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ propertiesList: jspb.Message.toObjectList(msg.getPropertiesList(),
+ proto.google.api.Property.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.ProjectProperties}
+ */
+proto.google.api.ProjectProperties.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.ProjectProperties;
+ return proto.google.api.ProjectProperties.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.ProjectProperties} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.ProjectProperties}
+ */
+proto.google.api.ProjectProperties.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.api.Property;
+ reader.readMessage(value,proto.google.api.Property.deserializeBinaryFromReader);
+ msg.addProperties(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.ProjectProperties.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.ProjectProperties.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.ProjectProperties} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.ProjectProperties.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getPropertiesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ proto.google.api.Property.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * repeated Property properties = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.ProjectProperties.prototype.getPropertiesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.Property, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.ProjectProperties.prototype.setPropertiesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.api.Property=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.Property}
+ */
+proto.google.api.ProjectProperties.prototype.addProperties = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Property, opt_index);
+};
+
+
+proto.google.api.ProjectProperties.prototype.clearPropertiesList = function() {
+ this.setPropertiesList([]);
+};
+
+
+
+/**
+ * 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.google.api.Property = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.Property, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Property.displayName = 'proto.google.api.Property';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Property.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Property.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Property} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Property.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ type: jspb.Message.getFieldWithDefault(msg, 2, 0),
+ description: jspb.Message.getFieldWithDefault(msg, 3, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Property}
+ */
+proto.google.api.Property.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Property;
+ return proto.google.api.Property.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Property} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Property}
+ */
+proto.google.api.Property.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setName(value);
+ break;
+ case 2:
+ var value = /** @type {!proto.google.api.Property.PropertyType} */ (reader.readEnum());
+ msg.setType(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDescription(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Property.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Property.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Property} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Property.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getType();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 2,
+ f
+ );
+ }
+ f = message.getDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.api.Property.PropertyType = {
+ UNSPECIFIED: 0,
+ INT64: 1,
+ BOOL: 2,
+ STRING: 3,
+ DOUBLE: 4
+};
+
+/**
+ * optional string name = 1;
+ * @return {string}
+ */
+proto.google.api.Property.prototype.getName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Property.prototype.setName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional PropertyType type = 2;
+ * @return {!proto.google.api.Property.PropertyType}
+ */
+proto.google.api.Property.prototype.getType = function() {
+ return /** @type {!proto.google.api.Property.PropertyType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
+};
+
+
+/** @param {!proto.google.api.Property.PropertyType} value */
+proto.google.api.Property.prototype.setType = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional string description = 3;
+ * @return {string}
+ */
+proto.google.api.Property.prototype.getDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Property.prototype.setDescription = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/context_pb.js b/build/lib/googleapis/google/api/context_pb.js
new file mode 100644
index 0000000..04556a9
--- /dev/null
+++ b/build/lib/googleapis/google/api/context_pb.js
@@ -0,0 +1,415 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+goog.exportSymbol('proto.google.api.Context', null, global);
+goog.exportSymbol('proto.google.api.ContextRule', null, global);
+
+/**
+ * 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.google.api.Context = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Context.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Context, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Context.displayName = 'proto.google.api.Context';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Context.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Context.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Context.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Context} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Context.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ rulesList: jspb.Message.toObjectList(msg.getRulesList(),
+ proto.google.api.ContextRule.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Context}
+ */
+proto.google.api.Context.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Context;
+ return proto.google.api.Context.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Context} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Context}
+ */
+proto.google.api.Context.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.api.ContextRule;
+ reader.readMessage(value,proto.google.api.ContextRule.deserializeBinaryFromReader);
+ msg.addRules(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Context.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Context.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Context} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Context.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getRulesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ proto.google.api.ContextRule.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * repeated ContextRule rules = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Context.prototype.getRulesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.ContextRule, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Context.prototype.setRulesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.api.ContextRule=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.ContextRule}
+ */
+proto.google.api.Context.prototype.addRules = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.ContextRule, opt_index);
+};
+
+
+proto.google.api.Context.prototype.clearRulesList = function() {
+ this.setRulesList([]);
+};
+
+
+
+/**
+ * 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.google.api.ContextRule = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ContextRule.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.ContextRule, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.ContextRule.displayName = 'proto.google.api.ContextRule';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.ContextRule.repeatedFields_ = [2,3];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.ContextRule.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.ContextRule.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.ContextRule} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.ContextRule.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ requestedList: jspb.Message.getField(msg, 2),
+ providedList: jspb.Message.getField(msg, 3)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.ContextRule}
+ */
+proto.google.api.ContextRule.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.ContextRule;
+ return proto.google.api.ContextRule.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.ContextRule} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.ContextRule}
+ */
+proto.google.api.ContextRule.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSelector(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.addRequested(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.addProvided(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.ContextRule.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.ContextRule.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.ContextRule} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.ContextRule.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSelector();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getRequestedList();
+ if (f.length > 0) {
+ writer.writeRepeatedString(
+ 2,
+ f
+ );
+ }
+ f = message.getProvidedList();
+ if (f.length > 0) {
+ writer.writeRepeatedString(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string selector = 1;
+ * @return {string}
+ */
+proto.google.api.ContextRule.prototype.getSelector = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.ContextRule.prototype.setSelector = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * repeated string requested = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.ContextRule.prototype.getRequestedList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.ContextRule.prototype.setRequestedList = function(value) {
+ jspb.Message.setField(this, 2, value || []);
+};
+
+
+/**
+ * @param {!string} value
+ * @param {number=} opt_index
+ */
+proto.google.api.ContextRule.prototype.addRequested = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 2, value, opt_index);
+};
+
+
+proto.google.api.ContextRule.prototype.clearRequestedList = function() {
+ this.setRequestedList([]);
+};
+
+
+/**
+ * repeated string provided = 3;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.ContextRule.prototype.getProvidedList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 3));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.ContextRule.prototype.setProvidedList = function(value) {
+ jspb.Message.setField(this, 3, value || []);
+};
+
+
+/**
+ * @param {!string} value
+ * @param {number=} opt_index
+ */
+proto.google.api.ContextRule.prototype.addProvided = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 3, value, opt_index);
+};
+
+
+proto.google.api.ContextRule.prototype.clearProvidedList = function() {
+ this.setProvidedList([]);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/control_pb.js b/build/lib/googleapis/google/api/control_pb.js
new file mode 100644
index 0000000..afea501
--- /dev/null
+++ b/build/lib/googleapis/google/api/control_pb.js
@@ -0,0 +1,153 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+goog.exportSymbol('proto.google.api.Control', null, global);
+
+/**
+ * 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.google.api.Control = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.Control, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Control.displayName = 'proto.google.api.Control';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Control.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Control.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Control} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Control.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ environment: jspb.Message.getFieldWithDefault(msg, 1, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Control}
+ */
+proto.google.api.Control.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Control;
+ return proto.google.api.Control.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Control} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Control}
+ */
+proto.google.api.Control.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setEnvironment(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Control.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Control.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Control} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Control.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getEnvironment();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string environment = 1;
+ * @return {string}
+ */
+proto.google.api.Control.prototype.getEnvironment = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Control.prototype.setEnvironment = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/distribution_pb.js b/build/lib/googleapis/google/api/distribution_pb.js
new file mode 100644
index 0000000..380ec4f
--- /dev/null
+++ b/build/lib/googleapis/google/api/distribution_pb.js
@@ -0,0 +1,1343 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
+var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
+var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
+goog.exportSymbol('proto.google.api.Distribution', null, global);
+goog.exportSymbol('proto.google.api.Distribution.BucketOptions', null, global);
+goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Explicit', null, global);
+goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Exponential', null, global);
+goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Linear', null, global);
+goog.exportSymbol('proto.google.api.Distribution.Range', null, global);
+
+/**
+ * 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.google.api.Distribution = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Distribution, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Distribution.displayName = 'proto.google.api.Distribution';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Distribution.repeatedFields_ = [7];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Distribution.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Distribution.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Distribution} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Distribution.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ count: jspb.Message.getFieldWithDefault(msg, 1, 0),
+ mean: +jspb.Message.getFieldWithDefault(msg, 2, 0.0),
+ sumOfSquaredDeviation: +jspb.Message.getFieldWithDefault(msg, 3, 0.0),
+ range: (f = msg.getRange()) && proto.google.api.Distribution.Range.toObject(includeInstance, f),
+ bucketOptions: (f = msg.getBucketOptions()) && proto.google.api.Distribution.BucketOptions.toObject(includeInstance, f),
+ bucketCountsList: jspb.Message.getField(msg, 7)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Distribution}
+ */
+proto.google.api.Distribution.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Distribution;
+ return proto.google.api.Distribution.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Distribution} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Distribution}
+ */
+proto.google.api.Distribution.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {number} */ (reader.readInt64());
+ msg.setCount(value);
+ break;
+ case 2:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setMean(value);
+ break;
+ case 3:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setSumOfSquaredDeviation(value);
+ break;
+ case 4:
+ var value = new proto.google.api.Distribution.Range;
+ reader.readMessage(value,proto.google.api.Distribution.Range.deserializeBinaryFromReader);
+ msg.setRange(value);
+ break;
+ case 6:
+ var value = new proto.google.api.Distribution.BucketOptions;
+ reader.readMessage(value,proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader);
+ msg.setBucketOptions(value);
+ break;
+ case 7:
+ var value = /** @type {!Array.} */ (reader.readPackedInt64());
+ msg.setBucketCountsList(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Distribution.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Distribution.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Distribution} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Distribution.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getCount();
+ if (f !== 0) {
+ writer.writeInt64(
+ 1,
+ f
+ );
+ }
+ f = message.getMean();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 2,
+ f
+ );
+ }
+ f = message.getSumOfSquaredDeviation();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 3,
+ f
+ );
+ }
+ f = message.getRange();
+ if (f != null) {
+ writer.writeMessage(
+ 4,
+ f,
+ proto.google.api.Distribution.Range.serializeBinaryToWriter
+ );
+ }
+ f = message.getBucketOptions();
+ if (f != null) {
+ writer.writeMessage(
+ 6,
+ f,
+ proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter
+ );
+ }
+ f = message.getBucketCountsList();
+ if (f.length > 0) {
+ writer.writePackedInt64(
+ 7,
+ f
+ );
+ }
+};
+
+
+
+/**
+ * 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.google.api.Distribution.Range = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.Distribution.Range, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Distribution.Range.displayName = 'proto.google.api.Distribution.Range';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Distribution.Range.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Distribution.Range.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Distribution.Range} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Distribution.Range.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ min: +jspb.Message.getFieldWithDefault(msg, 1, 0.0),
+ max: +jspb.Message.getFieldWithDefault(msg, 2, 0.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.google.api.Distribution.Range}
+ */
+proto.google.api.Distribution.Range.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Distribution.Range;
+ return proto.google.api.Distribution.Range.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Distribution.Range} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Distribution.Range}
+ */
+proto.google.api.Distribution.Range.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setMin(value);
+ break;
+ case 2:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setMax(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Distribution.Range.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Distribution.Range.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Distribution.Range} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Distribution.Range.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getMin();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 1,
+ f
+ );
+ }
+ f = message.getMax();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional double min = 1;
+ * @return {number}
+ */
+proto.google.api.Distribution.Range.prototype.getMin = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 1, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.Distribution.Range.prototype.setMin = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional double max = 2;
+ * @return {number}
+ */
+proto.google.api.Distribution.Range.prototype.getMax = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.Distribution.Range.prototype.setMax = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+
+/**
+ * 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.google.api.Distribution.BucketOptions = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.Distribution.BucketOptions.oneofGroups_);
+};
+goog.inherits(proto.google.api.Distribution.BucketOptions, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Distribution.BucketOptions.displayName = 'proto.google.api.Distribution.BucketOptions';
+}
+/**
+ * Oneof group definitions for this message. Each group defines the field
+ * numbers belonging to that group. When of these fields' value is set, all
+ * other fields in the group are cleared. During deserialization, if multiple
+ * fields are encountered for a group, only the last value seen will be kept.
+ * @private {!Array>}
+ * @const
+ */
+proto.google.api.Distribution.BucketOptions.oneofGroups_ = [[1,2,3]];
+
+/**
+ * @enum {number}
+ */
+proto.google.api.Distribution.BucketOptions.OptionsCase = {
+ OPTIONS_NOT_SET: 0,
+ LINEAR_BUCKETS: 1,
+ EXPONENTIAL_BUCKETS: 2,
+ EXPLICIT_BUCKETS: 3
+};
+
+/**
+ * @return {proto.google.api.Distribution.BucketOptions.OptionsCase}
+ */
+proto.google.api.Distribution.BucketOptions.prototype.getOptionsCase = function() {
+ return /** @type {proto.google.api.Distribution.BucketOptions.OptionsCase} */(jspb.Message.computeOneofCase(this, proto.google.api.Distribution.BucketOptions.oneofGroups_[0]));
+};
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Distribution.BucketOptions.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Distribution.BucketOptions.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Distribution.BucketOptions} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Distribution.BucketOptions.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ linearBuckets: (f = msg.getLinearBuckets()) && proto.google.api.Distribution.BucketOptions.Linear.toObject(includeInstance, f),
+ exponentialBuckets: (f = msg.getExponentialBuckets()) && proto.google.api.Distribution.BucketOptions.Exponential.toObject(includeInstance, f),
+ explicitBuckets: (f = msg.getExplicitBuckets()) && proto.google.api.Distribution.BucketOptions.Explicit.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.google.api.Distribution.BucketOptions}
+ */
+proto.google.api.Distribution.BucketOptions.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Distribution.BucketOptions;
+ return proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Distribution.BucketOptions} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Distribution.BucketOptions}
+ */
+proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.api.Distribution.BucketOptions.Linear;
+ reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader);
+ msg.setLinearBuckets(value);
+ break;
+ case 2:
+ var value = new proto.google.api.Distribution.BucketOptions.Exponential;
+ reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader);
+ msg.setExponentialBuckets(value);
+ break;
+ case 3:
+ var value = new proto.google.api.Distribution.BucketOptions.Explicit;
+ reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader);
+ msg.setExplicitBuckets(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Distribution.BucketOptions.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Distribution.BucketOptions} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getLinearBuckets();
+ if (f != null) {
+ writer.writeMessage(
+ 1,
+ f,
+ proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter
+ );
+ }
+ f = message.getExponentialBuckets();
+ if (f != null) {
+ writer.writeMessage(
+ 2,
+ f,
+ proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter
+ );
+ }
+ f = message.getExplicitBuckets();
+ if (f != null) {
+ writer.writeMessage(
+ 3,
+ f,
+ proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter
+ );
+ }
+};
+
+
+
+/**
+ * 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.google.api.Distribution.BucketOptions.Linear = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.Distribution.BucketOptions.Linear, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Distribution.BucketOptions.Linear.displayName = 'proto.google.api.Distribution.BucketOptions.Linear';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Distribution.BucketOptions.Linear.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Distribution.BucketOptions.Linear.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Distribution.BucketOptions.Linear} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Distribution.BucketOptions.Linear.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ numFiniteBuckets: jspb.Message.getFieldWithDefault(msg, 1, 0),
+ width: +jspb.Message.getFieldWithDefault(msg, 2, 0.0),
+ offset: +jspb.Message.getFieldWithDefault(msg, 3, 0.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.google.api.Distribution.BucketOptions.Linear}
+ */
+proto.google.api.Distribution.BucketOptions.Linear.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Distribution.BucketOptions.Linear;
+ return proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Distribution.BucketOptions.Linear} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Distribution.BucketOptions.Linear}
+ */
+proto.google.api.Distribution.BucketOptions.Linear.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.setNumFiniteBuckets(value);
+ break;
+ case 2:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setWidth(value);
+ break;
+ case 3:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setOffset(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Distribution.BucketOptions.Linear.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Distribution.BucketOptions.Linear} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getNumFiniteBuckets();
+ if (f !== 0) {
+ writer.writeInt32(
+ 1,
+ f
+ );
+ }
+ f = message.getWidth();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 2,
+ f
+ );
+ }
+ f = message.getOffset();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional int32 num_finite_buckets = 1;
+ * @return {number}
+ */
+proto.google.api.Distribution.BucketOptions.Linear.prototype.getNumFiniteBuckets = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.Distribution.BucketOptions.Linear.prototype.setNumFiniteBuckets = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional double width = 2;
+ * @return {number}
+ */
+proto.google.api.Distribution.BucketOptions.Linear.prototype.getWidth = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.Distribution.BucketOptions.Linear.prototype.setWidth = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional double offset = 3;
+ * @return {number}
+ */
+proto.google.api.Distribution.BucketOptions.Linear.prototype.getOffset = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 3, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.Distribution.BucketOptions.Linear.prototype.setOffset = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+
+/**
+ * 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.google.api.Distribution.BucketOptions.Exponential = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.Distribution.BucketOptions.Exponential, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Distribution.BucketOptions.Exponential.displayName = 'proto.google.api.Distribution.BucketOptions.Exponential';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Distribution.BucketOptions.Exponential.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Distribution.BucketOptions.Exponential.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Distribution.BucketOptions.Exponential} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Distribution.BucketOptions.Exponential.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ numFiniteBuckets: jspb.Message.getFieldWithDefault(msg, 1, 0),
+ growthFactor: +jspb.Message.getFieldWithDefault(msg, 2, 0.0),
+ scale: +jspb.Message.getFieldWithDefault(msg, 3, 0.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.google.api.Distribution.BucketOptions.Exponential}
+ */
+proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Distribution.BucketOptions.Exponential;
+ return proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Distribution.BucketOptions.Exponential} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Distribution.BucketOptions.Exponential}
+ */
+proto.google.api.Distribution.BucketOptions.Exponential.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.setNumFiniteBuckets(value);
+ break;
+ case 2:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setGrowthFactor(value);
+ break;
+ case 3:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setScale(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Distribution.BucketOptions.Exponential.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Distribution.BucketOptions.Exponential} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getNumFiniteBuckets();
+ if (f !== 0) {
+ writer.writeInt32(
+ 1,
+ f
+ );
+ }
+ f = message.getGrowthFactor();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 2,
+ f
+ );
+ }
+ f = message.getScale();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional int32 num_finite_buckets = 1;
+ * @return {number}
+ */
+proto.google.api.Distribution.BucketOptions.Exponential.prototype.getNumFiniteBuckets = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.Distribution.BucketOptions.Exponential.prototype.setNumFiniteBuckets = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional double growth_factor = 2;
+ * @return {number}
+ */
+proto.google.api.Distribution.BucketOptions.Exponential.prototype.getGrowthFactor = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.Distribution.BucketOptions.Exponential.prototype.setGrowthFactor = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional double scale = 3;
+ * @return {number}
+ */
+proto.google.api.Distribution.BucketOptions.Exponential.prototype.getScale = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 3, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.Distribution.BucketOptions.Exponential.prototype.setScale = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+
+/**
+ * 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.google.api.Distribution.BucketOptions.Explicit = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.BucketOptions.Explicit.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Distribution.BucketOptions.Explicit, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Distribution.BucketOptions.Explicit.displayName = 'proto.google.api.Distribution.BucketOptions.Explicit';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Distribution.BucketOptions.Explicit.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Distribution.BucketOptions.Explicit.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Distribution.BucketOptions.Explicit.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Distribution.BucketOptions.Explicit} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Distribution.BucketOptions.Explicit.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ boundsList: jspb.Message.getRepeatedFloatingPointField(msg, 1)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Distribution.BucketOptions.Explicit}
+ */
+proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Distribution.BucketOptions.Explicit;
+ return proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Distribution.BucketOptions.Explicit} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Distribution.BucketOptions.Explicit}
+ */
+proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {!Array.} */ (reader.readPackedDouble());
+ msg.setBoundsList(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Distribution.BucketOptions.Explicit.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Distribution.BucketOptions.Explicit} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getBoundsList();
+ if (f.length > 0) {
+ writer.writePackedDouble(
+ 1,
+ f
+ );
+ }
+};
+
+
+/**
+ * repeated double bounds = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Distribution.BucketOptions.Explicit.prototype.getBoundsList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getRepeatedFloatingPointField(this, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Distribution.BucketOptions.Explicit.prototype.setBoundsList = function(value) {
+ jspb.Message.setField(this, 1, value || []);
+};
+
+
+/**
+ * @param {!number} value
+ * @param {number=} opt_index
+ */
+proto.google.api.Distribution.BucketOptions.Explicit.prototype.addBounds = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 1, value, opt_index);
+};
+
+
+proto.google.api.Distribution.BucketOptions.Explicit.prototype.clearBoundsList = function() {
+ this.setBoundsList([]);
+};
+
+
+/**
+ * optional Linear linear_buckets = 1;
+ * @return {?proto.google.api.Distribution.BucketOptions.Linear}
+ */
+proto.google.api.Distribution.BucketOptions.prototype.getLinearBuckets = function() {
+ return /** @type{?proto.google.api.Distribution.BucketOptions.Linear} */ (
+ jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Linear, 1));
+};
+
+
+/** @param {?proto.google.api.Distribution.BucketOptions.Linear|undefined} value */
+proto.google.api.Distribution.BucketOptions.prototype.setLinearBuckets = function(value) {
+ jspb.Message.setOneofWrapperField(this, 1, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value);
+};
+
+
+proto.google.api.Distribution.BucketOptions.prototype.clearLinearBuckets = function() {
+ this.setLinearBuckets(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Distribution.BucketOptions.prototype.hasLinearBuckets = function() {
+ return jspb.Message.getField(this, 1) != null;
+};
+
+
+/**
+ * optional Exponential exponential_buckets = 2;
+ * @return {?proto.google.api.Distribution.BucketOptions.Exponential}
+ */
+proto.google.api.Distribution.BucketOptions.prototype.getExponentialBuckets = function() {
+ return /** @type{?proto.google.api.Distribution.BucketOptions.Exponential} */ (
+ jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Exponential, 2));
+};
+
+
+/** @param {?proto.google.api.Distribution.BucketOptions.Exponential|undefined} value */
+proto.google.api.Distribution.BucketOptions.prototype.setExponentialBuckets = function(value) {
+ jspb.Message.setOneofWrapperField(this, 2, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value);
+};
+
+
+proto.google.api.Distribution.BucketOptions.prototype.clearExponentialBuckets = function() {
+ this.setExponentialBuckets(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Distribution.BucketOptions.prototype.hasExponentialBuckets = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+/**
+ * optional Explicit explicit_buckets = 3;
+ * @return {?proto.google.api.Distribution.BucketOptions.Explicit}
+ */
+proto.google.api.Distribution.BucketOptions.prototype.getExplicitBuckets = function() {
+ return /** @type{?proto.google.api.Distribution.BucketOptions.Explicit} */ (
+ jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Explicit, 3));
+};
+
+
+/** @param {?proto.google.api.Distribution.BucketOptions.Explicit|undefined} value */
+proto.google.api.Distribution.BucketOptions.prototype.setExplicitBuckets = function(value) {
+ jspb.Message.setOneofWrapperField(this, 3, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value);
+};
+
+
+proto.google.api.Distribution.BucketOptions.prototype.clearExplicitBuckets = function() {
+ this.setExplicitBuckets(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Distribution.BucketOptions.prototype.hasExplicitBuckets = function() {
+ return jspb.Message.getField(this, 3) != null;
+};
+
+
+/**
+ * optional int64 count = 1;
+ * @return {number}
+ */
+proto.google.api.Distribution.prototype.getCount = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.Distribution.prototype.setCount = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional double mean = 2;
+ * @return {number}
+ */
+proto.google.api.Distribution.prototype.getMean = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.Distribution.prototype.setMean = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional double sum_of_squared_deviation = 3;
+ * @return {number}
+ */
+proto.google.api.Distribution.prototype.getSumOfSquaredDeviation = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 3, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.Distribution.prototype.setSumOfSquaredDeviation = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional Range range = 4;
+ * @return {?proto.google.api.Distribution.Range}
+ */
+proto.google.api.Distribution.prototype.getRange = function() {
+ return /** @type{?proto.google.api.Distribution.Range} */ (
+ jspb.Message.getWrapperField(this, proto.google.api.Distribution.Range, 4));
+};
+
+
+/** @param {?proto.google.api.Distribution.Range|undefined} value */
+proto.google.api.Distribution.prototype.setRange = function(value) {
+ jspb.Message.setWrapperField(this, 4, value);
+};
+
+
+proto.google.api.Distribution.prototype.clearRange = function() {
+ this.setRange(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Distribution.prototype.hasRange = function() {
+ return jspb.Message.getField(this, 4) != null;
+};
+
+
+/**
+ * optional BucketOptions bucket_options = 6;
+ * @return {?proto.google.api.Distribution.BucketOptions}
+ */
+proto.google.api.Distribution.prototype.getBucketOptions = function() {
+ return /** @type{?proto.google.api.Distribution.BucketOptions} */ (
+ jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions, 6));
+};
+
+
+/** @param {?proto.google.api.Distribution.BucketOptions|undefined} value */
+proto.google.api.Distribution.prototype.setBucketOptions = function(value) {
+ jspb.Message.setWrapperField(this, 6, value);
+};
+
+
+proto.google.api.Distribution.prototype.clearBucketOptions = function() {
+ this.setBucketOptions(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Distribution.prototype.hasBucketOptions = function() {
+ return jspb.Message.getField(this, 6) != null;
+};
+
+
+/**
+ * repeated int64 bucket_counts = 7;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Distribution.prototype.getBucketCountsList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 7));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Distribution.prototype.setBucketCountsList = function(value) {
+ jspb.Message.setField(this, 7, value || []);
+};
+
+
+/**
+ * @param {!number} value
+ * @param {number=} opt_index
+ */
+proto.google.api.Distribution.prototype.addBucketCounts = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 7, value, opt_index);
+};
+
+
+proto.google.api.Distribution.prototype.clearBucketCountsList = function() {
+ this.setBucketCountsList([]);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/documentation_pb.js b/build/lib/googleapis/google/api/documentation_pb.js
new file mode 100644
index 0000000..e862f71
--- /dev/null
+++ b/build/lib/googleapis/google/api/documentation_pb.js
@@ -0,0 +1,728 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+goog.exportSymbol('proto.google.api.Documentation', null, global);
+goog.exportSymbol('proto.google.api.DocumentationRule', null, global);
+goog.exportSymbol('proto.google.api.Page', null, global);
+
+/**
+ * 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.google.api.Documentation = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Documentation.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Documentation, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Documentation.displayName = 'proto.google.api.Documentation';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Documentation.repeatedFields_ = [5,3];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Documentation.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Documentation.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Documentation} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Documentation.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ summary: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ pagesList: jspb.Message.toObjectList(msg.getPagesList(),
+ proto.google.api.Page.toObject, includeInstance),
+ rulesList: jspb.Message.toObjectList(msg.getRulesList(),
+ proto.google.api.DocumentationRule.toObject, includeInstance),
+ documentationRootUrl: jspb.Message.getFieldWithDefault(msg, 4, ""),
+ overview: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Documentation}
+ */
+proto.google.api.Documentation.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Documentation;
+ return proto.google.api.Documentation.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Documentation} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Documentation}
+ */
+proto.google.api.Documentation.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSummary(value);
+ break;
+ case 5:
+ var value = new proto.google.api.Page;
+ reader.readMessage(value,proto.google.api.Page.deserializeBinaryFromReader);
+ msg.addPages(value);
+ break;
+ case 3:
+ var value = new proto.google.api.DocumentationRule;
+ reader.readMessage(value,proto.google.api.DocumentationRule.deserializeBinaryFromReader);
+ msg.addRules(value);
+ break;
+ case 4:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDocumentationRootUrl(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setOverview(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Documentation.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Documentation.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Documentation} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Documentation.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSummary();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getPagesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 5,
+ f,
+ proto.google.api.Page.serializeBinaryToWriter
+ );
+ }
+ f = message.getRulesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 3,
+ f,
+ proto.google.api.DocumentationRule.serializeBinaryToWriter
+ );
+ }
+ f = message.getDocumentationRootUrl();
+ if (f.length > 0) {
+ writer.writeString(
+ 4,
+ f
+ );
+ }
+ f = message.getOverview();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string summary = 1;
+ * @return {string}
+ */
+proto.google.api.Documentation.prototype.getSummary = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Documentation.prototype.setSummary = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * repeated Page pages = 5;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Documentation.prototype.getPagesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.Page, 5));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Documentation.prototype.setPagesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 5, value);
+};
+
+
+/**
+ * @param {!proto.google.api.Page=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.Page}
+ */
+proto.google.api.Documentation.prototype.addPages = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.api.Page, opt_index);
+};
+
+
+proto.google.api.Documentation.prototype.clearPagesList = function() {
+ this.setPagesList([]);
+};
+
+
+/**
+ * repeated DocumentationRule rules = 3;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Documentation.prototype.getRulesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.DocumentationRule, 3));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Documentation.prototype.setRulesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 3, value);
+};
+
+
+/**
+ * @param {!proto.google.api.DocumentationRule=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.DocumentationRule}
+ */
+proto.google.api.Documentation.prototype.addRules = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.DocumentationRule, opt_index);
+};
+
+
+proto.google.api.Documentation.prototype.clearRulesList = function() {
+ this.setRulesList([]);
+};
+
+
+/**
+ * optional string documentation_root_url = 4;
+ * @return {string}
+ */
+proto.google.api.Documentation.prototype.getDocumentationRootUrl = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Documentation.prototype.setDocumentationRootUrl = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+/**
+ * optional string overview = 2;
+ * @return {string}
+ */
+proto.google.api.Documentation.prototype.getOverview = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Documentation.prototype.setOverview = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+
+/**
+ * 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.google.api.DocumentationRule = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.DocumentationRule, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.DocumentationRule.displayName = 'proto.google.api.DocumentationRule';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.DocumentationRule.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.DocumentationRule.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.DocumentationRule} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.DocumentationRule.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ deprecationDescription: jspb.Message.getFieldWithDefault(msg, 3, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.DocumentationRule}
+ */
+proto.google.api.DocumentationRule.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.DocumentationRule;
+ return proto.google.api.DocumentationRule.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.DocumentationRule} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.DocumentationRule}
+ */
+proto.google.api.DocumentationRule.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSelector(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDescription(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDeprecationDescription(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.DocumentationRule.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.DocumentationRule.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.DocumentationRule} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.DocumentationRule.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSelector();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getDeprecationDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string selector = 1;
+ * @return {string}
+ */
+proto.google.api.DocumentationRule.prototype.getSelector = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.DocumentationRule.prototype.setSelector = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string description = 2;
+ * @return {string}
+ */
+proto.google.api.DocumentationRule.prototype.getDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.DocumentationRule.prototype.setDescription = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional string deprecation_description = 3;
+ * @return {string}
+ */
+proto.google.api.DocumentationRule.prototype.getDeprecationDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.DocumentationRule.prototype.setDeprecationDescription = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+
+/**
+ * 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.google.api.Page = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Page.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Page, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Page.displayName = 'proto.google.api.Page';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Page.repeatedFields_ = [3];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Page.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Page.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Page} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Page.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ content: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ subpagesList: jspb.Message.toObjectList(msg.getSubpagesList(),
+ proto.google.api.Page.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Page}
+ */
+proto.google.api.Page.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Page;
+ return proto.google.api.Page.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Page} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Page}
+ */
+proto.google.api.Page.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setName(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setContent(value);
+ break;
+ case 3:
+ var value = new proto.google.api.Page;
+ reader.readMessage(value,proto.google.api.Page.deserializeBinaryFromReader);
+ msg.addSubpages(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Page.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Page.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Page} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Page.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getContent();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getSubpagesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 3,
+ f,
+ proto.google.api.Page.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional string name = 1;
+ * @return {string}
+ */
+proto.google.api.Page.prototype.getName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Page.prototype.setName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string content = 2;
+ * @return {string}
+ */
+proto.google.api.Page.prototype.getContent = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Page.prototype.setContent = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * repeated Page subpages = 3;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Page.prototype.getSubpagesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.Page, 3));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Page.prototype.setSubpagesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 3, value);
+};
+
+
+/**
+ * @param {!proto.google.api.Page=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.Page}
+ */
+proto.google.api.Page.prototype.addSubpages = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.Page, opt_index);
+};
+
+
+proto.google.api.Page.prototype.clearSubpagesList = function() {
+ this.setSubpagesList([]);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/endpoint_pb.js b/build/lib/googleapis/google/api/endpoint_pb.js
new file mode 100644
index 0000000..c7ef721
--- /dev/null
+++ b/build/lib/googleapis/google/api/endpoint_pb.js
@@ -0,0 +1,346 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
+goog.exportSymbol('proto.google.api.Endpoint', null, global);
+
+/**
+ * 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.google.api.Endpoint = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Endpoint.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Endpoint, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Endpoint.displayName = 'proto.google.api.Endpoint';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Endpoint.repeatedFields_ = [2,3,4];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Endpoint.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Endpoint.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Endpoint} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Endpoint.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ aliasesList: jspb.Message.getField(msg, 2),
+ apisList: jspb.Message.getField(msg, 3),
+ featuresList: jspb.Message.getField(msg, 4),
+ target: jspb.Message.getFieldWithDefault(msg, 101, ""),
+ allowCors: jspb.Message.getFieldWithDefault(msg, 5, false)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Endpoint}
+ */
+proto.google.api.Endpoint.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Endpoint;
+ return proto.google.api.Endpoint.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Endpoint} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Endpoint}
+ */
+proto.google.api.Endpoint.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setName(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.addAliases(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.addApis(value);
+ break;
+ case 4:
+ var value = /** @type {string} */ (reader.readString());
+ msg.addFeatures(value);
+ break;
+ case 101:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setTarget(value);
+ break;
+ case 5:
+ var value = /** @type {boolean} */ (reader.readBool());
+ msg.setAllowCors(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Endpoint.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Endpoint.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Endpoint} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Endpoint.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getAliasesList();
+ if (f.length > 0) {
+ writer.writeRepeatedString(
+ 2,
+ f
+ );
+ }
+ f = message.getApisList();
+ if (f.length > 0) {
+ writer.writeRepeatedString(
+ 3,
+ f
+ );
+ }
+ f = message.getFeaturesList();
+ if (f.length > 0) {
+ writer.writeRepeatedString(
+ 4,
+ f
+ );
+ }
+ f = message.getTarget();
+ if (f.length > 0) {
+ writer.writeString(
+ 101,
+ f
+ );
+ }
+ f = message.getAllowCors();
+ if (f) {
+ writer.writeBool(
+ 5,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string name = 1;
+ * @return {string}
+ */
+proto.google.api.Endpoint.prototype.getName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Endpoint.prototype.setName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * repeated string aliases = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Endpoint.prototype.getAliasesList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Endpoint.prototype.setAliasesList = function(value) {
+ jspb.Message.setField(this, 2, value || []);
+};
+
+
+/**
+ * @param {!string} value
+ * @param {number=} opt_index
+ */
+proto.google.api.Endpoint.prototype.addAliases = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 2, value, opt_index);
+};
+
+
+proto.google.api.Endpoint.prototype.clearAliasesList = function() {
+ this.setAliasesList([]);
+};
+
+
+/**
+ * repeated string apis = 3;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Endpoint.prototype.getApisList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 3));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Endpoint.prototype.setApisList = function(value) {
+ jspb.Message.setField(this, 3, value || []);
+};
+
+
+/**
+ * @param {!string} value
+ * @param {number=} opt_index
+ */
+proto.google.api.Endpoint.prototype.addApis = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 3, value, opt_index);
+};
+
+
+proto.google.api.Endpoint.prototype.clearApisList = function() {
+ this.setApisList([]);
+};
+
+
+/**
+ * repeated string features = 4;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Endpoint.prototype.getFeaturesList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 4));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Endpoint.prototype.setFeaturesList = function(value) {
+ jspb.Message.setField(this, 4, value || []);
+};
+
+
+/**
+ * @param {!string} value
+ * @param {number=} opt_index
+ */
+proto.google.api.Endpoint.prototype.addFeatures = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 4, value, opt_index);
+};
+
+
+proto.google.api.Endpoint.prototype.clearFeaturesList = function() {
+ this.setFeaturesList([]);
+};
+
+
+/**
+ * optional string target = 101;
+ * @return {string}
+ */
+proto.google.api.Endpoint.prototype.getTarget = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 101, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Endpoint.prototype.setTarget = function(value) {
+ jspb.Message.setField(this, 101, value);
+};
+
+
+/**
+ * optional bool allow_cors = 5;
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
+ * You should avoid comparisons like {@code val === true/false} in those cases.
+ * @return {boolean}
+ */
+proto.google.api.Endpoint.prototype.getAllowCors = function() {
+ return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false));
+};
+
+
+/** @param {boolean} value */
+proto.google.api.Endpoint.prototype.setAllowCors = function(value) {
+ jspb.Message.setField(this, 5, value);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/experimental/authorization_config_pb.js b/build/lib/googleapis/google/api/experimental/authorization_config_pb.js
new file mode 100644
index 0000000..00b2e91
--- /dev/null
+++ b/build/lib/googleapis/google/api/experimental/authorization_config_pb.js
@@ -0,0 +1,153 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+goog.exportSymbol('proto.google.api.AuthorizationConfig', null, global);
+
+/**
+ * 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.google.api.AuthorizationConfig = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.AuthorizationConfig, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.AuthorizationConfig.displayName = 'proto.google.api.AuthorizationConfig';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.AuthorizationConfig.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.AuthorizationConfig.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.AuthorizationConfig} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.AuthorizationConfig.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ provider: jspb.Message.getFieldWithDefault(msg, 1, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.AuthorizationConfig}
+ */
+proto.google.api.AuthorizationConfig.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.AuthorizationConfig;
+ return proto.google.api.AuthorizationConfig.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.AuthorizationConfig} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.AuthorizationConfig}
+ */
+proto.google.api.AuthorizationConfig.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setProvider(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.AuthorizationConfig.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.AuthorizationConfig.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.AuthorizationConfig} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.AuthorizationConfig.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getProvider();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string provider = 1;
+ * @return {string}
+ */
+proto.google.api.AuthorizationConfig.prototype.getProvider = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.AuthorizationConfig.prototype.setProvider = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/experimental/experimental_pb.js b/build/lib/googleapis/google/api/experimental/experimental_pb.js
new file mode 100644
index 0000000..67c71c1
--- /dev/null
+++ b/build/lib/googleapis/google/api/experimental/experimental_pb.js
@@ -0,0 +1,172 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../../google/api/annotations_pb.js');
+var google_api_experimental_authorization_config_pb = require('../../../google/api/experimental/authorization_config_pb.js');
+goog.exportSymbol('proto.google.api.Experimental', null, global);
+
+/**
+ * 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.google.api.Experimental = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.Experimental, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Experimental.displayName = 'proto.google.api.Experimental';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Experimental.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Experimental.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Experimental} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Experimental.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ authorization: (f = msg.getAuthorization()) && google_api_experimental_authorization_config_pb.AuthorizationConfig.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.google.api.Experimental}
+ */
+proto.google.api.Experimental.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Experimental;
+ return proto.google.api.Experimental.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Experimental} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Experimental}
+ */
+proto.google.api.Experimental.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 8:
+ var value = new google_api_experimental_authorization_config_pb.AuthorizationConfig;
+ reader.readMessage(value,google_api_experimental_authorization_config_pb.AuthorizationConfig.deserializeBinaryFromReader);
+ msg.setAuthorization(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Experimental.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Experimental.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Experimental} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Experimental.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getAuthorization();
+ if (f != null) {
+ writer.writeMessage(
+ 8,
+ f,
+ google_api_experimental_authorization_config_pb.AuthorizationConfig.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional AuthorizationConfig authorization = 8;
+ * @return {?proto.google.api.AuthorizationConfig}
+ */
+proto.google.api.Experimental.prototype.getAuthorization = function() {
+ return /** @type{?proto.google.api.AuthorizationConfig} */ (
+ jspb.Message.getWrapperField(this, google_api_experimental_authorization_config_pb.AuthorizationConfig, 8));
+};
+
+
+/** @param {?proto.google.api.AuthorizationConfig|undefined} value */
+proto.google.api.Experimental.prototype.setAuthorization = function(value) {
+ jspb.Message.setWrapperField(this, 8, value);
+};
+
+
+proto.google.api.Experimental.prototype.clearAuthorization = function() {
+ this.setAuthorization(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Experimental.prototype.hasAuthorization = function() {
+ return jspb.Message.getField(this, 8) != null;
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/http_pb.js b/build/lib/googleapis/google/api/http_pb.js
new file mode 100644
index 0000000..cb11d4a
--- /dev/null
+++ b/build/lib/googleapis/google/api/http_pb.js
@@ -0,0 +1,851 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+goog.exportSymbol('proto.google.api.CustomHttpPattern', null, global);
+goog.exportSymbol('proto.google.api.Http', null, global);
+goog.exportSymbol('proto.google.api.HttpRule', null, global);
+
+/**
+ * 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.google.api.Http = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Http.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Http, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Http.displayName = 'proto.google.api.Http';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Http.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Http.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Http.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Http} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Http.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ rulesList: jspb.Message.toObjectList(msg.getRulesList(),
+ proto.google.api.HttpRule.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Http}
+ */
+proto.google.api.Http.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Http;
+ return proto.google.api.Http.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Http} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Http}
+ */
+proto.google.api.Http.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.api.HttpRule;
+ reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader);
+ msg.addRules(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Http.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Http.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Http} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Http.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getRulesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ proto.google.api.HttpRule.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * repeated HttpRule rules = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Http.prototype.getRulesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Http.prototype.setRulesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.api.HttpRule=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.HttpRule}
+ */
+proto.google.api.Http.prototype.addRules = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.HttpRule, opt_index);
+};
+
+
+proto.google.api.Http.prototype.clearRulesList = function() {
+ this.setRulesList([]);
+};
+
+
+
+/**
+ * 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.google.api.HttpRule = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.HttpRule.repeatedFields_, proto.google.api.HttpRule.oneofGroups_);
+};
+goog.inherits(proto.google.api.HttpRule, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.HttpRule.displayName = 'proto.google.api.HttpRule';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.HttpRule.repeatedFields_ = [11];
+
+/**
+ * Oneof group definitions for this message. Each group defines the field
+ * numbers belonging to that group. When of these fields' value is set, all
+ * other fields in the group are cleared. During deserialization, if multiple
+ * fields are encountered for a group, only the last value seen will be kept.
+ * @private {!Array>}
+ * @const
+ */
+proto.google.api.HttpRule.oneofGroups_ = [[2,3,4,5,6,8]];
+
+/**
+ * @enum {number}
+ */
+proto.google.api.HttpRule.PatternCase = {
+ PATTERN_NOT_SET: 0,
+ GET: 2,
+ PUT: 3,
+ POST: 4,
+ DELETE: 5,
+ PATCH: 6,
+ CUSTOM: 8
+};
+
+/**
+ * @return {proto.google.api.HttpRule.PatternCase}
+ */
+proto.google.api.HttpRule.prototype.getPatternCase = function() {
+ return /** @type {proto.google.api.HttpRule.PatternCase} */(jspb.Message.computeOneofCase(this, proto.google.api.HttpRule.oneofGroups_[0]));
+};
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.HttpRule.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.HttpRule.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.HttpRule} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.HttpRule.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ get: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ put: jspb.Message.getFieldWithDefault(msg, 3, ""),
+ post: jspb.Message.getFieldWithDefault(msg, 4, ""),
+ pb_delete: jspb.Message.getFieldWithDefault(msg, 5, ""),
+ patch: jspb.Message.getFieldWithDefault(msg, 6, ""),
+ custom: (f = msg.getCustom()) && proto.google.api.CustomHttpPattern.toObject(includeInstance, f),
+ body: jspb.Message.getFieldWithDefault(msg, 7, ""),
+ additionalBindingsList: jspb.Message.toObjectList(msg.getAdditionalBindingsList(),
+ proto.google.api.HttpRule.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.HttpRule}
+ */
+proto.google.api.HttpRule.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.HttpRule;
+ return proto.google.api.HttpRule.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.HttpRule} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.HttpRule}
+ */
+proto.google.api.HttpRule.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSelector(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setGet(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setPut(value);
+ break;
+ case 4:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setPost(value);
+ break;
+ case 5:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDelete(value);
+ break;
+ case 6:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setPatch(value);
+ break;
+ case 8:
+ var value = new proto.google.api.CustomHttpPattern;
+ reader.readMessage(value,proto.google.api.CustomHttpPattern.deserializeBinaryFromReader);
+ msg.setCustom(value);
+ break;
+ case 7:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setBody(value);
+ break;
+ case 11:
+ var value = new proto.google.api.HttpRule;
+ reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader);
+ msg.addAdditionalBindings(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.HttpRule.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.HttpRule.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.HttpRule} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.HttpRule.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSelector();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
+ if (f != null) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
+ if (f != null) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
+ if (f != null) {
+ writer.writeString(
+ 4,
+ f
+ );
+ }
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
+ if (f != null) {
+ writer.writeString(
+ 5,
+ f
+ );
+ }
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
+ if (f != null) {
+ writer.writeString(
+ 6,
+ f
+ );
+ }
+ f = message.getCustom();
+ if (f != null) {
+ writer.writeMessage(
+ 8,
+ f,
+ proto.google.api.CustomHttpPattern.serializeBinaryToWriter
+ );
+ }
+ f = message.getBody();
+ if (f.length > 0) {
+ writer.writeString(
+ 7,
+ f
+ );
+ }
+ f = message.getAdditionalBindingsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 11,
+ f,
+ proto.google.api.HttpRule.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional string selector = 1;
+ * @return {string}
+ */
+proto.google.api.HttpRule.prototype.getSelector = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.HttpRule.prototype.setSelector = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string get = 2;
+ * @return {string}
+ */
+proto.google.api.HttpRule.prototype.getGet = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.HttpRule.prototype.setGet = function(value) {
+ jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], value);
+};
+
+
+proto.google.api.HttpRule.prototype.clearGet = function() {
+ jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.HttpRule.prototype.hasGet = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+/**
+ * optional string put = 3;
+ * @return {string}
+ */
+proto.google.api.HttpRule.prototype.getPut = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.HttpRule.prototype.setPut = function(value) {
+ jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], value);
+};
+
+
+proto.google.api.HttpRule.prototype.clearPut = function() {
+ jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.HttpRule.prototype.hasPut = function() {
+ return jspb.Message.getField(this, 3) != null;
+};
+
+
+/**
+ * optional string post = 4;
+ * @return {string}
+ */
+proto.google.api.HttpRule.prototype.getPost = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.HttpRule.prototype.setPost = function(value) {
+ jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], value);
+};
+
+
+proto.google.api.HttpRule.prototype.clearPost = function() {
+ jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.HttpRule.prototype.hasPost = function() {
+ return jspb.Message.getField(this, 4) != null;
+};
+
+
+/**
+ * optional string delete = 5;
+ * @return {string}
+ */
+proto.google.api.HttpRule.prototype.getDelete = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.HttpRule.prototype.setDelete = function(value) {
+ jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], value);
+};
+
+
+proto.google.api.HttpRule.prototype.clearDelete = function() {
+ jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.HttpRule.prototype.hasDelete = function() {
+ return jspb.Message.getField(this, 5) != null;
+};
+
+
+/**
+ * optional string patch = 6;
+ * @return {string}
+ */
+proto.google.api.HttpRule.prototype.getPatch = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.HttpRule.prototype.setPatch = function(value) {
+ jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], value);
+};
+
+
+proto.google.api.HttpRule.prototype.clearPatch = function() {
+ jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.HttpRule.prototype.hasPatch = function() {
+ return jspb.Message.getField(this, 6) != null;
+};
+
+
+/**
+ * optional CustomHttpPattern custom = 8;
+ * @return {?proto.google.api.CustomHttpPattern}
+ */
+proto.google.api.HttpRule.prototype.getCustom = function() {
+ return /** @type{?proto.google.api.CustomHttpPattern} */ (
+ jspb.Message.getWrapperField(this, proto.google.api.CustomHttpPattern, 8));
+};
+
+
+/** @param {?proto.google.api.CustomHttpPattern|undefined} value */
+proto.google.api.HttpRule.prototype.setCustom = function(value) {
+ jspb.Message.setOneofWrapperField(this, 8, proto.google.api.HttpRule.oneofGroups_[0], value);
+};
+
+
+proto.google.api.HttpRule.prototype.clearCustom = function() {
+ this.setCustom(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.HttpRule.prototype.hasCustom = function() {
+ return jspb.Message.getField(this, 8) != null;
+};
+
+
+/**
+ * optional string body = 7;
+ * @return {string}
+ */
+proto.google.api.HttpRule.prototype.getBody = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.HttpRule.prototype.setBody = function(value) {
+ jspb.Message.setField(this, 7, value);
+};
+
+
+/**
+ * repeated HttpRule additional_bindings = 11;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.HttpRule.prototype.getAdditionalBindingsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 11));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.HttpRule.prototype.setAdditionalBindingsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 11, value);
+};
+
+
+/**
+ * @param {!proto.google.api.HttpRule=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.HttpRule}
+ */
+proto.google.api.HttpRule.prototype.addAdditionalBindings = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.google.api.HttpRule, opt_index);
+};
+
+
+proto.google.api.HttpRule.prototype.clearAdditionalBindingsList = function() {
+ this.setAdditionalBindingsList([]);
+};
+
+
+
+/**
+ * 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.google.api.CustomHttpPattern = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.CustomHttpPattern, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.CustomHttpPattern.displayName = 'proto.google.api.CustomHttpPattern';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.CustomHttpPattern.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.CustomHttpPattern.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.CustomHttpPattern} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.CustomHttpPattern.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ kind: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ path: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.CustomHttpPattern}
+ */
+proto.google.api.CustomHttpPattern.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.CustomHttpPattern;
+ return proto.google.api.CustomHttpPattern.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.CustomHttpPattern} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.CustomHttpPattern}
+ */
+proto.google.api.CustomHttpPattern.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setKind(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setPath(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.CustomHttpPattern.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.CustomHttpPattern.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.CustomHttpPattern} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.CustomHttpPattern.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getKind();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getPath();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string kind = 1;
+ * @return {string}
+ */
+proto.google.api.CustomHttpPattern.prototype.getKind = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.CustomHttpPattern.prototype.setKind = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string path = 2;
+ * @return {string}
+ */
+proto.google.api.CustomHttpPattern.prototype.getPath = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.CustomHttpPattern.prototype.setPath = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/httpbody_pb.js b/build/lib/googleapis/google/api/httpbody_pb.js
new file mode 100644
index 0000000..e2bae1c
--- /dev/null
+++ b/build/lib/googleapis/google/api/httpbody_pb.js
@@ -0,0 +1,204 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+goog.exportSymbol('proto.google.api.HttpBody', null, global);
+
+/**
+ * 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.google.api.HttpBody = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.HttpBody, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.HttpBody.displayName = 'proto.google.api.HttpBody';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.HttpBody.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.HttpBody.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.HttpBody} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.HttpBody.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ contentType: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ data: msg.getData_asB64()
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.HttpBody}
+ */
+proto.google.api.HttpBody.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.HttpBody;
+ return proto.google.api.HttpBody.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.HttpBody} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.HttpBody}
+ */
+proto.google.api.HttpBody.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setContentType(value);
+ break;
+ case 2:
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
+ msg.setData(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.HttpBody.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.HttpBody.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.HttpBody} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.HttpBody.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getContentType();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getData_asU8();
+ if (f.length > 0) {
+ writer.writeBytes(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string content_type = 1;
+ * @return {string}
+ */
+proto.google.api.HttpBody.prototype.getContentType = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.HttpBody.prototype.setContentType = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional bytes data = 2;
+ * @return {!(string|Uint8Array)}
+ */
+proto.google.api.HttpBody.prototype.getData = function() {
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/**
+ * optional bytes data = 2;
+ * This is a type-conversion wrapper around `getData()`
+ * @return {string}
+ */
+proto.google.api.HttpBody.prototype.getData_asB64 = function() {
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
+ this.getData()));
+};
+
+
+/**
+ * optional bytes data = 2;
+ * Note that Uint8Array is not supported on all browsers.
+ * @see http://caniuse.com/Uint8Array
+ * This is a type-conversion wrapper around `getData()`
+ * @return {!Uint8Array}
+ */
+proto.google.api.HttpBody.prototype.getData_asU8 = function() {
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
+ this.getData()));
+};
+
+
+/** @param {!(string|Uint8Array)} value */
+proto.google.api.HttpBody.prototype.setData = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/label_pb.js b/build/lib/googleapis/google/api/label_pb.js
new file mode 100644
index 0000000..b585140
--- /dev/null
+++ b/build/lib/googleapis/google/api/label_pb.js
@@ -0,0 +1,217 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+goog.exportSymbol('proto.google.api.LabelDescriptor', null, global);
+goog.exportSymbol('proto.google.api.LabelDescriptor.ValueType', null, global);
+
+/**
+ * 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.google.api.LabelDescriptor = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.LabelDescriptor, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.LabelDescriptor.displayName = 'proto.google.api.LabelDescriptor';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.LabelDescriptor.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.LabelDescriptor.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.LabelDescriptor} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.LabelDescriptor.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ key: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ valueType: jspb.Message.getFieldWithDefault(msg, 2, 0),
+ description: jspb.Message.getFieldWithDefault(msg, 3, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.LabelDescriptor}
+ */
+proto.google.api.LabelDescriptor.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.LabelDescriptor;
+ return proto.google.api.LabelDescriptor.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.LabelDescriptor} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.LabelDescriptor}
+ */
+proto.google.api.LabelDescriptor.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setKey(value);
+ break;
+ case 2:
+ var value = /** @type {!proto.google.api.LabelDescriptor.ValueType} */ (reader.readEnum());
+ msg.setValueType(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDescription(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.LabelDescriptor.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.LabelDescriptor.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.LabelDescriptor} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.LabelDescriptor.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getKey();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getValueType();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 2,
+ f
+ );
+ }
+ f = message.getDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.api.LabelDescriptor.ValueType = {
+ STRING: 0,
+ BOOL: 1,
+ INT64: 2
+};
+
+/**
+ * optional string key = 1;
+ * @return {string}
+ */
+proto.google.api.LabelDescriptor.prototype.getKey = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.LabelDescriptor.prototype.setKey = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional ValueType value_type = 2;
+ * @return {!proto.google.api.LabelDescriptor.ValueType}
+ */
+proto.google.api.LabelDescriptor.prototype.getValueType = function() {
+ return /** @type {!proto.google.api.LabelDescriptor.ValueType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
+};
+
+
+/** @param {!proto.google.api.LabelDescriptor.ValueType} value */
+proto.google.api.LabelDescriptor.prototype.setValueType = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional string description = 3;
+ * @return {string}
+ */
+proto.google.api.LabelDescriptor.prototype.getDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.LabelDescriptor.prototype.setDescription = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/log_pb.js b/build/lib/googleapis/google/api/log_pb.js
new file mode 100644
index 0000000..d6b88ce
--- /dev/null
+++ b/build/lib/googleapis/google/api/log_pb.js
@@ -0,0 +1,263 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_label_pb = require('../../google/api/label_pb.js');
+goog.exportSymbol('proto.google.api.LogDescriptor', null, global);
+
+/**
+ * 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.google.api.LogDescriptor = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.LogDescriptor.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.LogDescriptor, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.LogDescriptor.displayName = 'proto.google.api.LogDescriptor';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.LogDescriptor.repeatedFields_ = [2];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.LogDescriptor.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.LogDescriptor.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.LogDescriptor} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.LogDescriptor.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ labelsList: jspb.Message.toObjectList(msg.getLabelsList(),
+ google_api_label_pb.LabelDescriptor.toObject, includeInstance),
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
+ displayName: jspb.Message.getFieldWithDefault(msg, 4, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.LogDescriptor}
+ */
+proto.google.api.LogDescriptor.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.LogDescriptor;
+ return proto.google.api.LogDescriptor.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.LogDescriptor} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.LogDescriptor}
+ */
+proto.google.api.LogDescriptor.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setName(value);
+ break;
+ case 2:
+ var value = new google_api_label_pb.LabelDescriptor;
+ reader.readMessage(value,google_api_label_pb.LabelDescriptor.deserializeBinaryFromReader);
+ msg.addLabels(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDescription(value);
+ break;
+ case 4:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDisplayName(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.LogDescriptor.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.LogDescriptor.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.LogDescriptor} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.LogDescriptor.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getLabelsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 2,
+ f,
+ google_api_label_pb.LabelDescriptor.serializeBinaryToWriter
+ );
+ }
+ f = message.getDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+ f = message.getDisplayName();
+ if (f.length > 0) {
+ writer.writeString(
+ 4,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string name = 1;
+ * @return {string}
+ */
+proto.google.api.LogDescriptor.prototype.getName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.LogDescriptor.prototype.setName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * repeated LabelDescriptor labels = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.LogDescriptor.prototype.getLabelsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.LogDescriptor.prototype.setLabelsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
+};
+
+
+/**
+ * @param {!proto.google.api.LabelDescriptor=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.LabelDescriptor}
+ */
+proto.google.api.LogDescriptor.prototype.addLabels = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.LabelDescriptor, opt_index);
+};
+
+
+proto.google.api.LogDescriptor.prototype.clearLabelsList = function() {
+ this.setLabelsList([]);
+};
+
+
+/**
+ * optional string description = 3;
+ * @return {string}
+ */
+proto.google.api.LogDescriptor.prototype.getDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.LogDescriptor.prototype.setDescription = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional string display_name = 4;
+ * @return {string}
+ */
+proto.google.api.LogDescriptor.prototype.getDisplayName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.LogDescriptor.prototype.setDisplayName = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/logging_pb.js b/build/lib/googleapis/google/api/logging_pb.js
new file mode 100644
index 0000000..0cc90b2
--- /dev/null
+++ b/build/lib/googleapis/google/api/logging_pb.js
@@ -0,0 +1,421 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
+goog.exportSymbol('proto.google.api.Logging', null, global);
+goog.exportSymbol('proto.google.api.Logging.LoggingDestination', null, global);
+
+/**
+ * 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.google.api.Logging = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Logging.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Logging, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Logging.displayName = 'proto.google.api.Logging';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Logging.repeatedFields_ = [1,2];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Logging.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Logging.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Logging} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Logging.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ producerDestinationsList: jspb.Message.toObjectList(msg.getProducerDestinationsList(),
+ proto.google.api.Logging.LoggingDestination.toObject, includeInstance),
+ consumerDestinationsList: jspb.Message.toObjectList(msg.getConsumerDestinationsList(),
+ proto.google.api.Logging.LoggingDestination.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Logging}
+ */
+proto.google.api.Logging.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Logging;
+ return proto.google.api.Logging.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Logging} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Logging}
+ */
+proto.google.api.Logging.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.api.Logging.LoggingDestination;
+ reader.readMessage(value,proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader);
+ msg.addProducerDestinations(value);
+ break;
+ case 2:
+ var value = new proto.google.api.Logging.LoggingDestination;
+ reader.readMessage(value,proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader);
+ msg.addConsumerDestinations(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Logging.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Logging.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Logging} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Logging.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getProducerDestinationsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter
+ );
+ }
+ f = message.getConsumerDestinationsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 2,
+ f,
+ proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter
+ );
+ }
+};
+
+
+
+/**
+ * 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.google.api.Logging.LoggingDestination = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Logging.LoggingDestination.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Logging.LoggingDestination, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Logging.LoggingDestination.displayName = 'proto.google.api.Logging.LoggingDestination';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Logging.LoggingDestination.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Logging.LoggingDestination.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Logging.LoggingDestination.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Logging.LoggingDestination} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Logging.LoggingDestination.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ monitoredResource: jspb.Message.getFieldWithDefault(msg, 3, ""),
+ logsList: jspb.Message.getField(msg, 1)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Logging.LoggingDestination}
+ */
+proto.google.api.Logging.LoggingDestination.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Logging.LoggingDestination;
+ return proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Logging.LoggingDestination} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Logging.LoggingDestination}
+ */
+proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setMonitoredResource(value);
+ break;
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.addLogs(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Logging.LoggingDestination.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Logging.LoggingDestination} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getMonitoredResource();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+ f = message.getLogsList();
+ if (f.length > 0) {
+ writer.writeRepeatedString(
+ 1,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string monitored_resource = 3;
+ * @return {string}
+ */
+proto.google.api.Logging.LoggingDestination.prototype.getMonitoredResource = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Logging.LoggingDestination.prototype.setMonitoredResource = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * repeated string logs = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Logging.LoggingDestination.prototype.getLogsList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Logging.LoggingDestination.prototype.setLogsList = function(value) {
+ jspb.Message.setField(this, 1, value || []);
+};
+
+
+/**
+ * @param {!string} value
+ * @param {number=} opt_index
+ */
+proto.google.api.Logging.LoggingDestination.prototype.addLogs = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 1, value, opt_index);
+};
+
+
+proto.google.api.Logging.LoggingDestination.prototype.clearLogsList = function() {
+ this.setLogsList([]);
+};
+
+
+/**
+ * repeated LoggingDestination producer_destinations = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Logging.prototype.getProducerDestinationsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.Logging.LoggingDestination, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Logging.prototype.setProducerDestinationsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.api.Logging.LoggingDestination=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.Logging.LoggingDestination}
+ */
+proto.google.api.Logging.prototype.addProducerDestinations = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Logging.LoggingDestination, opt_index);
+};
+
+
+proto.google.api.Logging.prototype.clearProducerDestinationsList = function() {
+ this.setProducerDestinationsList([]);
+};
+
+
+/**
+ * repeated LoggingDestination consumer_destinations = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Logging.prototype.getConsumerDestinationsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.Logging.LoggingDestination, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Logging.prototype.setConsumerDestinationsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
+};
+
+
+/**
+ * @param {!proto.google.api.Logging.LoggingDestination=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.Logging.LoggingDestination}
+ */
+proto.google.api.Logging.prototype.addConsumerDestinations = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.Logging.LoggingDestination, opt_index);
+};
+
+
+proto.google.api.Logging.prototype.clearConsumerDestinationsList = function() {
+ this.setConsumerDestinationsList([]);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/metric_pb.js b/build/lib/googleapis/google/api/metric_pb.js
new file mode 100644
index 0000000..714e579
--- /dev/null
+++ b/build/lib/googleapis/google/api/metric_pb.js
@@ -0,0 +1,566 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_label_pb = require('../../google/api/label_pb.js');
+goog.exportSymbol('proto.google.api.Metric', null, global);
+goog.exportSymbol('proto.google.api.MetricDescriptor', null, global);
+goog.exportSymbol('proto.google.api.MetricDescriptor.MetricKind', null, global);
+goog.exportSymbol('proto.google.api.MetricDescriptor.ValueType', null, global);
+
+/**
+ * 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.google.api.MetricDescriptor = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.MetricDescriptor.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.MetricDescriptor, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.MetricDescriptor.displayName = 'proto.google.api.MetricDescriptor';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.MetricDescriptor.repeatedFields_ = [2];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.MetricDescriptor.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.MetricDescriptor.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.MetricDescriptor} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.MetricDescriptor.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ type: jspb.Message.getFieldWithDefault(msg, 8, ""),
+ labelsList: jspb.Message.toObjectList(msg.getLabelsList(),
+ google_api_label_pb.LabelDescriptor.toObject, includeInstance),
+ metricKind: jspb.Message.getFieldWithDefault(msg, 3, 0),
+ valueType: jspb.Message.getFieldWithDefault(msg, 4, 0),
+ unit: jspb.Message.getFieldWithDefault(msg, 5, ""),
+ description: jspb.Message.getFieldWithDefault(msg, 6, ""),
+ displayName: jspb.Message.getFieldWithDefault(msg, 7, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.MetricDescriptor}
+ */
+proto.google.api.MetricDescriptor.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.MetricDescriptor;
+ return proto.google.api.MetricDescriptor.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.MetricDescriptor} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.MetricDescriptor}
+ */
+proto.google.api.MetricDescriptor.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setName(value);
+ break;
+ case 8:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setType(value);
+ break;
+ case 2:
+ var value = new google_api_label_pb.LabelDescriptor;
+ reader.readMessage(value,google_api_label_pb.LabelDescriptor.deserializeBinaryFromReader);
+ msg.addLabels(value);
+ break;
+ case 3:
+ var value = /** @type {!proto.google.api.MetricDescriptor.MetricKind} */ (reader.readEnum());
+ msg.setMetricKind(value);
+ break;
+ case 4:
+ var value = /** @type {!proto.google.api.MetricDescriptor.ValueType} */ (reader.readEnum());
+ msg.setValueType(value);
+ break;
+ case 5:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setUnit(value);
+ break;
+ case 6:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDescription(value);
+ break;
+ case 7:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDisplayName(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.MetricDescriptor.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.MetricDescriptor.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.MetricDescriptor} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.MetricDescriptor.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getType();
+ if (f.length > 0) {
+ writer.writeString(
+ 8,
+ f
+ );
+ }
+ f = message.getLabelsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 2,
+ f,
+ google_api_label_pb.LabelDescriptor.serializeBinaryToWriter
+ );
+ }
+ f = message.getMetricKind();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 3,
+ f
+ );
+ }
+ f = message.getValueType();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 4,
+ f
+ );
+ }
+ f = message.getUnit();
+ if (f.length > 0) {
+ writer.writeString(
+ 5,
+ f
+ );
+ }
+ f = message.getDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 6,
+ f
+ );
+ }
+ f = message.getDisplayName();
+ if (f.length > 0) {
+ writer.writeString(
+ 7,
+ f
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.api.MetricDescriptor.MetricKind = {
+ METRIC_KIND_UNSPECIFIED: 0,
+ GAUGE: 1,
+ DELTA: 2,
+ CUMULATIVE: 3
+};
+
+/**
+ * @enum {number}
+ */
+proto.google.api.MetricDescriptor.ValueType = {
+ VALUE_TYPE_UNSPECIFIED: 0,
+ BOOL: 1,
+ INT64: 2,
+ DOUBLE: 3,
+ STRING: 4,
+ DISTRIBUTION: 5,
+ MONEY: 6
+};
+
+/**
+ * optional string name = 1;
+ * @return {string}
+ */
+proto.google.api.MetricDescriptor.prototype.getName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.MetricDescriptor.prototype.setName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string type = 8;
+ * @return {string}
+ */
+proto.google.api.MetricDescriptor.prototype.getType = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.MetricDescriptor.prototype.setType = function(value) {
+ jspb.Message.setField(this, 8, value);
+};
+
+
+/**
+ * repeated LabelDescriptor labels = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.MetricDescriptor.prototype.getLabelsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.MetricDescriptor.prototype.setLabelsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
+};
+
+
+/**
+ * @param {!proto.google.api.LabelDescriptor=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.LabelDescriptor}
+ */
+proto.google.api.MetricDescriptor.prototype.addLabels = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.LabelDescriptor, opt_index);
+};
+
+
+proto.google.api.MetricDescriptor.prototype.clearLabelsList = function() {
+ this.setLabelsList([]);
+};
+
+
+/**
+ * optional MetricKind metric_kind = 3;
+ * @return {!proto.google.api.MetricDescriptor.MetricKind}
+ */
+proto.google.api.MetricDescriptor.prototype.getMetricKind = function() {
+ return /** @type {!proto.google.api.MetricDescriptor.MetricKind} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
+};
+
+
+/** @param {!proto.google.api.MetricDescriptor.MetricKind} value */
+proto.google.api.MetricDescriptor.prototype.setMetricKind = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional ValueType value_type = 4;
+ * @return {!proto.google.api.MetricDescriptor.ValueType}
+ */
+proto.google.api.MetricDescriptor.prototype.getValueType = function() {
+ return /** @type {!proto.google.api.MetricDescriptor.ValueType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
+};
+
+
+/** @param {!proto.google.api.MetricDescriptor.ValueType} value */
+proto.google.api.MetricDescriptor.prototype.setValueType = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+/**
+ * optional string unit = 5;
+ * @return {string}
+ */
+proto.google.api.MetricDescriptor.prototype.getUnit = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.MetricDescriptor.prototype.setUnit = function(value) {
+ jspb.Message.setField(this, 5, value);
+};
+
+
+/**
+ * optional string description = 6;
+ * @return {string}
+ */
+proto.google.api.MetricDescriptor.prototype.getDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.MetricDescriptor.prototype.setDescription = function(value) {
+ jspb.Message.setField(this, 6, value);
+};
+
+
+/**
+ * optional string display_name = 7;
+ * @return {string}
+ */
+proto.google.api.MetricDescriptor.prototype.getDisplayName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.MetricDescriptor.prototype.setDisplayName = function(value) {
+ jspb.Message.setField(this, 7, value);
+};
+
+
+
+/**
+ * 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.google.api.Metric = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.Metric, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Metric.displayName = 'proto.google.api.Metric';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Metric.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Metric.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Metric} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Metric.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
+ labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : []
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Metric}
+ */
+proto.google.api.Metric.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Metric;
+ return proto.google.api.Metric.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Metric} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Metric}
+ */
+proto.google.api.Metric.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setType(value);
+ break;
+ case 2:
+ var value = msg.getLabelsMap();
+ reader.readMessage(value, function(message, reader) {
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString);
+ });
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Metric.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Metric.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Metric} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Metric.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getType();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+ f = message.getLabelsMap(true);
+ if (f && f.getLength() > 0) {
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
+ }
+};
+
+
+/**
+ * optional string type = 3;
+ * @return {string}
+ */
+proto.google.api.Metric.prototype.getType = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Metric.prototype.setType = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * map labels = 2;
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
+ * empty, instead returning `undefined`
+ * @return {!jspb.Map}
+ */
+proto.google.api.Metric.prototype.getLabelsMap = function(opt_noLazyCreate) {
+ return /** @type {!jspb.Map} */ (
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
+ null));
+};
+
+
+proto.google.api.Metric.prototype.clearLabelsMap = function() {
+ this.getLabelsMap().clear();
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/monitored_resource_pb.js b/build/lib/googleapis/google/api/monitored_resource_pb.js
new file mode 100644
index 0000000..af6d95d
--- /dev/null
+++ b/build/lib/googleapis/google/api/monitored_resource_pb.js
@@ -0,0 +1,460 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_label_pb = require('../../google/api/label_pb.js');
+goog.exportSymbol('proto.google.api.MonitoredResource', null, global);
+goog.exportSymbol('proto.google.api.MonitoredResourceDescriptor', null, global);
+
+/**
+ * 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.google.api.MonitoredResourceDescriptor = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.MonitoredResourceDescriptor.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.MonitoredResourceDescriptor, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.MonitoredResourceDescriptor.displayName = 'proto.google.api.MonitoredResourceDescriptor';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.MonitoredResourceDescriptor.repeatedFields_ = [4];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.MonitoredResourceDescriptor.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.MonitoredResourceDescriptor.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.MonitoredResourceDescriptor} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.MonitoredResourceDescriptor.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ name: jspb.Message.getFieldWithDefault(msg, 5, ""),
+ type: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ displayName: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
+ labelsList: jspb.Message.toObjectList(msg.getLabelsList(),
+ google_api_label_pb.LabelDescriptor.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.MonitoredResourceDescriptor}
+ */
+proto.google.api.MonitoredResourceDescriptor.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.MonitoredResourceDescriptor;
+ return proto.google.api.MonitoredResourceDescriptor.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.MonitoredResourceDescriptor} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.MonitoredResourceDescriptor}
+ */
+proto.google.api.MonitoredResourceDescriptor.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 5:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setName(value);
+ break;
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setType(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDisplayName(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDescription(value);
+ break;
+ case 4:
+ var value = new google_api_label_pb.LabelDescriptor;
+ reader.readMessage(value,google_api_label_pb.LabelDescriptor.deserializeBinaryFromReader);
+ msg.addLabels(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.MonitoredResourceDescriptor.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.MonitoredResourceDescriptor.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.MonitoredResourceDescriptor} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.MonitoredResourceDescriptor.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getName();
+ if (f.length > 0) {
+ writer.writeString(
+ 5,
+ f
+ );
+ }
+ f = message.getType();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getDisplayName();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+ f = message.getLabelsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 4,
+ f,
+ google_api_label_pb.LabelDescriptor.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional string name = 5;
+ * @return {string}
+ */
+proto.google.api.MonitoredResourceDescriptor.prototype.getName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.MonitoredResourceDescriptor.prototype.setName = function(value) {
+ jspb.Message.setField(this, 5, value);
+};
+
+
+/**
+ * optional string type = 1;
+ * @return {string}
+ */
+proto.google.api.MonitoredResourceDescriptor.prototype.getType = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.MonitoredResourceDescriptor.prototype.setType = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string display_name = 2;
+ * @return {string}
+ */
+proto.google.api.MonitoredResourceDescriptor.prototype.getDisplayName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.MonitoredResourceDescriptor.prototype.setDisplayName = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional string description = 3;
+ * @return {string}
+ */
+proto.google.api.MonitoredResourceDescriptor.prototype.getDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.MonitoredResourceDescriptor.prototype.setDescription = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * repeated LabelDescriptor labels = 4;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.MonitoredResourceDescriptor.prototype.getLabelsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 4));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.MonitoredResourceDescriptor.prototype.setLabelsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 4, value);
+};
+
+
+/**
+ * @param {!proto.google.api.LabelDescriptor=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.LabelDescriptor}
+ */
+proto.google.api.MonitoredResourceDescriptor.prototype.addLabels = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.LabelDescriptor, opt_index);
+};
+
+
+proto.google.api.MonitoredResourceDescriptor.prototype.clearLabelsList = function() {
+ this.setLabelsList([]);
+};
+
+
+
+/**
+ * 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.google.api.MonitoredResource = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.MonitoredResource, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.MonitoredResource.displayName = 'proto.google.api.MonitoredResource';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.MonitoredResource.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.MonitoredResource.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.MonitoredResource} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.MonitoredResource.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ type: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : []
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.MonitoredResource}
+ */
+proto.google.api.MonitoredResource.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.MonitoredResource;
+ return proto.google.api.MonitoredResource.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.MonitoredResource} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.MonitoredResource}
+ */
+proto.google.api.MonitoredResource.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setType(value);
+ break;
+ case 2:
+ var value = msg.getLabelsMap();
+ reader.readMessage(value, function(message, reader) {
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString);
+ });
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.MonitoredResource.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.MonitoredResource.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.MonitoredResource} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.MonitoredResource.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getType();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getLabelsMap(true);
+ if (f && f.getLength() > 0) {
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
+ }
+};
+
+
+/**
+ * optional string type = 1;
+ * @return {string}
+ */
+proto.google.api.MonitoredResource.prototype.getType = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.MonitoredResource.prototype.setType = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * map labels = 2;
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
+ * empty, instead returning `undefined`
+ * @return {!jspb.Map}
+ */
+proto.google.api.MonitoredResource.prototype.getLabelsMap = function(opt_noLazyCreate) {
+ return /** @type {!jspb.Map} */ (
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
+ null));
+};
+
+
+proto.google.api.MonitoredResource.prototype.clearLabelsMap = function() {
+ this.getLabelsMap().clear();
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/monitoring_pb.js b/build/lib/googleapis/google/api/monitoring_pb.js
new file mode 100644
index 0000000..0407678
--- /dev/null
+++ b/build/lib/googleapis/google/api/monitoring_pb.js
@@ -0,0 +1,421 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
+goog.exportSymbol('proto.google.api.Monitoring', null, global);
+goog.exportSymbol('proto.google.api.Monitoring.MonitoringDestination', null, global);
+
+/**
+ * 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.google.api.Monitoring = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Monitoring.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Monitoring, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Monitoring.displayName = 'proto.google.api.Monitoring';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Monitoring.repeatedFields_ = [1,2];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Monitoring.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Monitoring.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Monitoring} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Monitoring.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ producerDestinationsList: jspb.Message.toObjectList(msg.getProducerDestinationsList(),
+ proto.google.api.Monitoring.MonitoringDestination.toObject, includeInstance),
+ consumerDestinationsList: jspb.Message.toObjectList(msg.getConsumerDestinationsList(),
+ proto.google.api.Monitoring.MonitoringDestination.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Monitoring}
+ */
+proto.google.api.Monitoring.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Monitoring;
+ return proto.google.api.Monitoring.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Monitoring} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Monitoring}
+ */
+proto.google.api.Monitoring.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.api.Monitoring.MonitoringDestination;
+ reader.readMessage(value,proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader);
+ msg.addProducerDestinations(value);
+ break;
+ case 2:
+ var value = new proto.google.api.Monitoring.MonitoringDestination;
+ reader.readMessage(value,proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader);
+ msg.addConsumerDestinations(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Monitoring.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Monitoring.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Monitoring} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Monitoring.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getProducerDestinationsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter
+ );
+ }
+ f = message.getConsumerDestinationsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 2,
+ f,
+ proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter
+ );
+ }
+};
+
+
+
+/**
+ * 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.google.api.Monitoring.MonitoringDestination = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Monitoring.MonitoringDestination.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Monitoring.MonitoringDestination, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Monitoring.MonitoringDestination.displayName = 'proto.google.api.Monitoring.MonitoringDestination';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Monitoring.MonitoringDestination.repeatedFields_ = [2];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Monitoring.MonitoringDestination.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Monitoring.MonitoringDestination.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Monitoring.MonitoringDestination} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Monitoring.MonitoringDestination.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ monitoredResource: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ metricsList: jspb.Message.getField(msg, 2)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Monitoring.MonitoringDestination}
+ */
+proto.google.api.Monitoring.MonitoringDestination.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Monitoring.MonitoringDestination;
+ return proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Monitoring.MonitoringDestination} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Monitoring.MonitoringDestination}
+ */
+proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setMonitoredResource(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.addMetrics(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Monitoring.MonitoringDestination.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Monitoring.MonitoringDestination} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getMonitoredResource();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getMetricsList();
+ if (f.length > 0) {
+ writer.writeRepeatedString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string monitored_resource = 1;
+ * @return {string}
+ */
+proto.google.api.Monitoring.MonitoringDestination.prototype.getMonitoredResource = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Monitoring.MonitoringDestination.prototype.setMonitoredResource = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * repeated string metrics = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Monitoring.MonitoringDestination.prototype.getMetricsList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Monitoring.MonitoringDestination.prototype.setMetricsList = function(value) {
+ jspb.Message.setField(this, 2, value || []);
+};
+
+
+/**
+ * @param {!string} value
+ * @param {number=} opt_index
+ */
+proto.google.api.Monitoring.MonitoringDestination.prototype.addMetrics = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 2, value, opt_index);
+};
+
+
+proto.google.api.Monitoring.MonitoringDestination.prototype.clearMetricsList = function() {
+ this.setMetricsList([]);
+};
+
+
+/**
+ * repeated MonitoringDestination producer_destinations = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Monitoring.prototype.getProducerDestinationsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.Monitoring.MonitoringDestination, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Monitoring.prototype.setProducerDestinationsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.api.Monitoring.MonitoringDestination=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.Monitoring.MonitoringDestination}
+ */
+proto.google.api.Monitoring.prototype.addProducerDestinations = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Monitoring.MonitoringDestination, opt_index);
+};
+
+
+proto.google.api.Monitoring.prototype.clearProducerDestinationsList = function() {
+ this.setProducerDestinationsList([]);
+};
+
+
+/**
+ * repeated MonitoringDestination consumer_destinations = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Monitoring.prototype.getConsumerDestinationsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.Monitoring.MonitoringDestination, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Monitoring.prototype.setConsumerDestinationsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
+};
+
+
+/**
+ * @param {!proto.google.api.Monitoring.MonitoringDestination=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.Monitoring.MonitoringDestination}
+ */
+proto.google.api.Monitoring.prototype.addConsumerDestinations = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.Monitoring.MonitoringDestination, opt_index);
+};
+
+
+proto.google.api.Monitoring.prototype.clearConsumerDestinationsList = function() {
+ this.setConsumerDestinationsList([]);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/quota_pb.js b/build/lib/googleapis/google/api/quota_pb.js
new file mode 100644
index 0000000..545d6ed
--- /dev/null
+++ b/build/lib/googleapis/google/api/quota_pb.js
@@ -0,0 +1,786 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
+goog.exportSymbol('proto.google.api.MetricRule', null, global);
+goog.exportSymbol('proto.google.api.Quota', null, global);
+goog.exportSymbol('proto.google.api.QuotaLimit', null, global);
+
+/**
+ * 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.google.api.Quota = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Quota.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Quota, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Quota.displayName = 'proto.google.api.Quota';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Quota.repeatedFields_ = [3,4];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Quota.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Quota.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Quota} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Quota.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ limitsList: jspb.Message.toObjectList(msg.getLimitsList(),
+ proto.google.api.QuotaLimit.toObject, includeInstance),
+ metricRulesList: jspb.Message.toObjectList(msg.getMetricRulesList(),
+ proto.google.api.MetricRule.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Quota}
+ */
+proto.google.api.Quota.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Quota;
+ return proto.google.api.Quota.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Quota} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Quota}
+ */
+proto.google.api.Quota.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 3:
+ var value = new proto.google.api.QuotaLimit;
+ reader.readMessage(value,proto.google.api.QuotaLimit.deserializeBinaryFromReader);
+ msg.addLimits(value);
+ break;
+ case 4:
+ var value = new proto.google.api.MetricRule;
+ reader.readMessage(value,proto.google.api.MetricRule.deserializeBinaryFromReader);
+ msg.addMetricRules(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Quota.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Quota.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Quota} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Quota.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getLimitsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 3,
+ f,
+ proto.google.api.QuotaLimit.serializeBinaryToWriter
+ );
+ }
+ f = message.getMetricRulesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 4,
+ f,
+ proto.google.api.MetricRule.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * repeated QuotaLimit limits = 3;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Quota.prototype.getLimitsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.QuotaLimit, 3));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Quota.prototype.setLimitsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 3, value);
+};
+
+
+/**
+ * @param {!proto.google.api.QuotaLimit=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.QuotaLimit}
+ */
+proto.google.api.Quota.prototype.addLimits = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.QuotaLimit, opt_index);
+};
+
+
+proto.google.api.Quota.prototype.clearLimitsList = function() {
+ this.setLimitsList([]);
+};
+
+
+/**
+ * repeated MetricRule metric_rules = 4;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Quota.prototype.getMetricRulesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.MetricRule, 4));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Quota.prototype.setMetricRulesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 4, value);
+};
+
+
+/**
+ * @param {!proto.google.api.MetricRule=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.MetricRule}
+ */
+proto.google.api.Quota.prototype.addMetricRules = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.MetricRule, opt_index);
+};
+
+
+proto.google.api.Quota.prototype.clearMetricRulesList = function() {
+ this.setMetricRulesList([]);
+};
+
+
+
+/**
+ * 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.google.api.MetricRule = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.MetricRule, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.MetricRule.displayName = 'proto.google.api.MetricRule';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.MetricRule.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.MetricRule.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.MetricRule} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.MetricRule.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ metricCostsMap: (f = msg.getMetricCostsMap()) ? f.toObject(includeInstance, undefined) : []
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.MetricRule}
+ */
+proto.google.api.MetricRule.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.MetricRule;
+ return proto.google.api.MetricRule.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.MetricRule} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.MetricRule}
+ */
+proto.google.api.MetricRule.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSelector(value);
+ break;
+ case 2:
+ var value = msg.getMetricCostsMap();
+ reader.readMessage(value, function(message, reader) {
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64);
+ });
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.MetricRule.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.MetricRule.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.MetricRule} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.MetricRule.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSelector();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getMetricCostsMap(true);
+ if (f && f.getLength() > 0) {
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeInt64);
+ }
+};
+
+
+/**
+ * optional string selector = 1;
+ * @return {string}
+ */
+proto.google.api.MetricRule.prototype.getSelector = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.MetricRule.prototype.setSelector = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * map metric_costs = 2;
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
+ * empty, instead returning `undefined`
+ * @return {!jspb.Map}
+ */
+proto.google.api.MetricRule.prototype.getMetricCostsMap = function(opt_noLazyCreate) {
+ return /** @type {!jspb.Map} */ (
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
+ null));
+};
+
+
+proto.google.api.MetricRule.prototype.clearMetricCostsMap = function() {
+ this.getMetricCostsMap().clear();
+};
+
+
+
+/**
+ * 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.google.api.QuotaLimit = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.QuotaLimit, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.QuotaLimit.displayName = 'proto.google.api.QuotaLimit';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.QuotaLimit.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.QuotaLimit.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.QuotaLimit} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.QuotaLimit.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ name: jspb.Message.getFieldWithDefault(msg, 6, ""),
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ defaultLimit: jspb.Message.getFieldWithDefault(msg, 3, 0),
+ maxLimit: jspb.Message.getFieldWithDefault(msg, 4, 0),
+ freeTier: jspb.Message.getFieldWithDefault(msg, 7, 0),
+ duration: jspb.Message.getFieldWithDefault(msg, 5, ""),
+ metric: jspb.Message.getFieldWithDefault(msg, 8, ""),
+ unit: jspb.Message.getFieldWithDefault(msg, 9, ""),
+ valuesMap: (f = msg.getValuesMap()) ? f.toObject(includeInstance, undefined) : [],
+ displayName: jspb.Message.getFieldWithDefault(msg, 12, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.QuotaLimit}
+ */
+proto.google.api.QuotaLimit.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.QuotaLimit;
+ return proto.google.api.QuotaLimit.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.QuotaLimit} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.QuotaLimit}
+ */
+proto.google.api.QuotaLimit.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 6:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setName(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDescription(value);
+ break;
+ case 3:
+ var value = /** @type {number} */ (reader.readInt64());
+ msg.setDefaultLimit(value);
+ break;
+ case 4:
+ var value = /** @type {number} */ (reader.readInt64());
+ msg.setMaxLimit(value);
+ break;
+ case 7:
+ var value = /** @type {number} */ (reader.readInt64());
+ msg.setFreeTier(value);
+ break;
+ case 5:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDuration(value);
+ break;
+ case 8:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setMetric(value);
+ break;
+ case 9:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setUnit(value);
+ break;
+ case 10:
+ var value = msg.getValuesMap();
+ reader.readMessage(value, function(message, reader) {
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64);
+ });
+ break;
+ case 12:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDisplayName(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.QuotaLimit.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.QuotaLimit.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.QuotaLimit} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.QuotaLimit.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getName();
+ if (f.length > 0) {
+ writer.writeString(
+ 6,
+ f
+ );
+ }
+ f = message.getDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getDefaultLimit();
+ if (f !== 0) {
+ writer.writeInt64(
+ 3,
+ f
+ );
+ }
+ f = message.getMaxLimit();
+ if (f !== 0) {
+ writer.writeInt64(
+ 4,
+ f
+ );
+ }
+ f = message.getFreeTier();
+ if (f !== 0) {
+ writer.writeInt64(
+ 7,
+ f
+ );
+ }
+ f = message.getDuration();
+ if (f.length > 0) {
+ writer.writeString(
+ 5,
+ f
+ );
+ }
+ f = message.getMetric();
+ if (f.length > 0) {
+ writer.writeString(
+ 8,
+ f
+ );
+ }
+ f = message.getUnit();
+ if (f.length > 0) {
+ writer.writeString(
+ 9,
+ f
+ );
+ }
+ f = message.getValuesMap(true);
+ if (f && f.getLength() > 0) {
+ f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeInt64);
+ }
+ f = message.getDisplayName();
+ if (f.length > 0) {
+ writer.writeString(
+ 12,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string name = 6;
+ * @return {string}
+ */
+proto.google.api.QuotaLimit.prototype.getName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.QuotaLimit.prototype.setName = function(value) {
+ jspb.Message.setField(this, 6, value);
+};
+
+
+/**
+ * optional string description = 2;
+ * @return {string}
+ */
+proto.google.api.QuotaLimit.prototype.getDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.QuotaLimit.prototype.setDescription = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional int64 default_limit = 3;
+ * @return {number}
+ */
+proto.google.api.QuotaLimit.prototype.getDefaultLimit = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.QuotaLimit.prototype.setDefaultLimit = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional int64 max_limit = 4;
+ * @return {number}
+ */
+proto.google.api.QuotaLimit.prototype.getMaxLimit = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.QuotaLimit.prototype.setMaxLimit = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+/**
+ * optional int64 free_tier = 7;
+ * @return {number}
+ */
+proto.google.api.QuotaLimit.prototype.getFreeTier = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.QuotaLimit.prototype.setFreeTier = function(value) {
+ jspb.Message.setField(this, 7, value);
+};
+
+
+/**
+ * optional string duration = 5;
+ * @return {string}
+ */
+proto.google.api.QuotaLimit.prototype.getDuration = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.QuotaLimit.prototype.setDuration = function(value) {
+ jspb.Message.setField(this, 5, value);
+};
+
+
+/**
+ * optional string metric = 8;
+ * @return {string}
+ */
+proto.google.api.QuotaLimit.prototype.getMetric = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.QuotaLimit.prototype.setMetric = function(value) {
+ jspb.Message.setField(this, 8, value);
+};
+
+
+/**
+ * optional string unit = 9;
+ * @return {string}
+ */
+proto.google.api.QuotaLimit.prototype.getUnit = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.QuotaLimit.prototype.setUnit = function(value) {
+ jspb.Message.setField(this, 9, value);
+};
+
+
+/**
+ * map values = 10;
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
+ * empty, instead returning `undefined`
+ * @return {!jspb.Map}
+ */
+proto.google.api.QuotaLimit.prototype.getValuesMap = function(opt_noLazyCreate) {
+ return /** @type {!jspb.Map} */ (
+ jspb.Message.getMapField(this, 10, opt_noLazyCreate,
+ null));
+};
+
+
+proto.google.api.QuotaLimit.prototype.clearValuesMap = function() {
+ this.getValuesMap().clear();
+};
+
+
+/**
+ * optional string display_name = 12;
+ * @return {string}
+ */
+proto.google.api.QuotaLimit.prototype.getDisplayName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.QuotaLimit.prototype.setDisplayName = function(value) {
+ jspb.Message.setField(this, 12, value);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/service_pb.js b/build/lib/googleapis/google/api/service_pb.js
new file mode 100644
index 0000000..00bb748
--- /dev/null
+++ b/build/lib/googleapis/google/api/service_pb.js
@@ -0,0 +1,1216 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
+var google_api_auth_pb = require('../../google/api/auth_pb.js');
+var google_api_backend_pb = require('../../google/api/backend_pb.js');
+var google_api_context_pb = require('../../google/api/context_pb.js');
+var google_api_control_pb = require('../../google/api/control_pb.js');
+var google_api_documentation_pb = require('../../google/api/documentation_pb.js');
+var google_api_endpoint_pb = require('../../google/api/endpoint_pb.js');
+var google_api_experimental_experimental_pb = require('../../google/api/experimental/experimental_pb.js');
+var google_api_http_pb = require('../../google/api/http_pb.js');
+var google_api_label_pb = require('../../google/api/label_pb.js');
+var google_api_log_pb = require('../../google/api/log_pb.js');
+var google_api_logging_pb = require('../../google/api/logging_pb.js');
+var google_api_metric_pb = require('../../google/api/metric_pb.js');
+var google_api_monitored_resource_pb = require('../../google/api/monitored_resource_pb.js');
+var google_api_monitoring_pb = require('../../google/api/monitoring_pb.js');
+var google_api_quota_pb = require('../../google/api/quota_pb.js');
+var google_api_source_info_pb = require('../../google/api/source_info_pb.js');
+var google_api_system_parameter_pb = require('../../google/api/system_parameter_pb.js');
+var google_api_usage_pb = require('../../google/api/usage_pb.js');
+var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
+var google_protobuf_api_pb = require('google-protobuf/google/protobuf/api_pb.js');
+var google_protobuf_type_pb = require('google-protobuf/google/protobuf/type_pb.js');
+var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
+goog.exportSymbol('proto.google.api.Service', null, global);
+
+/**
+ * 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.google.api.Service = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Service.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Service, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Service.displayName = 'proto.google.api.Service';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Service.repeatedFields_ = [3,4,5,18,23,24,25];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Service.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Service.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Service} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Service.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ configVersion: (f = msg.getConfigVersion()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f),
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ id: jspb.Message.getFieldWithDefault(msg, 33, ""),
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ producerProjectId: jspb.Message.getFieldWithDefault(msg, 22, ""),
+ apisList: jspb.Message.toObjectList(msg.getApisList(),
+ google_protobuf_api_pb.Api.toObject, includeInstance),
+ typesList: jspb.Message.toObjectList(msg.getTypesList(),
+ google_protobuf_type_pb.Type.toObject, includeInstance),
+ enumsList: jspb.Message.toObjectList(msg.getEnumsList(),
+ google_protobuf_type_pb.Enum.toObject, includeInstance),
+ documentation: (f = msg.getDocumentation()) && google_api_documentation_pb.Documentation.toObject(includeInstance, f),
+ backend: (f = msg.getBackend()) && google_api_backend_pb.Backend.toObject(includeInstance, f),
+ http: (f = msg.getHttp()) && google_api_http_pb.Http.toObject(includeInstance, f),
+ quota: (f = msg.getQuota()) && google_api_quota_pb.Quota.toObject(includeInstance, f),
+ authentication: (f = msg.getAuthentication()) && google_api_auth_pb.Authentication.toObject(includeInstance, f),
+ context: (f = msg.getContext()) && google_api_context_pb.Context.toObject(includeInstance, f),
+ usage: (f = msg.getUsage()) && google_api_usage_pb.Usage.toObject(includeInstance, f),
+ endpointsList: jspb.Message.toObjectList(msg.getEndpointsList(),
+ google_api_endpoint_pb.Endpoint.toObject, includeInstance),
+ control: (f = msg.getControl()) && google_api_control_pb.Control.toObject(includeInstance, f),
+ logsList: jspb.Message.toObjectList(msg.getLogsList(),
+ google_api_log_pb.LogDescriptor.toObject, includeInstance),
+ metricsList: jspb.Message.toObjectList(msg.getMetricsList(),
+ google_api_metric_pb.MetricDescriptor.toObject, includeInstance),
+ monitoredResourcesList: jspb.Message.toObjectList(msg.getMonitoredResourcesList(),
+ google_api_monitored_resource_pb.MonitoredResourceDescriptor.toObject, includeInstance),
+ logging: (f = msg.getLogging()) && google_api_logging_pb.Logging.toObject(includeInstance, f),
+ monitoring: (f = msg.getMonitoring()) && google_api_monitoring_pb.Monitoring.toObject(includeInstance, f),
+ systemParameters: (f = msg.getSystemParameters()) && google_api_system_parameter_pb.SystemParameters.toObject(includeInstance, f),
+ sourceInfo: (f = msg.getSourceInfo()) && google_api_source_info_pb.SourceInfo.toObject(includeInstance, f),
+ experimental: (f = msg.getExperimental()) && google_api_experimental_experimental_pb.Experimental.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.google.api.Service}
+ */
+proto.google.api.Service.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Service;
+ return proto.google.api.Service.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Service} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Service}
+ */
+proto.google.api.Service.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 20:
+ var value = new google_protobuf_wrappers_pb.UInt32Value;
+ reader.readMessage(value,google_protobuf_wrappers_pb.UInt32Value.deserializeBinaryFromReader);
+ msg.setConfigVersion(value);
+ break;
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setName(value);
+ break;
+ case 33:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setId(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setTitle(value);
+ break;
+ case 22:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setProducerProjectId(value);
+ break;
+ case 3:
+ var value = new google_protobuf_api_pb.Api;
+ reader.readMessage(value,google_protobuf_api_pb.Api.deserializeBinaryFromReader);
+ msg.addApis(value);
+ break;
+ case 4:
+ var value = new google_protobuf_type_pb.Type;
+ reader.readMessage(value,google_protobuf_type_pb.Type.deserializeBinaryFromReader);
+ msg.addTypes(value);
+ break;
+ case 5:
+ var value = new google_protobuf_type_pb.Enum;
+ reader.readMessage(value,google_protobuf_type_pb.Enum.deserializeBinaryFromReader);
+ msg.addEnums(value);
+ break;
+ case 6:
+ var value = new google_api_documentation_pb.Documentation;
+ reader.readMessage(value,google_api_documentation_pb.Documentation.deserializeBinaryFromReader);
+ msg.setDocumentation(value);
+ break;
+ case 8:
+ var value = new google_api_backend_pb.Backend;
+ reader.readMessage(value,google_api_backend_pb.Backend.deserializeBinaryFromReader);
+ msg.setBackend(value);
+ break;
+ case 9:
+ var value = new google_api_http_pb.Http;
+ reader.readMessage(value,google_api_http_pb.Http.deserializeBinaryFromReader);
+ msg.setHttp(value);
+ break;
+ case 10:
+ var value = new google_api_quota_pb.Quota;
+ reader.readMessage(value,google_api_quota_pb.Quota.deserializeBinaryFromReader);
+ msg.setQuota(value);
+ break;
+ case 11:
+ var value = new google_api_auth_pb.Authentication;
+ reader.readMessage(value,google_api_auth_pb.Authentication.deserializeBinaryFromReader);
+ msg.setAuthentication(value);
+ break;
+ case 12:
+ var value = new google_api_context_pb.Context;
+ reader.readMessage(value,google_api_context_pb.Context.deserializeBinaryFromReader);
+ msg.setContext(value);
+ break;
+ case 15:
+ var value = new google_api_usage_pb.Usage;
+ reader.readMessage(value,google_api_usage_pb.Usage.deserializeBinaryFromReader);
+ msg.setUsage(value);
+ break;
+ case 18:
+ var value = new google_api_endpoint_pb.Endpoint;
+ reader.readMessage(value,google_api_endpoint_pb.Endpoint.deserializeBinaryFromReader);
+ msg.addEndpoints(value);
+ break;
+ case 21:
+ var value = new google_api_control_pb.Control;
+ reader.readMessage(value,google_api_control_pb.Control.deserializeBinaryFromReader);
+ msg.setControl(value);
+ break;
+ case 23:
+ var value = new google_api_log_pb.LogDescriptor;
+ reader.readMessage(value,google_api_log_pb.LogDescriptor.deserializeBinaryFromReader);
+ msg.addLogs(value);
+ break;
+ case 24:
+ var value = new google_api_metric_pb.MetricDescriptor;
+ reader.readMessage(value,google_api_metric_pb.MetricDescriptor.deserializeBinaryFromReader);
+ msg.addMetrics(value);
+ break;
+ case 25:
+ var value = new google_api_monitored_resource_pb.MonitoredResourceDescriptor;
+ reader.readMessage(value,google_api_monitored_resource_pb.MonitoredResourceDescriptor.deserializeBinaryFromReader);
+ msg.addMonitoredResources(value);
+ break;
+ case 27:
+ var value = new google_api_logging_pb.Logging;
+ reader.readMessage(value,google_api_logging_pb.Logging.deserializeBinaryFromReader);
+ msg.setLogging(value);
+ break;
+ case 28:
+ var value = new google_api_monitoring_pb.Monitoring;
+ reader.readMessage(value,google_api_monitoring_pb.Monitoring.deserializeBinaryFromReader);
+ msg.setMonitoring(value);
+ break;
+ case 29:
+ var value = new google_api_system_parameter_pb.SystemParameters;
+ reader.readMessage(value,google_api_system_parameter_pb.SystemParameters.deserializeBinaryFromReader);
+ msg.setSystemParameters(value);
+ break;
+ case 37:
+ var value = new google_api_source_info_pb.SourceInfo;
+ reader.readMessage(value,google_api_source_info_pb.SourceInfo.deserializeBinaryFromReader);
+ msg.setSourceInfo(value);
+ break;
+ case 101:
+ var value = new google_api_experimental_experimental_pb.Experimental;
+ reader.readMessage(value,google_api_experimental_experimental_pb.Experimental.deserializeBinaryFromReader);
+ msg.setExperimental(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Service.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Service.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Service} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Service.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getConfigVersion();
+ if (f != null) {
+ writer.writeMessage(
+ 20,
+ f,
+ google_protobuf_wrappers_pb.UInt32Value.serializeBinaryToWriter
+ );
+ }
+ f = message.getName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getId();
+ if (f.length > 0) {
+ writer.writeString(
+ 33,
+ f
+ );
+ }
+ f = message.getTitle();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getProducerProjectId();
+ if (f.length > 0) {
+ writer.writeString(
+ 22,
+ f
+ );
+ }
+ f = message.getApisList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 3,
+ f,
+ google_protobuf_api_pb.Api.serializeBinaryToWriter
+ );
+ }
+ f = message.getTypesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 4,
+ f,
+ google_protobuf_type_pb.Type.serializeBinaryToWriter
+ );
+ }
+ f = message.getEnumsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 5,
+ f,
+ google_protobuf_type_pb.Enum.serializeBinaryToWriter
+ );
+ }
+ f = message.getDocumentation();
+ if (f != null) {
+ writer.writeMessage(
+ 6,
+ f,
+ google_api_documentation_pb.Documentation.serializeBinaryToWriter
+ );
+ }
+ f = message.getBackend();
+ if (f != null) {
+ writer.writeMessage(
+ 8,
+ f,
+ google_api_backend_pb.Backend.serializeBinaryToWriter
+ );
+ }
+ f = message.getHttp();
+ if (f != null) {
+ writer.writeMessage(
+ 9,
+ f,
+ google_api_http_pb.Http.serializeBinaryToWriter
+ );
+ }
+ f = message.getQuota();
+ if (f != null) {
+ writer.writeMessage(
+ 10,
+ f,
+ google_api_quota_pb.Quota.serializeBinaryToWriter
+ );
+ }
+ f = message.getAuthentication();
+ if (f != null) {
+ writer.writeMessage(
+ 11,
+ f,
+ google_api_auth_pb.Authentication.serializeBinaryToWriter
+ );
+ }
+ f = message.getContext();
+ if (f != null) {
+ writer.writeMessage(
+ 12,
+ f,
+ google_api_context_pb.Context.serializeBinaryToWriter
+ );
+ }
+ f = message.getUsage();
+ if (f != null) {
+ writer.writeMessage(
+ 15,
+ f,
+ google_api_usage_pb.Usage.serializeBinaryToWriter
+ );
+ }
+ f = message.getEndpointsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 18,
+ f,
+ google_api_endpoint_pb.Endpoint.serializeBinaryToWriter
+ );
+ }
+ f = message.getControl();
+ if (f != null) {
+ writer.writeMessage(
+ 21,
+ f,
+ google_api_control_pb.Control.serializeBinaryToWriter
+ );
+ }
+ f = message.getLogsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 23,
+ f,
+ google_api_log_pb.LogDescriptor.serializeBinaryToWriter
+ );
+ }
+ f = message.getMetricsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 24,
+ f,
+ google_api_metric_pb.MetricDescriptor.serializeBinaryToWriter
+ );
+ }
+ f = message.getMonitoredResourcesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 25,
+ f,
+ google_api_monitored_resource_pb.MonitoredResourceDescriptor.serializeBinaryToWriter
+ );
+ }
+ f = message.getLogging();
+ if (f != null) {
+ writer.writeMessage(
+ 27,
+ f,
+ google_api_logging_pb.Logging.serializeBinaryToWriter
+ );
+ }
+ f = message.getMonitoring();
+ if (f != null) {
+ writer.writeMessage(
+ 28,
+ f,
+ google_api_monitoring_pb.Monitoring.serializeBinaryToWriter
+ );
+ }
+ f = message.getSystemParameters();
+ if (f != null) {
+ writer.writeMessage(
+ 29,
+ f,
+ google_api_system_parameter_pb.SystemParameters.serializeBinaryToWriter
+ );
+ }
+ f = message.getSourceInfo();
+ if (f != null) {
+ writer.writeMessage(
+ 37,
+ f,
+ google_api_source_info_pb.SourceInfo.serializeBinaryToWriter
+ );
+ }
+ f = message.getExperimental();
+ if (f != null) {
+ writer.writeMessage(
+ 101,
+ f,
+ google_api_experimental_experimental_pb.Experimental.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional google.protobuf.UInt32Value config_version = 20;
+ * @return {?proto.google.protobuf.UInt32Value}
+ */
+proto.google.api.Service.prototype.getConfigVersion = function() {
+ return /** @type{?proto.google.protobuf.UInt32Value} */ (
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt32Value, 20));
+};
+
+
+/** @param {?proto.google.protobuf.UInt32Value|undefined} value */
+proto.google.api.Service.prototype.setConfigVersion = function(value) {
+ jspb.Message.setWrapperField(this, 20, value);
+};
+
+
+proto.google.api.Service.prototype.clearConfigVersion = function() {
+ this.setConfigVersion(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasConfigVersion = function() {
+ return jspb.Message.getField(this, 20) != null;
+};
+
+
+/**
+ * optional string name = 1;
+ * @return {string}
+ */
+proto.google.api.Service.prototype.getName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Service.prototype.setName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string id = 33;
+ * @return {string}
+ */
+proto.google.api.Service.prototype.getId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 33, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Service.prototype.setId = function(value) {
+ jspb.Message.setField(this, 33, value);
+};
+
+
+/**
+ * optional string title = 2;
+ * @return {string}
+ */
+proto.google.api.Service.prototype.getTitle = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Service.prototype.setTitle = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional string producer_project_id = 22;
+ * @return {string}
+ */
+proto.google.api.Service.prototype.getProducerProjectId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Service.prototype.setProducerProjectId = function(value) {
+ jspb.Message.setField(this, 22, value);
+};
+
+
+/**
+ * repeated google.protobuf.Api apis = 3;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Service.prototype.getApisList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_protobuf_api_pb.Api, 3));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Service.prototype.setApisList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 3, value);
+};
+
+
+/**
+ * @param {!proto.google.protobuf.Api=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.protobuf.Api}
+ */
+proto.google.api.Service.prototype.addApis = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Api, opt_index);
+};
+
+
+proto.google.api.Service.prototype.clearApisList = function() {
+ this.setApisList([]);
+};
+
+
+/**
+ * repeated google.protobuf.Type types = 4;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Service.prototype.getTypesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_protobuf_type_pb.Type, 4));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Service.prototype.setTypesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 4, value);
+};
+
+
+/**
+ * @param {!proto.google.protobuf.Type=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.protobuf.Type}
+ */
+proto.google.api.Service.prototype.addTypes = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.Type, opt_index);
+};
+
+
+proto.google.api.Service.prototype.clearTypesList = function() {
+ this.setTypesList([]);
+};
+
+
+/**
+ * repeated google.protobuf.Enum enums = 5;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Service.prototype.getEnumsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_protobuf_type_pb.Enum, 5));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Service.prototype.setEnumsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 5, value);
+};
+
+
+/**
+ * @param {!proto.google.protobuf.Enum=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.protobuf.Enum}
+ */
+proto.google.api.Service.prototype.addEnums = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.protobuf.Enum, opt_index);
+};
+
+
+proto.google.api.Service.prototype.clearEnumsList = function() {
+ this.setEnumsList([]);
+};
+
+
+/**
+ * optional Documentation documentation = 6;
+ * @return {?proto.google.api.Documentation}
+ */
+proto.google.api.Service.prototype.getDocumentation = function() {
+ return /** @type{?proto.google.api.Documentation} */ (
+ jspb.Message.getWrapperField(this, google_api_documentation_pb.Documentation, 6));
+};
+
+
+/** @param {?proto.google.api.Documentation|undefined} value */
+proto.google.api.Service.prototype.setDocumentation = function(value) {
+ jspb.Message.setWrapperField(this, 6, value);
+};
+
+
+proto.google.api.Service.prototype.clearDocumentation = function() {
+ this.setDocumentation(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasDocumentation = function() {
+ return jspb.Message.getField(this, 6) != null;
+};
+
+
+/**
+ * optional Backend backend = 8;
+ * @return {?proto.google.api.Backend}
+ */
+proto.google.api.Service.prototype.getBackend = function() {
+ return /** @type{?proto.google.api.Backend} */ (
+ jspb.Message.getWrapperField(this, google_api_backend_pb.Backend, 8));
+};
+
+
+/** @param {?proto.google.api.Backend|undefined} value */
+proto.google.api.Service.prototype.setBackend = function(value) {
+ jspb.Message.setWrapperField(this, 8, value);
+};
+
+
+proto.google.api.Service.prototype.clearBackend = function() {
+ this.setBackend(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasBackend = function() {
+ return jspb.Message.getField(this, 8) != null;
+};
+
+
+/**
+ * optional Http http = 9;
+ * @return {?proto.google.api.Http}
+ */
+proto.google.api.Service.prototype.getHttp = function() {
+ return /** @type{?proto.google.api.Http} */ (
+ jspb.Message.getWrapperField(this, google_api_http_pb.Http, 9));
+};
+
+
+/** @param {?proto.google.api.Http|undefined} value */
+proto.google.api.Service.prototype.setHttp = function(value) {
+ jspb.Message.setWrapperField(this, 9, value);
+};
+
+
+proto.google.api.Service.prototype.clearHttp = function() {
+ this.setHttp(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasHttp = function() {
+ return jspb.Message.getField(this, 9) != null;
+};
+
+
+/**
+ * optional Quota quota = 10;
+ * @return {?proto.google.api.Quota}
+ */
+proto.google.api.Service.prototype.getQuota = function() {
+ return /** @type{?proto.google.api.Quota} */ (
+ jspb.Message.getWrapperField(this, google_api_quota_pb.Quota, 10));
+};
+
+
+/** @param {?proto.google.api.Quota|undefined} value */
+proto.google.api.Service.prototype.setQuota = function(value) {
+ jspb.Message.setWrapperField(this, 10, value);
+};
+
+
+proto.google.api.Service.prototype.clearQuota = function() {
+ this.setQuota(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasQuota = function() {
+ return jspb.Message.getField(this, 10) != null;
+};
+
+
+/**
+ * optional Authentication authentication = 11;
+ * @return {?proto.google.api.Authentication}
+ */
+proto.google.api.Service.prototype.getAuthentication = function() {
+ return /** @type{?proto.google.api.Authentication} */ (
+ jspb.Message.getWrapperField(this, google_api_auth_pb.Authentication, 11));
+};
+
+
+/** @param {?proto.google.api.Authentication|undefined} value */
+proto.google.api.Service.prototype.setAuthentication = function(value) {
+ jspb.Message.setWrapperField(this, 11, value);
+};
+
+
+proto.google.api.Service.prototype.clearAuthentication = function() {
+ this.setAuthentication(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasAuthentication = function() {
+ return jspb.Message.getField(this, 11) != null;
+};
+
+
+/**
+ * optional Context context = 12;
+ * @return {?proto.google.api.Context}
+ */
+proto.google.api.Service.prototype.getContext = function() {
+ return /** @type{?proto.google.api.Context} */ (
+ jspb.Message.getWrapperField(this, google_api_context_pb.Context, 12));
+};
+
+
+/** @param {?proto.google.api.Context|undefined} value */
+proto.google.api.Service.prototype.setContext = function(value) {
+ jspb.Message.setWrapperField(this, 12, value);
+};
+
+
+proto.google.api.Service.prototype.clearContext = function() {
+ this.setContext(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasContext = function() {
+ return jspb.Message.getField(this, 12) != null;
+};
+
+
+/**
+ * optional Usage usage = 15;
+ * @return {?proto.google.api.Usage}
+ */
+proto.google.api.Service.prototype.getUsage = function() {
+ return /** @type{?proto.google.api.Usage} */ (
+ jspb.Message.getWrapperField(this, google_api_usage_pb.Usage, 15));
+};
+
+
+/** @param {?proto.google.api.Usage|undefined} value */
+proto.google.api.Service.prototype.setUsage = function(value) {
+ jspb.Message.setWrapperField(this, 15, value);
+};
+
+
+proto.google.api.Service.prototype.clearUsage = function() {
+ this.setUsage(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasUsage = function() {
+ return jspb.Message.getField(this, 15) != null;
+};
+
+
+/**
+ * repeated Endpoint endpoints = 18;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Service.prototype.getEndpointsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_endpoint_pb.Endpoint, 18));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Service.prototype.setEndpointsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 18, value);
+};
+
+
+/**
+ * @param {!proto.google.api.Endpoint=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.Endpoint}
+ */
+proto.google.api.Service.prototype.addEndpoints = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.google.api.Endpoint, opt_index);
+};
+
+
+proto.google.api.Service.prototype.clearEndpointsList = function() {
+ this.setEndpointsList([]);
+};
+
+
+/**
+ * optional Control control = 21;
+ * @return {?proto.google.api.Control}
+ */
+proto.google.api.Service.prototype.getControl = function() {
+ return /** @type{?proto.google.api.Control} */ (
+ jspb.Message.getWrapperField(this, google_api_control_pb.Control, 21));
+};
+
+
+/** @param {?proto.google.api.Control|undefined} value */
+proto.google.api.Service.prototype.setControl = function(value) {
+ jspb.Message.setWrapperField(this, 21, value);
+};
+
+
+proto.google.api.Service.prototype.clearControl = function() {
+ this.setControl(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasControl = function() {
+ return jspb.Message.getField(this, 21) != null;
+};
+
+
+/**
+ * repeated LogDescriptor logs = 23;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Service.prototype.getLogsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_log_pb.LogDescriptor, 23));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Service.prototype.setLogsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 23, value);
+};
+
+
+/**
+ * @param {!proto.google.api.LogDescriptor=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.LogDescriptor}
+ */
+proto.google.api.Service.prototype.addLogs = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 23, opt_value, proto.google.api.LogDescriptor, opt_index);
+};
+
+
+proto.google.api.Service.prototype.clearLogsList = function() {
+ this.setLogsList([]);
+};
+
+
+/**
+ * repeated MetricDescriptor metrics = 24;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Service.prototype.getMetricsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_metric_pb.MetricDescriptor, 24));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Service.prototype.setMetricsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 24, value);
+};
+
+
+/**
+ * @param {!proto.google.api.MetricDescriptor=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.MetricDescriptor}
+ */
+proto.google.api.Service.prototype.addMetrics = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 24, opt_value, proto.google.api.MetricDescriptor, opt_index);
+};
+
+
+proto.google.api.Service.prototype.clearMetricsList = function() {
+ this.setMetricsList([]);
+};
+
+
+/**
+ * repeated MonitoredResourceDescriptor monitored_resources = 25;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Service.prototype.getMonitoredResourcesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_monitored_resource_pb.MonitoredResourceDescriptor, 25));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Service.prototype.setMonitoredResourcesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 25, value);
+};
+
+
+/**
+ * @param {!proto.google.api.MonitoredResourceDescriptor=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.MonitoredResourceDescriptor}
+ */
+proto.google.api.Service.prototype.addMonitoredResources = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 25, opt_value, proto.google.api.MonitoredResourceDescriptor, opt_index);
+};
+
+
+proto.google.api.Service.prototype.clearMonitoredResourcesList = function() {
+ this.setMonitoredResourcesList([]);
+};
+
+
+/**
+ * optional Logging logging = 27;
+ * @return {?proto.google.api.Logging}
+ */
+proto.google.api.Service.prototype.getLogging = function() {
+ return /** @type{?proto.google.api.Logging} */ (
+ jspb.Message.getWrapperField(this, google_api_logging_pb.Logging, 27));
+};
+
+
+/** @param {?proto.google.api.Logging|undefined} value */
+proto.google.api.Service.prototype.setLogging = function(value) {
+ jspb.Message.setWrapperField(this, 27, value);
+};
+
+
+proto.google.api.Service.prototype.clearLogging = function() {
+ this.setLogging(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasLogging = function() {
+ return jspb.Message.getField(this, 27) != null;
+};
+
+
+/**
+ * optional Monitoring monitoring = 28;
+ * @return {?proto.google.api.Monitoring}
+ */
+proto.google.api.Service.prototype.getMonitoring = function() {
+ return /** @type{?proto.google.api.Monitoring} */ (
+ jspb.Message.getWrapperField(this, google_api_monitoring_pb.Monitoring, 28));
+};
+
+
+/** @param {?proto.google.api.Monitoring|undefined} value */
+proto.google.api.Service.prototype.setMonitoring = function(value) {
+ jspb.Message.setWrapperField(this, 28, value);
+};
+
+
+proto.google.api.Service.prototype.clearMonitoring = function() {
+ this.setMonitoring(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasMonitoring = function() {
+ return jspb.Message.getField(this, 28) != null;
+};
+
+
+/**
+ * optional SystemParameters system_parameters = 29;
+ * @return {?proto.google.api.SystemParameters}
+ */
+proto.google.api.Service.prototype.getSystemParameters = function() {
+ return /** @type{?proto.google.api.SystemParameters} */ (
+ jspb.Message.getWrapperField(this, google_api_system_parameter_pb.SystemParameters, 29));
+};
+
+
+/** @param {?proto.google.api.SystemParameters|undefined} value */
+proto.google.api.Service.prototype.setSystemParameters = function(value) {
+ jspb.Message.setWrapperField(this, 29, value);
+};
+
+
+proto.google.api.Service.prototype.clearSystemParameters = function() {
+ this.setSystemParameters(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasSystemParameters = function() {
+ return jspb.Message.getField(this, 29) != null;
+};
+
+
+/**
+ * optional SourceInfo source_info = 37;
+ * @return {?proto.google.api.SourceInfo}
+ */
+proto.google.api.Service.prototype.getSourceInfo = function() {
+ return /** @type{?proto.google.api.SourceInfo} */ (
+ jspb.Message.getWrapperField(this, google_api_source_info_pb.SourceInfo, 37));
+};
+
+
+/** @param {?proto.google.api.SourceInfo|undefined} value */
+proto.google.api.Service.prototype.setSourceInfo = function(value) {
+ jspb.Message.setWrapperField(this, 37, value);
+};
+
+
+proto.google.api.Service.prototype.clearSourceInfo = function() {
+ this.setSourceInfo(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasSourceInfo = function() {
+ return jspb.Message.getField(this, 37) != null;
+};
+
+
+/**
+ * optional Experimental experimental = 101;
+ * @return {?proto.google.api.Experimental}
+ */
+proto.google.api.Service.prototype.getExperimental = function() {
+ return /** @type{?proto.google.api.Experimental} */ (
+ jspb.Message.getWrapperField(this, google_api_experimental_experimental_pb.Experimental, 101));
+};
+
+
+/** @param {?proto.google.api.Experimental|undefined} value */
+proto.google.api.Service.prototype.setExperimental = function(value) {
+ jspb.Message.setWrapperField(this, 101, value);
+};
+
+
+proto.google.api.Service.prototype.clearExperimental = function() {
+ this.setExperimental(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.Service.prototype.hasExperimental = function() {
+ return jspb.Message.getField(this, 101) != null;
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/servicecontrol/v1/check_error_pb.js b/build/lib/googleapis/google/api/servicecontrol/v1/check_error_pb.js
new file mode 100644
index 0000000..f8fa5df
--- /dev/null
+++ b/build/lib/googleapis/google/api/servicecontrol/v1/check_error_pb.js
@@ -0,0 +1,205 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');
+goog.exportSymbol('proto.google.api.servicecontrol.v1.CheckError', null, global);
+goog.exportSymbol('proto.google.api.servicecontrol.v1.CheckError.Code', null, global);
+
+/**
+ * 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.google.api.servicecontrol.v1.CheckError = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.CheckError, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.CheckError.displayName = 'proto.google.api.servicecontrol.v1.CheckError';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.CheckError.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.CheckError.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.CheckError} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.CheckError.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ code: jspb.Message.getFieldWithDefault(msg, 1, 0),
+ detail: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicecontrol.v1.CheckError}
+ */
+proto.google.api.servicecontrol.v1.CheckError.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.CheckError;
+ return proto.google.api.servicecontrol.v1.CheckError.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.CheckError} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.CheckError}
+ */
+proto.google.api.servicecontrol.v1.CheckError.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {!proto.google.api.servicecontrol.v1.CheckError.Code} */ (reader.readEnum());
+ msg.setCode(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDetail(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.CheckError.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.CheckError.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.CheckError} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.CheckError.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getCode();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 1,
+ f
+ );
+ }
+ f = message.getDetail();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.api.servicecontrol.v1.CheckError.Code = {
+ ERROR_CODE_UNSPECIFIED: 0,
+ NOT_FOUND: 5,
+ PERMISSION_DENIED: 7,
+ RESOURCE_EXHAUSTED: 8,
+ SERVICE_NOT_ACTIVATED: 104,
+ BILLING_DISABLED: 107,
+ PROJECT_DELETED: 108,
+ PROJECT_INVALID: 114,
+ IP_ADDRESS_BLOCKED: 109,
+ REFERER_BLOCKED: 110,
+ CLIENT_APP_BLOCKED: 111,
+ API_KEY_INVALID: 105,
+ API_KEY_EXPIRED: 112,
+ API_KEY_NOT_FOUND: 113,
+ NAMESPACE_LOOKUP_UNAVAILABLE: 300,
+ SERVICE_STATUS_UNAVAILABLE: 301,
+ BILLING_STATUS_UNAVAILABLE: 302
+};
+
+/**
+ * optional Code code = 1;
+ * @return {!proto.google.api.servicecontrol.v1.CheckError.Code}
+ */
+proto.google.api.servicecontrol.v1.CheckError.prototype.getCode = function() {
+ return /** @type {!proto.google.api.servicecontrol.v1.CheckError.Code} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
+};
+
+
+/** @param {!proto.google.api.servicecontrol.v1.CheckError.Code} value */
+proto.google.api.servicecontrol.v1.CheckError.prototype.setCode = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string detail = 2;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.CheckError.prototype.getDetail = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.CheckError.prototype.setDetail = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+goog.object.extend(exports, proto.google.api.servicecontrol.v1);
diff --git a/build/lib/googleapis/google/api/servicecontrol/v1/distribution_pb.js b/build/lib/googleapis/google/api/servicecontrol/v1/distribution_pb.js
new file mode 100644
index 0000000..268de15
--- /dev/null
+++ b/build/lib/googleapis/google/api/servicecontrol/v1/distribution_pb.js
@@ -0,0 +1,1024 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+goog.exportSymbol('proto.google.api.servicecontrol.v1.Distribution', null, global);
+goog.exportSymbol('proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets', null, global);
+goog.exportSymbol('proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets', null, global);
+goog.exportSymbol('proto.google.api.servicecontrol.v1.Distribution.LinearBuckets', null, global);
+
+/**
+ * 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.google.api.servicecontrol.v1.Distribution = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicecontrol.v1.Distribution.repeatedFields_, proto.google.api.servicecontrol.v1.Distribution.oneofGroups_);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.Distribution, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.Distribution.displayName = 'proto.google.api.servicecontrol.v1.Distribution';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicecontrol.v1.Distribution.repeatedFields_ = [6];
+
+/**
+ * Oneof group definitions for this message. Each group defines the field
+ * numbers belonging to that group. When of these fields' value is set, all
+ * other fields in the group are cleared. During deserialization, if multiple
+ * fields are encountered for a group, only the last value seen will be kept.
+ * @private {!Array>}
+ * @const
+ */
+proto.google.api.servicecontrol.v1.Distribution.oneofGroups_ = [[7,8,9]];
+
+/**
+ * @enum {number}
+ */
+proto.google.api.servicecontrol.v1.Distribution.BucketOptionCase = {
+ BUCKET_OPTION_NOT_SET: 0,
+ LINEAR_BUCKETS: 7,
+ EXPONENTIAL_BUCKETS: 8,
+ EXPLICIT_BUCKETS: 9
+};
+
+/**
+ * @return {proto.google.api.servicecontrol.v1.Distribution.BucketOptionCase}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.getBucketOptionCase = function() {
+ return /** @type {proto.google.api.servicecontrol.v1.Distribution.BucketOptionCase} */(jspb.Message.computeOneofCase(this, proto.google.api.servicecontrol.v1.Distribution.oneofGroups_[0]));
+};
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.Distribution.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.Distribution} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.Distribution.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ count: jspb.Message.getFieldWithDefault(msg, 1, 0),
+ mean: +jspb.Message.getFieldWithDefault(msg, 2, 0.0),
+ minimum: +jspb.Message.getFieldWithDefault(msg, 3, 0.0),
+ maximum: +jspb.Message.getFieldWithDefault(msg, 4, 0.0),
+ sumOfSquaredDeviation: +jspb.Message.getFieldWithDefault(msg, 5, 0.0),
+ bucketCountsList: jspb.Message.getField(msg, 6),
+ linearBuckets: (f = msg.getLinearBuckets()) && proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.toObject(includeInstance, f),
+ exponentialBuckets: (f = msg.getExponentialBuckets()) && proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.toObject(includeInstance, f),
+ explicitBuckets: (f = msg.getExplicitBuckets()) && proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.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.google.api.servicecontrol.v1.Distribution}
+ */
+proto.google.api.servicecontrol.v1.Distribution.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.Distribution;
+ return proto.google.api.servicecontrol.v1.Distribution.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.Distribution} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.Distribution}
+ */
+proto.google.api.servicecontrol.v1.Distribution.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {number} */ (reader.readInt64());
+ msg.setCount(value);
+ break;
+ case 2:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setMean(value);
+ break;
+ case 3:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setMinimum(value);
+ break;
+ case 4:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setMaximum(value);
+ break;
+ case 5:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setSumOfSquaredDeviation(value);
+ break;
+ case 6:
+ var value = /** @type {!Array.} */ (reader.readPackedInt64());
+ msg.setBucketCountsList(value);
+ break;
+ case 7:
+ var value = new proto.google.api.servicecontrol.v1.Distribution.LinearBuckets;
+ reader.readMessage(value,proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.deserializeBinaryFromReader);
+ msg.setLinearBuckets(value);
+ break;
+ case 8:
+ var value = new proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets;
+ reader.readMessage(value,proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.deserializeBinaryFromReader);
+ msg.setExponentialBuckets(value);
+ break;
+ case 9:
+ var value = new proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets;
+ reader.readMessage(value,proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.deserializeBinaryFromReader);
+ msg.setExplicitBuckets(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.Distribution.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.Distribution} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.Distribution.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getCount();
+ if (f !== 0) {
+ writer.writeInt64(
+ 1,
+ f
+ );
+ }
+ f = message.getMean();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 2,
+ f
+ );
+ }
+ f = message.getMinimum();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 3,
+ f
+ );
+ }
+ f = message.getMaximum();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 4,
+ f
+ );
+ }
+ f = message.getSumOfSquaredDeviation();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 5,
+ f
+ );
+ }
+ f = message.getBucketCountsList();
+ if (f.length > 0) {
+ writer.writePackedInt64(
+ 6,
+ f
+ );
+ }
+ f = message.getLinearBuckets();
+ if (f != null) {
+ writer.writeMessage(
+ 7,
+ f,
+ proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.serializeBinaryToWriter
+ );
+ }
+ f = message.getExponentialBuckets();
+ if (f != null) {
+ writer.writeMessage(
+ 8,
+ f,
+ proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.serializeBinaryToWriter
+ );
+ }
+ f = message.getExplicitBuckets();
+ if (f != null) {
+ writer.writeMessage(
+ 9,
+ f,
+ proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.serializeBinaryToWriter
+ );
+ }
+};
+
+
+
+/**
+ * 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.google.api.servicecontrol.v1.Distribution.LinearBuckets = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.Distribution.LinearBuckets, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.displayName = 'proto.google.api.servicecontrol.v1.Distribution.LinearBuckets';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.Distribution.LinearBuckets} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ numFiniteBuckets: jspb.Message.getFieldWithDefault(msg, 1, 0),
+ width: +jspb.Message.getFieldWithDefault(msg, 2, 0.0),
+ offset: +jspb.Message.getFieldWithDefault(msg, 3, 0.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.google.api.servicecontrol.v1.Distribution.LinearBuckets}
+ */
+proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.Distribution.LinearBuckets;
+ return proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.Distribution.LinearBuckets} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.Distribution.LinearBuckets}
+ */
+proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.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.setNumFiniteBuckets(value);
+ break;
+ case 2:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setWidth(value);
+ break;
+ case 3:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setOffset(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.Distribution.LinearBuckets} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getNumFiniteBuckets();
+ if (f !== 0) {
+ writer.writeInt32(
+ 1,
+ f
+ );
+ }
+ f = message.getWidth();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 2,
+ f
+ );
+ }
+ f = message.getOffset();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional int32 num_finite_buckets = 1;
+ * @return {number}
+ */
+proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.prototype.getNumFiniteBuckets = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.prototype.setNumFiniteBuckets = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional double width = 2;
+ * @return {number}
+ */
+proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.prototype.getWidth = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.prototype.setWidth = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional double offset = 3;
+ * @return {number}
+ */
+proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.prototype.getOffset = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 3, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicecontrol.v1.Distribution.LinearBuckets.prototype.setOffset = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+
+/**
+ * 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.google.api.servicecontrol.v1.Distribution.ExponentialBuckets = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.displayName = 'proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ numFiniteBuckets: jspb.Message.getFieldWithDefault(msg, 1, 0),
+ growthFactor: +jspb.Message.getFieldWithDefault(msg, 2, 0.0),
+ scale: +jspb.Message.getFieldWithDefault(msg, 3, 0.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.google.api.servicecontrol.v1.Distribution.ExponentialBuckets}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets;
+ return proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.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.setNumFiniteBuckets(value);
+ break;
+ case 2:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setGrowthFactor(value);
+ break;
+ case 3:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setScale(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getNumFiniteBuckets();
+ if (f !== 0) {
+ writer.writeInt32(
+ 1,
+ f
+ );
+ }
+ f = message.getGrowthFactor();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 2,
+ f
+ );
+ }
+ f = message.getScale();
+ if (f !== 0.0) {
+ writer.writeDouble(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional int32 num_finite_buckets = 1;
+ * @return {number}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.prototype.getNumFiniteBuckets = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.prototype.setNumFiniteBuckets = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional double growth_factor = 2;
+ * @return {number}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.prototype.getGrowthFactor = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.prototype.setGrowthFactor = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional double scale = 3;
+ * @return {number}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.prototype.getScale = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 3, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets.prototype.setScale = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+
+/**
+ * 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.google.api.servicecontrol.v1.Distribution.ExplicitBuckets = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.displayName = 'proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ boundsList: jspb.Message.getRepeatedFloatingPointField(msg, 1)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets;
+ return proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {!Array.} */ (reader.readPackedDouble());
+ msg.setBoundsList(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getBoundsList();
+ if (f.length > 0) {
+ writer.writePackedDouble(
+ 1,
+ f
+ );
+ }
+};
+
+
+/**
+ * repeated double bounds = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.prototype.getBoundsList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getRepeatedFloatingPointField(this, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.prototype.setBoundsList = function(value) {
+ jspb.Message.setField(this, 1, value || []);
+};
+
+
+/**
+ * @param {!number} value
+ * @param {number=} opt_index
+ */
+proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.prototype.addBounds = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 1, value, opt_index);
+};
+
+
+proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets.prototype.clearBoundsList = function() {
+ this.setBoundsList([]);
+};
+
+
+/**
+ * optional int64 count = 1;
+ * @return {number}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.getCount = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicecontrol.v1.Distribution.prototype.setCount = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional double mean = 2;
+ * @return {number}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.getMean = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicecontrol.v1.Distribution.prototype.setMean = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional double minimum = 3;
+ * @return {number}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.getMinimum = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 3, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicecontrol.v1.Distribution.prototype.setMinimum = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional double maximum = 4;
+ * @return {number}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.getMaximum = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 4, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicecontrol.v1.Distribution.prototype.setMaximum = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+/**
+ * optional double sum_of_squared_deviation = 5;
+ * @return {number}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.getSumOfSquaredDeviation = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 5, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicecontrol.v1.Distribution.prototype.setSumOfSquaredDeviation = function(value) {
+ jspb.Message.setField(this, 5, value);
+};
+
+
+/**
+ * repeated int64 bucket_counts = 6;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.getBucketCountsList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 6));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicecontrol.v1.Distribution.prototype.setBucketCountsList = function(value) {
+ jspb.Message.setField(this, 6, value || []);
+};
+
+
+/**
+ * @param {!number} value
+ * @param {number=} opt_index
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.addBucketCounts = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 6, value, opt_index);
+};
+
+
+proto.google.api.servicecontrol.v1.Distribution.prototype.clearBucketCountsList = function() {
+ this.setBucketCountsList([]);
+};
+
+
+/**
+ * optional LinearBuckets linear_buckets = 7;
+ * @return {?proto.google.api.servicecontrol.v1.Distribution.LinearBuckets}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.getLinearBuckets = function() {
+ return /** @type{?proto.google.api.servicecontrol.v1.Distribution.LinearBuckets} */ (
+ jspb.Message.getWrapperField(this, proto.google.api.servicecontrol.v1.Distribution.LinearBuckets, 7));
+};
+
+
+/** @param {?proto.google.api.servicecontrol.v1.Distribution.LinearBuckets|undefined} value */
+proto.google.api.servicecontrol.v1.Distribution.prototype.setLinearBuckets = function(value) {
+ jspb.Message.setOneofWrapperField(this, 7, proto.google.api.servicecontrol.v1.Distribution.oneofGroups_[0], value);
+};
+
+
+proto.google.api.servicecontrol.v1.Distribution.prototype.clearLinearBuckets = function() {
+ this.setLinearBuckets(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.hasLinearBuckets = function() {
+ return jspb.Message.getField(this, 7) != null;
+};
+
+
+/**
+ * optional ExponentialBuckets exponential_buckets = 8;
+ * @return {?proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.getExponentialBuckets = function() {
+ return /** @type{?proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets} */ (
+ jspb.Message.getWrapperField(this, proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets, 8));
+};
+
+
+/** @param {?proto.google.api.servicecontrol.v1.Distribution.ExponentialBuckets|undefined} value */
+proto.google.api.servicecontrol.v1.Distribution.prototype.setExponentialBuckets = function(value) {
+ jspb.Message.setOneofWrapperField(this, 8, proto.google.api.servicecontrol.v1.Distribution.oneofGroups_[0], value);
+};
+
+
+proto.google.api.servicecontrol.v1.Distribution.prototype.clearExponentialBuckets = function() {
+ this.setExponentialBuckets(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.hasExponentialBuckets = function() {
+ return jspb.Message.getField(this, 8) != null;
+};
+
+
+/**
+ * optional ExplicitBuckets explicit_buckets = 9;
+ * @return {?proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.getExplicitBuckets = function() {
+ return /** @type{?proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets} */ (
+ jspb.Message.getWrapperField(this, proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets, 9));
+};
+
+
+/** @param {?proto.google.api.servicecontrol.v1.Distribution.ExplicitBuckets|undefined} value */
+proto.google.api.servicecontrol.v1.Distribution.prototype.setExplicitBuckets = function(value) {
+ jspb.Message.setOneofWrapperField(this, 9, proto.google.api.servicecontrol.v1.Distribution.oneofGroups_[0], value);
+};
+
+
+proto.google.api.servicecontrol.v1.Distribution.prototype.clearExplicitBuckets = function() {
+ this.setExplicitBuckets(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.Distribution.prototype.hasExplicitBuckets = function() {
+ return jspb.Message.getField(this, 9) != null;
+};
+
+
+goog.object.extend(exports, proto.google.api.servicecontrol.v1);
diff --git a/build/lib/googleapis/google/api/servicecontrol/v1/log_entry_pb.js b/build/lib/googleapis/google/api/servicecontrol/v1/log_entry_pb.js
new file mode 100644
index 0000000..3014a6c
--- /dev/null
+++ b/build/lib/googleapis/google/api/servicecontrol/v1/log_entry_pb.js
@@ -0,0 +1,441 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');
+var google_logging_type_log_severity_pb = require('../../../../google/logging/type/log_severity_pb.js');
+var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
+var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
+var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
+goog.exportSymbol('proto.google.api.servicecontrol.v1.LogEntry', null, global);
+
+/**
+ * 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.google.api.servicecontrol.v1.LogEntry = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.servicecontrol.v1.LogEntry.oneofGroups_);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.LogEntry, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.LogEntry.displayName = 'proto.google.api.servicecontrol.v1.LogEntry';
+}
+/**
+ * Oneof group definitions for this message. Each group defines the field
+ * numbers belonging to that group. When of these fields' value is set, all
+ * other fields in the group are cleared. During deserialization, if multiple
+ * fields are encountered for a group, only the last value seen will be kept.
+ * @private {!Array>}
+ * @const
+ */
+proto.google.api.servicecontrol.v1.LogEntry.oneofGroups_ = [[2,3,6]];
+
+/**
+ * @enum {number}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.PayloadCase = {
+ PAYLOAD_NOT_SET: 0,
+ PROTO_PAYLOAD: 2,
+ TEXT_PAYLOAD: 3,
+ STRUCT_PAYLOAD: 6
+};
+
+/**
+ * @return {proto.google.api.servicecontrol.v1.LogEntry.PayloadCase}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.getPayloadCase = function() {
+ return /** @type {proto.google.api.servicecontrol.v1.LogEntry.PayloadCase} */(jspb.Message.computeOneofCase(this, proto.google.api.servicecontrol.v1.LogEntry.oneofGroups_[0]));
+};
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.LogEntry.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.LogEntry} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ name: jspb.Message.getFieldWithDefault(msg, 10, ""),
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
+ severity: jspb.Message.getFieldWithDefault(msg, 12, 0),
+ insertId: jspb.Message.getFieldWithDefault(msg, 4, ""),
+ labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : [],
+ protoPayload: (f = msg.getProtoPayload()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
+ textPayload: jspb.Message.getFieldWithDefault(msg, 3, ""),
+ structPayload: (f = msg.getStructPayload()) && google_protobuf_struct_pb.Struct.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.google.api.servicecontrol.v1.LogEntry}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.LogEntry;
+ return proto.google.api.servicecontrol.v1.LogEntry.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.LogEntry} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.LogEntry}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 10:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setName(value);
+ break;
+ case 11:
+ var value = new google_protobuf_timestamp_pb.Timestamp;
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
+ msg.setTimestamp(value);
+ break;
+ case 12:
+ var value = /** @type {!proto.google.logging.type.LogSeverity} */ (reader.readEnum());
+ msg.setSeverity(value);
+ break;
+ case 4:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setInsertId(value);
+ break;
+ case 13:
+ var value = msg.getLabelsMap();
+ reader.readMessage(value, function(message, reader) {
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString);
+ });
+ break;
+ case 2:
+ var value = new google_protobuf_any_pb.Any;
+ reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
+ msg.setProtoPayload(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setTextPayload(value);
+ break;
+ case 6:
+ var value = new google_protobuf_struct_pb.Struct;
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
+ msg.setStructPayload(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.LogEntry.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.LogEntry} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.LogEntry.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getName();
+ if (f.length > 0) {
+ writer.writeString(
+ 10,
+ f
+ );
+ }
+ f = message.getTimestamp();
+ if (f != null) {
+ writer.writeMessage(
+ 11,
+ f,
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
+ );
+ }
+ f = message.getSeverity();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 12,
+ f
+ );
+ }
+ f = message.getInsertId();
+ if (f.length > 0) {
+ writer.writeString(
+ 4,
+ f
+ );
+ }
+ f = message.getLabelsMap(true);
+ if (f && f.getLength() > 0) {
+ f.serializeBinary(13, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
+ }
+ f = message.getProtoPayload();
+ if (f != null) {
+ writer.writeMessage(
+ 2,
+ f,
+ google_protobuf_any_pb.Any.serializeBinaryToWriter
+ );
+ }
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
+ if (f != null) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+ f = message.getStructPayload();
+ if (f != null) {
+ writer.writeMessage(
+ 6,
+ f,
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional string name = 10;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.getName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.setName = function(value) {
+ jspb.Message.setField(this, 10, value);
+};
+
+
+/**
+ * optional google.protobuf.Timestamp timestamp = 11;
+ * @return {?proto.google.protobuf.Timestamp}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.getTimestamp = function() {
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
+};
+
+
+/** @param {?proto.google.protobuf.Timestamp|undefined} value */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.setTimestamp = function(value) {
+ jspb.Message.setWrapperField(this, 11, value);
+};
+
+
+proto.google.api.servicecontrol.v1.LogEntry.prototype.clearTimestamp = function() {
+ this.setTimestamp(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.hasTimestamp = function() {
+ return jspb.Message.getField(this, 11) != null;
+};
+
+
+/**
+ * optional google.logging.type.LogSeverity severity = 12;
+ * @return {!proto.google.logging.type.LogSeverity}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.getSeverity = function() {
+ return /** @type {!proto.google.logging.type.LogSeverity} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
+};
+
+
+/** @param {!proto.google.logging.type.LogSeverity} value */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.setSeverity = function(value) {
+ jspb.Message.setField(this, 12, value);
+};
+
+
+/**
+ * optional string insert_id = 4;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.getInsertId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.setInsertId = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+/**
+ * map labels = 13;
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
+ * empty, instead returning `undefined`
+ * @return {!jspb.Map}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.getLabelsMap = function(opt_noLazyCreate) {
+ return /** @type {!jspb.Map} */ (
+ jspb.Message.getMapField(this, 13, opt_noLazyCreate,
+ null));
+};
+
+
+proto.google.api.servicecontrol.v1.LogEntry.prototype.clearLabelsMap = function() {
+ this.getLabelsMap().clear();
+};
+
+
+/**
+ * optional google.protobuf.Any proto_payload = 2;
+ * @return {?proto.google.protobuf.Any}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.getProtoPayload = function() {
+ return /** @type{?proto.google.protobuf.Any} */ (
+ jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2));
+};
+
+
+/** @param {?proto.google.protobuf.Any|undefined} value */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.setProtoPayload = function(value) {
+ jspb.Message.setOneofWrapperField(this, 2, proto.google.api.servicecontrol.v1.LogEntry.oneofGroups_[0], value);
+};
+
+
+proto.google.api.servicecontrol.v1.LogEntry.prototype.clearProtoPayload = function() {
+ this.setProtoPayload(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.hasProtoPayload = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+/**
+ * optional string text_payload = 3;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.getTextPayload = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.setTextPayload = function(value) {
+ jspb.Message.setOneofField(this, 3, proto.google.api.servicecontrol.v1.LogEntry.oneofGroups_[0], value);
+};
+
+
+proto.google.api.servicecontrol.v1.LogEntry.prototype.clearTextPayload = function() {
+ jspb.Message.setOneofField(this, 3, proto.google.api.servicecontrol.v1.LogEntry.oneofGroups_[0], undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.hasTextPayload = function() {
+ return jspb.Message.getField(this, 3) != null;
+};
+
+
+/**
+ * optional google.protobuf.Struct struct_payload = 6;
+ * @return {?proto.google.protobuf.Struct}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.getStructPayload = function() {
+ return /** @type{?proto.google.protobuf.Struct} */ (
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6));
+};
+
+
+/** @param {?proto.google.protobuf.Struct|undefined} value */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.setStructPayload = function(value) {
+ jspb.Message.setOneofWrapperField(this, 6, proto.google.api.servicecontrol.v1.LogEntry.oneofGroups_[0], value);
+};
+
+
+proto.google.api.servicecontrol.v1.LogEntry.prototype.clearStructPayload = function() {
+ this.setStructPayload(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.LogEntry.prototype.hasStructPayload = function() {
+ return jspb.Message.getField(this, 6) != null;
+};
+
+
+goog.object.extend(exports, proto.google.api.servicecontrol.v1);
diff --git a/build/lib/googleapis/google/api/servicecontrol/v1/metric_value_pb.js b/build/lib/googleapis/google/api/servicecontrol/v1/metric_value_pb.js
new file mode 100644
index 0000000..65ce6b3
--- /dev/null
+++ b/build/lib/googleapis/google/api/servicecontrol/v1/metric_value_pb.js
@@ -0,0 +1,682 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');
+var google_api_servicecontrol_v1_distribution_pb = require('../../../../google/api/servicecontrol/v1/distribution_pb.js');
+var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
+var google_type_money_pb = require('../../../../google/type/money_pb.js');
+goog.exportSymbol('proto.google.api.servicecontrol.v1.MetricValue', null, global);
+goog.exportSymbol('proto.google.api.servicecontrol.v1.MetricValueSet', null, global);
+
+/**
+ * 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.google.api.servicecontrol.v1.MetricValue = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.MetricValue, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.MetricValue.displayName = 'proto.google.api.servicecontrol.v1.MetricValue';
+}
+/**
+ * Oneof group definitions for this message. Each group defines the field
+ * numbers belonging to that group. When of these fields' value is set, all
+ * other fields in the group are cleared. During deserialization, if multiple
+ * fields are encountered for a group, only the last value seen will be kept.
+ * @private {!Array>}
+ * @const
+ */
+proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_ = [[4,5,6,7,8]];
+
+/**
+ * @enum {number}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.ValueCase = {
+ VALUE_NOT_SET: 0,
+ BOOL_VALUE: 4,
+ INT64_VALUE: 5,
+ DOUBLE_VALUE: 6,
+ STRING_VALUE: 7,
+ DISTRIBUTION_VALUE: 8
+};
+
+/**
+ * @return {proto.google.api.servicecontrol.v1.MetricValue.ValueCase}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.getValueCase = function() {
+ return /** @type {proto.google.api.servicecontrol.v1.MetricValue.ValueCase} */(jspb.Message.computeOneofCase(this, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0]));
+};
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.MetricValue.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.MetricValue} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : [],
+ startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
+ endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
+ boolValue: jspb.Message.getFieldWithDefault(msg, 4, false),
+ int64Value: jspb.Message.getFieldWithDefault(msg, 5, 0),
+ doubleValue: +jspb.Message.getFieldWithDefault(msg, 6, 0.0),
+ stringValue: jspb.Message.getFieldWithDefault(msg, 7, ""),
+ distributionValue: (f = msg.getDistributionValue()) && google_api_servicecontrol_v1_distribution_pb.Distribution.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.google.api.servicecontrol.v1.MetricValue}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.MetricValue;
+ return proto.google.api.servicecontrol.v1.MetricValue.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.MetricValue} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.MetricValue}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = msg.getLabelsMap();
+ reader.readMessage(value, function(message, reader) {
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString);
+ });
+ break;
+ case 2:
+ var value = new google_protobuf_timestamp_pb.Timestamp;
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
+ msg.setStartTime(value);
+ break;
+ case 3:
+ var value = new google_protobuf_timestamp_pb.Timestamp;
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
+ msg.setEndTime(value);
+ break;
+ case 4:
+ var value = /** @type {boolean} */ (reader.readBool());
+ msg.setBoolValue(value);
+ break;
+ case 5:
+ var value = /** @type {number} */ (reader.readInt64());
+ msg.setInt64Value(value);
+ break;
+ case 6:
+ var value = /** @type {number} */ (reader.readDouble());
+ msg.setDoubleValue(value);
+ break;
+ case 7:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setStringValue(value);
+ break;
+ case 8:
+ var value = new google_api_servicecontrol_v1_distribution_pb.Distribution;
+ reader.readMessage(value,google_api_servicecontrol_v1_distribution_pb.Distribution.deserializeBinaryFromReader);
+ msg.setDistributionValue(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.MetricValue.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.MetricValue} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.MetricValue.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getLabelsMap(true);
+ if (f && f.getLength() > 0) {
+ f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
+ }
+ f = message.getStartTime();
+ if (f != null) {
+ writer.writeMessage(
+ 2,
+ f,
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
+ );
+ }
+ f = message.getEndTime();
+ if (f != null) {
+ writer.writeMessage(
+ 3,
+ f,
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
+ );
+ }
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
+ if (f != null) {
+ writer.writeBool(
+ 4,
+ f
+ );
+ }
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
+ if (f != null) {
+ writer.writeInt64(
+ 5,
+ f
+ );
+ }
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
+ if (f != null) {
+ writer.writeDouble(
+ 6,
+ f
+ );
+ }
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
+ if (f != null) {
+ writer.writeString(
+ 7,
+ f
+ );
+ }
+ f = message.getDistributionValue();
+ if (f != null) {
+ writer.writeMessage(
+ 8,
+ f,
+ google_api_servicecontrol_v1_distribution_pb.Distribution.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * map labels = 1;
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
+ * empty, instead returning `undefined`
+ * @return {!jspb.Map}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.getLabelsMap = function(opt_noLazyCreate) {
+ return /** @type {!jspb.Map} */ (
+ jspb.Message.getMapField(this, 1, opt_noLazyCreate,
+ null));
+};
+
+
+proto.google.api.servicecontrol.v1.MetricValue.prototype.clearLabelsMap = function() {
+ this.getLabelsMap().clear();
+};
+
+
+/**
+ * optional google.protobuf.Timestamp start_time = 2;
+ * @return {?proto.google.protobuf.Timestamp}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.getStartTime = function() {
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
+};
+
+
+/** @param {?proto.google.protobuf.Timestamp|undefined} value */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.setStartTime = function(value) {
+ jspb.Message.setWrapperField(this, 2, value);
+};
+
+
+proto.google.api.servicecontrol.v1.MetricValue.prototype.clearStartTime = function() {
+ this.setStartTime(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.hasStartTime = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+/**
+ * optional google.protobuf.Timestamp end_time = 3;
+ * @return {?proto.google.protobuf.Timestamp}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.getEndTime = function() {
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
+};
+
+
+/** @param {?proto.google.protobuf.Timestamp|undefined} value */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.setEndTime = function(value) {
+ jspb.Message.setWrapperField(this, 3, value);
+};
+
+
+proto.google.api.servicecontrol.v1.MetricValue.prototype.clearEndTime = function() {
+ this.setEndTime(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.hasEndTime = function() {
+ return jspb.Message.getField(this, 3) != null;
+};
+
+
+/**
+ * optional bool bool_value = 4;
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
+ * You should avoid comparisons like {@code val === true/false} in those cases.
+ * @return {boolean}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.getBoolValue = function() {
+ return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false));
+};
+
+
+/** @param {boolean} value */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.setBoolValue = function(value) {
+ jspb.Message.setOneofField(this, 4, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], value);
+};
+
+
+proto.google.api.servicecontrol.v1.MetricValue.prototype.clearBoolValue = function() {
+ jspb.Message.setOneofField(this, 4, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.hasBoolValue = function() {
+ return jspb.Message.getField(this, 4) != null;
+};
+
+
+/**
+ * optional int64 int64_value = 5;
+ * @return {number}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.getInt64Value = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.setInt64Value = function(value) {
+ jspb.Message.setOneofField(this, 5, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], value);
+};
+
+
+proto.google.api.servicecontrol.v1.MetricValue.prototype.clearInt64Value = function() {
+ jspb.Message.setOneofField(this, 5, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.hasInt64Value = function() {
+ return jspb.Message.getField(this, 5) != null;
+};
+
+
+/**
+ * optional double double_value = 6;
+ * @return {number}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.getDoubleValue = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 6, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.setDoubleValue = function(value) {
+ jspb.Message.setOneofField(this, 6, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], value);
+};
+
+
+proto.google.api.servicecontrol.v1.MetricValue.prototype.clearDoubleValue = function() {
+ jspb.Message.setOneofField(this, 6, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.hasDoubleValue = function() {
+ return jspb.Message.getField(this, 6) != null;
+};
+
+
+/**
+ * optional string string_value = 7;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.getStringValue = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.setStringValue = function(value) {
+ jspb.Message.setOneofField(this, 7, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], value);
+};
+
+
+proto.google.api.servicecontrol.v1.MetricValue.prototype.clearStringValue = function() {
+ jspb.Message.setOneofField(this, 7, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.hasStringValue = function() {
+ return jspb.Message.getField(this, 7) != null;
+};
+
+
+/**
+ * optional Distribution distribution_value = 8;
+ * @return {?proto.google.api.servicecontrol.v1.Distribution}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.getDistributionValue = function() {
+ return /** @type{?proto.google.api.servicecontrol.v1.Distribution} */ (
+ jspb.Message.getWrapperField(this, google_api_servicecontrol_v1_distribution_pb.Distribution, 8));
+};
+
+
+/** @param {?proto.google.api.servicecontrol.v1.Distribution|undefined} value */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.setDistributionValue = function(value) {
+ jspb.Message.setOneofWrapperField(this, 8, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], value);
+};
+
+
+proto.google.api.servicecontrol.v1.MetricValue.prototype.clearDistributionValue = function() {
+ this.setDistributionValue(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.MetricValue.prototype.hasDistributionValue = function() {
+ return jspb.Message.getField(this, 8) != null;
+};
+
+
+
+/**
+ * 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.google.api.servicecontrol.v1.MetricValueSet = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicecontrol.v1.MetricValueSet.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.MetricValueSet, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.MetricValueSet.displayName = 'proto.google.api.servicecontrol.v1.MetricValueSet';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicecontrol.v1.MetricValueSet.repeatedFields_ = [2];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.MetricValueSet.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.MetricValueSet.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.MetricValueSet} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.MetricValueSet.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ metricName: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ metricValuesList: jspb.Message.toObjectList(msg.getMetricValuesList(),
+ proto.google.api.servicecontrol.v1.MetricValue.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicecontrol.v1.MetricValueSet}
+ */
+proto.google.api.servicecontrol.v1.MetricValueSet.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.MetricValueSet;
+ return proto.google.api.servicecontrol.v1.MetricValueSet.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.MetricValueSet} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.MetricValueSet}
+ */
+proto.google.api.servicecontrol.v1.MetricValueSet.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setMetricName(value);
+ break;
+ case 2:
+ var value = new proto.google.api.servicecontrol.v1.MetricValue;
+ reader.readMessage(value,proto.google.api.servicecontrol.v1.MetricValue.deserializeBinaryFromReader);
+ msg.addMetricValues(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.MetricValueSet.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.MetricValueSet.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.MetricValueSet} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.MetricValueSet.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getMetricName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getMetricValuesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 2,
+ f,
+ proto.google.api.servicecontrol.v1.MetricValue.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional string metric_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.MetricValueSet.prototype.getMetricName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.MetricValueSet.prototype.setMetricName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * repeated MetricValue metric_values = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicecontrol.v1.MetricValueSet.prototype.getMetricValuesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.servicecontrol.v1.MetricValue, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicecontrol.v1.MetricValueSet.prototype.setMetricValuesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
+};
+
+
+/**
+ * @param {!proto.google.api.servicecontrol.v1.MetricValue=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.servicecontrol.v1.MetricValue}
+ */
+proto.google.api.servicecontrol.v1.MetricValueSet.prototype.addMetricValues = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.servicecontrol.v1.MetricValue, opt_index);
+};
+
+
+proto.google.api.servicecontrol.v1.MetricValueSet.prototype.clearMetricValuesList = function() {
+ this.setMetricValuesList([]);
+};
+
+
+goog.object.extend(exports, proto.google.api.servicecontrol.v1);
diff --git a/build/lib/googleapis/google/api/servicecontrol/v1/operation_pb.js b/build/lib/googleapis/google/api/servicecontrol/v1/operation_pb.js
new file mode 100644
index 0000000..d126a77
--- /dev/null
+++ b/build/lib/googleapis/google/api/servicecontrol/v1/operation_pb.js
@@ -0,0 +1,467 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');
+var google_api_servicecontrol_v1_log_entry_pb = require('../../../../google/api/servicecontrol/v1/log_entry_pb.js');
+var google_api_servicecontrol_v1_metric_value_pb = require('../../../../google/api/servicecontrol/v1/metric_value_pb.js');
+var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
+goog.exportSymbol('proto.google.api.servicecontrol.v1.Operation', null, global);
+goog.exportSymbol('proto.google.api.servicecontrol.v1.Operation.Importance', null, global);
+
+/**
+ * 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.google.api.servicecontrol.v1.Operation = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicecontrol.v1.Operation.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.Operation, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.Operation.displayName = 'proto.google.api.servicecontrol.v1.Operation';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicecontrol.v1.Operation.repeatedFields_ = [7,8];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.Operation.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.Operation} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.Operation.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ operationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ operationName: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ consumerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
+ startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
+ endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
+ labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : [],
+ metricValueSetsList: jspb.Message.toObjectList(msg.getMetricValueSetsList(),
+ google_api_servicecontrol_v1_metric_value_pb.MetricValueSet.toObject, includeInstance),
+ logEntriesList: jspb.Message.toObjectList(msg.getLogEntriesList(),
+ google_api_servicecontrol_v1_log_entry_pb.LogEntry.toObject, includeInstance),
+ importance: jspb.Message.getFieldWithDefault(msg, 11, 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.google.api.servicecontrol.v1.Operation}
+ */
+proto.google.api.servicecontrol.v1.Operation.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.Operation;
+ return proto.google.api.servicecontrol.v1.Operation.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.Operation} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.Operation}
+ */
+proto.google.api.servicecontrol.v1.Operation.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setOperationId(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setOperationName(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setConsumerId(value);
+ break;
+ case 4:
+ var value = new google_protobuf_timestamp_pb.Timestamp;
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
+ msg.setStartTime(value);
+ break;
+ case 5:
+ var value = new google_protobuf_timestamp_pb.Timestamp;
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
+ msg.setEndTime(value);
+ break;
+ case 6:
+ var value = msg.getLabelsMap();
+ reader.readMessage(value, function(message, reader) {
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString);
+ });
+ break;
+ case 7:
+ var value = new google_api_servicecontrol_v1_metric_value_pb.MetricValueSet;
+ reader.readMessage(value,google_api_servicecontrol_v1_metric_value_pb.MetricValueSet.deserializeBinaryFromReader);
+ msg.addMetricValueSets(value);
+ break;
+ case 8:
+ var value = new google_api_servicecontrol_v1_log_entry_pb.LogEntry;
+ reader.readMessage(value,google_api_servicecontrol_v1_log_entry_pb.LogEntry.deserializeBinaryFromReader);
+ msg.addLogEntries(value);
+ break;
+ case 11:
+ var value = /** @type {!proto.google.api.servicecontrol.v1.Operation.Importance} */ (reader.readEnum());
+ msg.setImportance(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.Operation.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.Operation} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.Operation.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getOperationId();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getOperationName();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getConsumerId();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+ f = message.getStartTime();
+ if (f != null) {
+ writer.writeMessage(
+ 4,
+ f,
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
+ );
+ }
+ f = message.getEndTime();
+ if (f != null) {
+ writer.writeMessage(
+ 5,
+ f,
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
+ );
+ }
+ f = message.getLabelsMap(true);
+ if (f && f.getLength() > 0) {
+ f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
+ }
+ f = message.getMetricValueSetsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 7,
+ f,
+ google_api_servicecontrol_v1_metric_value_pb.MetricValueSet.serializeBinaryToWriter
+ );
+ }
+ f = message.getLogEntriesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 8,
+ f,
+ google_api_servicecontrol_v1_log_entry_pb.LogEntry.serializeBinaryToWriter
+ );
+ }
+ f = message.getImportance();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 11,
+ f
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.api.servicecontrol.v1.Operation.Importance = {
+ LOW: 0,
+ HIGH: 1
+};
+
+/**
+ * optional string operation_id = 1;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.getOperationId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.Operation.prototype.setOperationId = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string operation_name = 2;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.getOperationName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.Operation.prototype.setOperationName = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional string consumer_id = 3;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.getConsumerId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.Operation.prototype.setConsumerId = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional google.protobuf.Timestamp start_time = 4;
+ * @return {?proto.google.protobuf.Timestamp}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.getStartTime = function() {
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
+};
+
+
+/** @param {?proto.google.protobuf.Timestamp|undefined} value */
+proto.google.api.servicecontrol.v1.Operation.prototype.setStartTime = function(value) {
+ jspb.Message.setWrapperField(this, 4, value);
+};
+
+
+proto.google.api.servicecontrol.v1.Operation.prototype.clearStartTime = function() {
+ this.setStartTime(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.hasStartTime = function() {
+ return jspb.Message.getField(this, 4) != null;
+};
+
+
+/**
+ * optional google.protobuf.Timestamp end_time = 5;
+ * @return {?proto.google.protobuf.Timestamp}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.getEndTime = function() {
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
+};
+
+
+/** @param {?proto.google.protobuf.Timestamp|undefined} value */
+proto.google.api.servicecontrol.v1.Operation.prototype.setEndTime = function(value) {
+ jspb.Message.setWrapperField(this, 5, value);
+};
+
+
+proto.google.api.servicecontrol.v1.Operation.prototype.clearEndTime = function() {
+ this.setEndTime(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.hasEndTime = function() {
+ return jspb.Message.getField(this, 5) != null;
+};
+
+
+/**
+ * map labels = 6;
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
+ * empty, instead returning `undefined`
+ * @return {!jspb.Map}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.getLabelsMap = function(opt_noLazyCreate) {
+ return /** @type {!jspb.Map} */ (
+ jspb.Message.getMapField(this, 6, opt_noLazyCreate,
+ null));
+};
+
+
+proto.google.api.servicecontrol.v1.Operation.prototype.clearLabelsMap = function() {
+ this.getLabelsMap().clear();
+};
+
+
+/**
+ * repeated MetricValueSet metric_value_sets = 7;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.getMetricValueSetsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_servicecontrol_v1_metric_value_pb.MetricValueSet, 7));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicecontrol.v1.Operation.prototype.setMetricValueSetsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 7, value);
+};
+
+
+/**
+ * @param {!proto.google.api.servicecontrol.v1.MetricValueSet=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.servicecontrol.v1.MetricValueSet}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.addMetricValueSets = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.google.api.servicecontrol.v1.MetricValueSet, opt_index);
+};
+
+
+proto.google.api.servicecontrol.v1.Operation.prototype.clearMetricValueSetsList = function() {
+ this.setMetricValueSetsList([]);
+};
+
+
+/**
+ * repeated LogEntry log_entries = 8;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.getLogEntriesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_servicecontrol_v1_log_entry_pb.LogEntry, 8));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicecontrol.v1.Operation.prototype.setLogEntriesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 8, value);
+};
+
+
+/**
+ * @param {!proto.google.api.servicecontrol.v1.LogEntry=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.servicecontrol.v1.LogEntry}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.addLogEntries = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.google.api.servicecontrol.v1.LogEntry, opt_index);
+};
+
+
+proto.google.api.servicecontrol.v1.Operation.prototype.clearLogEntriesList = function() {
+ this.setLogEntriesList([]);
+};
+
+
+/**
+ * optional Importance importance = 11;
+ * @return {!proto.google.api.servicecontrol.v1.Operation.Importance}
+ */
+proto.google.api.servicecontrol.v1.Operation.prototype.getImportance = function() {
+ return /** @type {!proto.google.api.servicecontrol.v1.Operation.Importance} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
+};
+
+
+/** @param {!proto.google.api.servicecontrol.v1.Operation.Importance} value */
+proto.google.api.servicecontrol.v1.Operation.prototype.setImportance = function(value) {
+ jspb.Message.setField(this, 11, value);
+};
+
+
+goog.object.extend(exports, proto.google.api.servicecontrol.v1);
diff --git a/build/lib/googleapis/google/api/servicecontrol/v1/service_controller_grpc_pb.js b/build/lib/googleapis/google/api/servicecontrol/v1/service_controller_grpc_pb.js
new file mode 100644
index 0000000..b4ae645
--- /dev/null
+++ b/build/lib/googleapis/google/api/servicecontrol/v1/service_controller_grpc_pb.js
@@ -0,0 +1,123 @@
+// GENERATED CODE -- DO NOT EDIT!
+
+// Original file comments:
+// Copyright 2016 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+'use strict';
+var grpc = require('grpc');
+var google_api_servicecontrol_v1_service_controller_pb = require('../../../../google/api/servicecontrol/v1/service_controller_pb.js');
+var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');
+var google_api_servicecontrol_v1_check_error_pb = require('../../../../google/api/servicecontrol/v1/check_error_pb.js');
+var google_api_servicecontrol_v1_operation_pb = require('../../../../google/api/servicecontrol/v1/operation_pb.js');
+var google_rpc_status_pb = require('../../../../google/rpc/status_pb.js');
+
+function serialize_google_api_servicecontrol_v1_CheckRequest(arg) {
+ if (!(arg instanceof google_api_servicecontrol_v1_service_controller_pb.CheckRequest)) {
+ throw new Error('Expected argument of type google.api.servicecontrol.v1.CheckRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicecontrol_v1_CheckRequest(buffer_arg) {
+ return google_api_servicecontrol_v1_service_controller_pb.CheckRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicecontrol_v1_CheckResponse(arg) {
+ if (!(arg instanceof google_api_servicecontrol_v1_service_controller_pb.CheckResponse)) {
+ throw new Error('Expected argument of type google.api.servicecontrol.v1.CheckResponse');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicecontrol_v1_CheckResponse(buffer_arg) {
+ return google_api_servicecontrol_v1_service_controller_pb.CheckResponse.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicecontrol_v1_ReportRequest(arg) {
+ if (!(arg instanceof google_api_servicecontrol_v1_service_controller_pb.ReportRequest)) {
+ throw new Error('Expected argument of type google.api.servicecontrol.v1.ReportRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicecontrol_v1_ReportRequest(buffer_arg) {
+ return google_api_servicecontrol_v1_service_controller_pb.ReportRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicecontrol_v1_ReportResponse(arg) {
+ if (!(arg instanceof google_api_servicecontrol_v1_service_controller_pb.ReportResponse)) {
+ throw new Error('Expected argument of type google.api.servicecontrol.v1.ReportResponse');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicecontrol_v1_ReportResponse(buffer_arg) {
+ return google_api_servicecontrol_v1_service_controller_pb.ReportResponse.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+
+// [Google Service Control API](/service-control/overview)
+//
+// Lets clients check and report operations against
+// a [managed service][google.api.servicemanagement.v1.ManagedService].
+var ServiceControllerService = exports.ServiceControllerService = {
+ // Checks an operation with Google Service Control to decide whether
+ // the given operation should proceed. It should be called before the
+ // operation is executed.
+ //
+ // If feasible, the client should cache the check results and reuse them for
+ // up to 60s. In case of server errors, the client may rely on the cached
+ // results for longer time.
+ //
+ // This method requires the `servicemanagement.services.check` permission
+ // on the specified service. For more information, see
+ // [Google Cloud IAM](https://cloud.google.com/iam).
+ check: {
+ path: '/google.api.servicecontrol.v1.ServiceController/Check',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicecontrol_v1_service_controller_pb.CheckRequest,
+ responseType: google_api_servicecontrol_v1_service_controller_pb.CheckResponse,
+ requestSerialize: serialize_google_api_servicecontrol_v1_CheckRequest,
+ requestDeserialize: deserialize_google_api_servicecontrol_v1_CheckRequest,
+ responseSerialize: serialize_google_api_servicecontrol_v1_CheckResponse,
+ responseDeserialize: deserialize_google_api_servicecontrol_v1_CheckResponse,
+ },
+ // Reports operations to Google Service Control. It should be called
+ // after the operation is completed.
+ //
+ // If feasible, the client should aggregate reporting data for up to 5s to
+ // reduce API traffic. Limiting aggregation to 5s is to reduce data loss
+ // during client crashes. Clients should carefully choose the aggregation
+ // window to avoid data loss risk more than 0.01% for business and
+ // compliance reasons.
+ //
+ // This method requires the `servicemanagement.services.report` permission
+ // on the specified service. For more information, see
+ // [Google Cloud IAM](https://cloud.google.com/iam).
+ report: {
+ path: '/google.api.servicecontrol.v1.ServiceController/Report',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicecontrol_v1_service_controller_pb.ReportRequest,
+ responseType: google_api_servicecontrol_v1_service_controller_pb.ReportResponse,
+ requestSerialize: serialize_google_api_servicecontrol_v1_ReportRequest,
+ requestDeserialize: deserialize_google_api_servicecontrol_v1_ReportRequest,
+ responseSerialize: serialize_google_api_servicecontrol_v1_ReportResponse,
+ responseDeserialize: deserialize_google_api_servicecontrol_v1_ReportResponse,
+ },
+};
+
+exports.ServiceControllerClient = grpc.makeGenericClientConstructor(ServiceControllerService);
diff --git a/build/lib/googleapis/google/api/servicecontrol/v1/service_controller_pb.js b/build/lib/googleapis/google/api/servicecontrol/v1/service_controller_pb.js
new file mode 100644
index 0000000..0dd5b21
--- /dev/null
+++ b/build/lib/googleapis/google/api/servicecontrol/v1/service_controller_pb.js
@@ -0,0 +1,1055 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');
+var google_api_servicecontrol_v1_check_error_pb = require('../../../../google/api/servicecontrol/v1/check_error_pb.js');
+var google_api_servicecontrol_v1_operation_pb = require('../../../../google/api/servicecontrol/v1/operation_pb.js');
+var google_rpc_status_pb = require('../../../../google/rpc/status_pb.js');
+goog.exportSymbol('proto.google.api.servicecontrol.v1.CheckRequest', null, global);
+goog.exportSymbol('proto.google.api.servicecontrol.v1.CheckResponse', null, global);
+goog.exportSymbol('proto.google.api.servicecontrol.v1.ReportRequest', null, global);
+goog.exportSymbol('proto.google.api.servicecontrol.v1.ReportResponse', null, global);
+goog.exportSymbol('proto.google.api.servicecontrol.v1.ReportResponse.ReportError', null, global);
+
+/**
+ * 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.google.api.servicecontrol.v1.CheckRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.CheckRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.CheckRequest.displayName = 'proto.google.api.servicecontrol.v1.CheckRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.CheckRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.CheckRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.CheckRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.CheckRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ operation: (f = msg.getOperation()) && google_api_servicecontrol_v1_operation_pb.Operation.toObject(includeInstance, f),
+ serviceConfigId: jspb.Message.getFieldWithDefault(msg, 4, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicecontrol.v1.CheckRequest}
+ */
+proto.google.api.servicecontrol.v1.CheckRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.CheckRequest;
+ return proto.google.api.servicecontrol.v1.CheckRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.CheckRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.CheckRequest}
+ */
+proto.google.api.servicecontrol.v1.CheckRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ case 2:
+ var value = new google_api_servicecontrol_v1_operation_pb.Operation;
+ reader.readMessage(value,google_api_servicecontrol_v1_operation_pb.Operation.deserializeBinaryFromReader);
+ msg.setOperation(value);
+ break;
+ case 4:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceConfigId(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.CheckRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.CheckRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.CheckRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.CheckRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getOperation();
+ if (f != null) {
+ writer.writeMessage(
+ 2,
+ f,
+ google_api_servicecontrol_v1_operation_pb.Operation.serializeBinaryToWriter
+ );
+ }
+ f = message.getServiceConfigId();
+ if (f.length > 0) {
+ writer.writeString(
+ 4,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.CheckRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.CheckRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional Operation operation = 2;
+ * @return {?proto.google.api.servicecontrol.v1.Operation}
+ */
+proto.google.api.servicecontrol.v1.CheckRequest.prototype.getOperation = function() {
+ return /** @type{?proto.google.api.servicecontrol.v1.Operation} */ (
+ jspb.Message.getWrapperField(this, google_api_servicecontrol_v1_operation_pb.Operation, 2));
+};
+
+
+/** @param {?proto.google.api.servicecontrol.v1.Operation|undefined} value */
+proto.google.api.servicecontrol.v1.CheckRequest.prototype.setOperation = function(value) {
+ jspb.Message.setWrapperField(this, 2, value);
+};
+
+
+proto.google.api.servicecontrol.v1.CheckRequest.prototype.clearOperation = function() {
+ this.setOperation(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.CheckRequest.prototype.hasOperation = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+/**
+ * optional string service_config_id = 4;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.CheckRequest.prototype.getServiceConfigId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.CheckRequest.prototype.setServiceConfigId = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+
+/**
+ * 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.google.api.servicecontrol.v1.CheckResponse = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicecontrol.v1.CheckResponse.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.CheckResponse, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.CheckResponse.displayName = 'proto.google.api.servicecontrol.v1.CheckResponse';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicecontrol.v1.CheckResponse.repeatedFields_ = [2];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.CheckResponse.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.CheckResponse.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.CheckResponse} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.CheckResponse.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ operationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ checkErrorsList: jspb.Message.toObjectList(msg.getCheckErrorsList(),
+ google_api_servicecontrol_v1_check_error_pb.CheckError.toObject, includeInstance),
+ serviceConfigId: jspb.Message.getFieldWithDefault(msg, 5, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicecontrol.v1.CheckResponse}
+ */
+proto.google.api.servicecontrol.v1.CheckResponse.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.CheckResponse;
+ return proto.google.api.servicecontrol.v1.CheckResponse.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.CheckResponse} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.CheckResponse}
+ */
+proto.google.api.servicecontrol.v1.CheckResponse.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setOperationId(value);
+ break;
+ case 2:
+ var value = new google_api_servicecontrol_v1_check_error_pb.CheckError;
+ reader.readMessage(value,google_api_servicecontrol_v1_check_error_pb.CheckError.deserializeBinaryFromReader);
+ msg.addCheckErrors(value);
+ break;
+ case 5:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceConfigId(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.CheckResponse.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.CheckResponse.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.CheckResponse} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.CheckResponse.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getOperationId();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getCheckErrorsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 2,
+ f,
+ google_api_servicecontrol_v1_check_error_pb.CheckError.serializeBinaryToWriter
+ );
+ }
+ f = message.getServiceConfigId();
+ if (f.length > 0) {
+ writer.writeString(
+ 5,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string operation_id = 1;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.CheckResponse.prototype.getOperationId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.CheckResponse.prototype.setOperationId = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * repeated CheckError check_errors = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicecontrol.v1.CheckResponse.prototype.getCheckErrorsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_servicecontrol_v1_check_error_pb.CheckError, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicecontrol.v1.CheckResponse.prototype.setCheckErrorsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
+};
+
+
+/**
+ * @param {!proto.google.api.servicecontrol.v1.CheckError=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.servicecontrol.v1.CheckError}
+ */
+proto.google.api.servicecontrol.v1.CheckResponse.prototype.addCheckErrors = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.servicecontrol.v1.CheckError, opt_index);
+};
+
+
+proto.google.api.servicecontrol.v1.CheckResponse.prototype.clearCheckErrorsList = function() {
+ this.setCheckErrorsList([]);
+};
+
+
+/**
+ * optional string service_config_id = 5;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.CheckResponse.prototype.getServiceConfigId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.CheckResponse.prototype.setServiceConfigId = function(value) {
+ jspb.Message.setField(this, 5, value);
+};
+
+
+
+/**
+ * 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.google.api.servicecontrol.v1.ReportRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicecontrol.v1.ReportRequest.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.ReportRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.ReportRequest.displayName = 'proto.google.api.servicecontrol.v1.ReportRequest';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicecontrol.v1.ReportRequest.repeatedFields_ = [2];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.ReportRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.ReportRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.ReportRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.ReportRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ operationsList: jspb.Message.toObjectList(msg.getOperationsList(),
+ google_api_servicecontrol_v1_operation_pb.Operation.toObject, includeInstance),
+ serviceConfigId: jspb.Message.getFieldWithDefault(msg, 3, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicecontrol.v1.ReportRequest}
+ */
+proto.google.api.servicecontrol.v1.ReportRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.ReportRequest;
+ return proto.google.api.servicecontrol.v1.ReportRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.ReportRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.ReportRequest}
+ */
+proto.google.api.servicecontrol.v1.ReportRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ case 2:
+ var value = new google_api_servicecontrol_v1_operation_pb.Operation;
+ reader.readMessage(value,google_api_servicecontrol_v1_operation_pb.Operation.deserializeBinaryFromReader);
+ msg.addOperations(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceConfigId(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.ReportRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.ReportRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.ReportRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.ReportRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getOperationsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 2,
+ f,
+ google_api_servicecontrol_v1_operation_pb.Operation.serializeBinaryToWriter
+ );
+ }
+ f = message.getServiceConfigId();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.ReportRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.ReportRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * repeated Operation operations = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicecontrol.v1.ReportRequest.prototype.getOperationsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_servicecontrol_v1_operation_pb.Operation, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicecontrol.v1.ReportRequest.prototype.setOperationsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
+};
+
+
+/**
+ * @param {!proto.google.api.servicecontrol.v1.Operation=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.servicecontrol.v1.Operation}
+ */
+proto.google.api.servicecontrol.v1.ReportRequest.prototype.addOperations = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.servicecontrol.v1.Operation, opt_index);
+};
+
+
+proto.google.api.servicecontrol.v1.ReportRequest.prototype.clearOperationsList = function() {
+ this.setOperationsList([]);
+};
+
+
+/**
+ * optional string service_config_id = 3;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.ReportRequest.prototype.getServiceConfigId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.ReportRequest.prototype.setServiceConfigId = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+
+/**
+ * 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.google.api.servicecontrol.v1.ReportResponse = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicecontrol.v1.ReportResponse.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.ReportResponse, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.ReportResponse.displayName = 'proto.google.api.servicecontrol.v1.ReportResponse';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.ReportResponse.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.ReportResponse} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ reportErrorsList: jspb.Message.toObjectList(msg.getReportErrorsList(),
+ proto.google.api.servicecontrol.v1.ReportResponse.ReportError.toObject, includeInstance),
+ serviceConfigId: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicecontrol.v1.ReportResponse}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.ReportResponse;
+ return proto.google.api.servicecontrol.v1.ReportResponse.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.ReportResponse} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.ReportResponse}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.api.servicecontrol.v1.ReportResponse.ReportError;
+ reader.readMessage(value,proto.google.api.servicecontrol.v1.ReportResponse.ReportError.deserializeBinaryFromReader);
+ msg.addReportErrors(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceConfigId(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.ReportResponse.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.ReportResponse} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getReportErrorsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ proto.google.api.servicecontrol.v1.ReportResponse.ReportError.serializeBinaryToWriter
+ );
+ }
+ f = message.getServiceConfigId();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+
+/**
+ * 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.google.api.servicecontrol.v1.ReportResponse.ReportError = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicecontrol.v1.ReportResponse.ReportError, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicecontrol.v1.ReportResponse.ReportError.displayName = 'proto.google.api.servicecontrol.v1.ReportResponse.ReportError';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.ReportError.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicecontrol.v1.ReportResponse.ReportError.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicecontrol.v1.ReportResponse.ReportError} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.ReportError.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ operationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ status: (f = msg.getStatus()) && google_rpc_status_pb.Status.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.google.api.servicecontrol.v1.ReportResponse.ReportError}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.ReportError.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicecontrol.v1.ReportResponse.ReportError;
+ return proto.google.api.servicecontrol.v1.ReportResponse.ReportError.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicecontrol.v1.ReportResponse.ReportError} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicecontrol.v1.ReportResponse.ReportError}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.ReportError.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setOperationId(value);
+ break;
+ case 2:
+ var value = new google_rpc_status_pb.Status;
+ reader.readMessage(value,google_rpc_status_pb.Status.deserializeBinaryFromReader);
+ msg.setStatus(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.ReportError.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicecontrol.v1.ReportResponse.ReportError.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicecontrol.v1.ReportResponse.ReportError} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.ReportError.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getOperationId();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getStatus();
+ if (f != null) {
+ writer.writeMessage(
+ 2,
+ f,
+ google_rpc_status_pb.Status.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional string operation_id = 1;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.ReportError.prototype.getOperationId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.ReportResponse.ReportError.prototype.setOperationId = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional google.rpc.Status status = 2;
+ * @return {?proto.google.rpc.Status}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.ReportError.prototype.getStatus = function() {
+ return /** @type{?proto.google.rpc.Status} */ (
+ jspb.Message.getWrapperField(this, google_rpc_status_pb.Status, 2));
+};
+
+
+/** @param {?proto.google.rpc.Status|undefined} value */
+proto.google.api.servicecontrol.v1.ReportResponse.ReportError.prototype.setStatus = function(value) {
+ jspb.Message.setWrapperField(this, 2, value);
+};
+
+
+proto.google.api.servicecontrol.v1.ReportResponse.ReportError.prototype.clearStatus = function() {
+ this.setStatus(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.ReportError.prototype.hasStatus = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+/**
+ * repeated ReportError report_errors = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.prototype.getReportErrorsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.servicecontrol.v1.ReportResponse.ReportError, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicecontrol.v1.ReportResponse.prototype.setReportErrorsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.api.servicecontrol.v1.ReportResponse.ReportError=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.servicecontrol.v1.ReportResponse.ReportError}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.prototype.addReportErrors = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.servicecontrol.v1.ReportResponse.ReportError, opt_index);
+};
+
+
+proto.google.api.servicecontrol.v1.ReportResponse.prototype.clearReportErrorsList = function() {
+ this.setReportErrorsList([]);
+};
+
+
+/**
+ * optional string service_config_id = 2;
+ * @return {string}
+ */
+proto.google.api.servicecontrol.v1.ReportResponse.prototype.getServiceConfigId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicecontrol.v1.ReportResponse.prototype.setServiceConfigId = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+goog.object.extend(exports, proto.google.api.servicecontrol.v1);
diff --git a/build/lib/googleapis/google/api/servicemanagement/v1/resources_pb.js b/build/lib/googleapis/google/api/servicemanagement/v1/resources_pb.js
new file mode 100644
index 0000000..e7c2e89
--- /dev/null
+++ b/build/lib/googleapis/google/api/servicemanagement/v1/resources_pb.js
@@ -0,0 +1,2245 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');
+var google_api_config_change_pb = require('../../../../google/api/config_change_pb.js');
+var google_api_service_pb = require('../../../../google/api/service_pb.js');
+var google_longrunning_operations_pb = require('../../../../google/longrunning/operations_pb.js');
+var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
+var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js');
+var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
+var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
+var google_rpc_status_pb = require('../../../../google/rpc/status_pb.js');
+goog.exportSymbol('proto.google.api.servicemanagement.v1.ChangeReport', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.ConfigFile', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.ConfigFile.FileType', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.ConfigRef', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.ConfigSource', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.Diagnostic', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.Diagnostic.Kind', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.ManagedService', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.OperationMetadata', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.OperationMetadata.Status', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.OperationMetadata.Step', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.Rollout', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.Rollout.RolloutStatus', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy', null, global);
+
+/**
+ * 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.google.api.servicemanagement.v1.ManagedService = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.ManagedService, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.ManagedService.displayName = 'proto.google.api.servicemanagement.v1.ManagedService';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ManagedService.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.ManagedService.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.ManagedService} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ManagedService.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ producerProjectId: jspb.Message.getFieldWithDefault(msg, 3, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.ManagedService}
+ */
+proto.google.api.servicemanagement.v1.ManagedService.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.ManagedService;
+ return proto.google.api.servicemanagement.v1.ManagedService.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.ManagedService} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.ManagedService}
+ */
+proto.google.api.servicemanagement.v1.ManagedService.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setProducerProjectId(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.ManagedService.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.ManagedService.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.ManagedService} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.ManagedService.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getProducerProjectId();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 2;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ManagedService.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ManagedService.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional string producer_project_id = 3;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ManagedService.prototype.getProducerProjectId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ManagedService.prototype.setProducerProjectId = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.OperationMetadata = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicemanagement.v1.OperationMetadata.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.OperationMetadata, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.OperationMetadata.displayName = 'proto.google.api.servicemanagement.v1.OperationMetadata';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.repeatedFields_ = [1,2];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.OperationMetadata.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.OperationMetadata} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ resourceNamesList: jspb.Message.getField(msg, 1),
+ stepsList: jspb.Message.toObjectList(msg.getStepsList(),
+ proto.google.api.servicemanagement.v1.OperationMetadata.Step.toObject, includeInstance),
+ progressPercentage: jspb.Message.getFieldWithDefault(msg, 3, 0),
+ startTime: (f = msg.getStartTime()) && 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.google.api.servicemanagement.v1.OperationMetadata}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.OperationMetadata;
+ return proto.google.api.servicemanagement.v1.OperationMetadata.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.OperationMetadata} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.OperationMetadata}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.addResourceNames(value);
+ break;
+ case 2:
+ var value = new proto.google.api.servicemanagement.v1.OperationMetadata.Step;
+ reader.readMessage(value,proto.google.api.servicemanagement.v1.OperationMetadata.Step.deserializeBinaryFromReader);
+ msg.addSteps(value);
+ break;
+ case 3:
+ var value = /** @type {number} */ (reader.readInt32());
+ msg.setProgressPercentage(value);
+ break;
+ case 4:
+ var value = new google_protobuf_timestamp_pb.Timestamp;
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
+ msg.setStartTime(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.OperationMetadata.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.OperationMetadata} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getResourceNamesList();
+ if (f.length > 0) {
+ writer.writeRepeatedString(
+ 1,
+ f
+ );
+ }
+ f = message.getStepsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 2,
+ f,
+ proto.google.api.servicemanagement.v1.OperationMetadata.Step.serializeBinaryToWriter
+ );
+ }
+ f = message.getProgressPercentage();
+ if (f !== 0) {
+ writer.writeInt32(
+ 3,
+ f
+ );
+ }
+ f = message.getStartTime();
+ if (f != null) {
+ writer.writeMessage(
+ 4,
+ f,
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.Status = {
+ STATUS_UNSPECIFIED: 0,
+ DONE: 1,
+ NOT_STARTED: 2,
+ IN_PROGRESS: 3,
+ FAILED: 4,
+ CANCELLED: 5
+};
+
+
+/**
+ * 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.google.api.servicemanagement.v1.OperationMetadata.Step = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.OperationMetadata.Step, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.OperationMetadata.Step.displayName = 'proto.google.api.servicemanagement.v1.OperationMetadata.Step';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.Step.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.OperationMetadata.Step.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.OperationMetadata.Step} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.Step.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ status: jspb.Message.getFieldWithDefault(msg, 4, 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.google.api.servicemanagement.v1.OperationMetadata.Step}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.Step.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.OperationMetadata.Step;
+ return proto.google.api.servicemanagement.v1.OperationMetadata.Step.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.OperationMetadata.Step} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.OperationMetadata.Step}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.Step.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDescription(value);
+ break;
+ case 4:
+ var value = /** @type {!proto.google.api.servicemanagement.v1.OperationMetadata.Status} */ (reader.readEnum());
+ msg.setStatus(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.Step.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.OperationMetadata.Step.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.OperationMetadata.Step} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.Step.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getStatus();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 4,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string description = 2;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.Step.prototype.getDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.OperationMetadata.Step.prototype.setDescription = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional Status status = 4;
+ * @return {!proto.google.api.servicemanagement.v1.OperationMetadata.Status}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.Step.prototype.getStatus = function() {
+ return /** @type {!proto.google.api.servicemanagement.v1.OperationMetadata.Status} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
+};
+
+
+/** @param {!proto.google.api.servicemanagement.v1.OperationMetadata.Status} value */
+proto.google.api.servicemanagement.v1.OperationMetadata.Step.prototype.setStatus = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+/**
+ * repeated string resource_names = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.getResourceNamesList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.setResourceNamesList = function(value) {
+ jspb.Message.setField(this, 1, value || []);
+};
+
+
+/**
+ * @param {!string} value
+ * @param {number=} opt_index
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.addResourceNames = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 1, value, opt_index);
+};
+
+
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.clearResourceNamesList = function() {
+ this.setResourceNamesList([]);
+};
+
+
+/**
+ * repeated Step steps = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.getStepsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.servicemanagement.v1.OperationMetadata.Step, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.setStepsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
+};
+
+
+/**
+ * @param {!proto.google.api.servicemanagement.v1.OperationMetadata.Step=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.servicemanagement.v1.OperationMetadata.Step}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.addSteps = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.servicemanagement.v1.OperationMetadata.Step, opt_index);
+};
+
+
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.clearStepsList = function() {
+ this.setStepsList([]);
+};
+
+
+/**
+ * optional int32 progress_percentage = 3;
+ * @return {number}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.getProgressPercentage = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.setProgressPercentage = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional google.protobuf.Timestamp start_time = 4;
+ * @return {?proto.google.protobuf.Timestamp}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.getStartTime = function() {
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
+};
+
+
+/** @param {?proto.google.protobuf.Timestamp|undefined} value */
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.setStartTime = function(value) {
+ jspb.Message.setWrapperField(this, 4, value);
+};
+
+
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.clearStartTime = function() {
+ this.setStartTime(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicemanagement.v1.OperationMetadata.prototype.hasStartTime = function() {
+ return jspb.Message.getField(this, 4) != null;
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.Diagnostic = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.Diagnostic, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.Diagnostic.displayName = 'proto.google.api.servicemanagement.v1.Diagnostic';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.Diagnostic.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.Diagnostic.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.Diagnostic} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.Diagnostic.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ location: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ kind: jspb.Message.getFieldWithDefault(msg, 2, 0),
+ message: jspb.Message.getFieldWithDefault(msg, 3, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.Diagnostic}
+ */
+proto.google.api.servicemanagement.v1.Diagnostic.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.Diagnostic;
+ return proto.google.api.servicemanagement.v1.Diagnostic.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.Diagnostic} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.Diagnostic}
+ */
+proto.google.api.servicemanagement.v1.Diagnostic.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setLocation(value);
+ break;
+ case 2:
+ var value = /** @type {!proto.google.api.servicemanagement.v1.Diagnostic.Kind} */ (reader.readEnum());
+ msg.setKind(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setMessage(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.Diagnostic.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.Diagnostic.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.Diagnostic} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.Diagnostic.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getLocation();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getKind();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 2,
+ f
+ );
+ }
+ f = message.getMessage();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.api.servicemanagement.v1.Diagnostic.Kind = {
+ WARNING: 0,
+ ERROR: 1
+};
+
+/**
+ * optional string location = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.Diagnostic.prototype.getLocation = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.Diagnostic.prototype.setLocation = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional Kind kind = 2;
+ * @return {!proto.google.api.servicemanagement.v1.Diagnostic.Kind}
+ */
+proto.google.api.servicemanagement.v1.Diagnostic.prototype.getKind = function() {
+ return /** @type {!proto.google.api.servicemanagement.v1.Diagnostic.Kind} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
+};
+
+
+/** @param {!proto.google.api.servicemanagement.v1.Diagnostic.Kind} value */
+proto.google.api.servicemanagement.v1.Diagnostic.prototype.setKind = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional string message = 3;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.Diagnostic.prototype.getMessage = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.Diagnostic.prototype.setMessage = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.ConfigSource = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicemanagement.v1.ConfigSource.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.ConfigSource, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.ConfigSource.displayName = 'proto.google.api.servicemanagement.v1.ConfigSource';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicemanagement.v1.ConfigSource.repeatedFields_ = [2];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ConfigSource.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.ConfigSource.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.ConfigSource} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ConfigSource.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ id: jspb.Message.getFieldWithDefault(msg, 5, ""),
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
+ proto.google.api.servicemanagement.v1.ConfigFile.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.ConfigSource}
+ */
+proto.google.api.servicemanagement.v1.ConfigSource.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.ConfigSource;
+ return proto.google.api.servicemanagement.v1.ConfigSource.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.ConfigSource} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.ConfigSource}
+ */
+proto.google.api.servicemanagement.v1.ConfigSource.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 5:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setId(value);
+ break;
+ case 2:
+ var value = new proto.google.api.servicemanagement.v1.ConfigFile;
+ reader.readMessage(value,proto.google.api.servicemanagement.v1.ConfigFile.deserializeBinaryFromReader);
+ msg.addFiles(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.ConfigSource.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.ConfigSource.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.ConfigSource} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.ConfigSource.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getId();
+ if (f.length > 0) {
+ writer.writeString(
+ 5,
+ f
+ );
+ }
+ f = message.getFilesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 2,
+ f,
+ proto.google.api.servicemanagement.v1.ConfigFile.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional string id = 5;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ConfigSource.prototype.getId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ConfigSource.prototype.setId = function(value) {
+ jspb.Message.setField(this, 5, value);
+};
+
+
+/**
+ * repeated ConfigFile files = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicemanagement.v1.ConfigSource.prototype.getFilesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.servicemanagement.v1.ConfigFile, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicemanagement.v1.ConfigSource.prototype.setFilesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
+};
+
+
+/**
+ * @param {!proto.google.api.servicemanagement.v1.ConfigFile=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.servicemanagement.v1.ConfigFile}
+ */
+proto.google.api.servicemanagement.v1.ConfigSource.prototype.addFiles = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.servicemanagement.v1.ConfigFile, opt_index);
+};
+
+
+proto.google.api.servicemanagement.v1.ConfigSource.prototype.clearFilesList = function() {
+ this.setFilesList([]);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.ConfigFile = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.ConfigFile, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.ConfigFile.displayName = 'proto.google.api.servicemanagement.v1.ConfigFile';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ConfigFile.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.ConfigFile.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.ConfigFile} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ConfigFile.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ filePath: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ fileContents: msg.getFileContents_asB64(),
+ fileType: jspb.Message.getFieldWithDefault(msg, 4, 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.google.api.servicemanagement.v1.ConfigFile}
+ */
+proto.google.api.servicemanagement.v1.ConfigFile.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.ConfigFile;
+ return proto.google.api.servicemanagement.v1.ConfigFile.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.ConfigFile} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.ConfigFile}
+ */
+proto.google.api.servicemanagement.v1.ConfigFile.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setFilePath(value);
+ break;
+ case 3:
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
+ msg.setFileContents(value);
+ break;
+ case 4:
+ var value = /** @type {!proto.google.api.servicemanagement.v1.ConfigFile.FileType} */ (reader.readEnum());
+ msg.setFileType(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.ConfigFile.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.ConfigFile.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.ConfigFile} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.ConfigFile.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getFilePath();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getFileContents_asU8();
+ if (f.length > 0) {
+ writer.writeBytes(
+ 3,
+ f
+ );
+ }
+ f = message.getFileType();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 4,
+ f
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.api.servicemanagement.v1.ConfigFile.FileType = {
+ FILE_TYPE_UNSPECIFIED: 0,
+ SERVICE_CONFIG_YAML: 1,
+ OPEN_API_JSON: 2,
+ OPEN_API_YAML: 3,
+ FILE_DESCRIPTOR_SET_PROTO: 4
+};
+
+/**
+ * optional string file_path = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ConfigFile.prototype.getFilePath = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ConfigFile.prototype.setFilePath = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional bytes file_contents = 3;
+ * @return {!(string|Uint8Array)}
+ */
+proto.google.api.servicemanagement.v1.ConfigFile.prototype.getFileContents = function() {
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/**
+ * optional bytes file_contents = 3;
+ * This is a type-conversion wrapper around `getFileContents()`
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ConfigFile.prototype.getFileContents_asB64 = function() {
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
+ this.getFileContents()));
+};
+
+
+/**
+ * optional bytes file_contents = 3;
+ * Note that Uint8Array is not supported on all browsers.
+ * @see http://caniuse.com/Uint8Array
+ * This is a type-conversion wrapper around `getFileContents()`
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.ConfigFile.prototype.getFileContents_asU8 = function() {
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
+ this.getFileContents()));
+};
+
+
+/** @param {!(string|Uint8Array)} value */
+proto.google.api.servicemanagement.v1.ConfigFile.prototype.setFileContents = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional FileType file_type = 4;
+ * @return {!proto.google.api.servicemanagement.v1.ConfigFile.FileType}
+ */
+proto.google.api.servicemanagement.v1.ConfigFile.prototype.getFileType = function() {
+ return /** @type {!proto.google.api.servicemanagement.v1.ConfigFile.FileType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
+};
+
+
+/** @param {!proto.google.api.servicemanagement.v1.ConfigFile.FileType} value */
+proto.google.api.servicemanagement.v1.ConfigFile.prototype.setFileType = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.ConfigRef = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.ConfigRef, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.ConfigRef.displayName = 'proto.google.api.servicemanagement.v1.ConfigRef';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ConfigRef.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.ConfigRef.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.ConfigRef} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ConfigRef.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ name: jspb.Message.getFieldWithDefault(msg, 1, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.ConfigRef}
+ */
+proto.google.api.servicemanagement.v1.ConfigRef.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.ConfigRef;
+ return proto.google.api.servicemanagement.v1.ConfigRef.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.ConfigRef} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.ConfigRef}
+ */
+proto.google.api.servicemanagement.v1.ConfigRef.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setName(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.ConfigRef.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.ConfigRef.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.ConfigRef} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.ConfigRef.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ConfigRef.prototype.getName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ConfigRef.prototype.setName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.ChangeReport = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicemanagement.v1.ChangeReport.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.ChangeReport, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.ChangeReport.displayName = 'proto.google.api.servicemanagement.v1.ChangeReport';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicemanagement.v1.ChangeReport.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ChangeReport.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.ChangeReport.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.ChangeReport} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ChangeReport.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ configChangesList: jspb.Message.toObjectList(msg.getConfigChangesList(),
+ google_api_config_change_pb.ConfigChange.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.ChangeReport}
+ */
+proto.google.api.servicemanagement.v1.ChangeReport.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.ChangeReport;
+ return proto.google.api.servicemanagement.v1.ChangeReport.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.ChangeReport} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.ChangeReport}
+ */
+proto.google.api.servicemanagement.v1.ChangeReport.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new google_api_config_change_pb.ConfigChange;
+ reader.readMessage(value,google_api_config_change_pb.ConfigChange.deserializeBinaryFromReader);
+ msg.addConfigChanges(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.ChangeReport.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.ChangeReport.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.ChangeReport} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.ChangeReport.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getConfigChangesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ google_api_config_change_pb.ConfigChange.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * repeated google.api.ConfigChange config_changes = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicemanagement.v1.ChangeReport.prototype.getConfigChangesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_config_change_pb.ConfigChange, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicemanagement.v1.ChangeReport.prototype.setConfigChangesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.api.ConfigChange=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.ConfigChange}
+ */
+proto.google.api.servicemanagement.v1.ChangeReport.prototype.addConfigChanges = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.ConfigChange, opt_index);
+};
+
+
+proto.google.api.servicemanagement.v1.ChangeReport.prototype.clearConfigChangesList = function() {
+ this.setConfigChangesList([]);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.Rollout = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.servicemanagement.v1.Rollout.oneofGroups_);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.Rollout, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.Rollout.displayName = 'proto.google.api.servicemanagement.v1.Rollout';
+}
+/**
+ * Oneof group definitions for this message. Each group defines the field
+ * numbers belonging to that group. When of these fields' value is set, all
+ * other fields in the group are cleared. During deserialization, if multiple
+ * fields are encountered for a group, only the last value seen will be kept.
+ * @private {!Array>}
+ * @const
+ */
+proto.google.api.servicemanagement.v1.Rollout.oneofGroups_ = [[5,200]];
+
+/**
+ * @enum {number}
+ */
+proto.google.api.servicemanagement.v1.Rollout.StrategyCase = {
+ STRATEGY_NOT_SET: 0,
+ TRAFFIC_PERCENT_STRATEGY: 5,
+ DELETE_SERVICE_STRATEGY: 200
+};
+
+/**
+ * @return {proto.google.api.servicemanagement.v1.Rollout.StrategyCase}
+ */
+proto.google.api.servicemanagement.v1.Rollout.prototype.getStrategyCase = function() {
+ return /** @type {proto.google.api.servicemanagement.v1.Rollout.StrategyCase} */(jspb.Message.computeOneofCase(this, proto.google.api.servicemanagement.v1.Rollout.oneofGroups_[0]));
+};
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.Rollout.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.Rollout.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.Rollout} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.Rollout.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ rolloutId: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ createTime: (f = msg.getCreateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
+ createdBy: jspb.Message.getFieldWithDefault(msg, 3, ""),
+ status: jspb.Message.getFieldWithDefault(msg, 4, 0),
+ trafficPercentStrategy: (f = msg.getTrafficPercentStrategy()) && proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.toObject(includeInstance, f),
+ deleteServiceStrategy: (f = msg.getDeleteServiceStrategy()) && proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.toObject(includeInstance, f),
+ serviceName: jspb.Message.getFieldWithDefault(msg, 8, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.Rollout}
+ */
+proto.google.api.servicemanagement.v1.Rollout.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.Rollout;
+ return proto.google.api.servicemanagement.v1.Rollout.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.Rollout} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.Rollout}
+ */
+proto.google.api.servicemanagement.v1.Rollout.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setRolloutId(value);
+ break;
+ case 2:
+ var value = new google_protobuf_timestamp_pb.Timestamp;
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
+ msg.setCreateTime(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setCreatedBy(value);
+ break;
+ case 4:
+ var value = /** @type {!proto.google.api.servicemanagement.v1.Rollout.RolloutStatus} */ (reader.readEnum());
+ msg.setStatus(value);
+ break;
+ case 5:
+ var value = new proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy;
+ reader.readMessage(value,proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.deserializeBinaryFromReader);
+ msg.setTrafficPercentStrategy(value);
+ break;
+ case 200:
+ var value = new proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy;
+ reader.readMessage(value,proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.deserializeBinaryFromReader);
+ msg.setDeleteServiceStrategy(value);
+ break;
+ case 8:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.Rollout.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.Rollout.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.Rollout} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.Rollout.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getRolloutId();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getCreateTime();
+ if (f != null) {
+ writer.writeMessage(
+ 2,
+ f,
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
+ );
+ }
+ f = message.getCreatedBy();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+ f = message.getStatus();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 4,
+ f
+ );
+ }
+ f = message.getTrafficPercentStrategy();
+ if (f != null) {
+ writer.writeMessage(
+ 5,
+ f,
+ proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.serializeBinaryToWriter
+ );
+ }
+ f = message.getDeleteServiceStrategy();
+ if (f != null) {
+ writer.writeMessage(
+ 200,
+ f,
+ proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.serializeBinaryToWriter
+ );
+ }
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 8,
+ f
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.api.servicemanagement.v1.Rollout.RolloutStatus = {
+ ROLLOUT_STATUS_UNSPECIFIED: 0,
+ IN_PROGRESS: 1,
+ SUCCESS: 2,
+ CANCELLED: 3,
+ FAILED: 4,
+ PENDING: 5
+};
+
+
+/**
+ * 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.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.displayName = 'proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ percentagesMap: (f = msg.getPercentagesMap()) ? f.toObject(includeInstance, undefined) : []
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy}
+ */
+proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy;
+ return proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy}
+ */
+proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = msg.getPercentagesMap();
+ reader.readMessage(value, function(message, reader) {
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readDouble);
+ });
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getPercentagesMap(true);
+ if (f && f.getLength() > 0) {
+ f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeDouble);
+ }
+};
+
+
+/**
+ * map percentages = 1;
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
+ * empty, instead returning `undefined`
+ * @return {!jspb.Map}
+ */
+proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.prototype.getPercentagesMap = function(opt_noLazyCreate) {
+ return /** @type {!jspb.Map} */ (
+ jspb.Message.getMapField(this, 1, opt_noLazyCreate,
+ null));
+};
+
+
+proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.prototype.clearPercentagesMap = function() {
+ this.getPercentagesMap().clear();
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.displayName = 'proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.toObject = function(includeInstance, msg) {
+ var f, obj = {
+
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy}
+ */
+proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy;
+ return proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy}
+ */
+proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+};
+
+
+/**
+ * optional string rollout_id = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.Rollout.prototype.getRolloutId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.Rollout.prototype.setRolloutId = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional google.protobuf.Timestamp create_time = 2;
+ * @return {?proto.google.protobuf.Timestamp}
+ */
+proto.google.api.servicemanagement.v1.Rollout.prototype.getCreateTime = function() {
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
+};
+
+
+/** @param {?proto.google.protobuf.Timestamp|undefined} value */
+proto.google.api.servicemanagement.v1.Rollout.prototype.setCreateTime = function(value) {
+ jspb.Message.setWrapperField(this, 2, value);
+};
+
+
+proto.google.api.servicemanagement.v1.Rollout.prototype.clearCreateTime = function() {
+ this.setCreateTime(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicemanagement.v1.Rollout.prototype.hasCreateTime = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+/**
+ * optional string created_by = 3;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.Rollout.prototype.getCreatedBy = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.Rollout.prototype.setCreatedBy = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional RolloutStatus status = 4;
+ * @return {!proto.google.api.servicemanagement.v1.Rollout.RolloutStatus}
+ */
+proto.google.api.servicemanagement.v1.Rollout.prototype.getStatus = function() {
+ return /** @type {!proto.google.api.servicemanagement.v1.Rollout.RolloutStatus} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
+};
+
+
+/** @param {!proto.google.api.servicemanagement.v1.Rollout.RolloutStatus} value */
+proto.google.api.servicemanagement.v1.Rollout.prototype.setStatus = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+/**
+ * optional TrafficPercentStrategy traffic_percent_strategy = 5;
+ * @return {?proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy}
+ */
+proto.google.api.servicemanagement.v1.Rollout.prototype.getTrafficPercentStrategy = function() {
+ return /** @type{?proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy} */ (
+ jspb.Message.getWrapperField(this, proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy, 5));
+};
+
+
+/** @param {?proto.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy|undefined} value */
+proto.google.api.servicemanagement.v1.Rollout.prototype.setTrafficPercentStrategy = function(value) {
+ jspb.Message.setOneofWrapperField(this, 5, proto.google.api.servicemanagement.v1.Rollout.oneofGroups_[0], value);
+};
+
+
+proto.google.api.servicemanagement.v1.Rollout.prototype.clearTrafficPercentStrategy = function() {
+ this.setTrafficPercentStrategy(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicemanagement.v1.Rollout.prototype.hasTrafficPercentStrategy = function() {
+ return jspb.Message.getField(this, 5) != null;
+};
+
+
+/**
+ * optional DeleteServiceStrategy delete_service_strategy = 200;
+ * @return {?proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy}
+ */
+proto.google.api.servicemanagement.v1.Rollout.prototype.getDeleteServiceStrategy = function() {
+ return /** @type{?proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy} */ (
+ jspb.Message.getWrapperField(this, proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy, 200));
+};
+
+
+/** @param {?proto.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy|undefined} value */
+proto.google.api.servicemanagement.v1.Rollout.prototype.setDeleteServiceStrategy = function(value) {
+ jspb.Message.setOneofWrapperField(this, 200, proto.google.api.servicemanagement.v1.Rollout.oneofGroups_[0], value);
+};
+
+
+proto.google.api.servicemanagement.v1.Rollout.prototype.clearDeleteServiceStrategy = function() {
+ this.setDeleteServiceStrategy(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicemanagement.v1.Rollout.prototype.hasDeleteServiceStrategy = function() {
+ return jspb.Message.getField(this, 200) != null;
+};
+
+
+/**
+ * optional string service_name = 8;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.Rollout.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.Rollout.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 8, value);
+};
+
+
+goog.object.extend(exports, proto.google.api.servicemanagement.v1);
diff --git a/build/lib/googleapis/google/api/servicemanagement/v1/servicemanager_grpc_pb.js b/build/lib/googleapis/google/api/servicemanagement/v1/servicemanager_grpc_pb.js
new file mode 100644
index 0000000..dc74fe2
--- /dev/null
+++ b/build/lib/googleapis/google/api/servicemanagement/v1/servicemanager_grpc_pb.js
@@ -0,0 +1,532 @@
+// GENERATED CODE -- DO NOT EDIT!
+
+// Original file comments:
+// Copyright 2017 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+'use strict';
+var grpc = require('grpc');
+var google_api_servicemanagement_v1_servicemanager_pb = require('../../../../google/api/servicemanagement/v1/servicemanager_pb.js');
+var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');
+var google_api_auth_pb = require('../../../../google/api/auth_pb.js');
+var google_api_service_pb = require('../../../../google/api/service_pb.js');
+var google_api_servicemanagement_v1_resources_pb = require('../../../../google/api/servicemanagement/v1/resources_pb.js');
+var google_longrunning_operations_pb = require('../../../../google/longrunning/operations_pb.js');
+var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
+var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js');
+var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
+var google_rpc_status_pb = require('../../../../google/rpc/status_pb.js');
+
+function serialize_google_api_Service(arg) {
+ if (!(arg instanceof google_api_service_pb.Service)) {
+ throw new Error('Expected argument of type google.api.Service');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_Service(buffer_arg) {
+ return google_api_service_pb.Service.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_CreateServiceConfigRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.CreateServiceConfigRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.CreateServiceConfigRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_CreateServiceConfigRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.CreateServiceConfigRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_CreateServiceRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.CreateServiceRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.CreateServiceRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_CreateServiceRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.CreateServiceRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_CreateServiceRolloutRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.CreateServiceRolloutRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.CreateServiceRolloutRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_CreateServiceRolloutRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.CreateServiceRolloutRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_DeleteServiceRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.DeleteServiceRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.DeleteServiceRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_DeleteServiceRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.DeleteServiceRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_DisableServiceRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.DisableServiceRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.DisableServiceRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_DisableServiceRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.DisableServiceRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_EnableServiceRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.EnableServiceRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.EnableServiceRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_EnableServiceRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.EnableServiceRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_GenerateConfigReportRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.GenerateConfigReportRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.GenerateConfigReportRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_GenerateConfigReportRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.GenerateConfigReportRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_GenerateConfigReportResponse(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.GenerateConfigReportResponse)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.GenerateConfigReportResponse');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_GenerateConfigReportResponse(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.GenerateConfigReportResponse.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_GetServiceConfigRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.GetServiceConfigRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.GetServiceConfigRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_GetServiceConfigRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.GetServiceConfigRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_GetServiceRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.GetServiceRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.GetServiceRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_GetServiceRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.GetServiceRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_GetServiceRolloutRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.GetServiceRolloutRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.GetServiceRolloutRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_GetServiceRolloutRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.GetServiceRolloutRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_ListServiceConfigsRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.ListServiceConfigsRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.ListServiceConfigsRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_ListServiceConfigsRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.ListServiceConfigsRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_ListServiceConfigsResponse(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.ListServiceConfigsResponse)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.ListServiceConfigsResponse');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_ListServiceConfigsResponse(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.ListServiceConfigsResponse.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_ListServiceRolloutsRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.ListServiceRolloutsRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.ListServiceRolloutsRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_ListServiceRolloutsRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.ListServiceRolloutsRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_ListServiceRolloutsResponse(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.ListServiceRolloutsResponse)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.ListServiceRolloutsResponse');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_ListServiceRolloutsResponse(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.ListServiceRolloutsResponse.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_ListServicesRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.ListServicesRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.ListServicesRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_ListServicesRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.ListServicesRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_ListServicesResponse(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.ListServicesResponse)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.ListServicesResponse');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_ListServicesResponse(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.ListServicesResponse.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_ManagedService(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_resources_pb.ManagedService)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.ManagedService');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_ManagedService(buffer_arg) {
+ return google_api_servicemanagement_v1_resources_pb.ManagedService.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_Rollout(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_resources_pb.Rollout)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.Rollout');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_Rollout(buffer_arg) {
+ return google_api_servicemanagement_v1_resources_pb.Rollout.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_SubmitConfigSourceRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.SubmitConfigSourceRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.SubmitConfigSourceRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_SubmitConfigSourceRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.SubmitConfigSourceRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_api_servicemanagement_v1_UndeleteServiceRequest(arg) {
+ if (!(arg instanceof google_api_servicemanagement_v1_servicemanager_pb.UndeleteServiceRequest)) {
+ throw new Error('Expected argument of type google.api.servicemanagement.v1.UndeleteServiceRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_api_servicemanagement_v1_UndeleteServiceRequest(buffer_arg) {
+ return google_api_servicemanagement_v1_servicemanager_pb.UndeleteServiceRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_longrunning_Operation(arg) {
+ if (!(arg instanceof google_longrunning_operations_pb.Operation)) {
+ throw new Error('Expected argument of type google.longrunning.Operation');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_longrunning_Operation(buffer_arg) {
+ return google_longrunning_operations_pb.Operation.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+
+// [Google Service Management API](/service-management/overview)
+var ServiceManagerService = exports.ServiceManagerService = {
+ // Lists managed services.
+ //
+ // Returns all public services. For authenticated users, also returns all
+ // services the calling user has "servicemanagement.services.get" permission
+ // for.
+ //
+ // **BETA:** If the caller specifies the `consumer_id`, it returns only the
+ // services enabled on the consumer. The `consumer_id` must have the format
+ // of "project:{PROJECT-ID}".
+ listServices: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/ListServices',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.ListServicesRequest,
+ responseType: google_api_servicemanagement_v1_servicemanager_pb.ListServicesResponse,
+ requestSerialize: serialize_google_api_servicemanagement_v1_ListServicesRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_ListServicesRequest,
+ responseSerialize: serialize_google_api_servicemanagement_v1_ListServicesResponse,
+ responseDeserialize: deserialize_google_api_servicemanagement_v1_ListServicesResponse,
+ },
+ // Gets a managed service. Authentication is required unless the service is
+ // public.
+ getService: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/GetService',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.GetServiceRequest,
+ responseType: google_api_servicemanagement_v1_resources_pb.ManagedService,
+ requestSerialize: serialize_google_api_servicemanagement_v1_GetServiceRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_GetServiceRequest,
+ responseSerialize: serialize_google_api_servicemanagement_v1_ManagedService,
+ responseDeserialize: deserialize_google_api_servicemanagement_v1_ManagedService,
+ },
+ // Creates a new managed service.
+ // Please note one producer project can own no more than 20 services.
+ //
+ // Operation
+ createService: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/CreateService',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.CreateServiceRequest,
+ responseType: google_longrunning_operations_pb.Operation,
+ requestSerialize: serialize_google_api_servicemanagement_v1_CreateServiceRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_CreateServiceRequest,
+ responseSerialize: serialize_google_longrunning_Operation,
+ responseDeserialize: deserialize_google_longrunning_Operation,
+ },
+ // Deletes a managed service. This method will change the service to the
+ // `Soft-Delete` state for 30 days. Within this period, service producers may
+ // call [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService] to restore the service.
+ // After 30 days, the service will be permanently deleted.
+ //
+ // Operation
+ deleteService: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/DeleteService',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.DeleteServiceRequest,
+ responseType: google_longrunning_operations_pb.Operation,
+ requestSerialize: serialize_google_api_servicemanagement_v1_DeleteServiceRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_DeleteServiceRequest,
+ responseSerialize: serialize_google_longrunning_Operation,
+ responseDeserialize: deserialize_google_longrunning_Operation,
+ },
+ // Revives a previously deleted managed service. The method restores the
+ // service using the configuration at the time the service was deleted.
+ // The target service must exist and must have been deleted within the
+ // last 30 days.
+ //
+ // Operation
+ undeleteService: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/UndeleteService',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.UndeleteServiceRequest,
+ responseType: google_longrunning_operations_pb.Operation,
+ requestSerialize: serialize_google_api_servicemanagement_v1_UndeleteServiceRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_UndeleteServiceRequest,
+ responseSerialize: serialize_google_longrunning_Operation,
+ responseDeserialize: deserialize_google_longrunning_Operation,
+ },
+ // Lists the history of the service configuration for a managed service,
+ // from the newest to the oldest.
+ listServiceConfigs: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/ListServiceConfigs',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.ListServiceConfigsRequest,
+ responseType: google_api_servicemanagement_v1_servicemanager_pb.ListServiceConfigsResponse,
+ requestSerialize: serialize_google_api_servicemanagement_v1_ListServiceConfigsRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_ListServiceConfigsRequest,
+ responseSerialize: serialize_google_api_servicemanagement_v1_ListServiceConfigsResponse,
+ responseDeserialize: deserialize_google_api_servicemanagement_v1_ListServiceConfigsResponse,
+ },
+ // Gets a service configuration (version) for a managed service.
+ getServiceConfig: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/GetServiceConfig',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.GetServiceConfigRequest,
+ responseType: google_api_service_pb.Service,
+ requestSerialize: serialize_google_api_servicemanagement_v1_GetServiceConfigRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_GetServiceConfigRequest,
+ responseSerialize: serialize_google_api_Service,
+ responseDeserialize: deserialize_google_api_Service,
+ },
+ // Creates a new service configuration (version) for a managed service.
+ // This method only stores the service configuration. To roll out the service
+ // configuration to backend systems please call
+ // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
+ createServiceConfig: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/CreateServiceConfig',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.CreateServiceConfigRequest,
+ responseType: google_api_service_pb.Service,
+ requestSerialize: serialize_google_api_servicemanagement_v1_CreateServiceConfigRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_CreateServiceConfigRequest,
+ responseSerialize: serialize_google_api_Service,
+ responseDeserialize: deserialize_google_api_Service,
+ },
+ // Creates a new service configuration (version) for a managed service based
+ // on
+ // user-supplied configuration source files (for example: OpenAPI
+ // Specification). This method stores the source configurations as well as the
+ // generated service configuration. To rollout the service configuration to
+ // other services,
+ // please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
+ //
+ // Operation
+ submitConfigSource: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/SubmitConfigSource',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.SubmitConfigSourceRequest,
+ responseType: google_longrunning_operations_pb.Operation,
+ requestSerialize: serialize_google_api_servicemanagement_v1_SubmitConfigSourceRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_SubmitConfigSourceRequest,
+ responseSerialize: serialize_google_longrunning_Operation,
+ responseDeserialize: deserialize_google_longrunning_Operation,
+ },
+ // Lists the history of the service configuration rollouts for a managed
+ // service, from the newest to the oldest.
+ listServiceRollouts: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/ListServiceRollouts',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.ListServiceRolloutsRequest,
+ responseType: google_api_servicemanagement_v1_servicemanager_pb.ListServiceRolloutsResponse,
+ requestSerialize: serialize_google_api_servicemanagement_v1_ListServiceRolloutsRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_ListServiceRolloutsRequest,
+ responseSerialize: serialize_google_api_servicemanagement_v1_ListServiceRolloutsResponse,
+ responseDeserialize: deserialize_google_api_servicemanagement_v1_ListServiceRolloutsResponse,
+ },
+ // Gets a service configuration [rollout][google.api.servicemanagement.v1.Rollout].
+ getServiceRollout: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/GetServiceRollout',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.GetServiceRolloutRequest,
+ responseType: google_api_servicemanagement_v1_resources_pb.Rollout,
+ requestSerialize: serialize_google_api_servicemanagement_v1_GetServiceRolloutRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_GetServiceRolloutRequest,
+ responseSerialize: serialize_google_api_servicemanagement_v1_Rollout,
+ responseDeserialize: deserialize_google_api_servicemanagement_v1_Rollout,
+ },
+ // Creates a new service configuration rollout. Based on rollout, the
+ // Google Service Management will roll out the service configurations to
+ // different backend services. For example, the logging configuration will be
+ // pushed to Google Cloud Logging.
+ //
+ // Please note that any previous pending and running Rollouts and associated
+ // Operations will be automatically cancelled so that the latest Rollout will
+ // not be blocked by previous Rollouts.
+ //
+ // Operation
+ createServiceRollout: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/CreateServiceRollout',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.CreateServiceRolloutRequest,
+ responseType: google_longrunning_operations_pb.Operation,
+ requestSerialize: serialize_google_api_servicemanagement_v1_CreateServiceRolloutRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_CreateServiceRolloutRequest,
+ responseSerialize: serialize_google_longrunning_Operation,
+ responseDeserialize: deserialize_google_longrunning_Operation,
+ },
+ // Generates and returns a report (errors, warnings and changes from
+ // existing configurations) associated with
+ // GenerateConfigReportRequest.new_value
+ //
+ // If GenerateConfigReportRequest.old_value is specified,
+ // GenerateConfigReportRequest will contain a single ChangeReport based on the
+ // comparison between GenerateConfigReportRequest.new_value and
+ // GenerateConfigReportRequest.old_value.
+ // If GenerateConfigReportRequest.old_value is not specified, this method
+ // will compare GenerateConfigReportRequest.new_value with the last pushed
+ // service configuration.
+ generateConfigReport: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/GenerateConfigReport',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.GenerateConfigReportRequest,
+ responseType: google_api_servicemanagement_v1_servicemanager_pb.GenerateConfigReportResponse,
+ requestSerialize: serialize_google_api_servicemanagement_v1_GenerateConfigReportRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_GenerateConfigReportRequest,
+ responseSerialize: serialize_google_api_servicemanagement_v1_GenerateConfigReportResponse,
+ responseDeserialize: deserialize_google_api_servicemanagement_v1_GenerateConfigReportResponse,
+ },
+ // Enables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can be used
+ // for the project. See
+ // [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
+ // more information.
+ //
+ // Operation
+ enableService: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/EnableService',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.EnableServiceRequest,
+ responseType: google_longrunning_operations_pb.Operation,
+ requestSerialize: serialize_google_api_servicemanagement_v1_EnableServiceRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_EnableServiceRequest,
+ responseSerialize: serialize_google_longrunning_Operation,
+ responseDeserialize: deserialize_google_longrunning_Operation,
+ },
+ // Disables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can no longer be
+ // be used for the project. It prevents accidental usage that may cause
+ // unexpected billing charges or security leaks.
+ //
+ // Operation
+ disableService: {
+ path: '/google.api.servicemanagement.v1.ServiceManager/DisableService',
+ requestStream: false,
+ responseStream: false,
+ requestType: google_api_servicemanagement_v1_servicemanager_pb.DisableServiceRequest,
+ responseType: google_longrunning_operations_pb.Operation,
+ requestSerialize: serialize_google_api_servicemanagement_v1_DisableServiceRequest,
+ requestDeserialize: deserialize_google_api_servicemanagement_v1_DisableServiceRequest,
+ responseSerialize: serialize_google_longrunning_Operation,
+ responseDeserialize: deserialize_google_longrunning_Operation,
+ },
+};
+
+exports.ServiceManagerClient = grpc.makeGenericClientConstructor(ServiceManagerService);
diff --git a/build/lib/googleapis/google/api/servicemanagement/v1/servicemanager_pb.js b/build/lib/googleapis/google/api/servicemanagement/v1/servicemanager_pb.js
new file mode 100644
index 0000000..ff5ec2a
--- /dev/null
+++ b/build/lib/googleapis/google/api/servicemanagement/v1/servicemanager_pb.js
@@ -0,0 +1,3910 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');
+var google_api_auth_pb = require('../../../../google/api/auth_pb.js');
+var google_api_service_pb = require('../../../../google/api/service_pb.js');
+var google_api_servicemanagement_v1_resources_pb = require('../../../../google/api/servicemanagement/v1/resources_pb.js');
+var google_longrunning_operations_pb = require('../../../../google/longrunning/operations_pb.js');
+var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
+var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js');
+var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
+var google_rpc_status_pb = require('../../../../google/rpc/status_pb.js');
+goog.exportSymbol('proto.google.api.servicemanagement.v1.CreateServiceConfigRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.CreateServiceRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.DeleteServiceRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.DisableServiceRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.EnableServiceRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.GenerateConfigReportRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.GenerateConfigReportResponse', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.GetServiceConfigRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.GetServiceRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.GetServiceRolloutRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.ListServiceConfigsRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.ListServiceConfigsResponse', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.ListServicesRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.ListServicesResponse', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.UndeleteServiceRequest', null, global);
+goog.exportSymbol('proto.google.api.servicemanagement.v1.UndeleteServiceResponse', null, global);
+
+/**
+ * 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.google.api.servicemanagement.v1.ListServicesRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.ListServicesRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.ListServicesRequest.displayName = 'proto.google.api.servicemanagement.v1.ListServicesRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ListServicesRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.ListServicesRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.ListServicesRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ListServicesRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ producerProjectId: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ pageSize: jspb.Message.getFieldWithDefault(msg, 5, 0),
+ pageToken: jspb.Message.getFieldWithDefault(msg, 6, ""),
+ consumerId: jspb.Message.getFieldWithDefault(msg, 7, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.ListServicesRequest}
+ */
+proto.google.api.servicemanagement.v1.ListServicesRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.ListServicesRequest;
+ return proto.google.api.servicemanagement.v1.ListServicesRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.ListServicesRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.ListServicesRequest}
+ */
+proto.google.api.servicemanagement.v1.ListServicesRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setProducerProjectId(value);
+ break;
+ case 5:
+ var value = /** @type {number} */ (reader.readInt32());
+ msg.setPageSize(value);
+ break;
+ case 6:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setPageToken(value);
+ break;
+ case 7:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setConsumerId(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.ListServicesRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.ListServicesRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.ListServicesRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.ListServicesRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getProducerProjectId();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getPageSize();
+ if (f !== 0) {
+ writer.writeInt32(
+ 5,
+ f
+ );
+ }
+ f = message.getPageToken();
+ if (f.length > 0) {
+ writer.writeString(
+ 6,
+ f
+ );
+ }
+ f = message.getConsumerId();
+ if (f.length > 0) {
+ writer.writeString(
+ 7,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string producer_project_id = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ListServicesRequest.prototype.getProducerProjectId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ListServicesRequest.prototype.setProducerProjectId = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional int32 page_size = 5;
+ * @return {number}
+ */
+proto.google.api.servicemanagement.v1.ListServicesRequest.prototype.getPageSize = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicemanagement.v1.ListServicesRequest.prototype.setPageSize = function(value) {
+ jspb.Message.setField(this, 5, value);
+};
+
+
+/**
+ * optional string page_token = 6;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ListServicesRequest.prototype.getPageToken = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ListServicesRequest.prototype.setPageToken = function(value) {
+ jspb.Message.setField(this, 6, value);
+};
+
+
+/**
+ * optional string consumer_id = 7;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ListServicesRequest.prototype.getConsumerId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ListServicesRequest.prototype.setConsumerId = function(value) {
+ jspb.Message.setField(this, 7, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.ListServicesResponse = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicemanagement.v1.ListServicesResponse.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.ListServicesResponse, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.ListServicesResponse.displayName = 'proto.google.api.servicemanagement.v1.ListServicesResponse';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicemanagement.v1.ListServicesResponse.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ListServicesResponse.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.ListServicesResponse.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.ListServicesResponse} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ListServicesResponse.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ servicesList: jspb.Message.toObjectList(msg.getServicesList(),
+ google_api_servicemanagement_v1_resources_pb.ManagedService.toObject, includeInstance),
+ nextPageToken: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.ListServicesResponse}
+ */
+proto.google.api.servicemanagement.v1.ListServicesResponse.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.ListServicesResponse;
+ return proto.google.api.servicemanagement.v1.ListServicesResponse.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.ListServicesResponse} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.ListServicesResponse}
+ */
+proto.google.api.servicemanagement.v1.ListServicesResponse.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new google_api_servicemanagement_v1_resources_pb.ManagedService;
+ reader.readMessage(value,google_api_servicemanagement_v1_resources_pb.ManagedService.deserializeBinaryFromReader);
+ msg.addServices(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setNextPageToken(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.ListServicesResponse.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.ListServicesResponse.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.ListServicesResponse} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.ListServicesResponse.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServicesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ google_api_servicemanagement_v1_resources_pb.ManagedService.serializeBinaryToWriter
+ );
+ }
+ f = message.getNextPageToken();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * repeated ManagedService services = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicemanagement.v1.ListServicesResponse.prototype.getServicesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_servicemanagement_v1_resources_pb.ManagedService, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicemanagement.v1.ListServicesResponse.prototype.setServicesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.api.servicemanagement.v1.ManagedService=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.servicemanagement.v1.ManagedService}
+ */
+proto.google.api.servicemanagement.v1.ListServicesResponse.prototype.addServices = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.servicemanagement.v1.ManagedService, opt_index);
+};
+
+
+proto.google.api.servicemanagement.v1.ListServicesResponse.prototype.clearServicesList = function() {
+ this.setServicesList([]);
+};
+
+
+/**
+ * optional string next_page_token = 2;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ListServicesResponse.prototype.getNextPageToken = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ListServicesResponse.prototype.setNextPageToken = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.GetServiceRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.GetServiceRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.GetServiceRequest.displayName = 'proto.google.api.servicemanagement.v1.GetServiceRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.GetServiceRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.GetServiceRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.GetServiceRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.GetServiceRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.GetServiceRequest}
+ */
+proto.google.api.servicemanagement.v1.GetServiceRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.GetServiceRequest;
+ return proto.google.api.servicemanagement.v1.GetServiceRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.GetServiceRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.GetServiceRequest}
+ */
+proto.google.api.servicemanagement.v1.GetServiceRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.GetServiceRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.GetServiceRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.GetServiceRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.GetServiceRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.GetServiceRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.GetServiceRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.CreateServiceRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.CreateServiceRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.CreateServiceRequest.displayName = 'proto.google.api.servicemanagement.v1.CreateServiceRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.CreateServiceRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.CreateServiceRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ service: (f = msg.getService()) && google_api_servicemanagement_v1_resources_pb.ManagedService.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.google.api.servicemanagement.v1.CreateServiceRequest}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.CreateServiceRequest;
+ return proto.google.api.servicemanagement.v1.CreateServiceRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.CreateServiceRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.CreateServiceRequest}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new google_api_servicemanagement_v1_resources_pb.ManagedService;
+ reader.readMessage(value,google_api_servicemanagement_v1_resources_pb.ManagedService.deserializeBinaryFromReader);
+ msg.setService(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.CreateServiceRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.CreateServiceRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getService();
+ if (f != null) {
+ writer.writeMessage(
+ 1,
+ f,
+ google_api_servicemanagement_v1_resources_pb.ManagedService.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional ManagedService service = 1;
+ * @return {?proto.google.api.servicemanagement.v1.ManagedService}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRequest.prototype.getService = function() {
+ return /** @type{?proto.google.api.servicemanagement.v1.ManagedService} */ (
+ jspb.Message.getWrapperField(this, google_api_servicemanagement_v1_resources_pb.ManagedService, 1));
+};
+
+
+/** @param {?proto.google.api.servicemanagement.v1.ManagedService|undefined} value */
+proto.google.api.servicemanagement.v1.CreateServiceRequest.prototype.setService = function(value) {
+ jspb.Message.setWrapperField(this, 1, value);
+};
+
+
+proto.google.api.servicemanagement.v1.CreateServiceRequest.prototype.clearService = function() {
+ this.setService(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRequest.prototype.hasService = function() {
+ return jspb.Message.getField(this, 1) != null;
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.DeleteServiceRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.DeleteServiceRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.DeleteServiceRequest.displayName = 'proto.google.api.servicemanagement.v1.DeleteServiceRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.DeleteServiceRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.DeleteServiceRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.DeleteServiceRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.DeleteServiceRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.DeleteServiceRequest}
+ */
+proto.google.api.servicemanagement.v1.DeleteServiceRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.DeleteServiceRequest;
+ return proto.google.api.servicemanagement.v1.DeleteServiceRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.DeleteServiceRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.DeleteServiceRequest}
+ */
+proto.google.api.servicemanagement.v1.DeleteServiceRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.DeleteServiceRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.DeleteServiceRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.DeleteServiceRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.DeleteServiceRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.DeleteServiceRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.DeleteServiceRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.UndeleteServiceRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.UndeleteServiceRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.UndeleteServiceRequest.displayName = 'proto.google.api.servicemanagement.v1.UndeleteServiceRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.UndeleteServiceRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.UndeleteServiceRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.UndeleteServiceRequest}
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.UndeleteServiceRequest;
+ return proto.google.api.servicemanagement.v1.UndeleteServiceRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.UndeleteServiceRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.UndeleteServiceRequest}
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.UndeleteServiceRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.UndeleteServiceRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.UndeleteServiceRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.UndeleteServiceResponse = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.UndeleteServiceResponse, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.UndeleteServiceResponse.displayName = 'proto.google.api.servicemanagement.v1.UndeleteServiceResponse';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceResponse.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.UndeleteServiceResponse.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.UndeleteServiceResponse} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceResponse.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ service: (f = msg.getService()) && google_api_servicemanagement_v1_resources_pb.ManagedService.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.google.api.servicemanagement.v1.UndeleteServiceResponse}
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceResponse.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.UndeleteServiceResponse;
+ return proto.google.api.servicemanagement.v1.UndeleteServiceResponse.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.UndeleteServiceResponse} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.UndeleteServiceResponse}
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceResponse.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new google_api_servicemanagement_v1_resources_pb.ManagedService;
+ reader.readMessage(value,google_api_servicemanagement_v1_resources_pb.ManagedService.deserializeBinaryFromReader);
+ msg.setService(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceResponse.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.UndeleteServiceResponse.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.UndeleteServiceResponse} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceResponse.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getService();
+ if (f != null) {
+ writer.writeMessage(
+ 1,
+ f,
+ google_api_servicemanagement_v1_resources_pb.ManagedService.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional ManagedService service = 1;
+ * @return {?proto.google.api.servicemanagement.v1.ManagedService}
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceResponse.prototype.getService = function() {
+ return /** @type{?proto.google.api.servicemanagement.v1.ManagedService} */ (
+ jspb.Message.getWrapperField(this, google_api_servicemanagement_v1_resources_pb.ManagedService, 1));
+};
+
+
+/** @param {?proto.google.api.servicemanagement.v1.ManagedService|undefined} value */
+proto.google.api.servicemanagement.v1.UndeleteServiceResponse.prototype.setService = function(value) {
+ jspb.Message.setWrapperField(this, 1, value);
+};
+
+
+proto.google.api.servicemanagement.v1.UndeleteServiceResponse.prototype.clearService = function() {
+ this.setService(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicemanagement.v1.UndeleteServiceResponse.prototype.hasService = function() {
+ return jspb.Message.getField(this, 1) != null;
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.GetServiceConfigRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.GetServiceConfigRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.GetServiceConfigRequest.displayName = 'proto.google.api.servicemanagement.v1.GetServiceConfigRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.GetServiceConfigRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.GetServiceConfigRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.GetServiceConfigRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.GetServiceConfigRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ configId: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ view: jspb.Message.getFieldWithDefault(msg, 3, 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.google.api.servicemanagement.v1.GetServiceConfigRequest}
+ */
+proto.google.api.servicemanagement.v1.GetServiceConfigRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.GetServiceConfigRequest;
+ return proto.google.api.servicemanagement.v1.GetServiceConfigRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.GetServiceConfigRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.GetServiceConfigRequest}
+ */
+proto.google.api.servicemanagement.v1.GetServiceConfigRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setConfigId(value);
+ break;
+ case 3:
+ var value = /** @type {!proto.google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView} */ (reader.readEnum());
+ msg.setView(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.GetServiceConfigRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.GetServiceConfigRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.GetServiceConfigRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.GetServiceConfigRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getConfigId();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getView();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView = {
+ BASIC: 0,
+ FULL: 1
+};
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.GetServiceConfigRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.GetServiceConfigRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string config_id = 2;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.GetServiceConfigRequest.prototype.getConfigId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.GetServiceConfigRequest.prototype.setConfigId = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional ConfigView view = 3;
+ * @return {!proto.google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView}
+ */
+proto.google.api.servicemanagement.v1.GetServiceConfigRequest.prototype.getView = function() {
+ return /** @type {!proto.google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
+};
+
+
+/** @param {!proto.google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView} value */
+proto.google.api.servicemanagement.v1.GetServiceConfigRequest.prototype.setView = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.ListServiceConfigsRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.ListServiceConfigsRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.displayName = 'proto.google.api.servicemanagement.v1.ListServiceConfigsRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.ListServiceConfigsRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ pageToken: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ pageSize: jspb.Message.getFieldWithDefault(msg, 3, 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.google.api.servicemanagement.v1.ListServiceConfigsRequest}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.ListServiceConfigsRequest;
+ return proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.ListServiceConfigsRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.ListServiceConfigsRequest}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setPageToken(value);
+ break;
+ case 3:
+ var value = /** @type {number} */ (reader.readInt32());
+ msg.setPageSize(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.ListServiceConfigsRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getPageToken();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getPageSize();
+ if (f !== 0) {
+ writer.writeInt32(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string page_token = 2;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.prototype.getPageToken = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.prototype.setPageToken = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional int32 page_size = 3;
+ * @return {number}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.prototype.getPageSize = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicemanagement.v1.ListServiceConfigsRequest.prototype.setPageSize = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.ListServiceConfigsResponse = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.ListServiceConfigsResponse, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.displayName = 'proto.google.api.servicemanagement.v1.ListServiceConfigsResponse';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.ListServiceConfigsResponse} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceConfigsList: jspb.Message.toObjectList(msg.getServiceConfigsList(),
+ google_api_service_pb.Service.toObject, includeInstance),
+ nextPageToken: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.ListServiceConfigsResponse}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.ListServiceConfigsResponse;
+ return proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.ListServiceConfigsResponse} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.ListServiceConfigsResponse}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new google_api_service_pb.Service;
+ reader.readMessage(value,google_api_service_pb.Service.deserializeBinaryFromReader);
+ msg.addServiceConfigs(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setNextPageToken(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.ListServiceConfigsResponse} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceConfigsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ google_api_service_pb.Service.serializeBinaryToWriter
+ );
+ }
+ f = message.getNextPageToken();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * repeated google.api.Service service_configs = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.prototype.getServiceConfigsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_service_pb.Service, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.prototype.setServiceConfigsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.api.Service=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.Service}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.prototype.addServiceConfigs = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Service, opt_index);
+};
+
+
+proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.prototype.clearServiceConfigsList = function() {
+ this.setServiceConfigsList([]);
+};
+
+
+/**
+ * optional string next_page_token = 2;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.prototype.getNextPageToken = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ListServiceConfigsResponse.prototype.setNextPageToken = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.CreateServiceConfigRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.CreateServiceConfigRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.displayName = 'proto.google.api.servicemanagement.v1.CreateServiceConfigRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.CreateServiceConfigRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ serviceConfig: (f = msg.getServiceConfig()) && google_api_service_pb.Service.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.google.api.servicemanagement.v1.CreateServiceConfigRequest}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.CreateServiceConfigRequest;
+ return proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.CreateServiceConfigRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.CreateServiceConfigRequest}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ case 2:
+ var value = new google_api_service_pb.Service;
+ reader.readMessage(value,google_api_service_pb.Service.deserializeBinaryFromReader);
+ msg.setServiceConfig(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.CreateServiceConfigRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getServiceConfig();
+ if (f != null) {
+ writer.writeMessage(
+ 2,
+ f,
+ google_api_service_pb.Service.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional google.api.Service service_config = 2;
+ * @return {?proto.google.api.Service}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.prototype.getServiceConfig = function() {
+ return /** @type{?proto.google.api.Service} */ (
+ jspb.Message.getWrapperField(this, google_api_service_pb.Service, 2));
+};
+
+
+/** @param {?proto.google.api.Service|undefined} value */
+proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.prototype.setServiceConfig = function(value) {
+ jspb.Message.setWrapperField(this, 2, value);
+};
+
+
+proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.prototype.clearServiceConfig = function() {
+ this.setServiceConfig(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceConfigRequest.prototype.hasServiceConfig = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.SubmitConfigSourceRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.displayName = 'proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ configSource: (f = msg.getConfigSource()) && google_api_servicemanagement_v1_resources_pb.ConfigSource.toObject(includeInstance, f),
+ validateOnly: jspb.Message.getFieldWithDefault(msg, 3, false)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest;
+ return proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ case 2:
+ var value = new google_api_servicemanagement_v1_resources_pb.ConfigSource;
+ reader.readMessage(value,google_api_servicemanagement_v1_resources_pb.ConfigSource.deserializeBinaryFromReader);
+ msg.setConfigSource(value);
+ break;
+ case 3:
+ var value = /** @type {boolean} */ (reader.readBool());
+ msg.setValidateOnly(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getConfigSource();
+ if (f != null) {
+ writer.writeMessage(
+ 2,
+ f,
+ google_api_servicemanagement_v1_resources_pb.ConfigSource.serializeBinaryToWriter
+ );
+ }
+ f = message.getValidateOnly();
+ if (f) {
+ writer.writeBool(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional ConfigSource config_source = 2;
+ * @return {?proto.google.api.servicemanagement.v1.ConfigSource}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.prototype.getConfigSource = function() {
+ return /** @type{?proto.google.api.servicemanagement.v1.ConfigSource} */ (
+ jspb.Message.getWrapperField(this, google_api_servicemanagement_v1_resources_pb.ConfigSource, 2));
+};
+
+
+/** @param {?proto.google.api.servicemanagement.v1.ConfigSource|undefined} value */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.prototype.setConfigSource = function(value) {
+ jspb.Message.setWrapperField(this, 2, value);
+};
+
+
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.prototype.clearConfigSource = function() {
+ this.setConfigSource(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.prototype.hasConfigSource = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+/**
+ * optional bool validate_only = 3;
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
+ * You should avoid comparisons like {@code val === true/false} in those cases.
+ * @return {boolean}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.prototype.getValidateOnly = function() {
+ return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false));
+};
+
+
+/** @param {boolean} value */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceRequest.prototype.setValidateOnly = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.SubmitConfigSourceResponse = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.displayName = 'proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceConfig: (f = msg.getServiceConfig()) && google_api_service_pb.Service.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.google.api.servicemanagement.v1.SubmitConfigSourceResponse}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse;
+ return proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new google_api_service_pb.Service;
+ reader.readMessage(value,google_api_service_pb.Service.deserializeBinaryFromReader);
+ msg.setServiceConfig(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceConfig();
+ if (f != null) {
+ writer.writeMessage(
+ 1,
+ f,
+ google_api_service_pb.Service.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional google.api.Service service_config = 1;
+ * @return {?proto.google.api.Service}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.prototype.getServiceConfig = function() {
+ return /** @type{?proto.google.api.Service} */ (
+ jspb.Message.getWrapperField(this, google_api_service_pb.Service, 1));
+};
+
+
+/** @param {?proto.google.api.Service|undefined} value */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.prototype.setServiceConfig = function(value) {
+ jspb.Message.setWrapperField(this, 1, value);
+};
+
+
+proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.prototype.clearServiceConfig = function() {
+ this.setServiceConfig(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicemanagement.v1.SubmitConfigSourceResponse.prototype.hasServiceConfig = function() {
+ return jspb.Message.getField(this, 1) != null;
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.CreateServiceRolloutRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.displayName = 'proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ rollout: (f = msg.getRollout()) && google_api_servicemanagement_v1_resources_pb.Rollout.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.google.api.servicemanagement.v1.CreateServiceRolloutRequest}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest;
+ return proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ case 2:
+ var value = new google_api_servicemanagement_v1_resources_pb.Rollout;
+ reader.readMessage(value,google_api_servicemanagement_v1_resources_pb.Rollout.deserializeBinaryFromReader);
+ msg.setRollout(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getRollout();
+ if (f != null) {
+ writer.writeMessage(
+ 2,
+ f,
+ google_api_servicemanagement_v1_resources_pb.Rollout.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional Rollout rollout = 2;
+ * @return {?proto.google.api.servicemanagement.v1.Rollout}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.prototype.getRollout = function() {
+ return /** @type{?proto.google.api.servicemanagement.v1.Rollout} */ (
+ jspb.Message.getWrapperField(this, google_api_servicemanagement_v1_resources_pb.Rollout, 2));
+};
+
+
+/** @param {?proto.google.api.servicemanagement.v1.Rollout|undefined} value */
+proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.prototype.setRollout = function(value) {
+ jspb.Message.setWrapperField(this, 2, value);
+};
+
+
+proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.prototype.clearRollout = function() {
+ this.setRollout(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicemanagement.v1.CreateServiceRolloutRequest.prototype.hasRollout = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.ListServiceRolloutsRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.displayName = 'proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ pageToken: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ pageSize: jspb.Message.getFieldWithDefault(msg, 3, 0),
+ filter: jspb.Message.getFieldWithDefault(msg, 4, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest;
+ return proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setPageToken(value);
+ break;
+ case 3:
+ var value = /** @type {number} */ (reader.readInt32());
+ msg.setPageSize(value);
+ break;
+ case 4:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setFilter(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getPageToken();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getPageSize();
+ if (f !== 0) {
+ writer.writeInt32(
+ 3,
+ f
+ );
+ }
+ f = message.getFilter();
+ if (f.length > 0) {
+ writer.writeString(
+ 4,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string page_token = 2;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.prototype.getPageToken = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.prototype.setPageToken = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional int32 page_size = 3;
+ * @return {number}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.prototype.getPageSize = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
+};
+
+
+/** @param {number} value */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.prototype.setPageSize = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional string filter = 4;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.prototype.getFilter = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsRequest.prototype.setFilter = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.ListServiceRolloutsResponse = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.displayName = 'proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ rolloutsList: jspb.Message.toObjectList(msg.getRolloutsList(),
+ google_api_servicemanagement_v1_resources_pb.Rollout.toObject, includeInstance),
+ nextPageToken: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse;
+ return proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new google_api_servicemanagement_v1_resources_pb.Rollout;
+ reader.readMessage(value,google_api_servicemanagement_v1_resources_pb.Rollout.deserializeBinaryFromReader);
+ msg.addRollouts(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setNextPageToken(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getRolloutsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ google_api_servicemanagement_v1_resources_pb.Rollout.serializeBinaryToWriter
+ );
+ }
+ f = message.getNextPageToken();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * repeated Rollout rollouts = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.prototype.getRolloutsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_servicemanagement_v1_resources_pb.Rollout, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.prototype.setRolloutsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.api.servicemanagement.v1.Rollout=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.servicemanagement.v1.Rollout}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.prototype.addRollouts = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.servicemanagement.v1.Rollout, opt_index);
+};
+
+
+proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.prototype.clearRolloutsList = function() {
+ this.setRolloutsList([]);
+};
+
+
+/**
+ * optional string next_page_token = 2;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.prototype.getNextPageToken = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.ListServiceRolloutsResponse.prototype.setNextPageToken = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.GetServiceRolloutRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.GetServiceRolloutRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.displayName = 'proto.google.api.servicemanagement.v1.GetServiceRolloutRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.GetServiceRolloutRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ rolloutId: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.GetServiceRolloutRequest}
+ */
+proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.GetServiceRolloutRequest;
+ return proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.GetServiceRolloutRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.GetServiceRolloutRequest}
+ */
+proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setRolloutId(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.GetServiceRolloutRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getRolloutId();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string rollout_id = 2;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.prototype.getRolloutId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.GetServiceRolloutRequest.prototype.setRolloutId = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.EnableServiceRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.EnableServiceRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.EnableServiceRequest.displayName = 'proto.google.api.servicemanagement.v1.EnableServiceRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.EnableServiceRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.EnableServiceRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.EnableServiceRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.EnableServiceRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ consumerId: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.EnableServiceRequest}
+ */
+proto.google.api.servicemanagement.v1.EnableServiceRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.EnableServiceRequest;
+ return proto.google.api.servicemanagement.v1.EnableServiceRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.EnableServiceRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.EnableServiceRequest}
+ */
+proto.google.api.servicemanagement.v1.EnableServiceRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setConsumerId(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.EnableServiceRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.EnableServiceRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.EnableServiceRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.EnableServiceRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getConsumerId();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.EnableServiceRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.EnableServiceRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string consumer_id = 2;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.EnableServiceRequest.prototype.getConsumerId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.EnableServiceRequest.prototype.setConsumerId = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.DisableServiceRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.DisableServiceRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.DisableServiceRequest.displayName = 'proto.google.api.servicemanagement.v1.DisableServiceRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.DisableServiceRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.DisableServiceRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.DisableServiceRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.DisableServiceRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ consumerId: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.DisableServiceRequest}
+ */
+proto.google.api.servicemanagement.v1.DisableServiceRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.DisableServiceRequest;
+ return proto.google.api.servicemanagement.v1.DisableServiceRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.DisableServiceRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.DisableServiceRequest}
+ */
+proto.google.api.servicemanagement.v1.DisableServiceRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setConsumerId(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.DisableServiceRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.DisableServiceRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.DisableServiceRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.DisableServiceRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getConsumerId();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.DisableServiceRequest.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.DisableServiceRequest.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string consumer_id = 2;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.DisableServiceRequest.prototype.getConsumerId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.DisableServiceRequest.prototype.setConsumerId = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.GenerateConfigReportRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.GenerateConfigReportRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.displayName = 'proto.google.api.servicemanagement.v1.GenerateConfigReportRequest';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.GenerateConfigReportRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ newConfig: (f = msg.getNewConfig()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
+ oldConfig: (f = msg.getOldConfig()) && google_protobuf_any_pb.Any.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.google.api.servicemanagement.v1.GenerateConfigReportRequest}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.GenerateConfigReportRequest;
+ return proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.GenerateConfigReportRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.GenerateConfigReportRequest}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new google_protobuf_any_pb.Any;
+ reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
+ msg.setNewConfig(value);
+ break;
+ case 2:
+ var value = new google_protobuf_any_pb.Any;
+ reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
+ msg.setOldConfig(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.GenerateConfigReportRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getNewConfig();
+ if (f != null) {
+ writer.writeMessage(
+ 1,
+ f,
+ google_protobuf_any_pb.Any.serializeBinaryToWriter
+ );
+ }
+ f = message.getOldConfig();
+ if (f != null) {
+ writer.writeMessage(
+ 2,
+ f,
+ google_protobuf_any_pb.Any.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional google.protobuf.Any new_config = 1;
+ * @return {?proto.google.protobuf.Any}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.prototype.getNewConfig = function() {
+ return /** @type{?proto.google.protobuf.Any} */ (
+ jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1));
+};
+
+
+/** @param {?proto.google.protobuf.Any|undefined} value */
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.prototype.setNewConfig = function(value) {
+ jspb.Message.setWrapperField(this, 1, value);
+};
+
+
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.prototype.clearNewConfig = function() {
+ this.setNewConfig(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.prototype.hasNewConfig = function() {
+ return jspb.Message.getField(this, 1) != null;
+};
+
+
+/**
+ * optional google.protobuf.Any old_config = 2;
+ * @return {?proto.google.protobuf.Any}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.prototype.getOldConfig = function() {
+ return /** @type{?proto.google.protobuf.Any} */ (
+ jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2));
+};
+
+
+/** @param {?proto.google.protobuf.Any|undefined} value */
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.prototype.setOldConfig = function(value) {
+ jspb.Message.setWrapperField(this, 2, value);
+};
+
+
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.prototype.clearOldConfig = function() {
+ this.setOldConfig(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportRequest.prototype.hasOldConfig = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+
+/**
+ * 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.google.api.servicemanagement.v1.GenerateConfigReportResponse = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.servicemanagement.v1.GenerateConfigReportResponse, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.displayName = 'proto.google.api.servicemanagement.v1.GenerateConfigReportResponse';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.repeatedFields_ = [3,4];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.servicemanagement.v1.GenerateConfigReportResponse} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ serviceName: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ id: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ changeReportsList: jspb.Message.toObjectList(msg.getChangeReportsList(),
+ google_api_servicemanagement_v1_resources_pb.ChangeReport.toObject, includeInstance),
+ diagnosticsList: jspb.Message.toObjectList(msg.getDiagnosticsList(),
+ google_api_servicemanagement_v1_resources_pb.Diagnostic.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.servicemanagement.v1.GenerateConfigReportResponse}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.servicemanagement.v1.GenerateConfigReportResponse;
+ return proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.servicemanagement.v1.GenerateConfigReportResponse} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.servicemanagement.v1.GenerateConfigReportResponse}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServiceName(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setId(value);
+ break;
+ case 3:
+ var value = new google_api_servicemanagement_v1_resources_pb.ChangeReport;
+ reader.readMessage(value,google_api_servicemanagement_v1_resources_pb.ChangeReport.deserializeBinaryFromReader);
+ msg.addChangeReports(value);
+ break;
+ case 4:
+ var value = new google_api_servicemanagement_v1_resources_pb.Diagnostic;
+ reader.readMessage(value,google_api_servicemanagement_v1_resources_pb.Diagnostic.deserializeBinaryFromReader);
+ msg.addDiagnostics(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.servicemanagement.v1.GenerateConfigReportResponse} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getServiceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getId();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getChangeReportsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 3,
+ f,
+ google_api_servicemanagement_v1_resources_pb.ChangeReport.serializeBinaryToWriter
+ );
+ }
+ f = message.getDiagnosticsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 4,
+ f,
+ google_api_servicemanagement_v1_resources_pb.Diagnostic.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional string service_name = 1;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.getServiceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.setServiceName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string id = 2;
+ * @return {string}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.getId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.setId = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * repeated ChangeReport change_reports = 3;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.getChangeReportsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_servicemanagement_v1_resources_pb.ChangeReport, 3));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.setChangeReportsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 3, value);
+};
+
+
+/**
+ * @param {!proto.google.api.servicemanagement.v1.ChangeReport=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.servicemanagement.v1.ChangeReport}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.addChangeReports = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.servicemanagement.v1.ChangeReport, opt_index);
+};
+
+
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.clearChangeReportsList = function() {
+ this.setChangeReportsList([]);
+};
+
+
+/**
+ * repeated Diagnostic diagnostics = 4;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.getDiagnosticsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_api_servicemanagement_v1_resources_pb.Diagnostic, 4));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.setDiagnosticsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 4, value);
+};
+
+
+/**
+ * @param {!proto.google.api.servicemanagement.v1.Diagnostic=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.servicemanagement.v1.Diagnostic}
+ */
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.addDiagnostics = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.servicemanagement.v1.Diagnostic, opt_index);
+};
+
+
+proto.google.api.servicemanagement.v1.GenerateConfigReportResponse.prototype.clearDiagnosticsList = function() {
+ this.setDiagnosticsList([]);
+};
+
+
+goog.object.extend(exports, proto.google.api.servicemanagement.v1);
diff --git a/build/lib/googleapis/google/api/source_info_pb.js b/build/lib/googleapis/google/api/source_info_pb.js
new file mode 100644
index 0000000..2cb0044
--- /dev/null
+++ b/build/lib/googleapis/google/api/source_info_pb.js
@@ -0,0 +1,182 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
+goog.exportSymbol('proto.google.api.SourceInfo', null, global);
+
+/**
+ * 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.google.api.SourceInfo = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SourceInfo.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.SourceInfo, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.SourceInfo.displayName = 'proto.google.api.SourceInfo';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.SourceInfo.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.SourceInfo.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.SourceInfo.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.SourceInfo} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.SourceInfo.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ sourceFilesList: jspb.Message.toObjectList(msg.getSourceFilesList(),
+ google_protobuf_any_pb.Any.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.SourceInfo}
+ */
+proto.google.api.SourceInfo.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.SourceInfo;
+ return proto.google.api.SourceInfo.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.SourceInfo} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.SourceInfo}
+ */
+proto.google.api.SourceInfo.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new google_protobuf_any_pb.Any;
+ reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
+ msg.addSourceFiles(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.SourceInfo.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.SourceInfo.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.SourceInfo} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.SourceInfo.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSourceFilesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ google_protobuf_any_pb.Any.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * repeated google.protobuf.Any source_files = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.SourceInfo.prototype.getSourceFilesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.SourceInfo.prototype.setSourceFilesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.protobuf.Any=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.protobuf.Any}
+ */
+proto.google.api.SourceInfo.prototype.addSourceFiles = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.Any, opt_index);
+};
+
+
+proto.google.api.SourceInfo.prototype.clearSourceFilesList = function() {
+ this.setSourceFilesList([]);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/system_parameter_pb.js b/build/lib/googleapis/google/api/system_parameter_pb.js
new file mode 100644
index 0000000..7d67f87
--- /dev/null
+++ b/build/lib/googleapis/google/api/system_parameter_pb.js
@@ -0,0 +1,572 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+goog.exportSymbol('proto.google.api.SystemParameter', null, global);
+goog.exportSymbol('proto.google.api.SystemParameterRule', null, global);
+goog.exportSymbol('proto.google.api.SystemParameters', null, global);
+
+/**
+ * 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.google.api.SystemParameters = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SystemParameters.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.SystemParameters, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.SystemParameters.displayName = 'proto.google.api.SystemParameters';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.SystemParameters.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.SystemParameters.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.SystemParameters.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.SystemParameters} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.SystemParameters.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ rulesList: jspb.Message.toObjectList(msg.getRulesList(),
+ proto.google.api.SystemParameterRule.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.SystemParameters}
+ */
+proto.google.api.SystemParameters.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.SystemParameters;
+ return proto.google.api.SystemParameters.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.SystemParameters} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.SystemParameters}
+ */
+proto.google.api.SystemParameters.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.api.SystemParameterRule;
+ reader.readMessage(value,proto.google.api.SystemParameterRule.deserializeBinaryFromReader);
+ msg.addRules(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.SystemParameters.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.SystemParameters.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.SystemParameters} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.SystemParameters.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getRulesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ proto.google.api.SystemParameterRule.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * repeated SystemParameterRule rules = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.SystemParameters.prototype.getRulesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.SystemParameterRule, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.SystemParameters.prototype.setRulesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.api.SystemParameterRule=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.SystemParameterRule}
+ */
+proto.google.api.SystemParameters.prototype.addRules = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.SystemParameterRule, opt_index);
+};
+
+
+proto.google.api.SystemParameters.prototype.clearRulesList = function() {
+ this.setRulesList([]);
+};
+
+
+
+/**
+ * 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.google.api.SystemParameterRule = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SystemParameterRule.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.SystemParameterRule, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.SystemParameterRule.displayName = 'proto.google.api.SystemParameterRule';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.SystemParameterRule.repeatedFields_ = [2];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.SystemParameterRule.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.SystemParameterRule.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.SystemParameterRule} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.SystemParameterRule.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ parametersList: jspb.Message.toObjectList(msg.getParametersList(),
+ proto.google.api.SystemParameter.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.SystemParameterRule}
+ */
+proto.google.api.SystemParameterRule.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.SystemParameterRule;
+ return proto.google.api.SystemParameterRule.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.SystemParameterRule} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.SystemParameterRule}
+ */
+proto.google.api.SystemParameterRule.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSelector(value);
+ break;
+ case 2:
+ var value = new proto.google.api.SystemParameter;
+ reader.readMessage(value,proto.google.api.SystemParameter.deserializeBinaryFromReader);
+ msg.addParameters(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.SystemParameterRule.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.SystemParameterRule.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.SystemParameterRule} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.SystemParameterRule.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSelector();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getParametersList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 2,
+ f,
+ proto.google.api.SystemParameter.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional string selector = 1;
+ * @return {string}
+ */
+proto.google.api.SystemParameterRule.prototype.getSelector = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.SystemParameterRule.prototype.setSelector = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * repeated SystemParameter parameters = 2;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.SystemParameterRule.prototype.getParametersList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.SystemParameter, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.SystemParameterRule.prototype.setParametersList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
+};
+
+
+/**
+ * @param {!proto.google.api.SystemParameter=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.SystemParameter}
+ */
+proto.google.api.SystemParameterRule.prototype.addParameters = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.SystemParameter, opt_index);
+};
+
+
+proto.google.api.SystemParameterRule.prototype.clearParametersList = function() {
+ this.setParametersList([]);
+};
+
+
+
+/**
+ * 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.google.api.SystemParameter = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.SystemParameter, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.SystemParameter.displayName = 'proto.google.api.SystemParameter';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.SystemParameter.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.SystemParameter.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.SystemParameter} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.SystemParameter.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ httpHeader: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ urlQueryParameter: jspb.Message.getFieldWithDefault(msg, 3, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.SystemParameter}
+ */
+proto.google.api.SystemParameter.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.SystemParameter;
+ return proto.google.api.SystemParameter.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.SystemParameter} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.SystemParameter}
+ */
+proto.google.api.SystemParameter.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setName(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setHttpHeader(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setUrlQueryParameter(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.SystemParameter.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.SystemParameter.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.SystemParameter} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.SystemParameter.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getName();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getHttpHeader();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getUrlQueryParameter();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string name = 1;
+ * @return {string}
+ */
+proto.google.api.SystemParameter.prototype.getName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.SystemParameter.prototype.setName = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string http_header = 2;
+ * @return {string}
+ */
+proto.google.api.SystemParameter.prototype.getHttpHeader = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.SystemParameter.prototype.setHttpHeader = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional string url_query_parameter = 3;
+ * @return {string}
+ */
+proto.google.api.SystemParameter.prototype.getUrlQueryParameter = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.SystemParameter.prototype.setUrlQueryParameter = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/api/usage_pb.js b/build/lib/googleapis/google/api/usage_pb.js
new file mode 100644
index 0000000..811885a
--- /dev/null
+++ b/build/lib/googleapis/google/api/usage_pb.js
@@ -0,0 +1,422 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
+goog.exportSymbol('proto.google.api.Usage', null, global);
+goog.exportSymbol('proto.google.api.UsageRule', null, global);
+
+/**
+ * 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.google.api.Usage = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Usage.repeatedFields_, null);
+};
+goog.inherits(proto.google.api.Usage, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.Usage.displayName = 'proto.google.api.Usage';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.api.Usage.repeatedFields_ = [1,6];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.Usage.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.Usage.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.Usage} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.Usage.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ requirementsList: jspb.Message.getField(msg, 1),
+ rulesList: jspb.Message.toObjectList(msg.getRulesList(),
+ proto.google.api.UsageRule.toObject, includeInstance),
+ producerNotificationChannel: jspb.Message.getFieldWithDefault(msg, 7, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.Usage}
+ */
+proto.google.api.Usage.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.Usage;
+ return proto.google.api.Usage.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.Usage} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.Usage}
+ */
+proto.google.api.Usage.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.addRequirements(value);
+ break;
+ case 6:
+ var value = new proto.google.api.UsageRule;
+ reader.readMessage(value,proto.google.api.UsageRule.deserializeBinaryFromReader);
+ msg.addRules(value);
+ break;
+ case 7:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setProducerNotificationChannel(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.Usage.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.Usage.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.Usage} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.Usage.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getRequirementsList();
+ if (f.length > 0) {
+ writer.writeRepeatedString(
+ 1,
+ f
+ );
+ }
+ f = message.getRulesList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 6,
+ f,
+ proto.google.api.UsageRule.serializeBinaryToWriter
+ );
+ }
+ f = message.getProducerNotificationChannel();
+ if (f.length > 0) {
+ writer.writeString(
+ 7,
+ f
+ );
+ }
+};
+
+
+/**
+ * repeated string requirements = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Usage.prototype.getRequirementsList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Usage.prototype.setRequirementsList = function(value) {
+ jspb.Message.setField(this, 1, value || []);
+};
+
+
+/**
+ * @param {!string} value
+ * @param {number=} opt_index
+ */
+proto.google.api.Usage.prototype.addRequirements = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 1, value, opt_index);
+};
+
+
+proto.google.api.Usage.prototype.clearRequirementsList = function() {
+ this.setRequirementsList([]);
+};
+
+
+/**
+ * repeated UsageRule rules = 6;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.api.Usage.prototype.getRulesList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.UsageRule, 6));
+};
+
+
+/** @param {!Array.} value */
+proto.google.api.Usage.prototype.setRulesList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 6, value);
+};
+
+
+/**
+ * @param {!proto.google.api.UsageRule=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.api.UsageRule}
+ */
+proto.google.api.Usage.prototype.addRules = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.api.UsageRule, opt_index);
+};
+
+
+proto.google.api.Usage.prototype.clearRulesList = function() {
+ this.setRulesList([]);
+};
+
+
+/**
+ * optional string producer_notification_channel = 7;
+ * @return {string}
+ */
+proto.google.api.Usage.prototype.getProducerNotificationChannel = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.Usage.prototype.setProducerNotificationChannel = function(value) {
+ jspb.Message.setField(this, 7, value);
+};
+
+
+
+/**
+ * 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.google.api.UsageRule = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.api.UsageRule, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.api.UsageRule.displayName = 'proto.google.api.UsageRule';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.api.UsageRule.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.api.UsageRule.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.api.UsageRule} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.api.UsageRule.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ allowUnregisteredCalls: jspb.Message.getFieldWithDefault(msg, 2, false)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.api.UsageRule}
+ */
+proto.google.api.UsageRule.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.api.UsageRule;
+ return proto.google.api.UsageRule.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.api.UsageRule} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.api.UsageRule}
+ */
+proto.google.api.UsageRule.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSelector(value);
+ break;
+ case 2:
+ var value = /** @type {boolean} */ (reader.readBool());
+ msg.setAllowUnregisteredCalls(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.api.UsageRule.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.api.UsageRule.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.api.UsageRule} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.api.UsageRule.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSelector();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getAllowUnregisteredCalls();
+ if (f) {
+ writer.writeBool(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string selector = 1;
+ * @return {string}
+ */
+proto.google.api.UsageRule.prototype.getSelector = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.api.UsageRule.prototype.setSelector = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional bool allow_unregistered_calls = 2;
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
+ * You should avoid comparisons like {@code val === true/false} in those cases.
+ * @return {boolean}
+ */
+proto.google.api.UsageRule.prototype.getAllowUnregisteredCalls = function() {
+ return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false));
+};
+
+
+/** @param {boolean} value */
+proto.google.api.UsageRule.prototype.setAllowUnregisteredCalls = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+goog.object.extend(exports, proto.google.api);
diff --git a/build/lib/googleapis/google/assistant/embedded/v1alpha2/embedded_assistant_grpc_pb.js b/build/lib/googleapis/google/assistant/embedded/v1alpha2/embedded_assistant_grpc_pb.js
new file mode 100644
index 0000000..7059af2
--- /dev/null
+++ b/build/lib/googleapis/google/assistant/embedded/v1alpha2/embedded_assistant_grpc_pb.js
@@ -0,0 +1,105 @@
+// GENERATED CODE -- DO NOT EDIT!
+
+// Original file comments:
+// Copyright 2017 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+'use strict';
+var grpc = require('grpc');
+var google_assistant_embedded_v1alpha2_embedded_assistant_pb = require('../../../../google/assistant/embedded/v1alpha2/embedded_assistant_pb.js');
+var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');
+var google_type_latlng_pb = require('../../../../google/type/latlng_pb.js');
+
+function serialize_google_assistant_embedded_v1alpha2_AssistRequest(arg) {
+ if (!(arg instanceof google_assistant_embedded_v1alpha2_embedded_assistant_pb.AssistRequest)) {
+ throw new Error('Expected argument of type google.assistant.embedded.v1alpha2.AssistRequest');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_assistant_embedded_v1alpha2_AssistRequest(buffer_arg) {
+ return google_assistant_embedded_v1alpha2_embedded_assistant_pb.AssistRequest.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+function serialize_google_assistant_embedded_v1alpha2_AssistResponse(arg) {
+ if (!(arg instanceof google_assistant_embedded_v1alpha2_embedded_assistant_pb.AssistResponse)) {
+ throw new Error('Expected argument of type google.assistant.embedded.v1alpha2.AssistResponse');
+ }
+ return new Buffer(arg.serializeBinary());
+}
+
+function deserialize_google_assistant_embedded_v1alpha2_AssistResponse(buffer_arg) {
+ return google_assistant_embedded_v1alpha2_embedded_assistant_pb.AssistResponse.deserializeBinary(new Uint8Array(buffer_arg));
+}
+
+
+// Service that implements the Google Assistant API.
+var EmbeddedAssistantService = exports.EmbeddedAssistantService = {
+ // Initiates or continues a conversation with the embedded Assistant Service.
+ // Each call performs one round-trip, sending an audio request to the service
+ // and receiving the audio response. Uses bidirectional streaming to receive
+ // results, such as the `END_OF_UTTERANCE` event, while sending audio.
+ //
+ // A conversation is one or more gRPC connections, each consisting of several
+ // streamed requests and responses.
+ // For example, the user says *Add to my shopping list* and the Assistant
+ // responds *What do you want to add?*. The sequence of streamed requests and
+ // responses in the first gRPC message could be:
+ //
+ // * AssistRequest.config
+ // * AssistRequest.audio_in
+ // * AssistRequest.audio_in
+ // * AssistRequest.audio_in
+ // * AssistRequest.audio_in
+ // * AssistResponse.event_type.END_OF_UTTERANCE
+ // * AssistResponse.speech_results.transcript "add to my shopping list"
+ // * AssistResponse.dialog_state_out.microphone_mode.DIALOG_FOLLOW_ON
+ // * AssistResponse.audio_out
+ // * AssistResponse.audio_out
+ // * AssistResponse.audio_out
+ //
+ //
+ // The user then says *bagels* and the Assistant responds
+ // *OK, I've added bagels to your shopping list*. This is sent as another gRPC
+ // connection call to the `Assist` method, again with streamed requests and
+ // responses, such as:
+ //
+ // * AssistRequest.config
+ // * AssistRequest.audio_in
+ // * AssistRequest.audio_in
+ // * AssistRequest.audio_in
+ // * AssistResponse.event_type.END_OF_UTTERANCE
+ // * AssistResponse.dialog_state_out.microphone_mode.CLOSE_MICROPHONE
+ // * AssistResponse.audio_out
+ // * AssistResponse.audio_out
+ // * AssistResponse.audio_out
+ // * AssistResponse.audio_out
+ //
+ // Although the precise order of responses is not guaranteed, sequential
+ // `AssistResponse.audio_out` messages will always contain sequential portions
+ // of audio.
+ assist: {
+ path: '/google.assistant.embedded.v1alpha2.EmbeddedAssistant/Assist',
+ requestStream: true,
+ responseStream: true,
+ requestType: google_assistant_embedded_v1alpha2_embedded_assistant_pb.AssistRequest,
+ responseType: google_assistant_embedded_v1alpha2_embedded_assistant_pb.AssistResponse,
+ requestSerialize: serialize_google_assistant_embedded_v1alpha2_AssistRequest,
+ requestDeserialize: deserialize_google_assistant_embedded_v1alpha2_AssistRequest,
+ responseSerialize: serialize_google_assistant_embedded_v1alpha2_AssistResponse,
+ responseDeserialize: deserialize_google_assistant_embedded_v1alpha2_AssistResponse,
+ },
+};
+
+exports.EmbeddedAssistantClient = grpc.makeGenericClientConstructor(EmbeddedAssistantService);
\ No newline at end of file
diff --git a/build/lib/googleapis/google/assistant/embedded/v1alpha2/embedded_assistant_pb.js b/build/lib/googleapis/google/assistant/embedded/v1alpha2/embedded_assistant_pb.js
new file mode 100644
index 0000000..6942e6e
--- /dev/null
+++ b/build/lib/googleapis/google/assistant/embedded/v1alpha2/embedded_assistant_pb.js
@@ -0,0 +1,2682 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @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!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');
+var google_type_latlng_pb = require('../../../../google/type/latlng_pb.js');
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.AssistConfig', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.AssistRequest', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.AssistResponse', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.AssistResponse.EventType', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.AudioInConfig', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.AudioInConfig.Encoding', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.AudioOut', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.AudioOutConfig', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.AudioOutConfig.Encoding', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.DeviceAction', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.DeviceConfig', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.DeviceLocation', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.DialogStateIn', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.DialogStateOut', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.DialogStateOut.MicrophoneMode', null, global);
+goog.exportSymbol('proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult', null, global);
+
+/**
+ * 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.google.assistant.embedded.v1alpha2.AssistConfig = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.assistant.embedded.v1alpha2.AssistConfig.oneofGroups_);
+};
+goog.inherits(proto.google.assistant.embedded.v1alpha2.AssistConfig, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.assistant.embedded.v1alpha2.AssistConfig.displayName = 'proto.google.assistant.embedded.v1alpha2.AssistConfig';
+}
+/**
+ * Oneof group definitions for this message. Each group defines the field
+ * numbers belonging to that group. When of these fields' value is set, all
+ * other fields in the group are cleared. During deserialization, if multiple
+ * fields are encountered for a group, only the last value seen will be kept.
+ * @private {!Array>}
+ * @const
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.oneofGroups_ = [[1,6]];
+
+/**
+ * @enum {number}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.TypeCase = {
+ TYPE_NOT_SET: 0,
+ AUDIO_IN_CONFIG: 1,
+ TEXT_QUERY: 6
+};
+
+/**
+ * @return {proto.google.assistant.embedded.v1alpha2.AssistConfig.TypeCase}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.getTypeCase = function() {
+ return /** @type {proto.google.assistant.embedded.v1alpha2.AssistConfig.TypeCase} */(jspb.Message.computeOneofCase(this, proto.google.assistant.embedded.v1alpha2.AssistConfig.oneofGroups_[0]));
+};
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.assistant.embedded.v1alpha2.AssistConfig.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.assistant.embedded.v1alpha2.AssistConfig} msg The msg instance to transform.
+ * @return {!Object}
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ audioInConfig: (f = msg.getAudioInConfig()) && proto.google.assistant.embedded.v1alpha2.AudioInConfig.toObject(includeInstance, f),
+ textQuery: jspb.Message.getFieldWithDefault(msg, 6, ""),
+ audioOutConfig: (f = msg.getAudioOutConfig()) && proto.google.assistant.embedded.v1alpha2.AudioOutConfig.toObject(includeInstance, f),
+ dialogStateIn: (f = msg.getDialogStateIn()) && proto.google.assistant.embedded.v1alpha2.DialogStateIn.toObject(includeInstance, f),
+ deviceConfig: (f = msg.getDeviceConfig()) && proto.google.assistant.embedded.v1alpha2.DeviceConfig.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.google.assistant.embedded.v1alpha2.AssistConfig}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.assistant.embedded.v1alpha2.AssistConfig;
+ return proto.google.assistant.embedded.v1alpha2.AssistConfig.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.assistant.embedded.v1alpha2.AssistConfig} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.assistant.embedded.v1alpha2.AssistConfig}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.assistant.embedded.v1alpha2.AudioInConfig;
+ reader.readMessage(value,proto.google.assistant.embedded.v1alpha2.AudioInConfig.deserializeBinaryFromReader);
+ msg.setAudioInConfig(value);
+ break;
+ case 6:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setTextQuery(value);
+ break;
+ case 2:
+ var value = new proto.google.assistant.embedded.v1alpha2.AudioOutConfig;
+ reader.readMessage(value,proto.google.assistant.embedded.v1alpha2.AudioOutConfig.deserializeBinaryFromReader);
+ msg.setAudioOutConfig(value);
+ break;
+ case 3:
+ var value = new proto.google.assistant.embedded.v1alpha2.DialogStateIn;
+ reader.readMessage(value,proto.google.assistant.embedded.v1alpha2.DialogStateIn.deserializeBinaryFromReader);
+ msg.setDialogStateIn(value);
+ break;
+ case 4:
+ var value = new proto.google.assistant.embedded.v1alpha2.DeviceConfig;
+ reader.readMessage(value,proto.google.assistant.embedded.v1alpha2.DeviceConfig.deserializeBinaryFromReader);
+ msg.setDeviceConfig(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.assistant.embedded.v1alpha2.AssistConfig.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.assistant.embedded.v1alpha2.AssistConfig} message
+ * @param {!jspb.BinaryWriter} writer
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getAudioInConfig();
+ if (f != null) {
+ writer.writeMessage(
+ 1,
+ f,
+ proto.google.assistant.embedded.v1alpha2.AudioInConfig.serializeBinaryToWriter
+ );
+ }
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
+ if (f != null) {
+ writer.writeString(
+ 6,
+ f
+ );
+ }
+ f = message.getAudioOutConfig();
+ if (f != null) {
+ writer.writeMessage(
+ 2,
+ f,
+ proto.google.assistant.embedded.v1alpha2.AudioOutConfig.serializeBinaryToWriter
+ );
+ }
+ f = message.getDialogStateIn();
+ if (f != null) {
+ writer.writeMessage(
+ 3,
+ f,
+ proto.google.assistant.embedded.v1alpha2.DialogStateIn.serializeBinaryToWriter
+ );
+ }
+ f = message.getDeviceConfig();
+ if (f != null) {
+ writer.writeMessage(
+ 4,
+ f,
+ proto.google.assistant.embedded.v1alpha2.DeviceConfig.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional AudioInConfig audio_in_config = 1;
+ * @return {?proto.google.assistant.embedded.v1alpha2.AudioInConfig}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.getAudioInConfig = function() {
+ return /** @type{?proto.google.assistant.embedded.v1alpha2.AudioInConfig} */ (
+ jspb.Message.getWrapperField(this, proto.google.assistant.embedded.v1alpha2.AudioInConfig, 1));
+};
+
+
+/** @param {?proto.google.assistant.embedded.v1alpha2.AudioInConfig|undefined} value */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.setAudioInConfig = function(value) {
+ jspb.Message.setOneofWrapperField(this, 1, proto.google.assistant.embedded.v1alpha2.AssistConfig.oneofGroups_[0], value);
+};
+
+
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.clearAudioInConfig = function() {
+ this.setAudioInConfig(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.hasAudioInConfig = function() {
+ return jspb.Message.getField(this, 1) != null;
+};
+
+
+/**
+ * optional string text_query = 6;
+ * @return {string}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.getTextQuery = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
+};
+
+
+/** @param {string} value */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.setTextQuery = function(value) {
+ jspb.Message.setOneofField(this, 6, proto.google.assistant.embedded.v1alpha2.AssistConfig.oneofGroups_[0], value);
+};
+
+
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.clearTextQuery = function() {
+ jspb.Message.setOneofField(this, 6, proto.google.assistant.embedded.v1alpha2.AssistConfig.oneofGroups_[0], undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.hasTextQuery = function() {
+ return jspb.Message.getField(this, 6) != null;
+};
+
+
+/**
+ * optional AudioOutConfig audio_out_config = 2;
+ * @return {?proto.google.assistant.embedded.v1alpha2.AudioOutConfig}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.getAudioOutConfig = function() {
+ return /** @type{?proto.google.assistant.embedded.v1alpha2.AudioOutConfig} */ (
+ jspb.Message.getWrapperField(this, proto.google.assistant.embedded.v1alpha2.AudioOutConfig, 2));
+};
+
+
+/** @param {?proto.google.assistant.embedded.v1alpha2.AudioOutConfig|undefined} value */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.setAudioOutConfig = function(value) {
+ jspb.Message.setWrapperField(this, 2, value);
+};
+
+
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.clearAudioOutConfig = function() {
+ this.setAudioOutConfig(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.hasAudioOutConfig = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+/**
+ * optional DialogStateIn dialog_state_in = 3;
+ * @return {?proto.google.assistant.embedded.v1alpha2.DialogStateIn}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.getDialogStateIn = function() {
+ return /** @type{?proto.google.assistant.embedded.v1alpha2.DialogStateIn} */ (
+ jspb.Message.getWrapperField(this, proto.google.assistant.embedded.v1alpha2.DialogStateIn, 3));
+};
+
+
+/** @param {?proto.google.assistant.embedded.v1alpha2.DialogStateIn|undefined} value */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.setDialogStateIn = function(value) {
+ jspb.Message.setWrapperField(this, 3, value);
+};
+
+
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.clearDialogStateIn = function() {
+ this.setDialogStateIn(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.hasDialogStateIn = function() {
+ return jspb.Message.getField(this, 3) != null;
+};
+
+
+/**
+ * optional DeviceConfig device_config = 4;
+ * @return {?proto.google.assistant.embedded.v1alpha2.DeviceConfig}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.getDeviceConfig = function() {
+ return /** @type{?proto.google.assistant.embedded.v1alpha2.DeviceConfig} */ (
+ jspb.Message.getWrapperField(this, proto.google.assistant.embedded.v1alpha2.DeviceConfig, 4));
+};
+
+
+/** @param {?proto.google.assistant.embedded.v1alpha2.DeviceConfig|undefined} value */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.setDeviceConfig = function(value) {
+ jspb.Message.setWrapperField(this, 4, value);
+};
+
+
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.clearDeviceConfig = function() {
+ this.setDeviceConfig(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistConfig.prototype.hasDeviceConfig = function() {
+ return jspb.Message.getField(this, 4) != null;
+};
+
+
+
+/**
+ * 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.google.assistant.embedded.v1alpha2.AudioInConfig = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.assistant.embedded.v1alpha2.AudioInConfig, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.assistant.embedded.v1alpha2.AudioInConfig.displayName = 'proto.google.assistant.embedded.v1alpha2.AudioInConfig';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioInConfig.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.assistant.embedded.v1alpha2.AudioInConfig.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.assistant.embedded.v1alpha2.AudioInConfig} msg The msg instance to transform.
+ * @return {!Object}
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.AudioInConfig.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ encoding: jspb.Message.getFieldWithDefault(msg, 1, 0),
+ sampleRateHertz: jspb.Message.getFieldWithDefault(msg, 2, 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.google.assistant.embedded.v1alpha2.AudioInConfig}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioInConfig.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.assistant.embedded.v1alpha2.AudioInConfig;
+ return proto.google.assistant.embedded.v1alpha2.AudioInConfig.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.assistant.embedded.v1alpha2.AudioInConfig} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.assistant.embedded.v1alpha2.AudioInConfig}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioInConfig.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {!proto.google.assistant.embedded.v1alpha2.AudioInConfig.Encoding} */ (reader.readEnum());
+ msg.setEncoding(value);
+ break;
+ case 2:
+ var value = /** @type {number} */ (reader.readInt32());
+ msg.setSampleRateHertz(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioInConfig.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.assistant.embedded.v1alpha2.AudioInConfig.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.assistant.embedded.v1alpha2.AudioInConfig} message
+ * @param {!jspb.BinaryWriter} writer
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.AudioInConfig.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getEncoding();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 1,
+ f
+ );
+ }
+ f = message.getSampleRateHertz();
+ if (f !== 0) {
+ writer.writeInt32(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioInConfig.Encoding = {
+ ENCODING_UNSPECIFIED: 0,
+ LINEAR16: 1,
+ FLAC: 2
+};
+
+/**
+ * optional Encoding encoding = 1;
+ * @return {!proto.google.assistant.embedded.v1alpha2.AudioInConfig.Encoding}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioInConfig.prototype.getEncoding = function() {
+ return /** @type {!proto.google.assistant.embedded.v1alpha2.AudioInConfig.Encoding} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
+};
+
+
+/** @param {!proto.google.assistant.embedded.v1alpha2.AudioInConfig.Encoding} value */
+proto.google.assistant.embedded.v1alpha2.AudioInConfig.prototype.setEncoding = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional int32 sample_rate_hertz = 2;
+ * @return {number}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioInConfig.prototype.getSampleRateHertz = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
+};
+
+
+/** @param {number} value */
+proto.google.assistant.embedded.v1alpha2.AudioInConfig.prototype.setSampleRateHertz = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+
+/**
+ * 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.google.assistant.embedded.v1alpha2.AudioOutConfig = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.assistant.embedded.v1alpha2.AudioOutConfig, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.assistant.embedded.v1alpha2.AudioOutConfig.displayName = 'proto.google.assistant.embedded.v1alpha2.AudioOutConfig';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOutConfig.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.assistant.embedded.v1alpha2.AudioOutConfig.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.assistant.embedded.v1alpha2.AudioOutConfig} msg The msg instance to transform.
+ * @return {!Object}
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOutConfig.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ encoding: jspb.Message.getFieldWithDefault(msg, 1, 0),
+ sampleRateHertz: jspb.Message.getFieldWithDefault(msg, 2, 0),
+ volumePercentage: jspb.Message.getFieldWithDefault(msg, 3, 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.google.assistant.embedded.v1alpha2.AudioOutConfig}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOutConfig.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.assistant.embedded.v1alpha2.AudioOutConfig;
+ return proto.google.assistant.embedded.v1alpha2.AudioOutConfig.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.assistant.embedded.v1alpha2.AudioOutConfig} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.assistant.embedded.v1alpha2.AudioOutConfig}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOutConfig.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {!proto.google.assistant.embedded.v1alpha2.AudioOutConfig.Encoding} */ (reader.readEnum());
+ msg.setEncoding(value);
+ break;
+ case 2:
+ var value = /** @type {number} */ (reader.readInt32());
+ msg.setSampleRateHertz(value);
+ break;
+ case 3:
+ var value = /** @type {number} */ (reader.readInt32());
+ msg.setVolumePercentage(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOutConfig.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.assistant.embedded.v1alpha2.AudioOutConfig.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.assistant.embedded.v1alpha2.AudioOutConfig} message
+ * @param {!jspb.BinaryWriter} writer
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOutConfig.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getEncoding();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 1,
+ f
+ );
+ }
+ f = message.getSampleRateHertz();
+ if (f !== 0) {
+ writer.writeInt32(
+ 2,
+ f
+ );
+ }
+ f = message.getVolumePercentage();
+ if (f !== 0) {
+ writer.writeInt32(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOutConfig.Encoding = {
+ ENCODING_UNSPECIFIED: 0,
+ LINEAR16: 1,
+ MP3: 2,
+ OPUS_IN_OGG: 3
+};
+
+/**
+ * optional Encoding encoding = 1;
+ * @return {!proto.google.assistant.embedded.v1alpha2.AudioOutConfig.Encoding}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOutConfig.prototype.getEncoding = function() {
+ return /** @type {!proto.google.assistant.embedded.v1alpha2.AudioOutConfig.Encoding} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
+};
+
+
+/** @param {!proto.google.assistant.embedded.v1alpha2.AudioOutConfig.Encoding} value */
+proto.google.assistant.embedded.v1alpha2.AudioOutConfig.prototype.setEncoding = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional int32 sample_rate_hertz = 2;
+ * @return {number}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOutConfig.prototype.getSampleRateHertz = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
+};
+
+
+/** @param {number} value */
+proto.google.assistant.embedded.v1alpha2.AudioOutConfig.prototype.setSampleRateHertz = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional int32 volume_percentage = 3;
+ * @return {number}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOutConfig.prototype.getVolumePercentage = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
+};
+
+
+/** @param {number} value */
+proto.google.assistant.embedded.v1alpha2.AudioOutConfig.prototype.setVolumePercentage = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+
+/**
+ * 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.google.assistant.embedded.v1alpha2.DialogStateIn = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.assistant.embedded.v1alpha2.DialogStateIn, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.assistant.embedded.v1alpha2.DialogStateIn.displayName = 'proto.google.assistant.embedded.v1alpha2.DialogStateIn';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.assistant.embedded.v1alpha2.DialogStateIn.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.assistant.embedded.v1alpha2.DialogStateIn} msg The msg instance to transform.
+ * @return {!Object}
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ conversationState: msg.getConversationState_asB64(),
+ languageCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ deviceLocation: (f = msg.getDeviceLocation()) && proto.google.assistant.embedded.v1alpha2.DeviceLocation.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.google.assistant.embedded.v1alpha2.DialogStateIn}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.assistant.embedded.v1alpha2.DialogStateIn;
+ return proto.google.assistant.embedded.v1alpha2.DialogStateIn.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.assistant.embedded.v1alpha2.DialogStateIn} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.assistant.embedded.v1alpha2.DialogStateIn}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
+ msg.setConversationState(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setLanguageCode(value);
+ break;
+ case 5:
+ var value = new proto.google.assistant.embedded.v1alpha2.DeviceLocation;
+ reader.readMessage(value,proto.google.assistant.embedded.v1alpha2.DeviceLocation.deserializeBinaryFromReader);
+ msg.setDeviceLocation(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.assistant.embedded.v1alpha2.DialogStateIn.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.assistant.embedded.v1alpha2.DialogStateIn} message
+ * @param {!jspb.BinaryWriter} writer
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getConversationState_asU8();
+ if (f.length > 0) {
+ writer.writeBytes(
+ 1,
+ f
+ );
+ }
+ f = message.getLanguageCode();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getDeviceLocation();
+ if (f != null) {
+ writer.writeMessage(
+ 5,
+ f,
+ proto.google.assistant.embedded.v1alpha2.DeviceLocation.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional bytes conversation_state = 1;
+ * @return {!(string|Uint8Array)}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.prototype.getConversationState = function() {
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/**
+ * optional bytes conversation_state = 1;
+ * This is a type-conversion wrapper around `getConversationState()`
+ * @return {string}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.prototype.getConversationState_asB64 = function() {
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
+ this.getConversationState()));
+};
+
+
+/**
+ * optional bytes conversation_state = 1;
+ * Note that Uint8Array is not supported on all browsers.
+ * @see http://caniuse.com/Uint8Array
+ * This is a type-conversion wrapper around `getConversationState()`
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.prototype.getConversationState_asU8 = function() {
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
+ this.getConversationState()));
+};
+
+
+/** @param {!(string|Uint8Array)} value */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.prototype.setConversationState = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string language_code = 2;
+ * @return {string}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.prototype.getLanguageCode = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.prototype.setLanguageCode = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional DeviceLocation device_location = 5;
+ * @return {?proto.google.assistant.embedded.v1alpha2.DeviceLocation}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.prototype.getDeviceLocation = function() {
+ return /** @type{?proto.google.assistant.embedded.v1alpha2.DeviceLocation} */ (
+ jspb.Message.getWrapperField(this, proto.google.assistant.embedded.v1alpha2.DeviceLocation, 5));
+};
+
+
+/** @param {?proto.google.assistant.embedded.v1alpha2.DeviceLocation|undefined} value */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.prototype.setDeviceLocation = function(value) {
+ jspb.Message.setWrapperField(this, 5, value);
+};
+
+
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.prototype.clearDeviceLocation = function() {
+ this.setDeviceLocation(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateIn.prototype.hasDeviceLocation = function() {
+ return jspb.Message.getField(this, 5) != null;
+};
+
+
+
+/**
+ * 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.google.assistant.embedded.v1alpha2.AudioOut = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.assistant.embedded.v1alpha2.AudioOut, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.assistant.embedded.v1alpha2.AudioOut.displayName = 'proto.google.assistant.embedded.v1alpha2.AudioOut';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOut.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.assistant.embedded.v1alpha2.AudioOut.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.assistant.embedded.v1alpha2.AudioOut} msg The msg instance to transform.
+ * @return {!Object}
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOut.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ audioData: msg.getAudioData_asB64()
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.assistant.embedded.v1alpha2.AudioOut}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOut.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.assistant.embedded.v1alpha2.AudioOut;
+ return proto.google.assistant.embedded.v1alpha2.AudioOut.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.assistant.embedded.v1alpha2.AudioOut} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.assistant.embedded.v1alpha2.AudioOut}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOut.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
+ msg.setAudioData(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOut.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.assistant.embedded.v1alpha2.AudioOut.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.assistant.embedded.v1alpha2.AudioOut} message
+ * @param {!jspb.BinaryWriter} writer
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOut.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getAudioData_asU8();
+ if (f.length > 0) {
+ writer.writeBytes(
+ 1,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional bytes audio_data = 1;
+ * @return {!(string|Uint8Array)}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOut.prototype.getAudioData = function() {
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/**
+ * optional bytes audio_data = 1;
+ * This is a type-conversion wrapper around `getAudioData()`
+ * @return {string}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOut.prototype.getAudioData_asB64 = function() {
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
+ this.getAudioData()));
+};
+
+
+/**
+ * optional bytes audio_data = 1;
+ * Note that Uint8Array is not supported on all browsers.
+ * @see http://caniuse.com/Uint8Array
+ * This is a type-conversion wrapper around `getAudioData()`
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.AudioOut.prototype.getAudioData_asU8 = function() {
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
+ this.getAudioData()));
+};
+
+
+/** @param {!(string|Uint8Array)} value */
+proto.google.assistant.embedded.v1alpha2.AudioOut.prototype.setAudioData = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+
+/**
+ * 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.google.assistant.embedded.v1alpha2.DialogStateOut = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.assistant.embedded.v1alpha2.DialogStateOut, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.assistant.embedded.v1alpha2.DialogStateOut.displayName = 'proto.google.assistant.embedded.v1alpha2.DialogStateOut';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.assistant.embedded.v1alpha2.DialogStateOut.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.assistant.embedded.v1alpha2.DialogStateOut} msg The msg instance to transform.
+ * @return {!Object}
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ supplementalDisplayText: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ conversationState: msg.getConversationState_asB64(),
+ microphoneMode: jspb.Message.getFieldWithDefault(msg, 3, 0),
+ volumePercentage: jspb.Message.getFieldWithDefault(msg, 4, 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.google.assistant.embedded.v1alpha2.DialogStateOut}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.assistant.embedded.v1alpha2.DialogStateOut;
+ return proto.google.assistant.embedded.v1alpha2.DialogStateOut.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.assistant.embedded.v1alpha2.DialogStateOut} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.assistant.embedded.v1alpha2.DialogStateOut}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSupplementalDisplayText(value);
+ break;
+ case 2:
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
+ msg.setConversationState(value);
+ break;
+ case 3:
+ var value = /** @type {!proto.google.assistant.embedded.v1alpha2.DialogStateOut.MicrophoneMode} */ (reader.readEnum());
+ msg.setMicrophoneMode(value);
+ break;
+ case 4:
+ var value = /** @type {number} */ (reader.readInt32());
+ msg.setVolumePercentage(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.assistant.embedded.v1alpha2.DialogStateOut.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.assistant.embedded.v1alpha2.DialogStateOut} message
+ * @param {!jspb.BinaryWriter} writer
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSupplementalDisplayText();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getConversationState_asU8();
+ if (f.length > 0) {
+ writer.writeBytes(
+ 2,
+ f
+ );
+ }
+ f = message.getMicrophoneMode();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 3,
+ f
+ );
+ }
+ f = message.getVolumePercentage();
+ if (f !== 0) {
+ writer.writeInt32(
+ 4,
+ f
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.MicrophoneMode = {
+ MICROPHONE_MODE_UNSPECIFIED: 0,
+ CLOSE_MICROPHONE: 1,
+ DIALOG_FOLLOW_ON: 2
+};
+
+/**
+ * optional string supplemental_display_text = 1;
+ * @return {string}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.prototype.getSupplementalDisplayText = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.prototype.setSupplementalDisplayText = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional bytes conversation_state = 2;
+ * @return {!(string|Uint8Array)}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.prototype.getConversationState = function() {
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/**
+ * optional bytes conversation_state = 2;
+ * This is a type-conversion wrapper around `getConversationState()`
+ * @return {string}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.prototype.getConversationState_asB64 = function() {
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
+ this.getConversationState()));
+};
+
+
+/**
+ * optional bytes conversation_state = 2;
+ * Note that Uint8Array is not supported on all browsers.
+ * @see http://caniuse.com/Uint8Array
+ * This is a type-conversion wrapper around `getConversationState()`
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.prototype.getConversationState_asU8 = function() {
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
+ this.getConversationState()));
+};
+
+
+/** @param {!(string|Uint8Array)} value */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.prototype.setConversationState = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional MicrophoneMode microphone_mode = 3;
+ * @return {!proto.google.assistant.embedded.v1alpha2.DialogStateOut.MicrophoneMode}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.prototype.getMicrophoneMode = function() {
+ return /** @type {!proto.google.assistant.embedded.v1alpha2.DialogStateOut.MicrophoneMode} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
+};
+
+
+/** @param {!proto.google.assistant.embedded.v1alpha2.DialogStateOut.MicrophoneMode} value */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.prototype.setMicrophoneMode = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional int32 volume_percentage = 4;
+ * @return {number}
+ */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.prototype.getVolumePercentage = function() {
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
+};
+
+
+/** @param {number} value */
+proto.google.assistant.embedded.v1alpha2.DialogStateOut.prototype.setVolumePercentage = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+
+/**
+ * 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.google.assistant.embedded.v1alpha2.AssistRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.assistant.embedded.v1alpha2.AssistRequest.oneofGroups_);
+};
+goog.inherits(proto.google.assistant.embedded.v1alpha2.AssistRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.assistant.embedded.v1alpha2.AssistRequest.displayName = 'proto.google.assistant.embedded.v1alpha2.AssistRequest';
+}
+/**
+ * Oneof group definitions for this message. Each group defines the field
+ * numbers belonging to that group. When of these fields' value is set, all
+ * other fields in the group are cleared. During deserialization, if multiple
+ * fields are encountered for a group, only the last value seen will be kept.
+ * @private {!Array>}
+ * @const
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.oneofGroups_ = [[1,2]];
+
+/**
+ * @enum {number}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.TypeCase = {
+ TYPE_NOT_SET: 0,
+ CONFIG: 1,
+ AUDIO_IN: 2
+};
+
+/**
+ * @return {proto.google.assistant.embedded.v1alpha2.AssistRequest.TypeCase}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.prototype.getTypeCase = function() {
+ return /** @type {proto.google.assistant.embedded.v1alpha2.AssistRequest.TypeCase} */(jspb.Message.computeOneofCase(this, proto.google.assistant.embedded.v1alpha2.AssistRequest.oneofGroups_[0]));
+};
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.assistant.embedded.v1alpha2.AssistRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.assistant.embedded.v1alpha2.AssistRequest} msg The msg instance to transform.
+ * @return {!Object}
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ config: (f = msg.getConfig()) && proto.google.assistant.embedded.v1alpha2.AssistConfig.toObject(includeInstance, f),
+ audioIn: msg.getAudioIn_asB64()
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.assistant.embedded.v1alpha2.AssistRequest}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.assistant.embedded.v1alpha2.AssistRequest;
+ return proto.google.assistant.embedded.v1alpha2.AssistRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.assistant.embedded.v1alpha2.AssistRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.assistant.embedded.v1alpha2.AssistRequest}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.assistant.embedded.v1alpha2.AssistConfig;
+ reader.readMessage(value,proto.google.assistant.embedded.v1alpha2.AssistConfig.deserializeBinaryFromReader);
+ msg.setConfig(value);
+ break;
+ case 2:
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
+ msg.setAudioIn(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.assistant.embedded.v1alpha2.AssistRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.assistant.embedded.v1alpha2.AssistRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getConfig();
+ if (f != null) {
+ writer.writeMessage(
+ 1,
+ f,
+ proto.google.assistant.embedded.v1alpha2.AssistConfig.serializeBinaryToWriter
+ );
+ }
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
+ if (f != null) {
+ writer.writeBytes(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional AssistConfig config = 1;
+ * @return {?proto.google.assistant.embedded.v1alpha2.AssistConfig}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.prototype.getConfig = function() {
+ return /** @type{?proto.google.assistant.embedded.v1alpha2.AssistConfig} */ (
+ jspb.Message.getWrapperField(this, proto.google.assistant.embedded.v1alpha2.AssistConfig, 1));
+};
+
+
+/** @param {?proto.google.assistant.embedded.v1alpha2.AssistConfig|undefined} value */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.prototype.setConfig = function(value) {
+ jspb.Message.setOneofWrapperField(this, 1, proto.google.assistant.embedded.v1alpha2.AssistRequest.oneofGroups_[0], value);
+};
+
+
+proto.google.assistant.embedded.v1alpha2.AssistRequest.prototype.clearConfig = function() {
+ this.setConfig(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.prototype.hasConfig = function() {
+ return jspb.Message.getField(this, 1) != null;
+};
+
+
+/**
+ * optional bytes audio_in = 2;
+ * @return {!(string|Uint8Array)}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.prototype.getAudioIn = function() {
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/**
+ * optional bytes audio_in = 2;
+ * This is a type-conversion wrapper around `getAudioIn()`
+ * @return {string}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.prototype.getAudioIn_asB64 = function() {
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
+ this.getAudioIn()));
+};
+
+
+/**
+ * optional bytes audio_in = 2;
+ * Note that Uint8Array is not supported on all browsers.
+ * @see http://caniuse.com/Uint8Array
+ * This is a type-conversion wrapper around `getAudioIn()`
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.prototype.getAudioIn_asU8 = function() {
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
+ this.getAudioIn()));
+};
+
+
+/** @param {!(string|Uint8Array)} value */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.prototype.setAudioIn = function(value) {
+ jspb.Message.setOneofField(this, 2, proto.google.assistant.embedded.v1alpha2.AssistRequest.oneofGroups_[0], value);
+};
+
+
+proto.google.assistant.embedded.v1alpha2.AssistRequest.prototype.clearAudioIn = function() {
+ jspb.Message.setOneofField(this, 2, proto.google.assistant.embedded.v1alpha2.AssistRequest.oneofGroups_[0], undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistRequest.prototype.hasAudioIn = function() {
+ return jspb.Message.getField(this, 2) != null;
+};
+
+
+
+/**
+ * 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.google.assistant.embedded.v1alpha2.AssistResponse = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.assistant.embedded.v1alpha2.AssistResponse.repeatedFields_, null);
+};
+goog.inherits(proto.google.assistant.embedded.v1alpha2.AssistResponse, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.assistant.embedded.v1alpha2.AssistResponse.displayName = 'proto.google.assistant.embedded.v1alpha2.AssistResponse';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.repeatedFields_ = [2];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.assistant.embedded.v1alpha2.AssistResponse.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.assistant.embedded.v1alpha2.AssistResponse} msg The msg instance to transform.
+ * @return {!Object}
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ eventType: jspb.Message.getFieldWithDefault(msg, 1, 0),
+ audioOut: (f = msg.getAudioOut()) && proto.google.assistant.embedded.v1alpha2.AudioOut.toObject(includeInstance, f),
+ deviceAction: (f = msg.getDeviceAction()) && proto.google.assistant.embedded.v1alpha2.DeviceAction.toObject(includeInstance, f),
+ speechResultsList: jspb.Message.toObjectList(msg.getSpeechResultsList(),
+ proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.toObject, includeInstance),
+ dialogStateOut: (f = msg.getDialogStateOut()) && proto.google.assistant.embedded.v1alpha2.DialogStateOut.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.google.assistant.embedded.v1alpha2.AssistResponse}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.assistant.embedded.v1alpha2.AssistResponse;
+ return proto.google.assistant.embedded.v1alpha2.AssistResponse.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.assistant.embedded.v1alpha2.AssistResponse} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.assistant.embedded.v1alpha2.AssistResponse}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {!proto.google.assistant.embedded.v1alpha2.AssistResponse.EventType} */ (reader.readEnum());
+ msg.setEventType(value);
+ break;
+ case 3:
+ var value = new proto.google.assistant.embedded.v1alpha2.AudioOut;
+ reader.readMessage(value,proto.google.assistant.embedded.v1alpha2.AudioOut.deserializeBinaryFromReader);
+ msg.setAudioOut(value);
+ break;
+ case 6:
+ var value = new proto.google.assistant.embedded.v1alpha2.DeviceAction;
+ reader.readMessage(value,proto.google.assistant.embedded.v1alpha2.DeviceAction.deserializeBinaryFromReader);
+ msg.setDeviceAction(value);
+ break;
+ case 2:
+ var value = new proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult;
+ reader.readMessage(value,proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.deserializeBinaryFromReader);
+ msg.addSpeechResults(value);
+ break;
+ case 5:
+ var value = new proto.google.assistant.embedded.v1alpha2.DialogStateOut;
+ reader.readMessage(value,proto.google.assistant.embedded.v1alpha2.DialogStateOut.deserializeBinaryFromReader);
+ msg.setDialogStateOut(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.assistant.embedded.v1alpha2.AssistResponse.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.assistant.embedded.v1alpha2.AssistResponse} message
+ * @param {!jspb.BinaryWriter} writer
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getEventType();
+ if (f !== 0.0) {
+ writer.writeEnum(
+ 1,
+ f
+ );
+ }
+ f = message.getAudioOut();
+ if (f != null) {
+ writer.writeMessage(
+ 3,
+ f,
+ proto.google.assistant.embedded.v1alpha2.AudioOut.serializeBinaryToWriter
+ );
+ }
+ f = message.getDeviceAction();
+ if (f != null) {
+ writer.writeMessage(
+ 6,
+ f,
+ proto.google.assistant.embedded.v1alpha2.DeviceAction.serializeBinaryToWriter
+ );
+ }
+ f = message.getSpeechResultsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 2,
+ f,
+ proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.serializeBinaryToWriter
+ );
+ }
+ f = message.getDialogStateOut();
+ if (f != null) {
+ writer.writeMessage(
+ 5,
+ f,
+ proto.google.assistant.embedded.v1alpha2.DialogStateOut.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * @enum {number}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.EventType = {
+ EVENT_TYPE_UNSPECIFIED: 0,
+ END_OF_UTTERANCE: 1
+};
+
+/**
+ * optional EventType event_type = 1;
+ * @return {!proto.google.assistant.embedded.v1alpha2.AssistResponse.EventType}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.getEventType = function() {
+ return /** @type {!proto.google.assistant.embedded.v1alpha2.AssistResponse.EventType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
+};
+
+
+/** @param {!proto.google.assistant.embedded.v1alpha2.AssistResponse.EventType} value */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.setEventType = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional AudioOut audio_out = 3;
+ * @return {?proto.google.assistant.embedded.v1alpha2.AudioOut}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.getAudioOut = function() {
+ return /** @type{?proto.google.assistant.embedded.v1alpha2.AudioOut} */ (
+ jspb.Message.getWrapperField(this, proto.google.assistant.embedded.v1alpha2.AudioOut, 3));
+};
+
+
+/** @param {?proto.google.assistant.embedded.v1alpha2.AudioOut|undefined} value */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.setAudioOut = function(value) {
+ jspb.Message.setWrapperField(this, 3, value);
+};
+
+
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.clearAudioOut = function() {
+ this.setAudioOut(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.hasAudioOut = function() {
+ return jspb.Message.getField(this, 3) != null;
+};
+
+
+/**
+ * optional DeviceAction device_action = 6;
+ * @return {?proto.google.assistant.embedded.v1alpha2.DeviceAction}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.getDeviceAction = function() {
+ return /** @type{?proto.google.assistant.embedded.v1alpha2.DeviceAction} */ (
+ jspb.Message.getWrapperField(this, proto.google.assistant.embedded.v1alpha2.DeviceAction, 6));
+};
+
+
+/** @param {?proto.google.assistant.embedded.v1alpha2.DeviceAction|undefined} value */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.setDeviceAction = function(value) {
+ jspb.Message.setWrapperField(this, 6, value);
+};
+
+
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.clearDeviceAction = function() {
+ this.setDeviceAction(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.hasDeviceAction = function() {
+ return jspb.Message.getField(this, 6) != null;
+};
+
+
+/**
+ * repeated SpeechRecognitionResult speech_results = 2;
+ * @return {!Array.}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.getSpeechResultsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult, 2));
+};
+
+
+/** @param {!Array.} value */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.setSpeechResultsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
+};
+
+
+/**
+ * @param {!proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.addSpeechResults = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult, opt_index);
+};
+
+
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.clearSpeechResultsList = function() {
+ this.setSpeechResultsList([]);
+};
+
+
+/**
+ * optional DialogStateOut dialog_state_out = 5;
+ * @return {?proto.google.assistant.embedded.v1alpha2.DialogStateOut}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.getDialogStateOut = function() {
+ return /** @type{?proto.google.assistant.embedded.v1alpha2.DialogStateOut} */ (
+ jspb.Message.getWrapperField(this, proto.google.assistant.embedded.v1alpha2.DialogStateOut, 5));
+};
+
+
+/** @param {?proto.google.assistant.embedded.v1alpha2.DialogStateOut|undefined} value */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.setDialogStateOut = function(value) {
+ jspb.Message.setWrapperField(this, 5, value);
+};
+
+
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.clearDialogStateOut = function() {
+ this.setDialogStateOut(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.assistant.embedded.v1alpha2.AssistResponse.prototype.hasDialogStateOut = function() {
+ return jspb.Message.getField(this, 5) != null;
+};
+
+
+
+/**
+ * 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.google.assistant.embedded.v1alpha2.SpeechRecognitionResult = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.displayName = 'proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult} msg The msg instance to transform.
+ * @return {!Object}
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ transcript: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ stability: +jspb.Message.getFieldWithDefault(msg, 2, 0.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.google.assistant.embedded.v1alpha2.SpeechRecognitionResult}
+ */
+proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult;
+ return proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult}
+ */
+proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setTranscript(value);
+ break;
+ case 2:
+ var value = /** @type {number} */ (reader.readFloat());
+ msg.setStability(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult} message
+ * @param {!jspb.BinaryWriter} writer
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getTranscript();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getStability();
+ if (f !== 0.0) {
+ writer.writeFloat(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string transcript = 1;
+ * @return {string}
+ */
+proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.prototype.getTranscript = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.prototype.setTranscript = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional float stability = 2;
+ * @return {number}
+ */
+proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.prototype.getStability = function() {
+ return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0));
+};
+
+
+/** @param {number} value */
+proto.google.assistant.embedded.v1alpha2.SpeechRecognitionResult.prototype.setStability = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+
+/**
+ * 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.google.assistant.embedded.v1alpha2.DeviceConfig = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.assistant.embedded.v1alpha2.DeviceConfig, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.assistant.embedded.v1alpha2.DeviceConfig.displayName = 'proto.google.assistant.embedded.v1alpha2.DeviceConfig';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceConfig.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.assistant.embedded.v1alpha2.DeviceConfig.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.assistant.embedded.v1alpha2.DeviceConfig} msg The msg instance to transform.
+ * @return {!Object}
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceConfig.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ deviceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ deviceModelId: jspb.Message.getFieldWithDefault(msg, 3, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.assistant.embedded.v1alpha2.DeviceConfig}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceConfig.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.assistant.embedded.v1alpha2.DeviceConfig;
+ return proto.google.assistant.embedded.v1alpha2.DeviceConfig.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.assistant.embedded.v1alpha2.DeviceConfig} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.assistant.embedded.v1alpha2.DeviceConfig}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceConfig.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDeviceId(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDeviceModelId(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceConfig.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.assistant.embedded.v1alpha2.DeviceConfig.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.assistant.embedded.v1alpha2.DeviceConfig} message
+ * @param {!jspb.BinaryWriter} writer
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceConfig.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getDeviceId();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getDeviceModelId();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string device_id = 1;
+ * @return {string}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceConfig.prototype.getDeviceId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.assistant.embedded.v1alpha2.DeviceConfig.prototype.setDeviceId = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string device_model_id = 3;
+ * @return {string}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceConfig.prototype.getDeviceModelId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.assistant.embedded.v1alpha2.DeviceConfig.prototype.setDeviceModelId = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+
+/**
+ * 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.google.assistant.embedded.v1alpha2.DeviceAction = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.assistant.embedded.v1alpha2.DeviceAction, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.assistant.embedded.v1alpha2.DeviceAction.displayName = 'proto.google.assistant.embedded.v1alpha2.DeviceAction';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceAction.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.assistant.embedded.v1alpha2.DeviceAction.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.assistant.embedded.v1alpha2.DeviceAction} msg The msg instance to transform.
+ * @return {!Object}
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceAction.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ deviceRequestJson: jspb.Message.getFieldWithDefault(msg, 1, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.assistant.embedded.v1alpha2.DeviceAction}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceAction.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.assistant.embedded.v1alpha2.DeviceAction;
+ return proto.google.assistant.embedded.v1alpha2.DeviceAction.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.assistant.embedded.v1alpha2.DeviceAction} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.assistant.embedded.v1alpha2.DeviceAction}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceAction.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDeviceRequestJson(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceAction.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.assistant.embedded.v1alpha2.DeviceAction.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.assistant.embedded.v1alpha2.DeviceAction} message
+ * @param {!jspb.BinaryWriter} writer
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceAction.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getDeviceRequestJson();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string device_request_json = 1;
+ * @return {string}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceAction.prototype.getDeviceRequestJson = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.assistant.embedded.v1alpha2.DeviceAction.prototype.setDeviceRequestJson = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+
+/**
+ * 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.google.assistant.embedded.v1alpha2.DeviceLocation = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.assistant.embedded.v1alpha2.DeviceLocation.oneofGroups_);
+};
+goog.inherits(proto.google.assistant.embedded.v1alpha2.DeviceLocation, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.assistant.embedded.v1alpha2.DeviceLocation.displayName = 'proto.google.assistant.embedded.v1alpha2.DeviceLocation';
+}
+/**
+ * Oneof group definitions for this message. Each group defines the field
+ * numbers belonging to that group. When of these fields' value is set, all
+ * other fields in the group are cleared. During deserialization, if multiple
+ * fields are encountered for a group, only the last value seen will be kept.
+ * @private {!Array>}
+ * @const
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceLocation.oneofGroups_ = [[1]];
+
+/**
+ * @enum {number}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceLocation.TypeCase = {
+ TYPE_NOT_SET: 0,
+ COORDINATES: 1
+};
+
+/**
+ * @return {proto.google.assistant.embedded.v1alpha2.DeviceLocation.TypeCase}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceLocation.prototype.getTypeCase = function() {
+ return /** @type {proto.google.assistant.embedded.v1alpha2.DeviceLocation.TypeCase} */(jspb.Message.computeOneofCase(this, proto.google.assistant.embedded.v1alpha2.DeviceLocation.oneofGroups_[0]));
+};
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceLocation.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.assistant.embedded.v1alpha2.DeviceLocation.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.assistant.embedded.v1alpha2.DeviceLocation} msg The msg instance to transform.
+ * @return {!Object}
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceLocation.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ coordinates: (f = msg.getCoordinates()) && google_type_latlng_pb.LatLng.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.google.assistant.embedded.v1alpha2.DeviceLocation}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceLocation.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.assistant.embedded.v1alpha2.DeviceLocation;
+ return proto.google.assistant.embedded.v1alpha2.DeviceLocation.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.assistant.embedded.v1alpha2.DeviceLocation} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.assistant.embedded.v1alpha2.DeviceLocation}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceLocation.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new google_type_latlng_pb.LatLng;
+ reader.readMessage(value,google_type_latlng_pb.LatLng.deserializeBinaryFromReader);
+ msg.setCoordinates(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceLocation.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.assistant.embedded.v1alpha2.DeviceLocation.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.assistant.embedded.v1alpha2.DeviceLocation} message
+ * @param {!jspb.BinaryWriter} writer
+ * @suppress {unusedLocalVariables} f is only used for nested messages
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceLocation.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getCoordinates();
+ if (f != null) {
+ writer.writeMessage(
+ 1,
+ f,
+ google_type_latlng_pb.LatLng.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional google.type.LatLng coordinates = 1;
+ * @return {?proto.google.type.LatLng}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceLocation.prototype.getCoordinates = function() {
+ return /** @type{?proto.google.type.LatLng} */ (
+ jspb.Message.getWrapperField(this, google_type_latlng_pb.LatLng, 1));
+};
+
+
+/** @param {?proto.google.type.LatLng|undefined} value */
+proto.google.assistant.embedded.v1alpha2.DeviceLocation.prototype.setCoordinates = function(value) {
+ jspb.Message.setOneofWrapperField(this, 1, proto.google.assistant.embedded.v1alpha2.DeviceLocation.oneofGroups_[0], value);
+};
+
+
+proto.google.assistant.embedded.v1alpha2.DeviceLocation.prototype.clearCoordinates = function() {
+ this.setCoordinates(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.assistant.embedded.v1alpha2.DeviceLocation.prototype.hasCoordinates = function() {
+ return jspb.Message.getField(this, 1) != null;
+};
+
+
+goog.object.extend(exports, proto.google.assistant.embedded.v1alpha2);
\ No newline at end of file
diff --git a/build/lib/googleapis/google/rpc/code_pb.js b/build/lib/googleapis/google/rpc/code_pb.js
new file mode 100644
index 0000000..3300278
--- /dev/null
+++ b/build/lib/googleapis/google/rpc/code_pb.js
@@ -0,0 +1,36 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+goog.exportSymbol('proto.google.rpc.Code', null, global);
+/**
+ * @enum {number}
+ */
+proto.google.rpc.Code = {
+ OK: 0,
+ CANCELLED: 1,
+ UNKNOWN: 2,
+ INVALID_ARGUMENT: 3,
+ DEADLINE_EXCEEDED: 4,
+ NOT_FOUND: 5,
+ ALREADY_EXISTS: 6,
+ PERMISSION_DENIED: 7,
+ UNAUTHENTICATED: 16,
+ RESOURCE_EXHAUSTED: 8,
+ FAILED_PRECONDITION: 9,
+ ABORTED: 10,
+ OUT_OF_RANGE: 11,
+ UNIMPLEMENTED: 12,
+ INTERNAL: 13,
+ UNAVAILABLE: 14,
+ DATA_LOSS: 15
+};
+
+goog.object.extend(exports, proto.google.rpc);
diff --git a/build/lib/googleapis/google/rpc/error_details_pb.js b/build/lib/googleapis/google/rpc/error_details_pb.js
new file mode 100644
index 0000000..27ad773
--- /dev/null
+++ b/build/lib/googleapis/google/rpc/error_details_pb.js
@@ -0,0 +1,1931 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
+goog.exportSymbol('proto.google.rpc.BadRequest', null, global);
+goog.exportSymbol('proto.google.rpc.BadRequest.FieldViolation', null, global);
+goog.exportSymbol('proto.google.rpc.DebugInfo', null, global);
+goog.exportSymbol('proto.google.rpc.Help', null, global);
+goog.exportSymbol('proto.google.rpc.Help.Link', null, global);
+goog.exportSymbol('proto.google.rpc.LocalizedMessage', null, global);
+goog.exportSymbol('proto.google.rpc.QuotaFailure', null, global);
+goog.exportSymbol('proto.google.rpc.QuotaFailure.Violation', null, global);
+goog.exportSymbol('proto.google.rpc.RequestInfo', null, global);
+goog.exportSymbol('proto.google.rpc.ResourceInfo', null, global);
+goog.exportSymbol('proto.google.rpc.RetryInfo', null, global);
+
+/**
+ * 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.google.rpc.RetryInfo = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.rpc.RetryInfo, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.rpc.RetryInfo.displayName = 'proto.google.rpc.RetryInfo';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.rpc.RetryInfo.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.rpc.RetryInfo.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.rpc.RetryInfo} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.rpc.RetryInfo.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ retryDelay: (f = msg.getRetryDelay()) && google_protobuf_duration_pb.Duration.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.google.rpc.RetryInfo}
+ */
+proto.google.rpc.RetryInfo.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.rpc.RetryInfo;
+ return proto.google.rpc.RetryInfo.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.rpc.RetryInfo} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.rpc.RetryInfo}
+ */
+proto.google.rpc.RetryInfo.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new google_protobuf_duration_pb.Duration;
+ reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
+ msg.setRetryDelay(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.rpc.RetryInfo.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.rpc.RetryInfo.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.rpc.RetryInfo} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.rpc.RetryInfo.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getRetryDelay();
+ if (f != null) {
+ writer.writeMessage(
+ 1,
+ f,
+ google_protobuf_duration_pb.Duration.serializeBinaryToWriter
+ );
+ }
+};
+
+
+/**
+ * optional google.protobuf.Duration retry_delay = 1;
+ * @return {?proto.google.protobuf.Duration}
+ */
+proto.google.rpc.RetryInfo.prototype.getRetryDelay = function() {
+ return /** @type{?proto.google.protobuf.Duration} */ (
+ jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 1));
+};
+
+
+/** @param {?proto.google.protobuf.Duration|undefined} value */
+proto.google.rpc.RetryInfo.prototype.setRetryDelay = function(value) {
+ jspb.Message.setWrapperField(this, 1, value);
+};
+
+
+proto.google.rpc.RetryInfo.prototype.clearRetryDelay = function() {
+ this.setRetryDelay(undefined);
+};
+
+
+/**
+ * Returns whether this field is set.
+ * @return {!boolean}
+ */
+proto.google.rpc.RetryInfo.prototype.hasRetryDelay = function() {
+ return jspb.Message.getField(this, 1) != null;
+};
+
+
+
+/**
+ * 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.google.rpc.DebugInfo = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.DebugInfo.repeatedFields_, null);
+};
+goog.inherits(proto.google.rpc.DebugInfo, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.rpc.DebugInfo.displayName = 'proto.google.rpc.DebugInfo';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.rpc.DebugInfo.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.rpc.DebugInfo.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.rpc.DebugInfo.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.rpc.DebugInfo} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.rpc.DebugInfo.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ stackEntriesList: jspb.Message.getField(msg, 1),
+ detail: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.rpc.DebugInfo}
+ */
+proto.google.rpc.DebugInfo.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.rpc.DebugInfo;
+ return proto.google.rpc.DebugInfo.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.rpc.DebugInfo} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.rpc.DebugInfo}
+ */
+proto.google.rpc.DebugInfo.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.addStackEntries(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDetail(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.rpc.DebugInfo.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.rpc.DebugInfo.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.rpc.DebugInfo} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.rpc.DebugInfo.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getStackEntriesList();
+ if (f.length > 0) {
+ writer.writeRepeatedString(
+ 1,
+ f
+ );
+ }
+ f = message.getDetail();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * repeated string stack_entries = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.rpc.DebugInfo.prototype.getStackEntriesList = function() {
+ return /** @type {!Array.} */ (jspb.Message.getField(this, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.rpc.DebugInfo.prototype.setStackEntriesList = function(value) {
+ jspb.Message.setField(this, 1, value || []);
+};
+
+
+/**
+ * @param {!string} value
+ * @param {number=} opt_index
+ */
+proto.google.rpc.DebugInfo.prototype.addStackEntries = function(value, opt_index) {
+ jspb.Message.addToRepeatedField(this, 1, value, opt_index);
+};
+
+
+proto.google.rpc.DebugInfo.prototype.clearStackEntriesList = function() {
+ this.setStackEntriesList([]);
+};
+
+
+/**
+ * optional string detail = 2;
+ * @return {string}
+ */
+proto.google.rpc.DebugInfo.prototype.getDetail = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.DebugInfo.prototype.setDetail = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+
+/**
+ * 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.google.rpc.QuotaFailure = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.QuotaFailure.repeatedFields_, null);
+};
+goog.inherits(proto.google.rpc.QuotaFailure, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.rpc.QuotaFailure.displayName = 'proto.google.rpc.QuotaFailure';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.rpc.QuotaFailure.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.rpc.QuotaFailure.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.rpc.QuotaFailure.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.rpc.QuotaFailure} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.rpc.QuotaFailure.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ violationsList: jspb.Message.toObjectList(msg.getViolationsList(),
+ proto.google.rpc.QuotaFailure.Violation.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.rpc.QuotaFailure}
+ */
+proto.google.rpc.QuotaFailure.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.rpc.QuotaFailure;
+ return proto.google.rpc.QuotaFailure.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.rpc.QuotaFailure} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.rpc.QuotaFailure}
+ */
+proto.google.rpc.QuotaFailure.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.rpc.QuotaFailure.Violation;
+ reader.readMessage(value,proto.google.rpc.QuotaFailure.Violation.deserializeBinaryFromReader);
+ msg.addViolations(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.rpc.QuotaFailure.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.rpc.QuotaFailure.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.rpc.QuotaFailure} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.rpc.QuotaFailure.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getViolationsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ proto.google.rpc.QuotaFailure.Violation.serializeBinaryToWriter
+ );
+ }
+};
+
+
+
+/**
+ * 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.google.rpc.QuotaFailure.Violation = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.rpc.QuotaFailure.Violation, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.rpc.QuotaFailure.Violation.displayName = 'proto.google.rpc.QuotaFailure.Violation';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.rpc.QuotaFailure.Violation.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.rpc.QuotaFailure.Violation.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.rpc.QuotaFailure.Violation} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.rpc.QuotaFailure.Violation.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ subject: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ description: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.rpc.QuotaFailure.Violation}
+ */
+proto.google.rpc.QuotaFailure.Violation.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.rpc.QuotaFailure.Violation;
+ return proto.google.rpc.QuotaFailure.Violation.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.rpc.QuotaFailure.Violation} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.rpc.QuotaFailure.Violation}
+ */
+proto.google.rpc.QuotaFailure.Violation.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setSubject(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDescription(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.rpc.QuotaFailure.Violation.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.rpc.QuotaFailure.Violation.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.rpc.QuotaFailure.Violation} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.rpc.QuotaFailure.Violation.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getSubject();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string subject = 1;
+ * @return {string}
+ */
+proto.google.rpc.QuotaFailure.Violation.prototype.getSubject = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.QuotaFailure.Violation.prototype.setSubject = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string description = 2;
+ * @return {string}
+ */
+proto.google.rpc.QuotaFailure.Violation.prototype.getDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.QuotaFailure.Violation.prototype.setDescription = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * repeated Violation violations = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.rpc.QuotaFailure.prototype.getViolationsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.rpc.QuotaFailure.Violation, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.rpc.QuotaFailure.prototype.setViolationsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.rpc.QuotaFailure.Violation=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.rpc.QuotaFailure.Violation}
+ */
+proto.google.rpc.QuotaFailure.prototype.addViolations = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.rpc.QuotaFailure.Violation, opt_index);
+};
+
+
+proto.google.rpc.QuotaFailure.prototype.clearViolationsList = function() {
+ this.setViolationsList([]);
+};
+
+
+
+/**
+ * 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.google.rpc.BadRequest = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.BadRequest.repeatedFields_, null);
+};
+goog.inherits(proto.google.rpc.BadRequest, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.rpc.BadRequest.displayName = 'proto.google.rpc.BadRequest';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.rpc.BadRequest.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.rpc.BadRequest.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.rpc.BadRequest.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.rpc.BadRequest} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.rpc.BadRequest.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ fieldViolationsList: jspb.Message.toObjectList(msg.getFieldViolationsList(),
+ proto.google.rpc.BadRequest.FieldViolation.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.rpc.BadRequest}
+ */
+proto.google.rpc.BadRequest.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.rpc.BadRequest;
+ return proto.google.rpc.BadRequest.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.rpc.BadRequest} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.rpc.BadRequest}
+ */
+proto.google.rpc.BadRequest.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.rpc.BadRequest.FieldViolation;
+ reader.readMessage(value,proto.google.rpc.BadRequest.FieldViolation.deserializeBinaryFromReader);
+ msg.addFieldViolations(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.rpc.BadRequest.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.rpc.BadRequest.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.rpc.BadRequest} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.rpc.BadRequest.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getFieldViolationsList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ proto.google.rpc.BadRequest.FieldViolation.serializeBinaryToWriter
+ );
+ }
+};
+
+
+
+/**
+ * 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.google.rpc.BadRequest.FieldViolation = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.rpc.BadRequest.FieldViolation, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.rpc.BadRequest.FieldViolation.displayName = 'proto.google.rpc.BadRequest.FieldViolation';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.rpc.BadRequest.FieldViolation.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.rpc.BadRequest.FieldViolation.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.rpc.BadRequest.FieldViolation} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.rpc.BadRequest.FieldViolation.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ field: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ description: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.rpc.BadRequest.FieldViolation}
+ */
+proto.google.rpc.BadRequest.FieldViolation.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.rpc.BadRequest.FieldViolation;
+ return proto.google.rpc.BadRequest.FieldViolation.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.rpc.BadRequest.FieldViolation} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.rpc.BadRequest.FieldViolation}
+ */
+proto.google.rpc.BadRequest.FieldViolation.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setField(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDescription(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.rpc.BadRequest.FieldViolation.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.rpc.BadRequest.FieldViolation.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.rpc.BadRequest.FieldViolation} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.rpc.BadRequest.FieldViolation.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getField();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string field = 1;
+ * @return {string}
+ */
+proto.google.rpc.BadRequest.FieldViolation.prototype.getField = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.BadRequest.FieldViolation.prototype.setField = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string description = 2;
+ * @return {string}
+ */
+proto.google.rpc.BadRequest.FieldViolation.prototype.getDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.BadRequest.FieldViolation.prototype.setDescription = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * repeated FieldViolation field_violations = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.rpc.BadRequest.prototype.getFieldViolationsList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.rpc.BadRequest.FieldViolation, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.rpc.BadRequest.prototype.setFieldViolationsList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.rpc.BadRequest.FieldViolation=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.rpc.BadRequest.FieldViolation}
+ */
+proto.google.rpc.BadRequest.prototype.addFieldViolations = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.rpc.BadRequest.FieldViolation, opt_index);
+};
+
+
+proto.google.rpc.BadRequest.prototype.clearFieldViolationsList = function() {
+ this.setFieldViolationsList([]);
+};
+
+
+
+/**
+ * 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.google.rpc.RequestInfo = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.rpc.RequestInfo, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.rpc.RequestInfo.displayName = 'proto.google.rpc.RequestInfo';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.rpc.RequestInfo.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.rpc.RequestInfo.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.rpc.RequestInfo} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.rpc.RequestInfo.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ requestId: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ servingData: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.rpc.RequestInfo}
+ */
+proto.google.rpc.RequestInfo.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.rpc.RequestInfo;
+ return proto.google.rpc.RequestInfo.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.rpc.RequestInfo} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.rpc.RequestInfo}
+ */
+proto.google.rpc.RequestInfo.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setRequestId(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setServingData(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.rpc.RequestInfo.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.rpc.RequestInfo.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.rpc.RequestInfo} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.rpc.RequestInfo.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getRequestId();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getServingData();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string request_id = 1;
+ * @return {string}
+ */
+proto.google.rpc.RequestInfo.prototype.getRequestId = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.RequestInfo.prototype.setRequestId = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string serving_data = 2;
+ * @return {string}
+ */
+proto.google.rpc.RequestInfo.prototype.getServingData = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.RequestInfo.prototype.setServingData = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+
+/**
+ * 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.google.rpc.ResourceInfo = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.rpc.ResourceInfo, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.rpc.ResourceInfo.displayName = 'proto.google.rpc.ResourceInfo';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.rpc.ResourceInfo.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.rpc.ResourceInfo.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.rpc.ResourceInfo} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.rpc.ResourceInfo.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ resourceType: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ resourceName: jspb.Message.getFieldWithDefault(msg, 2, ""),
+ owner: jspb.Message.getFieldWithDefault(msg, 3, ""),
+ description: jspb.Message.getFieldWithDefault(msg, 4, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.rpc.ResourceInfo}
+ */
+proto.google.rpc.ResourceInfo.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.rpc.ResourceInfo;
+ return proto.google.rpc.ResourceInfo.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.rpc.ResourceInfo} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.rpc.ResourceInfo}
+ */
+proto.google.rpc.ResourceInfo.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setResourceType(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setResourceName(value);
+ break;
+ case 3:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setOwner(value);
+ break;
+ case 4:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDescription(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.rpc.ResourceInfo.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.rpc.ResourceInfo.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.rpc.ResourceInfo} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.rpc.ResourceInfo.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getResourceType();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getResourceName();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+ f = message.getOwner();
+ if (f.length > 0) {
+ writer.writeString(
+ 3,
+ f
+ );
+ }
+ f = message.getDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 4,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string resource_type = 1;
+ * @return {string}
+ */
+proto.google.rpc.ResourceInfo.prototype.getResourceType = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.ResourceInfo.prototype.setResourceType = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string resource_name = 2;
+ * @return {string}
+ */
+proto.google.rpc.ResourceInfo.prototype.getResourceName = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.ResourceInfo.prototype.setResourceName = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * optional string owner = 3;
+ * @return {string}
+ */
+proto.google.rpc.ResourceInfo.prototype.getOwner = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.ResourceInfo.prototype.setOwner = function(value) {
+ jspb.Message.setField(this, 3, value);
+};
+
+
+/**
+ * optional string description = 4;
+ * @return {string}
+ */
+proto.google.rpc.ResourceInfo.prototype.getDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.ResourceInfo.prototype.setDescription = function(value) {
+ jspb.Message.setField(this, 4, value);
+};
+
+
+
+/**
+ * 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.google.rpc.Help = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.Help.repeatedFields_, null);
+};
+goog.inherits(proto.google.rpc.Help, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.rpc.Help.displayName = 'proto.google.rpc.Help';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array}
+ * @const
+ */
+proto.google.rpc.Help.repeatedFields_ = [1];
+
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.rpc.Help.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.rpc.Help.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.rpc.Help} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.rpc.Help.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ linksList: jspb.Message.toObjectList(msg.getLinksList(),
+ proto.google.rpc.Help.Link.toObject, includeInstance)
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.rpc.Help}
+ */
+proto.google.rpc.Help.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.rpc.Help;
+ return proto.google.rpc.Help.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.rpc.Help} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.rpc.Help}
+ */
+proto.google.rpc.Help.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = new proto.google.rpc.Help.Link;
+ reader.readMessage(value,proto.google.rpc.Help.Link.deserializeBinaryFromReader);
+ msg.addLinks(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.rpc.Help.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.rpc.Help.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.rpc.Help} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.rpc.Help.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getLinksList();
+ if (f.length > 0) {
+ writer.writeRepeatedMessage(
+ 1,
+ f,
+ proto.google.rpc.Help.Link.serializeBinaryToWriter
+ );
+ }
+};
+
+
+
+/**
+ * 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.google.rpc.Help.Link = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.rpc.Help.Link, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.rpc.Help.Link.displayName = 'proto.google.rpc.Help.Link';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.rpc.Help.Link.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.rpc.Help.Link.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.rpc.Help.Link} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.rpc.Help.Link.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ description: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ url: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.rpc.Help.Link}
+ */
+proto.google.rpc.Help.Link.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.rpc.Help.Link;
+ return proto.google.rpc.Help.Link.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.rpc.Help.Link} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.rpc.Help.Link}
+ */
+proto.google.rpc.Help.Link.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setDescription(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setUrl(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.rpc.Help.Link.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.rpc.Help.Link.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.rpc.Help.Link} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.rpc.Help.Link.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getDescription();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getUrl();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string description = 1;
+ * @return {string}
+ */
+proto.google.rpc.Help.Link.prototype.getDescription = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.Help.Link.prototype.setDescription = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string url = 2;
+ * @return {string}
+ */
+proto.google.rpc.Help.Link.prototype.getUrl = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.Help.Link.prototype.setUrl = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+/**
+ * repeated Link links = 1;
+ * If you change this array by adding, removing or replacing elements, or if you
+ * replace the array itself, then you must call the setter to update it.
+ * @return {!Array.}
+ */
+proto.google.rpc.Help.prototype.getLinksList = function() {
+ return /** @type{!Array.} */ (
+ jspb.Message.getRepeatedWrapperField(this, proto.google.rpc.Help.Link, 1));
+};
+
+
+/** @param {!Array.} value */
+proto.google.rpc.Help.prototype.setLinksList = function(value) {
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
+};
+
+
+/**
+ * @param {!proto.google.rpc.Help.Link=} opt_value
+ * @param {number=} opt_index
+ * @return {!proto.google.rpc.Help.Link}
+ */
+proto.google.rpc.Help.prototype.addLinks = function(opt_value, opt_index) {
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.rpc.Help.Link, opt_index);
+};
+
+
+proto.google.rpc.Help.prototype.clearLinksList = function() {
+ this.setLinksList([]);
+};
+
+
+
+/**
+ * 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.google.rpc.LocalizedMessage = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
+};
+goog.inherits(proto.google.rpc.LocalizedMessage, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.rpc.LocalizedMessage.displayName = 'proto.google.rpc.LocalizedMessage';
+}
+
+
+if (jspb.Message.GENERATE_TO_OBJECT) {
+/**
+ * Creates an object representation of this proto suitable for use in Soy templates.
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
+ * To access a reserved field use, foo.pb_, eg, foo.pb_default.
+ * For the list of reserved names please see:
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
+ * for transitional soy proto support: http://goto/soy-param-migration
+ * @return {!Object}
+ */
+proto.google.rpc.LocalizedMessage.prototype.toObject = function(opt_includeInstance) {
+ return proto.google.rpc.LocalizedMessage.toObject(opt_includeInstance, this);
+};
+
+
+/**
+ * Static version of the {@see toObject} method.
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
+ * instance for transitional soy proto support:
+ * http://goto/soy-param-migration
+ * @param {!proto.google.rpc.LocalizedMessage} msg The msg instance to transform.
+ * @return {!Object}
+ */
+proto.google.rpc.LocalizedMessage.toObject = function(includeInstance, msg) {
+ var f, obj = {
+ locale: jspb.Message.getFieldWithDefault(msg, 1, ""),
+ message: jspb.Message.getFieldWithDefault(msg, 2, "")
+ };
+
+ if (includeInstance) {
+ obj.$jspbMessageInstance = msg;
+ }
+ return obj;
+};
+}
+
+
+/**
+ * Deserializes binary data (in protobuf wire format).
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
+ * @return {!proto.google.rpc.LocalizedMessage}
+ */
+proto.google.rpc.LocalizedMessage.deserializeBinary = function(bytes) {
+ var reader = new jspb.BinaryReader(bytes);
+ var msg = new proto.google.rpc.LocalizedMessage;
+ return proto.google.rpc.LocalizedMessage.deserializeBinaryFromReader(msg, reader);
+};
+
+
+/**
+ * Deserializes binary data (in protobuf wire format) from the
+ * given reader into the given message object.
+ * @param {!proto.google.rpc.LocalizedMessage} msg The message object to deserialize into.
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
+ * @return {!proto.google.rpc.LocalizedMessage}
+ */
+proto.google.rpc.LocalizedMessage.deserializeBinaryFromReader = function(msg, reader) {
+ while (reader.nextField()) {
+ if (reader.isEndGroup()) {
+ break;
+ }
+ var field = reader.getFieldNumber();
+ switch (field) {
+ case 1:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setLocale(value);
+ break;
+ case 2:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setMessage(value);
+ break;
+ default:
+ reader.skipField();
+ break;
+ }
+ }
+ return msg;
+};
+
+
+/**
+ * Serializes the message to binary data (in protobuf wire format).
+ * @return {!Uint8Array}
+ */
+proto.google.rpc.LocalizedMessage.prototype.serializeBinary = function() {
+ var writer = new jspb.BinaryWriter();
+ proto.google.rpc.LocalizedMessage.serializeBinaryToWriter(this, writer);
+ return writer.getResultBuffer();
+};
+
+
+/**
+ * Serializes the given message to binary data (in protobuf wire
+ * format), writing to the given BinaryWriter.
+ * @param {!proto.google.rpc.LocalizedMessage} message
+ * @param {!jspb.BinaryWriter} writer
+ */
+proto.google.rpc.LocalizedMessage.serializeBinaryToWriter = function(message, writer) {
+ var f = undefined;
+ f = message.getLocale();
+ if (f.length > 0) {
+ writer.writeString(
+ 1,
+ f
+ );
+ }
+ f = message.getMessage();
+ if (f.length > 0) {
+ writer.writeString(
+ 2,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional string locale = 1;
+ * @return {string}
+ */
+proto.google.rpc.LocalizedMessage.prototype.getLocale = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.LocalizedMessage.prototype.setLocale = function(value) {
+ jspb.Message.setField(this, 1, value);
+};
+
+
+/**
+ * optional string message = 2;
+ * @return {string}
+ */
+proto.google.rpc.LocalizedMessage.prototype.getMessage = function() {
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
+};
+
+
+/** @param {string} value */
+proto.google.rpc.LocalizedMessage.prototype.setMessage = function(value) {
+ jspb.Message.setField(this, 2, value);
+};
+
+
+goog.object.extend(exports, proto.google.rpc);
diff --git a/build/lib/googleapis/google/rpc/status_pb.js b/build/lib/googleapis/google/rpc/status_pb.js
new file mode 100644
index 0000000..5c75b7b
--- /dev/null
+++ b/build/lib/googleapis/google/rpc/status_pb.js
@@ -0,0 +1,236 @@
+/**
+ * @fileoverview
+ * @enhanceable
+ * @public
+ */
+// GENERATED CODE -- DO NOT EDIT!
+
+var jspb = require('google-protobuf');
+var goog = jspb;
+var global = Function('return this')();
+
+var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
+goog.exportSymbol('proto.google.rpc.Status', null, global);
+
+/**
+ * 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.google.rpc.Status = function(opt_data) {
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.Status.repeatedFields_, null);
+};
+goog.inherits(proto.google.rpc.Status, jspb.Message);
+if (goog.DEBUG && !COMPILED) {
+ proto.google.rpc.Status.displayName = 'proto.google.rpc.Status';
+}
+/**
+ * List of repeated fields within this message type.
+ * @private {!Array