custos-client-sdks/custos-js-sdk/stubs/core-services/resource-secret-service/ResourceSecretService_pb.js (1,319 lines of code) (raw):
// source: src/main/proto/ResourceSecretService.proto
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
/**
* @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')();
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse', null, global);
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.CertificateCredential', null, global);
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest', null, global);
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest', null, global);
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.GetSecretRequest', null, global);
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.PasswordCredential', null, global);
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus', null, global);
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries', null, global);
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.ResourceOwnerType', null, global);
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.ResourceSecretType', null, global);
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.ResourceSource', null, global);
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.ResourceType', null, global);
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.SSHCredential', null, global);
goog.exportSymbol('proto.org.apache.custos.resource.secret.service.SecretMetadata', 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.org.apache.custos.resource.secret.service.SecretMetadata = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.resource.secret.service.SecretMetadata, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.displayName = 'proto.org.apache.custos.resource.secret.service.SecretMetadata';
}
/**
* 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.org.apache.custos.resource.secret.service.GetSecretRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.resource.secret.service.GetSecretRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.displayName = 'proto.org.apache.custos.resource.secret.service.GetSecretRequest';
}
/**
* 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.org.apache.custos.resource.secret.service.CertificateCredential = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.resource.secret.service.CertificateCredential, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.displayName = 'proto.org.apache.custos.resource.secret.service.CertificateCredential';
}
/**
* 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.org.apache.custos.resource.secret.service.PasswordCredential = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.resource.secret.service.PasswordCredential, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.resource.secret.service.PasswordCredential.displayName = 'proto.org.apache.custos.resource.secret.service.PasswordCredential';
}
/**
* 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.org.apache.custos.resource.secret.service.SSHCredential = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.resource.secret.service.SSHCredential, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.displayName = 'proto.org.apache.custos.resource.secret.service.SSHCredential';
}
/**
* 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.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.displayName = 'proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest';
}
/**
* 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.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.repeatedFields_, null);
};
goog.inherits(proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.displayName = 'proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest';
}
/**
* 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.org.apache.custos.resource.secret.service.ResourceCredentialSummaries = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.repeatedFields_, null);
};
goog.inherits(proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.displayName = 'proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries';
}
/**
* 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.org.apache.custos.resource.secret.service.AddResourceCredentialResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse.displayName = 'proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse';
}
/**
* 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.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus.displayName = 'proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.resource.secret.service.SecretMetadata.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.resource.secret.service.SecretMetadata} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.toObject = function(includeInstance, msg) {
var f, obj = {
ownerType: jspb.Message.getFieldWithDefault(msg, 1, 0),
resourceType: jspb.Message.getFieldWithDefault(msg, 2, 0),
source: jspb.Message.getFieldWithDefault(msg, 3, 0),
name: jspb.Message.getFieldWithDefault(msg, 4, ""),
value: jspb.Message.getFieldWithDefault(msg, 5, ""),
type: jspb.Message.getFieldWithDefault(msg, 6, 0),
tenantid: jspb.Message.getFieldWithDefault(msg, 7, 0),
ownerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
persistedTime: jspb.Message.getFieldWithDefault(msg, 9, 0),
token: jspb.Message.getFieldWithDefault(msg, 10, ""),
description: jspb.Message.getFieldWithDefault(msg, 11, ""),
clientId: 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.org.apache.custos.resource.secret.service.SecretMetadata}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.resource.secret.service.SecretMetadata;
return proto.org.apache.custos.resource.secret.service.SecretMetadata.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.resource.secret.service.SecretMetadata} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!proto.org.apache.custos.resource.secret.service.ResourceOwnerType} */ (reader.readEnum());
msg.setOwnerType(value);
break;
case 2:
var value = /** @type {!proto.org.apache.custos.resource.secret.service.ResourceType} */ (reader.readEnum());
msg.setResourceType(value);
break;
case 3:
var value = /** @type {!proto.org.apache.custos.resource.secret.service.ResourceSource} */ (reader.readEnum());
msg.setSource(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setValue(value);
break;
case 6:
var value = /** @type {!proto.org.apache.custos.resource.secret.service.ResourceSecretType} */ (reader.readEnum());
msg.setType(value);
break;
case 7:
var value = /** @type {number} */ (reader.readInt64());
msg.setTenantid(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.setOwnerId(value);
break;
case 9:
var value = /** @type {number} */ (reader.readInt64());
msg.setPersistedTime(value);
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.setToken(value);
break;
case 11:
var value = /** @type {string} */ (reader.readString());
msg.setDescription(value);
break;
case 12:
var value = /** @type {string} */ (reader.readString());
msg.setClientId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.resource.secret.service.SecretMetadata.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.resource.secret.service.SecretMetadata} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getOwnerType();
if (f !== 0.0) {
writer.writeEnum(
1,
f
);
}
f = message.getResourceType();
if (f !== 0.0) {
writer.writeEnum(
2,
f
);
}
f = message.getSource();
if (f !== 0.0) {
writer.writeEnum(
3,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getValue();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getType();
if (f !== 0.0) {
writer.writeEnum(
6,
f
);
}
f = message.getTenantid();
if (f !== 0) {
writer.writeInt64(
7,
f
);
}
f = message.getOwnerId();
if (f.length > 0) {
writer.writeString(
8,
f
);
}
f = message.getPersistedTime();
if (f !== 0) {
writer.writeInt64(
9,
f
);
}
f = message.getToken();
if (f.length > 0) {
writer.writeString(
10,
f
);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(
11,
f
);
}
f = message.getClientId();
if (f.length > 0) {
writer.writeString(
12,
f
);
}
};
/**
* optional ResourceOwnerType owner_type = 1;
* @return {!proto.org.apache.custos.resource.secret.service.ResourceOwnerType}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.getOwnerType = function() {
return /** @type {!proto.org.apache.custos.resource.secret.service.ResourceOwnerType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {!proto.org.apache.custos.resource.secret.service.ResourceOwnerType} value
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata} returns this
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.setOwnerType = function(value) {
return jspb.Message.setProto3EnumField(this, 1, value);
};
/**
* optional ResourceType resource_type = 2;
* @return {!proto.org.apache.custos.resource.secret.service.ResourceType}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.getResourceType = function() {
return /** @type {!proto.org.apache.custos.resource.secret.service.ResourceType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.org.apache.custos.resource.secret.service.ResourceType} value
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata} returns this
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.setResourceType = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};
/**
* optional ResourceSource source = 3;
* @return {!proto.org.apache.custos.resource.secret.service.ResourceSource}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.getSource = function() {
return /** @type {!proto.org.apache.custos.resource.secret.service.ResourceSource} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {!proto.org.apache.custos.resource.secret.service.ResourceSource} value
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata} returns this
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.setSource = function(value) {
return jspb.Message.setProto3EnumField(this, 3, value);
};
/**
* optional string name = 4;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata} returns this
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional string value = 5;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.getValue = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata} returns this
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.setValue = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* optional ResourceSecretType type = 6;
* @return {!proto.org.apache.custos.resource.secret.service.ResourceSecretType}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.getType = function() {
return /** @type {!proto.org.apache.custos.resource.secret.service.ResourceSecretType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {!proto.org.apache.custos.resource.secret.service.ResourceSecretType} value
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata} returns this
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.setType = function(value) {
return jspb.Message.setProto3EnumField(this, 6, value);
};
/**
* optional int64 tenantId = 7;
* @return {number}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.getTenantid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata} returns this
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.setTenantid = function(value) {
return jspb.Message.setProto3IntField(this, 7, value);
};
/**
* optional string owner_id = 8;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.getOwnerId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata} returns this
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.setOwnerId = function(value) {
return jspb.Message.setProto3StringField(this, 8, value);
};
/**
* optional int64 persisted_time = 9;
* @return {number}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.getPersistedTime = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata} returns this
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.setPersistedTime = function(value) {
return jspb.Message.setProto3IntField(this, 9, value);
};
/**
* optional string token = 10;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.getToken = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata} returns this
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.setToken = function(value) {
return jspb.Message.setProto3StringField(this, 10, value);
};
/**
* optional string description = 11;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata} returns this
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.setDescription = function(value) {
return jspb.Message.setProto3StringField(this, 11, value);
};
/**
* optional string client_id = 12;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.getClientId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata} returns this
*/
proto.org.apache.custos.resource.secret.service.SecretMetadata.prototype.setClientId = function(value) {
return jspb.Message.setProto3StringField(this, 12, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.resource.secret.service.GetSecretRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.resource.secret.service.GetSecretRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.toObject = function(includeInstance, msg) {
var f, obj = {
metadata: (f = msg.getMetadata()) && proto.org.apache.custos.resource.secret.service.SecretMetadata.toObject(includeInstance, f),
tenantid: jspb.Message.getFieldWithDefault(msg, 2, 0),
clientid: jspb.Message.getFieldWithDefault(msg, 3, ""),
clientsec: jspb.Message.getFieldWithDefault(msg, 4, ""),
accesstoken: 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.org.apache.custos.resource.secret.service.GetSecretRequest}
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.resource.secret.service.GetSecretRequest;
return proto.org.apache.custos.resource.secret.service.GetSecretRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.resource.secret.service.GetSecretRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.resource.secret.service.GetSecretRequest}
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.org.apache.custos.resource.secret.service.SecretMetadata;
reader.readMessage(value,proto.org.apache.custos.resource.secret.service.SecretMetadata.deserializeBinaryFromReader);
msg.setMetadata(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt64());
msg.setTenantid(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setClientid(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setClientsec(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setAccesstoken(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.resource.secret.service.GetSecretRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.resource.secret.service.GetSecretRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMetadata();
if (f != null) {
writer.writeMessage(
1,
f,
proto.org.apache.custos.resource.secret.service.SecretMetadata.serializeBinaryToWriter
);
}
f = message.getTenantid();
if (f !== 0) {
writer.writeInt64(
2,
f
);
}
f = message.getClientid();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getClientsec();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getAccesstoken();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
};
/**
* optional SecretMetadata metadata = 1;
* @return {?proto.org.apache.custos.resource.secret.service.SecretMetadata}
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.getMetadata = function() {
return /** @type{?proto.org.apache.custos.resource.secret.service.SecretMetadata} */ (
jspb.Message.getWrapperField(this, proto.org.apache.custos.resource.secret.service.SecretMetadata, 1));
};
/**
* @param {?proto.org.apache.custos.resource.secret.service.SecretMetadata|undefined} value
* @return {!proto.org.apache.custos.resource.secret.service.GetSecretRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.setMetadata = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.org.apache.custos.resource.secret.service.GetSecretRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.clearMetadata = function() {
return this.setMetadata(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.hasMetadata = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional int64 tenantId = 2;
* @return {number}
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.getTenantid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.resource.secret.service.GetSecretRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.setTenantid = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional string clientId = 3;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.getClientid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.GetSecretRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.setClientid = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string clientSec = 4;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.getClientsec = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.GetSecretRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.setClientsec = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional string accessToken = 5;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.getAccesstoken = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.GetSecretRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetSecretRequest.prototype.setAccesstoken = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.resource.secret.service.CertificateCredential.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.resource.secret.service.CertificateCredential} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.toObject = function(includeInstance, msg) {
var f, obj = {
metadata: (f = msg.getMetadata()) && proto.org.apache.custos.resource.secret.service.SecretMetadata.toObject(includeInstance, f),
x509Cert: jspb.Message.getFieldWithDefault(msg, 3, ""),
notAfter: jspb.Message.getFieldWithDefault(msg, 4, ""),
privateKey: jspb.Message.getFieldWithDefault(msg, 5, ""),
lifeTime: jspb.Message.getFieldWithDefault(msg, 6, 0),
notBefore: 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.org.apache.custos.resource.secret.service.CertificateCredential}
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.resource.secret.service.CertificateCredential;
return proto.org.apache.custos.resource.secret.service.CertificateCredential.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.resource.secret.service.CertificateCredential} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.resource.secret.service.CertificateCredential}
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.org.apache.custos.resource.secret.service.SecretMetadata;
reader.readMessage(value,proto.org.apache.custos.resource.secret.service.SecretMetadata.deserializeBinaryFromReader);
msg.setMetadata(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setX509Cert(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setNotAfter(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setPrivateKey(value);
break;
case 6:
var value = /** @type {number} */ (reader.readInt64());
msg.setLifeTime(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setNotBefore(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.resource.secret.service.CertificateCredential.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.resource.secret.service.CertificateCredential} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMetadata();
if (f != null) {
writer.writeMessage(
1,
f,
proto.org.apache.custos.resource.secret.service.SecretMetadata.serializeBinaryToWriter
);
}
f = message.getX509Cert();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getNotAfter();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getPrivateKey();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getLifeTime();
if (f !== 0) {
writer.writeInt64(
6,
f
);
}
f = message.getNotBefore();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
};
/**
* optional SecretMetadata metadata = 1;
* @return {?proto.org.apache.custos.resource.secret.service.SecretMetadata}
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.getMetadata = function() {
return /** @type{?proto.org.apache.custos.resource.secret.service.SecretMetadata} */ (
jspb.Message.getWrapperField(this, proto.org.apache.custos.resource.secret.service.SecretMetadata, 1));
};
/**
* @param {?proto.org.apache.custos.resource.secret.service.SecretMetadata|undefined} value
* @return {!proto.org.apache.custos.resource.secret.service.CertificateCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.setMetadata = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.org.apache.custos.resource.secret.service.CertificateCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.clearMetadata = function() {
return this.setMetadata(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.hasMetadata = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional string x509_cert = 3;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.getX509Cert = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.CertificateCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.setX509Cert = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string not_after = 4;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.getNotAfter = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.CertificateCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.setNotAfter = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional string private_key = 5;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.getPrivateKey = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.CertificateCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.setPrivateKey = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* optional int64 life_time = 6;
* @return {number}
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.getLifeTime = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.resource.secret.service.CertificateCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.setLifeTime = function(value) {
return jspb.Message.setProto3IntField(this, 6, value);
};
/**
* optional string not_before = 7;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.getNotBefore = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.CertificateCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.CertificateCredential.prototype.setNotBefore = function(value) {
return jspb.Message.setProto3StringField(this, 7, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.resource.secret.service.PasswordCredential.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.resource.secret.service.PasswordCredential.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.resource.secret.service.PasswordCredential} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.PasswordCredential.toObject = function(includeInstance, msg) {
var f, obj = {
metadata: (f = msg.getMetadata()) && proto.org.apache.custos.resource.secret.service.SecretMetadata.toObject(includeInstance, f),
password: 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.org.apache.custos.resource.secret.service.PasswordCredential}
*/
proto.org.apache.custos.resource.secret.service.PasswordCredential.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.resource.secret.service.PasswordCredential;
return proto.org.apache.custos.resource.secret.service.PasswordCredential.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.resource.secret.service.PasswordCredential} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.resource.secret.service.PasswordCredential}
*/
proto.org.apache.custos.resource.secret.service.PasswordCredential.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.org.apache.custos.resource.secret.service.SecretMetadata;
reader.readMessage(value,proto.org.apache.custos.resource.secret.service.SecretMetadata.deserializeBinaryFromReader);
msg.setMetadata(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setPassword(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.resource.secret.service.PasswordCredential.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.resource.secret.service.PasswordCredential.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.resource.secret.service.PasswordCredential} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.PasswordCredential.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMetadata();
if (f != null) {
writer.writeMessage(
1,
f,
proto.org.apache.custos.resource.secret.service.SecretMetadata.serializeBinaryToWriter
);
}
f = message.getPassword();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional SecretMetadata metadata = 1;
* @return {?proto.org.apache.custos.resource.secret.service.SecretMetadata}
*/
proto.org.apache.custos.resource.secret.service.PasswordCredential.prototype.getMetadata = function() {
return /** @type{?proto.org.apache.custos.resource.secret.service.SecretMetadata} */ (
jspb.Message.getWrapperField(this, proto.org.apache.custos.resource.secret.service.SecretMetadata, 1));
};
/**
* @param {?proto.org.apache.custos.resource.secret.service.SecretMetadata|undefined} value
* @return {!proto.org.apache.custos.resource.secret.service.PasswordCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.PasswordCredential.prototype.setMetadata = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.org.apache.custos.resource.secret.service.PasswordCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.PasswordCredential.prototype.clearMetadata = function() {
return this.setMetadata(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.org.apache.custos.resource.secret.service.PasswordCredential.prototype.hasMetadata = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional string password = 3;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.PasswordCredential.prototype.getPassword = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.PasswordCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.PasswordCredential.prototype.setPassword = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.resource.secret.service.SSHCredential.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.resource.secret.service.SSHCredential} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.toObject = function(includeInstance, msg) {
var f, obj = {
metadata: (f = msg.getMetadata()) && proto.org.apache.custos.resource.secret.service.SecretMetadata.toObject(includeInstance, f),
passphrase: jspb.Message.getFieldWithDefault(msg, 3, ""),
publicKey: jspb.Message.getFieldWithDefault(msg, 4, ""),
privateKey: 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.org.apache.custos.resource.secret.service.SSHCredential}
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.resource.secret.service.SSHCredential;
return proto.org.apache.custos.resource.secret.service.SSHCredential.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.resource.secret.service.SSHCredential} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.resource.secret.service.SSHCredential}
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.org.apache.custos.resource.secret.service.SecretMetadata;
reader.readMessage(value,proto.org.apache.custos.resource.secret.service.SecretMetadata.deserializeBinaryFromReader);
msg.setMetadata(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setPassphrase(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setPublicKey(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setPrivateKey(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.resource.secret.service.SSHCredential.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.resource.secret.service.SSHCredential} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMetadata();
if (f != null) {
writer.writeMessage(
1,
f,
proto.org.apache.custos.resource.secret.service.SecretMetadata.serializeBinaryToWriter
);
}
f = message.getPassphrase();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getPublicKey();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getPrivateKey();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
};
/**
* optional SecretMetadata metadata = 1;
* @return {?proto.org.apache.custos.resource.secret.service.SecretMetadata}
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.prototype.getMetadata = function() {
return /** @type{?proto.org.apache.custos.resource.secret.service.SecretMetadata} */ (
jspb.Message.getWrapperField(this, proto.org.apache.custos.resource.secret.service.SecretMetadata, 1));
};
/**
* @param {?proto.org.apache.custos.resource.secret.service.SecretMetadata|undefined} value
* @return {!proto.org.apache.custos.resource.secret.service.SSHCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.prototype.setMetadata = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.org.apache.custos.resource.secret.service.SSHCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.prototype.clearMetadata = function() {
return this.setMetadata(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.prototype.hasMetadata = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional string passphrase = 3;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.prototype.getPassphrase = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.SSHCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.prototype.setPassphrase = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string public_key = 4;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.prototype.getPublicKey = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.SSHCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.prototype.setPublicKey = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional string private_key = 5;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.prototype.getPrivateKey = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.SSHCredential} returns this
*/
proto.org.apache.custos.resource.secret.service.SSHCredential.prototype.setPrivateKey = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.toObject = function(includeInstance, msg) {
var f, obj = {
tenantid: jspb.Message.getFieldWithDefault(msg, 1, 0),
token: jspb.Message.getFieldWithDefault(msg, 2, ""),
performedBy: jspb.Message.getFieldWithDefault(msg, 3, ""),
clientId: 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.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest;
return proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.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.setTenantid(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setToken(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setPerformedBy(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setClientId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTenantid();
if (f !== 0) {
writer.writeInt64(
1,
f
);
}
f = message.getToken();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getPerformedBy();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getClientId();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
};
/**
* optional int64 tenantId = 1;
* @return {number}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.prototype.getTenantid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.prototype.setTenantid = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string token = 2;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.prototype.getToken = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.prototype.setToken = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string performed_by = 3;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.prototype.getPerformedBy = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.prototype.setPerformedBy = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string client_id = 4;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.prototype.getClientId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.prototype.setClientId = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.repeatedFields_ = [2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.toObject = function(includeInstance, msg) {
var f, obj = {
type: jspb.Message.getFieldWithDefault(msg, 1, 0),
accessibleTokensList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
tenantid: jspb.Message.getFieldWithDefault(msg, 3, 0),
ownerId: jspb.Message.getFieldWithDefault(msg, 4, ""),
allTypes: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
clientId: jspb.Message.getFieldWithDefault(msg, 6, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest;
return proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!proto.org.apache.custos.resource.secret.service.ResourceType} */ (reader.readEnum());
msg.setType(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.addAccessibleTokens(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt64());
msg.setTenantid(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setOwnerId(value);
break;
case 5:
var value = /** @type {boolean} */ (reader.readBool());
msg.setAllTypes(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setClientId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getType();
if (f !== 0.0) {
writer.writeEnum(
1,
f
);
}
f = message.getAccessibleTokensList();
if (f.length > 0) {
writer.writeRepeatedString(
2,
f
);
}
f = message.getTenantid();
if (f !== 0) {
writer.writeInt64(
3,
f
);
}
f = message.getOwnerId();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getAllTypes();
if (f) {
writer.writeBool(
5,
f
);
}
f = message.getClientId();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
};
/**
* optional ResourceType type = 1;
* @return {!proto.org.apache.custos.resource.secret.service.ResourceType}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.getType = function() {
return /** @type {!proto.org.apache.custos.resource.secret.service.ResourceType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {!proto.org.apache.custos.resource.secret.service.ResourceType} value
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.setType = function(value) {
return jspb.Message.setProto3EnumField(this, 1, value);
};
/**
* repeated string accessible_tokens = 2;
* @return {!Array<string>}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.getAccessibleTokensList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
};
/**
* @param {!Array<string>} value
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.setAccessibleTokensList = function(value) {
return jspb.Message.setField(this, 2, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.addAccessibleTokens = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.clearAccessibleTokensList = function() {
return this.setAccessibleTokensList([]);
};
/**
* optional int64 tenantId = 3;
* @return {number}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.getTenantid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.setTenantid = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional string owner_id = 4;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.getOwnerId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.setOwnerId = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional bool all_types = 5;
* @return {boolean}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.getAllTypes = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
};
/**
* @param {boolean} value
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.setAllTypes = function(value) {
return jspb.Message.setProto3BooleanField(this, 5, value);
};
/**
* optional string client_id = 6;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.getClientId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest} returns this
*/
proto.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.prototype.setClientId = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.toObject = function(includeInstance, msg) {
var f, obj = {
metadataList: jspb.Message.toObjectList(msg.getMetadataList(),
proto.org.apache.custos.resource.secret.service.SecretMetadata.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.org.apache.custos.resource.secret.service.ResourceCredentialSummaries}
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries;
return proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries}
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.org.apache.custos.resource.secret.service.SecretMetadata;
reader.readMessage(value,proto.org.apache.custos.resource.secret.service.SecretMetadata.deserializeBinaryFromReader);
msg.addMetadata(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMetadataList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.org.apache.custos.resource.secret.service.SecretMetadata.serializeBinaryToWriter
);
}
};
/**
* repeated SecretMetadata metadata = 1;
* @return {!Array<!proto.org.apache.custos.resource.secret.service.SecretMetadata>}
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.prototype.getMetadataList = function() {
return /** @type{!Array<!proto.org.apache.custos.resource.secret.service.SecretMetadata>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.org.apache.custos.resource.secret.service.SecretMetadata, 1));
};
/**
* @param {!Array<!proto.org.apache.custos.resource.secret.service.SecretMetadata>} value
* @return {!proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries} returns this
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.prototype.setMetadataList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.org.apache.custos.resource.secret.service.SecretMetadata=} opt_value
* @param {number=} opt_index
* @return {!proto.org.apache.custos.resource.secret.service.SecretMetadata}
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.prototype.addMetadata = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.org.apache.custos.resource.secret.service.SecretMetadata, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries} returns this
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialSummaries.prototype.clearMetadataList = function() {
return this.setMetadataList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse.toObject = function(includeInstance, msg) {
var f, obj = {
token: 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.org.apache.custos.resource.secret.service.AddResourceCredentialResponse}
*/
proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse;
return proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse}
*/
proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse.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.setToken(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getToken();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string token = 1;
* @return {string}
*/
proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse.prototype.getToken = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse} returns this
*/
proto.org.apache.custos.resource.secret.service.AddResourceCredentialResponse.prototype.setToken = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus.toObject = function(includeInstance, msg) {
var f, obj = {
status: jspb.Message.getBooleanFieldWithDefault(msg, 1, 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.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus}
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus;
return proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus}
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {boolean} */ (reader.readBool());
msg.setStatus(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getStatus();
if (f) {
writer.writeBool(
1,
f
);
}
};
/**
* optional bool status = 1;
* @return {boolean}
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus.prototype.getStatus = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
};
/**
* @param {boolean} value
* @return {!proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus} returns this
*/
proto.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus.prototype.setStatus = function(value) {
return jspb.Message.setProto3BooleanField(this, 1, value);
};
/**
* @enum {number}
*/
proto.org.apache.custos.resource.secret.service.ResourceOwnerType = {
TENANT_USER: 0,
CUSTOS: 1,
TENANT: 2
};
/**
* @enum {number}
*/
proto.org.apache.custos.resource.secret.service.ResourceType = {
SERVER_CERTIFICATE: 0,
JWT_SIGNING_CERTIFICATE: 1,
VAULT_CREDENTIAL: 2
};
/**
* @enum {number}
*/
proto.org.apache.custos.resource.secret.service.ResourceSource = {
KUBE: 0,
LOCAL: 1,
EXTERNAL: 2,
LETSENCRYPT: 3
};
/**
* @enum {number}
*/
proto.org.apache.custos.resource.secret.service.ResourceSecretType = {
SSH: 0,
PASSWORD: 1,
X509_CERTIFICATE: 2
};
goog.object.extend(exports, proto.org.apache.custos.resource.secret.service);