@@ -32,6 +32,7 @@ goog.exportSymbol('proto.gooseai.ClassifierParameters', null, global);
3232goog . exportSymbol ( 'proto.gooseai.ConditionerParameters' , null , global ) ;
3333goog . exportSymbol ( 'proto.gooseai.CutoutParameters' , null , global ) ;
3434goog . exportSymbol ( 'proto.gooseai.DiffusionSampler' , null , global ) ;
35+ goog . exportSymbol ( 'proto.gooseai.EstimateCostResponse' , null , global ) ;
3536goog . exportSymbol ( 'proto.gooseai.FinishReason' , null , global ) ;
3637goog . exportSymbol ( 'proto.gooseai.GuidanceInstanceParameters' , null , global ) ;
3738goog . exportSymbol ( 'proto.gooseai.GuidanceParameters' , null , global ) ;
@@ -392,6 +393,27 @@ if (goog.DEBUG && !COMPILED) {
392393 */
393394 proto . gooseai . ImageParameters . displayName = 'proto.gooseai.ImageParameters' ;
394395}
396+ /**
397+ * Generated by JsPbCodeGenerator.
398+ * @param {Array= } opt_data Optional initial data array, typically from a
399+ * server response, or constructed directly in Javascript. The array is used
400+ * in place and becomes part of the constructed object. It is not cloned.
401+ * If no data is provided, the constructed object will be empty, but still
402+ * valid.
403+ * @extends {jspb.Message }
404+ * @constructor
405+ */
406+ proto . gooseai . EstimateCostResponse = function ( opt_data ) {
407+ jspb . Message . initialize ( this , opt_data , 0 , - 1 , null , null ) ;
408+ } ;
409+ goog . inherits ( proto . gooseai . EstimateCostResponse , jspb . Message ) ;
410+ if ( goog . DEBUG && ! COMPILED ) {
411+ /**
412+ * @public
413+ * @override
414+ */
415+ proto . gooseai . EstimateCostResponse . displayName = 'proto.gooseai.EstimateCostResponse' ;
416+ }
395417/**
396418 * Generated by JsPbCodeGenerator.
397419 * @param {Array= } opt_data Optional initial data array, typically from a
@@ -5240,6 +5262,136 @@ proto.gooseai.ImageParameters.prototype.clearParametersList = function() {
52405262
52415263
52425264
5265+ if ( jspb . Message . GENERATE_TO_OBJECT ) {
5266+ /**
5267+ * Creates an object representation of this proto.
5268+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5269+ * Optional fields that are not set will be set to undefined.
5270+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5271+ * For the list of reserved names please see:
5272+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5273+ * @param {boolean= } opt_includeInstance Deprecated. whether to include the
5274+ * JSPB instance for transitional soy proto support:
5275+ * http://goto/soy-param-migration
5276+ * @return {!Object }
5277+ */
5278+ proto . gooseai . EstimateCostResponse . prototype . toObject = function ( opt_includeInstance ) {
5279+ return proto . gooseai . EstimateCostResponse . toObject ( opt_includeInstance , this ) ;
5280+ } ;
5281+
5282+
5283+ /**
5284+ * Static version of the {@see toObject} method.
5285+ * @param {boolean|undefined } includeInstance Deprecated. Whether to include
5286+ * the JSPB instance for transitional soy proto support:
5287+ * http://goto/soy-param-migration
5288+ * @param {!proto.gooseai.EstimateCostResponse } msg The msg instance to transform.
5289+ * @return {!Object }
5290+ * @suppress {unusedLocalVariables} f is only used for nested messages
5291+ */
5292+ proto . gooseai . EstimateCostResponse . toObject = function ( includeInstance , msg ) {
5293+ var f , obj = {
5294+ totalCreditCost : jspb . Message . getFloatingPointFieldWithDefault ( msg , 1 , 0.0 )
5295+ } ;
5296+
5297+ if ( includeInstance ) {
5298+ obj . $jspbMessageInstance = msg ;
5299+ }
5300+ return obj ;
5301+ } ;
5302+ }
5303+
5304+
5305+ /**
5306+ * Deserializes binary data (in protobuf wire format).
5307+ * @param {jspb.ByteSource } bytes The bytes to deserialize.
5308+ * @return {!proto.gooseai.EstimateCostResponse }
5309+ */
5310+ proto . gooseai . EstimateCostResponse . deserializeBinary = function ( bytes ) {
5311+ var reader = new jspb . BinaryReader ( bytes ) ;
5312+ var msg = new proto . gooseai . EstimateCostResponse ;
5313+ return proto . gooseai . EstimateCostResponse . deserializeBinaryFromReader ( msg , reader ) ;
5314+ } ;
5315+
5316+
5317+ /**
5318+ * Deserializes binary data (in protobuf wire format) from the
5319+ * given reader into the given message object.
5320+ * @param {!proto.gooseai.EstimateCostResponse } msg The message object to deserialize into.
5321+ * @param {!jspb.BinaryReader } reader The BinaryReader to use.
5322+ * @return {!proto.gooseai.EstimateCostResponse }
5323+ */
5324+ proto . gooseai . EstimateCostResponse . deserializeBinaryFromReader = function ( msg , reader ) {
5325+ while ( reader . nextField ( ) ) {
5326+ if ( reader . isEndGroup ( ) ) {
5327+ break ;
5328+ }
5329+ var field = reader . getFieldNumber ( ) ;
5330+ switch ( field ) {
5331+ case 1 :
5332+ var value = /** @type {number } */ ( reader . readDouble ( ) ) ;
5333+ msg . setTotalCreditCost ( value ) ;
5334+ break ;
5335+ default :
5336+ reader . skipField ( ) ;
5337+ break ;
5338+ }
5339+ }
5340+ return msg ;
5341+ } ;
5342+
5343+
5344+ /**
5345+ * Serializes the message to binary data (in protobuf wire format).
5346+ * @return {!Uint8Array }
5347+ */
5348+ proto . gooseai . EstimateCostResponse . prototype . serializeBinary = function ( ) {
5349+ var writer = new jspb . BinaryWriter ( ) ;
5350+ proto . gooseai . EstimateCostResponse . serializeBinaryToWriter ( this , writer ) ;
5351+ return writer . getResultBuffer ( ) ;
5352+ } ;
5353+
5354+
5355+ /**
5356+ * Serializes the given message to binary data (in protobuf wire
5357+ * format), writing to the given BinaryWriter.
5358+ * @param {!proto.gooseai.EstimateCostResponse } message
5359+ * @param {!jspb.BinaryWriter } writer
5360+ * @suppress {unusedLocalVariables} f is only used for nested messages
5361+ */
5362+ proto . gooseai . EstimateCostResponse . serializeBinaryToWriter = function ( message , writer ) {
5363+ var f = undefined ;
5364+ f = message . getTotalCreditCost ( ) ;
5365+ if ( f !== 0.0 ) {
5366+ writer . writeDouble (
5367+ 1 ,
5368+ f
5369+ ) ;
5370+ }
5371+ } ;
5372+
5373+
5374+ /**
5375+ * optional double total_credit_cost = 1;
5376+ * @return {number }
5377+ */
5378+ proto . gooseai . EstimateCostResponse . prototype . getTotalCreditCost = function ( ) {
5379+ return /** @type {number } */ ( jspb . Message . getFloatingPointFieldWithDefault ( this , 1 , 0.0 ) ) ;
5380+ } ;
5381+
5382+
5383+ /**
5384+ * @param {number } value
5385+ * @return {!proto.gooseai.EstimateCostResponse } returns this
5386+ */
5387+ proto . gooseai . EstimateCostResponse . prototype . setTotalCreditCost = function ( value ) {
5388+ return jspb . Message . setProto3FloatField ( this , 1 , value ) ;
5389+ } ;
5390+
5391+
5392+
5393+
5394+
52435395if ( jspb . Message . GENERATE_TO_OBJECT ) {
52445396/**
52455397 * Creates an object representation of this proto.
0 commit comments