@google-cloud/containeranalysis 4.7.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +490 -0
- package/README.md +47 -47
- package/build/protos/google/devtools/containeranalysis/v1beta1/containeranalysis.proto +23 -0
- package/build/protos/protos.d.ts +215 -0
- package/build/protos/protos.js +439 -0
- package/build/protos/protos.json +7148 -1
- package/build/src/v1/container_analysis_client.d.ts +10 -15
- package/build/src/v1/container_analysis_client.js +3 -4
- package/build/src/v1beta1/container_analysis_v1_beta1_client.d.ts +34 -15
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js +25 -4
- package/build/src/v1beta1/container_analysis_v1_beta1_client_config.json +4 -0
- package/build/src/v1beta1/grafeas_v1_beta1_client.d.ts +47 -69
- package/build/src/v1beta1/grafeas_v1_beta1_client.js +18 -25
- package/package.json +24 -21
- package/build/src/index.js.map +0 -1
- package/build/src/v1/container_analysis_client.js.map +0 -1
- package/build/src/v1/grafeas_client.js.map +0 -1
- package/build/src/v1/index.js.map +0 -1
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js.map +0 -1
- package/build/src/v1beta1/grafeas_v1_beta1_client.js.map +0 -1
- package/build/src/v1beta1/index.js.map +0 -1
package/build/protos/protos.js
CHANGED
|
@@ -58069,6 +58069,39 @@
|
|
|
58069
58069
|
* @variation 2
|
|
58070
58070
|
*/
|
|
58071
58071
|
|
|
58072
|
+
/**
|
|
58073
|
+
* Callback as used by {@link google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1|exportSBOM}.
|
|
58074
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1
|
|
58075
|
+
* @typedef ExportSBOMCallback
|
|
58076
|
+
* @type {function}
|
|
58077
|
+
* @param {Error|null} error Error, if any
|
|
58078
|
+
* @param {google.devtools.containeranalysis.v1beta1.ExportSBOMResponse} [response] ExportSBOMResponse
|
|
58079
|
+
*/
|
|
58080
|
+
|
|
58081
|
+
/**
|
|
58082
|
+
* Calls ExportSBOM.
|
|
58083
|
+
* @function exportSBOM
|
|
58084
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1
|
|
58085
|
+
* @instance
|
|
58086
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMRequest} request ExportSBOMRequest message or plain object
|
|
58087
|
+
* @param {google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.ExportSBOMCallback} callback Node-style callback called with the error, if any, and ExportSBOMResponse
|
|
58088
|
+
* @returns {undefined}
|
|
58089
|
+
* @variation 1
|
|
58090
|
+
*/
|
|
58091
|
+
Object.defineProperty(ContainerAnalysisV1Beta1.prototype.exportSBOM = function exportSBOM(request, callback) {
|
|
58092
|
+
return this.rpcCall(exportSBOM, $root.google.devtools.containeranalysis.v1beta1.ExportSBOMRequest, $root.google.devtools.containeranalysis.v1beta1.ExportSBOMResponse, request, callback);
|
|
58093
|
+
}, "name", { value: "ExportSBOM" });
|
|
58094
|
+
|
|
58095
|
+
/**
|
|
58096
|
+
* Calls ExportSBOM.
|
|
58097
|
+
* @function exportSBOM
|
|
58098
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1
|
|
58099
|
+
* @instance
|
|
58100
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMRequest} request ExportSBOMRequest message or plain object
|
|
58101
|
+
* @returns {Promise<google.devtools.containeranalysis.v1beta1.ExportSBOMResponse>} Promise
|
|
58102
|
+
* @variation 2
|
|
58103
|
+
*/
|
|
58104
|
+
|
|
58072
58105
|
return ContainerAnalysisV1Beta1;
|
|
58073
58106
|
})();
|
|
58074
58107
|
|
|
@@ -58764,6 +58797,412 @@
|
|
|
58764
58797
|
return PackagesSummaryResponse;
|
|
58765
58798
|
})();
|
|
58766
58799
|
|
|
58800
|
+
v1beta1.ExportSBOMRequest = (function() {
|
|
58801
|
+
|
|
58802
|
+
/**
|
|
58803
|
+
* Properties of an ExportSBOMRequest.
|
|
58804
|
+
* @memberof google.devtools.containeranalysis.v1beta1
|
|
58805
|
+
* @interface IExportSBOMRequest
|
|
58806
|
+
* @property {string|null} [name] ExportSBOMRequest name
|
|
58807
|
+
*/
|
|
58808
|
+
|
|
58809
|
+
/**
|
|
58810
|
+
* Constructs a new ExportSBOMRequest.
|
|
58811
|
+
* @memberof google.devtools.containeranalysis.v1beta1
|
|
58812
|
+
* @classdesc Represents an ExportSBOMRequest.
|
|
58813
|
+
* @implements IExportSBOMRequest
|
|
58814
|
+
* @constructor
|
|
58815
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMRequest=} [properties] Properties to set
|
|
58816
|
+
*/
|
|
58817
|
+
function ExportSBOMRequest(properties) {
|
|
58818
|
+
if (properties)
|
|
58819
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58820
|
+
if (properties[keys[i]] != null)
|
|
58821
|
+
this[keys[i]] = properties[keys[i]];
|
|
58822
|
+
}
|
|
58823
|
+
|
|
58824
|
+
/**
|
|
58825
|
+
* ExportSBOMRequest name.
|
|
58826
|
+
* @member {string} name
|
|
58827
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58828
|
+
* @instance
|
|
58829
|
+
*/
|
|
58830
|
+
ExportSBOMRequest.prototype.name = "";
|
|
58831
|
+
|
|
58832
|
+
/**
|
|
58833
|
+
* Creates a new ExportSBOMRequest instance using the specified properties.
|
|
58834
|
+
* @function create
|
|
58835
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58836
|
+
* @static
|
|
58837
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMRequest=} [properties] Properties to set
|
|
58838
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMRequest} ExportSBOMRequest instance
|
|
58839
|
+
*/
|
|
58840
|
+
ExportSBOMRequest.create = function create(properties) {
|
|
58841
|
+
return new ExportSBOMRequest(properties);
|
|
58842
|
+
};
|
|
58843
|
+
|
|
58844
|
+
/**
|
|
58845
|
+
* Encodes the specified ExportSBOMRequest message. Does not implicitly {@link google.devtools.containeranalysis.v1beta1.ExportSBOMRequest.verify|verify} messages.
|
|
58846
|
+
* @function encode
|
|
58847
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58848
|
+
* @static
|
|
58849
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMRequest} message ExportSBOMRequest message or plain object to encode
|
|
58850
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58851
|
+
* @returns {$protobuf.Writer} Writer
|
|
58852
|
+
*/
|
|
58853
|
+
ExportSBOMRequest.encode = function encode(message, writer) {
|
|
58854
|
+
if (!writer)
|
|
58855
|
+
writer = $Writer.create();
|
|
58856
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
58857
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
58858
|
+
return writer;
|
|
58859
|
+
};
|
|
58860
|
+
|
|
58861
|
+
/**
|
|
58862
|
+
* Encodes the specified ExportSBOMRequest message, length delimited. Does not implicitly {@link google.devtools.containeranalysis.v1beta1.ExportSBOMRequest.verify|verify} messages.
|
|
58863
|
+
* @function encodeDelimited
|
|
58864
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58865
|
+
* @static
|
|
58866
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMRequest} message ExportSBOMRequest message or plain object to encode
|
|
58867
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58868
|
+
* @returns {$protobuf.Writer} Writer
|
|
58869
|
+
*/
|
|
58870
|
+
ExportSBOMRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58871
|
+
return this.encode(message, writer).ldelim();
|
|
58872
|
+
};
|
|
58873
|
+
|
|
58874
|
+
/**
|
|
58875
|
+
* Decodes an ExportSBOMRequest message from the specified reader or buffer.
|
|
58876
|
+
* @function decode
|
|
58877
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58878
|
+
* @static
|
|
58879
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58880
|
+
* @param {number} [length] Message length if known beforehand
|
|
58881
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMRequest} ExportSBOMRequest
|
|
58882
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58883
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58884
|
+
*/
|
|
58885
|
+
ExportSBOMRequest.decode = function decode(reader, length) {
|
|
58886
|
+
if (!(reader instanceof $Reader))
|
|
58887
|
+
reader = $Reader.create(reader);
|
|
58888
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.containeranalysis.v1beta1.ExportSBOMRequest();
|
|
58889
|
+
while (reader.pos < end) {
|
|
58890
|
+
var tag = reader.uint32();
|
|
58891
|
+
switch (tag >>> 3) {
|
|
58892
|
+
case 1: {
|
|
58893
|
+
message.name = reader.string();
|
|
58894
|
+
break;
|
|
58895
|
+
}
|
|
58896
|
+
default:
|
|
58897
|
+
reader.skipType(tag & 7);
|
|
58898
|
+
break;
|
|
58899
|
+
}
|
|
58900
|
+
}
|
|
58901
|
+
return message;
|
|
58902
|
+
};
|
|
58903
|
+
|
|
58904
|
+
/**
|
|
58905
|
+
* Decodes an ExportSBOMRequest message from the specified reader or buffer, length delimited.
|
|
58906
|
+
* @function decodeDelimited
|
|
58907
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58908
|
+
* @static
|
|
58909
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58910
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMRequest} ExportSBOMRequest
|
|
58911
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58912
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58913
|
+
*/
|
|
58914
|
+
ExportSBOMRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
58915
|
+
if (!(reader instanceof $Reader))
|
|
58916
|
+
reader = new $Reader(reader);
|
|
58917
|
+
return this.decode(reader, reader.uint32());
|
|
58918
|
+
};
|
|
58919
|
+
|
|
58920
|
+
/**
|
|
58921
|
+
* Verifies an ExportSBOMRequest message.
|
|
58922
|
+
* @function verify
|
|
58923
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58924
|
+
* @static
|
|
58925
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58926
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58927
|
+
*/
|
|
58928
|
+
ExportSBOMRequest.verify = function verify(message) {
|
|
58929
|
+
if (typeof message !== "object" || message === null)
|
|
58930
|
+
return "object expected";
|
|
58931
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
58932
|
+
if (!$util.isString(message.name))
|
|
58933
|
+
return "name: string expected";
|
|
58934
|
+
return null;
|
|
58935
|
+
};
|
|
58936
|
+
|
|
58937
|
+
/**
|
|
58938
|
+
* Creates an ExportSBOMRequest message from a plain object. Also converts values to their respective internal types.
|
|
58939
|
+
* @function fromObject
|
|
58940
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58941
|
+
* @static
|
|
58942
|
+
* @param {Object.<string,*>} object Plain object
|
|
58943
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMRequest} ExportSBOMRequest
|
|
58944
|
+
*/
|
|
58945
|
+
ExportSBOMRequest.fromObject = function fromObject(object) {
|
|
58946
|
+
if (object instanceof $root.google.devtools.containeranalysis.v1beta1.ExportSBOMRequest)
|
|
58947
|
+
return object;
|
|
58948
|
+
var message = new $root.google.devtools.containeranalysis.v1beta1.ExportSBOMRequest();
|
|
58949
|
+
if (object.name != null)
|
|
58950
|
+
message.name = String(object.name);
|
|
58951
|
+
return message;
|
|
58952
|
+
};
|
|
58953
|
+
|
|
58954
|
+
/**
|
|
58955
|
+
* Creates a plain object from an ExportSBOMRequest message. Also converts values to other types if specified.
|
|
58956
|
+
* @function toObject
|
|
58957
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58958
|
+
* @static
|
|
58959
|
+
* @param {google.devtools.containeranalysis.v1beta1.ExportSBOMRequest} message ExportSBOMRequest
|
|
58960
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58961
|
+
* @returns {Object.<string,*>} Plain object
|
|
58962
|
+
*/
|
|
58963
|
+
ExportSBOMRequest.toObject = function toObject(message, options) {
|
|
58964
|
+
if (!options)
|
|
58965
|
+
options = {};
|
|
58966
|
+
var object = {};
|
|
58967
|
+
if (options.defaults)
|
|
58968
|
+
object.name = "";
|
|
58969
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
58970
|
+
object.name = message.name;
|
|
58971
|
+
return object;
|
|
58972
|
+
};
|
|
58973
|
+
|
|
58974
|
+
/**
|
|
58975
|
+
* Converts this ExportSBOMRequest to JSON.
|
|
58976
|
+
* @function toJSON
|
|
58977
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58978
|
+
* @instance
|
|
58979
|
+
* @returns {Object.<string,*>} JSON object
|
|
58980
|
+
*/
|
|
58981
|
+
ExportSBOMRequest.prototype.toJSON = function toJSON() {
|
|
58982
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58983
|
+
};
|
|
58984
|
+
|
|
58985
|
+
/**
|
|
58986
|
+
* Gets the default type url for ExportSBOMRequest
|
|
58987
|
+
* @function getTypeUrl
|
|
58988
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58989
|
+
* @static
|
|
58990
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
58991
|
+
* @returns {string} The default type url
|
|
58992
|
+
*/
|
|
58993
|
+
ExportSBOMRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
58994
|
+
if (typeUrlPrefix === undefined) {
|
|
58995
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
58996
|
+
}
|
|
58997
|
+
return typeUrlPrefix + "/google.devtools.containeranalysis.v1beta1.ExportSBOMRequest";
|
|
58998
|
+
};
|
|
58999
|
+
|
|
59000
|
+
return ExportSBOMRequest;
|
|
59001
|
+
})();
|
|
59002
|
+
|
|
59003
|
+
v1beta1.ExportSBOMResponse = (function() {
|
|
59004
|
+
|
|
59005
|
+
/**
|
|
59006
|
+
* Properties of an ExportSBOMResponse.
|
|
59007
|
+
* @memberof google.devtools.containeranalysis.v1beta1
|
|
59008
|
+
* @interface IExportSBOMResponse
|
|
59009
|
+
* @property {string|null} [discoveryOccurrenceId] ExportSBOMResponse discoveryOccurrenceId
|
|
59010
|
+
*/
|
|
59011
|
+
|
|
59012
|
+
/**
|
|
59013
|
+
* Constructs a new ExportSBOMResponse.
|
|
59014
|
+
* @memberof google.devtools.containeranalysis.v1beta1
|
|
59015
|
+
* @classdesc Represents an ExportSBOMResponse.
|
|
59016
|
+
* @implements IExportSBOMResponse
|
|
59017
|
+
* @constructor
|
|
59018
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMResponse=} [properties] Properties to set
|
|
59019
|
+
*/
|
|
59020
|
+
function ExportSBOMResponse(properties) {
|
|
59021
|
+
if (properties)
|
|
59022
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59023
|
+
if (properties[keys[i]] != null)
|
|
59024
|
+
this[keys[i]] = properties[keys[i]];
|
|
59025
|
+
}
|
|
59026
|
+
|
|
59027
|
+
/**
|
|
59028
|
+
* ExportSBOMResponse discoveryOccurrenceId.
|
|
59029
|
+
* @member {string} discoveryOccurrenceId
|
|
59030
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59031
|
+
* @instance
|
|
59032
|
+
*/
|
|
59033
|
+
ExportSBOMResponse.prototype.discoveryOccurrenceId = "";
|
|
59034
|
+
|
|
59035
|
+
/**
|
|
59036
|
+
* Creates a new ExportSBOMResponse instance using the specified properties.
|
|
59037
|
+
* @function create
|
|
59038
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59039
|
+
* @static
|
|
59040
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMResponse=} [properties] Properties to set
|
|
59041
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMResponse} ExportSBOMResponse instance
|
|
59042
|
+
*/
|
|
59043
|
+
ExportSBOMResponse.create = function create(properties) {
|
|
59044
|
+
return new ExportSBOMResponse(properties);
|
|
59045
|
+
};
|
|
59046
|
+
|
|
59047
|
+
/**
|
|
59048
|
+
* Encodes the specified ExportSBOMResponse message. Does not implicitly {@link google.devtools.containeranalysis.v1beta1.ExportSBOMResponse.verify|verify} messages.
|
|
59049
|
+
* @function encode
|
|
59050
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59051
|
+
* @static
|
|
59052
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMResponse} message ExportSBOMResponse message or plain object to encode
|
|
59053
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59054
|
+
* @returns {$protobuf.Writer} Writer
|
|
59055
|
+
*/
|
|
59056
|
+
ExportSBOMResponse.encode = function encode(message, writer) {
|
|
59057
|
+
if (!writer)
|
|
59058
|
+
writer = $Writer.create();
|
|
59059
|
+
if (message.discoveryOccurrenceId != null && Object.hasOwnProperty.call(message, "discoveryOccurrenceId"))
|
|
59060
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.discoveryOccurrenceId);
|
|
59061
|
+
return writer;
|
|
59062
|
+
};
|
|
59063
|
+
|
|
59064
|
+
/**
|
|
59065
|
+
* Encodes the specified ExportSBOMResponse message, length delimited. Does not implicitly {@link google.devtools.containeranalysis.v1beta1.ExportSBOMResponse.verify|verify} messages.
|
|
59066
|
+
* @function encodeDelimited
|
|
59067
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59068
|
+
* @static
|
|
59069
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMResponse} message ExportSBOMResponse message or plain object to encode
|
|
59070
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59071
|
+
* @returns {$protobuf.Writer} Writer
|
|
59072
|
+
*/
|
|
59073
|
+
ExportSBOMResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59074
|
+
return this.encode(message, writer).ldelim();
|
|
59075
|
+
};
|
|
59076
|
+
|
|
59077
|
+
/**
|
|
59078
|
+
* Decodes an ExportSBOMResponse message from the specified reader or buffer.
|
|
59079
|
+
* @function decode
|
|
59080
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59081
|
+
* @static
|
|
59082
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59083
|
+
* @param {number} [length] Message length if known beforehand
|
|
59084
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMResponse} ExportSBOMResponse
|
|
59085
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59086
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59087
|
+
*/
|
|
59088
|
+
ExportSBOMResponse.decode = function decode(reader, length) {
|
|
59089
|
+
if (!(reader instanceof $Reader))
|
|
59090
|
+
reader = $Reader.create(reader);
|
|
59091
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.containeranalysis.v1beta1.ExportSBOMResponse();
|
|
59092
|
+
while (reader.pos < end) {
|
|
59093
|
+
var tag = reader.uint32();
|
|
59094
|
+
switch (tag >>> 3) {
|
|
59095
|
+
case 1: {
|
|
59096
|
+
message.discoveryOccurrenceId = reader.string();
|
|
59097
|
+
break;
|
|
59098
|
+
}
|
|
59099
|
+
default:
|
|
59100
|
+
reader.skipType(tag & 7);
|
|
59101
|
+
break;
|
|
59102
|
+
}
|
|
59103
|
+
}
|
|
59104
|
+
return message;
|
|
59105
|
+
};
|
|
59106
|
+
|
|
59107
|
+
/**
|
|
59108
|
+
* Decodes an ExportSBOMResponse message from the specified reader or buffer, length delimited.
|
|
59109
|
+
* @function decodeDelimited
|
|
59110
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59111
|
+
* @static
|
|
59112
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59113
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMResponse} ExportSBOMResponse
|
|
59114
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59115
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59116
|
+
*/
|
|
59117
|
+
ExportSBOMResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
59118
|
+
if (!(reader instanceof $Reader))
|
|
59119
|
+
reader = new $Reader(reader);
|
|
59120
|
+
return this.decode(reader, reader.uint32());
|
|
59121
|
+
};
|
|
59122
|
+
|
|
59123
|
+
/**
|
|
59124
|
+
* Verifies an ExportSBOMResponse message.
|
|
59125
|
+
* @function verify
|
|
59126
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59127
|
+
* @static
|
|
59128
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59129
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59130
|
+
*/
|
|
59131
|
+
ExportSBOMResponse.verify = function verify(message) {
|
|
59132
|
+
if (typeof message !== "object" || message === null)
|
|
59133
|
+
return "object expected";
|
|
59134
|
+
if (message.discoveryOccurrenceId != null && message.hasOwnProperty("discoveryOccurrenceId"))
|
|
59135
|
+
if (!$util.isString(message.discoveryOccurrenceId))
|
|
59136
|
+
return "discoveryOccurrenceId: string expected";
|
|
59137
|
+
return null;
|
|
59138
|
+
};
|
|
59139
|
+
|
|
59140
|
+
/**
|
|
59141
|
+
* Creates an ExportSBOMResponse message from a plain object. Also converts values to their respective internal types.
|
|
59142
|
+
* @function fromObject
|
|
59143
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59144
|
+
* @static
|
|
59145
|
+
* @param {Object.<string,*>} object Plain object
|
|
59146
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMResponse} ExportSBOMResponse
|
|
59147
|
+
*/
|
|
59148
|
+
ExportSBOMResponse.fromObject = function fromObject(object) {
|
|
59149
|
+
if (object instanceof $root.google.devtools.containeranalysis.v1beta1.ExportSBOMResponse)
|
|
59150
|
+
return object;
|
|
59151
|
+
var message = new $root.google.devtools.containeranalysis.v1beta1.ExportSBOMResponse();
|
|
59152
|
+
if (object.discoveryOccurrenceId != null)
|
|
59153
|
+
message.discoveryOccurrenceId = String(object.discoveryOccurrenceId);
|
|
59154
|
+
return message;
|
|
59155
|
+
};
|
|
59156
|
+
|
|
59157
|
+
/**
|
|
59158
|
+
* Creates a plain object from an ExportSBOMResponse message. Also converts values to other types if specified.
|
|
59159
|
+
* @function toObject
|
|
59160
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59161
|
+
* @static
|
|
59162
|
+
* @param {google.devtools.containeranalysis.v1beta1.ExportSBOMResponse} message ExportSBOMResponse
|
|
59163
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59164
|
+
* @returns {Object.<string,*>} Plain object
|
|
59165
|
+
*/
|
|
59166
|
+
ExportSBOMResponse.toObject = function toObject(message, options) {
|
|
59167
|
+
if (!options)
|
|
59168
|
+
options = {};
|
|
59169
|
+
var object = {};
|
|
59170
|
+
if (options.defaults)
|
|
59171
|
+
object.discoveryOccurrenceId = "";
|
|
59172
|
+
if (message.discoveryOccurrenceId != null && message.hasOwnProperty("discoveryOccurrenceId"))
|
|
59173
|
+
object.discoveryOccurrenceId = message.discoveryOccurrenceId;
|
|
59174
|
+
return object;
|
|
59175
|
+
};
|
|
59176
|
+
|
|
59177
|
+
/**
|
|
59178
|
+
* Converts this ExportSBOMResponse to JSON.
|
|
59179
|
+
* @function toJSON
|
|
59180
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59181
|
+
* @instance
|
|
59182
|
+
* @returns {Object.<string,*>} JSON object
|
|
59183
|
+
*/
|
|
59184
|
+
ExportSBOMResponse.prototype.toJSON = function toJSON() {
|
|
59185
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59186
|
+
};
|
|
59187
|
+
|
|
59188
|
+
/**
|
|
59189
|
+
* Gets the default type url for ExportSBOMResponse
|
|
59190
|
+
* @function getTypeUrl
|
|
59191
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59192
|
+
* @static
|
|
59193
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
59194
|
+
* @returns {string} The default type url
|
|
59195
|
+
*/
|
|
59196
|
+
ExportSBOMResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
59197
|
+
if (typeUrlPrefix === undefined) {
|
|
59198
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
59199
|
+
}
|
|
59200
|
+
return typeUrlPrefix + "/google.devtools.containeranalysis.v1beta1.ExportSBOMResponse";
|
|
59201
|
+
};
|
|
59202
|
+
|
|
59203
|
+
return ExportSBOMResponse;
|
|
59204
|
+
})();
|
|
59205
|
+
|
|
58767
59206
|
return v1beta1;
|
|
58768
59207
|
})();
|
|
58769
59208
|
|