|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216 |
- // <auto-generated>
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: tensorflow/core/protobuf/struct.proto
- // </auto-generated>
- #pragma warning disable 1591, 0612, 3021, 8981
- #region Designer generated code
-
- using pb = global::Google.Protobuf;
- using pbc = global::Google.Protobuf.Collections;
- using pbr = global::Google.Protobuf.Reflection;
- using scg = global::System.Collections.Generic;
- namespace Tensorflow {
-
- /// <summary>Holder for reflection information generated from tensorflow/core/protobuf/struct.proto</summary>
- public static partial class StructReflection {
-
- #region Descriptor
- /// <summary>File descriptor for tensorflow/core/protobuf/struct.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static StructReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "CiV0ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvc3RydWN0LnByb3RvEgp0ZW5z",
- "b3JmbG93GiZ0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL3RlbnNvci5wcm90",
- "bxosdGVuc29yZmxvdy9jb3JlL2ZyYW1ld29yay90ZW5zb3Jfc2hhcGUucHJv",
- "dG8aJXRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvdHlwZXMucHJvdG8ikAUK",
- "D1N0cnVjdHVyZWRWYWx1ZRIrCgpub25lX3ZhbHVlGAEgASgLMhUudGVuc29y",
- "Zmxvdy5Ob25lVmFsdWVIABIXCg1mbG9hdDY0X3ZhbHVlGAsgASgBSAASFQoL",
- "aW50NjRfdmFsdWUYDCABKBJIABIWCgxzdHJpbmdfdmFsdWUYDSABKAlIABIU",
- "Cgpib29sX3ZhbHVlGA4gASgISAASOgoSdGVuc29yX3NoYXBlX3ZhbHVlGB8g",
- "ASgLMhwudGVuc29yZmxvdy5UZW5zb3JTaGFwZVByb3RvSAASMgoSdGVuc29y",
- "X2R0eXBlX3ZhbHVlGCAgASgOMhQudGVuc29yZmxvdy5EYXRhVHlwZUgAEjgK",
- "EXRlbnNvcl9zcGVjX3ZhbHVlGCEgASgLMhsudGVuc29yZmxvdy5UZW5zb3JT",
- "cGVjUHJvdG9IABI0Cg90eXBlX3NwZWNfdmFsdWUYIiABKAsyGS50ZW5zb3Jm",
- "bG93LlR5cGVTcGVjUHJvdG9IABJHChlib3VuZGVkX3RlbnNvcl9zcGVjX3Zh",
- "bHVlGCMgASgLMiIudGVuc29yZmxvdy5Cb3VuZGVkVGVuc29yU3BlY1Byb3Rv",
- "SAASKwoKbGlzdF92YWx1ZRgzIAEoCzIVLnRlbnNvcmZsb3cuTGlzdFZhbHVl",
- "SAASLQoLdHVwbGVfdmFsdWUYNCABKAsyFi50ZW5zb3JmbG93LlR1cGxlVmFs",
- "dWVIABIrCgpkaWN0X3ZhbHVlGDUgASgLMhUudGVuc29yZmxvdy5EaWN0VmFs",
- "dWVIABI4ChFuYW1lZF90dXBsZV92YWx1ZRg2IAEoCzIbLnRlbnNvcmZsb3cu",
- "TmFtZWRUdXBsZVZhbHVlSABCBgoEa2luZCILCglOb25lVmFsdWUiOAoJTGlz",
- "dFZhbHVlEisKBnZhbHVlcxgBIAMoCzIbLnRlbnNvcmZsb3cuU3RydWN0dXJl",
- "ZFZhbHVlIjkKClR1cGxlVmFsdWUSKwoGdmFsdWVzGAEgAygLMhsudGVuc29y",
- "Zmxvdy5TdHJ1Y3R1cmVkVmFsdWUiigEKCURpY3RWYWx1ZRIxCgZmaWVsZHMY",
- "ASADKAsyIS50ZW5zb3JmbG93LkRpY3RWYWx1ZS5GaWVsZHNFbnRyeRpKCgtG",
- "aWVsZHNFbnRyeRILCgNrZXkYASABKAkSKgoFdmFsdWUYAiABKAsyGy50ZW5z",
- "b3JmbG93LlN0cnVjdHVyZWRWYWx1ZToCOAEiRAoJUGFpclZhbHVlEgsKA2tl",
- "eRgBIAEoCRIqCgV2YWx1ZRgCIAEoCzIbLnRlbnNvcmZsb3cuU3RydWN0dXJl",
- "ZFZhbHVlIkYKD05hbWVkVHVwbGVWYWx1ZRIMCgRuYW1lGAEgASgJEiUKBnZh",
- "bHVlcxgCIAMoCzIVLnRlbnNvcmZsb3cuUGFpclZhbHVlInEKD1RlbnNvclNw",
- "ZWNQcm90bxIMCgRuYW1lGAEgASgJEisKBXNoYXBlGAIgASgLMhwudGVuc29y",
- "Zmxvdy5UZW5zb3JTaGFwZVByb3RvEiMKBWR0eXBlGAMgASgOMhQudGVuc29y",
- "Zmxvdy5EYXRhVHlwZSLMAQoWQm91bmRlZFRlbnNvclNwZWNQcm90bxIMCgRu",
- "YW1lGAEgASgJEisKBXNoYXBlGAIgASgLMhwudGVuc29yZmxvdy5UZW5zb3JT",
- "aGFwZVByb3RvEiMKBWR0eXBlGAMgASgOMhQudGVuc29yZmxvdy5EYXRhVHlw",
- "ZRIoCgdtaW5pbXVtGAQgASgLMhcudGVuc29yZmxvdy5UZW5zb3JQcm90bxIo",
- "CgdtYXhpbXVtGAUgASgLMhcudGVuc29yZmxvdy5UZW5zb3JQcm90byL4AwoN",
- "VHlwZVNwZWNQcm90bxJACg90eXBlX3NwZWNfY2xhc3MYASABKA4yJy50ZW5z",
- "b3JmbG93LlR5cGVTcGVjUHJvdG8uVHlwZVNwZWNDbGFzcxIvCgp0eXBlX3N0",
- "YXRlGAIgASgLMhsudGVuc29yZmxvdy5TdHJ1Y3R1cmVkVmFsdWUSHAoUdHlw",
- "ZV9zcGVjX2NsYXNzX25hbWUYAyABKAkSGwoTbnVtX2ZsYXRfY29tcG9uZW50",
- "cxgEIAEoBSK4AgoNVHlwZVNwZWNDbGFzcxILCgdVTktOT1dOEAASFgoSU1BB",
- "UlNFX1RFTlNPUl9TUEVDEAESFwoTSU5ERVhFRF9TTElDRVNfU1BFQxACEhYK",
- "ElJBR0dFRF9URU5TT1JfU1BFQxADEhUKEVRFTlNPUl9BUlJBWV9TUEVDEAQS",
- "FQoRREFUQV9EQVRBU0VUX1NQRUMQBRIWChJEQVRBX0lURVJBVE9SX1NQRUMQ",
- "BhIRCg1PUFRJT05BTF9TUEVDEAcSFAoQUEVSX1JFUExJQ0FfU1BFQxAIEhEK",
- "DVZBUklBQkxFX1NQRUMQCRIWChJST1dfUEFSVElUSU9OX1NQRUMQChIYChRS",
- "RUdJU1RFUkVEX1RZUEVfU1BFQxAMEhcKE0VYVEVOU0lPTl9UWVBFX1NQRUMQ",
- "DSIECAsQC0JXWlVnaXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29yZmxvdy90",
- "ZW5zb3JmbG93L2dvL2NvcmUvcHJvdG9idWYvZm9yX2NvcmVfcHJvdG9zX2dv",
- "X3Byb3RvYgZwcm90bzM="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Tensorflow.TensorReflection.Descriptor, global::Tensorflow.TensorShapeReflection.Descriptor, global::Tensorflow.TypesReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.StructuredValue), global::Tensorflow.StructuredValue.Parser, new[]{ "NoneValue", "Float64Value", "Int64Value", "StringValue", "BoolValue", "TensorShapeValue", "TensorDtypeValue", "TensorSpecValue", "TypeSpecValue", "BoundedTensorSpecValue", "ListValue", "TupleValue", "DictValue", "NamedTupleValue" }, new[]{ "Kind" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.NoneValue), global::Tensorflow.NoneValue.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.ListValue), global::Tensorflow.ListValue.Parser, new[]{ "Values" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TupleValue), global::Tensorflow.TupleValue.Parser, new[]{ "Values" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.DictValue), global::Tensorflow.DictValue.Parser, new[]{ "Fields" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.PairValue), global::Tensorflow.PairValue.Parser, new[]{ "Key", "Value" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.NamedTupleValue), global::Tensorflow.NamedTupleValue.Parser, new[]{ "Name", "Values" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TensorSpecProto), global::Tensorflow.TensorSpecProto.Parser, new[]{ "Name", "Shape", "Dtype" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.BoundedTensorSpecProto), global::Tensorflow.BoundedTensorSpecProto.Parser, new[]{ "Name", "Shape", "Dtype", "Minimum", "Maximum" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TypeSpecProto), global::Tensorflow.TypeSpecProto.Parser, new[]{ "TypeSpecClass", "TypeState", "TypeSpecClassName", "NumFlatComponents" }, null, new[]{ typeof(global::Tensorflow.TypeSpecProto.Types.TypeSpecClass) }, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- /// <summary>
- /// `StructuredValue` represents a dynamically typed value representing various
- /// data structures that are inspired by Python data structures typically used in
- /// TensorFlow functions as inputs and outputs.
- ///
- /// For example when saving a Layer there may be a `training` argument. If the
- /// user passes a boolean True/False, that switches between two concrete
- /// TensorFlow functions. In order to switch between them in the same way after
- /// loading the SavedModel, we need to represent "True" and "False".
- ///
- /// A more advanced example might be a function which takes a list of
- /// dictionaries mapping from strings to Tensors. In order to map from
- /// user-specified arguments `[{"a": tf.constant(1.)}, {"q": tf.constant(3.)}]`
- /// after load to the right saved TensorFlow function, we need to represent the
- /// nested structure and the strings, recording that we have a trace for anything
- /// matching `[{"a": tf.TensorSpec(None, tf.float32)}, {"q": tf.TensorSpec([],
- /// tf.float64)}]` as an example.
- ///
- /// Likewise functions may return nested structures of Tensors, for example
- /// returning a dictionary mapping from strings to Tensors. In order for the
- /// loaded function to return the same structure we need to serialize it.
- ///
- /// This is an ergonomic aid for working with loaded SavedModels, not a promise
- /// to serialize all possible function signatures. For example we do not expect
- /// to pickle generic Python objects, and ideally we'd stay language-agnostic.
- /// </summary>
- public sealed partial class StructuredValue : pb::IMessage<StructuredValue>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<StructuredValue> _parser = new pb::MessageParser<StructuredValue>(() => new StructuredValue());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<StructuredValue> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public StructuredValue() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public StructuredValue(StructuredValue other) : this() {
- switch (other.KindCase) {
- case KindOneofCase.NoneValue:
- NoneValue = other.NoneValue.Clone();
- break;
- case KindOneofCase.Float64Value:
- Float64Value = other.Float64Value;
- break;
- case KindOneofCase.Int64Value:
- Int64Value = other.Int64Value;
- break;
- case KindOneofCase.StringValue:
- StringValue = other.StringValue;
- break;
- case KindOneofCase.BoolValue:
- BoolValue = other.BoolValue;
- break;
- case KindOneofCase.TensorShapeValue:
- TensorShapeValue = other.TensorShapeValue.Clone();
- break;
- case KindOneofCase.TensorDtypeValue:
- TensorDtypeValue = other.TensorDtypeValue;
- break;
- case KindOneofCase.TensorSpecValue:
- TensorSpecValue = other.TensorSpecValue.Clone();
- break;
- case KindOneofCase.TypeSpecValue:
- TypeSpecValue = other.TypeSpecValue.Clone();
- break;
- case KindOneofCase.BoundedTensorSpecValue:
- BoundedTensorSpecValue = other.BoundedTensorSpecValue.Clone();
- break;
- case KindOneofCase.ListValue:
- ListValue = other.ListValue.Clone();
- break;
- case KindOneofCase.TupleValue:
- TupleValue = other.TupleValue.Clone();
- break;
- case KindOneofCase.DictValue:
- DictValue = other.DictValue.Clone();
- break;
- case KindOneofCase.NamedTupleValue:
- NamedTupleValue = other.NamedTupleValue.Clone();
- break;
- }
-
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public StructuredValue Clone() {
- return new StructuredValue(this);
- }
-
- /// <summary>Field number for the "none_value" field.</summary>
- public const int NoneValueFieldNumber = 1;
- /// <summary>
- /// Represents None.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.NoneValue NoneValue {
- get { return kindCase_ == KindOneofCase.NoneValue ? (global::Tensorflow.NoneValue) kind_ : null; }
- set {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.NoneValue;
- }
- }
-
- /// <summary>Field number for the "float64_value" field.</summary>
- public const int Float64ValueFieldNumber = 11;
- /// <summary>
- /// Represents a double-precision floating-point value (a Python `float`).
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public double Float64Value {
- get { return kindCase_ == KindOneofCase.Float64Value ? (double) kind_ : 0D; }
- set {
- kind_ = value;
- kindCase_ = KindOneofCase.Float64Value;
- }
- }
-
- /// <summary>Field number for the "int64_value" field.</summary>
- public const int Int64ValueFieldNumber = 12;
- /// <summary>
- /// Represents a signed integer value, limited to 64 bits.
- /// Larger values from Python's arbitrary-precision integers are unsupported.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long Int64Value {
- get { return kindCase_ == KindOneofCase.Int64Value ? (long) kind_ : 0L; }
- set {
- kind_ = value;
- kindCase_ = KindOneofCase.Int64Value;
- }
- }
-
- /// <summary>Field number for the "string_value" field.</summary>
- public const int StringValueFieldNumber = 13;
- /// <summary>
- /// Represents a string of Unicode characters stored in a Python `str`.
- /// In Python 3, this is exactly what type `str` is.
- /// In Python 2, this is the UTF-8 encoding of the characters.
- /// For strings with ASCII characters only (as often used in TensorFlow code)
- /// there is effectively no difference between the language versions.
- /// The obsolescent `unicode` type of Python 2 is not supported here.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string StringValue {
- get { return kindCase_ == KindOneofCase.StringValue ? (string) kind_ : ""; }
- set {
- kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- kindCase_ = KindOneofCase.StringValue;
- }
- }
-
- /// <summary>Field number for the "bool_value" field.</summary>
- public const int BoolValueFieldNumber = 14;
- /// <summary>
- /// Represents a boolean value.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool BoolValue {
- get { return kindCase_ == KindOneofCase.BoolValue ? (bool) kind_ : false; }
- set {
- kind_ = value;
- kindCase_ = KindOneofCase.BoolValue;
- }
- }
-
- /// <summary>Field number for the "tensor_shape_value" field.</summary>
- public const int TensorShapeValueFieldNumber = 31;
- /// <summary>
- /// Represents a TensorShape.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.TensorShapeProto TensorShapeValue {
- get { return kindCase_ == KindOneofCase.TensorShapeValue ? (global::Tensorflow.TensorShapeProto) kind_ : null; }
- set {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.TensorShapeValue;
- }
- }
-
- /// <summary>Field number for the "tensor_dtype_value" field.</summary>
- public const int TensorDtypeValueFieldNumber = 32;
- /// <summary>
- /// Represents an enum value for dtype.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.DataType TensorDtypeValue {
- get { return kindCase_ == KindOneofCase.TensorDtypeValue ? (global::Tensorflow.DataType) kind_ : global::Tensorflow.DataType.DtInvalid; }
- set {
- kind_ = value;
- kindCase_ = KindOneofCase.TensorDtypeValue;
- }
- }
-
- /// <summary>Field number for the "tensor_spec_value" field.</summary>
- public const int TensorSpecValueFieldNumber = 33;
- /// <summary>
- /// Represents a value for tf.TensorSpec.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.TensorSpecProto TensorSpecValue {
- get { return kindCase_ == KindOneofCase.TensorSpecValue ? (global::Tensorflow.TensorSpecProto) kind_ : null; }
- set {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.TensorSpecValue;
- }
- }
-
- /// <summary>Field number for the "type_spec_value" field.</summary>
- public const int TypeSpecValueFieldNumber = 34;
- /// <summary>
- /// Represents a value for tf.TypeSpec.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.TypeSpecProto TypeSpecValue {
- get { return kindCase_ == KindOneofCase.TypeSpecValue ? (global::Tensorflow.TypeSpecProto) kind_ : null; }
- set {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.TypeSpecValue;
- }
- }
-
- /// <summary>Field number for the "bounded_tensor_spec_value" field.</summary>
- public const int BoundedTensorSpecValueFieldNumber = 35;
- /// <summary>
- /// Represents a value for tf.BoundedTensorSpec.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.BoundedTensorSpecProto BoundedTensorSpecValue {
- get { return kindCase_ == KindOneofCase.BoundedTensorSpecValue ? (global::Tensorflow.BoundedTensorSpecProto) kind_ : null; }
- set {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.BoundedTensorSpecValue;
- }
- }
-
- /// <summary>Field number for the "list_value" field.</summary>
- public const int ListValueFieldNumber = 51;
- /// <summary>
- /// Represents a list of `Value`.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.ListValue ListValue {
- get { return kindCase_ == KindOneofCase.ListValue ? (global::Tensorflow.ListValue) kind_ : null; }
- set {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.ListValue;
- }
- }
-
- /// <summary>Field number for the "tuple_value" field.</summary>
- public const int TupleValueFieldNumber = 52;
- /// <summary>
- /// Represents a tuple of `Value`.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.TupleValue TupleValue {
- get { return kindCase_ == KindOneofCase.TupleValue ? (global::Tensorflow.TupleValue) kind_ : null; }
- set {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.TupleValue;
- }
- }
-
- /// <summary>Field number for the "dict_value" field.</summary>
- public const int DictValueFieldNumber = 53;
- /// <summary>
- /// Represents a dict `Value`.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.DictValue DictValue {
- get { return kindCase_ == KindOneofCase.DictValue ? (global::Tensorflow.DictValue) kind_ : null; }
- set {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.DictValue;
- }
- }
-
- /// <summary>Field number for the "named_tuple_value" field.</summary>
- public const int NamedTupleValueFieldNumber = 54;
- /// <summary>
- /// Represents Python's namedtuple.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.NamedTupleValue NamedTupleValue {
- get { return kindCase_ == KindOneofCase.NamedTupleValue ? (global::Tensorflow.NamedTupleValue) kind_ : null; }
- set {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.NamedTupleValue;
- }
- }
-
- private object kind_;
- /// <summary>Enum of possible cases for the "kind" oneof.</summary>
- public enum KindOneofCase {
- None = 0,
- NoneValue = 1,
- Float64Value = 11,
- Int64Value = 12,
- StringValue = 13,
- BoolValue = 14,
- TensorShapeValue = 31,
- TensorDtypeValue = 32,
- TensorSpecValue = 33,
- TypeSpecValue = 34,
- BoundedTensorSpecValue = 35,
- ListValue = 51,
- TupleValue = 52,
- DictValue = 53,
- NamedTupleValue = 54,
- }
- private KindOneofCase kindCase_ = KindOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public KindOneofCase KindCase {
- get { return kindCase_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearKind() {
- kindCase_ = KindOneofCase.None;
- kind_ = null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as StructuredValue);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(StructuredValue other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(NoneValue, other.NoneValue)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Float64Value, other.Float64Value)) return false;
- if (Int64Value != other.Int64Value) return false;
- if (StringValue != other.StringValue) return false;
- if (BoolValue != other.BoolValue) return false;
- if (!object.Equals(TensorShapeValue, other.TensorShapeValue)) return false;
- if (TensorDtypeValue != other.TensorDtypeValue) return false;
- if (!object.Equals(TensorSpecValue, other.TensorSpecValue)) return false;
- if (!object.Equals(TypeSpecValue, other.TypeSpecValue)) return false;
- if (!object.Equals(BoundedTensorSpecValue, other.BoundedTensorSpecValue)) return false;
- if (!object.Equals(ListValue, other.ListValue)) return false;
- if (!object.Equals(TupleValue, other.TupleValue)) return false;
- if (!object.Equals(DictValue, other.DictValue)) return false;
- if (!object.Equals(NamedTupleValue, other.NamedTupleValue)) return false;
- if (KindCase != other.KindCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (kindCase_ == KindOneofCase.NoneValue) hash ^= NoneValue.GetHashCode();
- if (kindCase_ == KindOneofCase.Float64Value) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Float64Value);
- if (kindCase_ == KindOneofCase.Int64Value) hash ^= Int64Value.GetHashCode();
- if (kindCase_ == KindOneofCase.StringValue) hash ^= StringValue.GetHashCode();
- if (kindCase_ == KindOneofCase.BoolValue) hash ^= BoolValue.GetHashCode();
- if (kindCase_ == KindOneofCase.TensorShapeValue) hash ^= TensorShapeValue.GetHashCode();
- if (kindCase_ == KindOneofCase.TensorDtypeValue) hash ^= TensorDtypeValue.GetHashCode();
- if (kindCase_ == KindOneofCase.TensorSpecValue) hash ^= TensorSpecValue.GetHashCode();
- if (kindCase_ == KindOneofCase.TypeSpecValue) hash ^= TypeSpecValue.GetHashCode();
- if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) hash ^= BoundedTensorSpecValue.GetHashCode();
- if (kindCase_ == KindOneofCase.ListValue) hash ^= ListValue.GetHashCode();
- if (kindCase_ == KindOneofCase.TupleValue) hash ^= TupleValue.GetHashCode();
- if (kindCase_ == KindOneofCase.DictValue) hash ^= DictValue.GetHashCode();
- if (kindCase_ == KindOneofCase.NamedTupleValue) hash ^= NamedTupleValue.GetHashCode();
- hash ^= (int) kindCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (kindCase_ == KindOneofCase.NoneValue) {
- output.WriteRawTag(10);
- output.WriteMessage(NoneValue);
- }
- if (kindCase_ == KindOneofCase.Float64Value) {
- output.WriteRawTag(89);
- output.WriteDouble(Float64Value);
- }
- if (kindCase_ == KindOneofCase.Int64Value) {
- output.WriteRawTag(96);
- output.WriteSInt64(Int64Value);
- }
- if (kindCase_ == KindOneofCase.StringValue) {
- output.WriteRawTag(106);
- output.WriteString(StringValue);
- }
- if (kindCase_ == KindOneofCase.BoolValue) {
- output.WriteRawTag(112);
- output.WriteBool(BoolValue);
- }
- if (kindCase_ == KindOneofCase.TensorShapeValue) {
- output.WriteRawTag(250, 1);
- output.WriteMessage(TensorShapeValue);
- }
- if (kindCase_ == KindOneofCase.TensorDtypeValue) {
- output.WriteRawTag(128, 2);
- output.WriteEnum((int) TensorDtypeValue);
- }
- if (kindCase_ == KindOneofCase.TensorSpecValue) {
- output.WriteRawTag(138, 2);
- output.WriteMessage(TensorSpecValue);
- }
- if (kindCase_ == KindOneofCase.TypeSpecValue) {
- output.WriteRawTag(146, 2);
- output.WriteMessage(TypeSpecValue);
- }
- if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) {
- output.WriteRawTag(154, 2);
- output.WriteMessage(BoundedTensorSpecValue);
- }
- if (kindCase_ == KindOneofCase.ListValue) {
- output.WriteRawTag(154, 3);
- output.WriteMessage(ListValue);
- }
- if (kindCase_ == KindOneofCase.TupleValue) {
- output.WriteRawTag(162, 3);
- output.WriteMessage(TupleValue);
- }
- if (kindCase_ == KindOneofCase.DictValue) {
- output.WriteRawTag(170, 3);
- output.WriteMessage(DictValue);
- }
- if (kindCase_ == KindOneofCase.NamedTupleValue) {
- output.WriteRawTag(178, 3);
- output.WriteMessage(NamedTupleValue);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (kindCase_ == KindOneofCase.NoneValue) {
- output.WriteRawTag(10);
- output.WriteMessage(NoneValue);
- }
- if (kindCase_ == KindOneofCase.Float64Value) {
- output.WriteRawTag(89);
- output.WriteDouble(Float64Value);
- }
- if (kindCase_ == KindOneofCase.Int64Value) {
- output.WriteRawTag(96);
- output.WriteSInt64(Int64Value);
- }
- if (kindCase_ == KindOneofCase.StringValue) {
- output.WriteRawTag(106);
- output.WriteString(StringValue);
- }
- if (kindCase_ == KindOneofCase.BoolValue) {
- output.WriteRawTag(112);
- output.WriteBool(BoolValue);
- }
- if (kindCase_ == KindOneofCase.TensorShapeValue) {
- output.WriteRawTag(250, 1);
- output.WriteMessage(TensorShapeValue);
- }
- if (kindCase_ == KindOneofCase.TensorDtypeValue) {
- output.WriteRawTag(128, 2);
- output.WriteEnum((int) TensorDtypeValue);
- }
- if (kindCase_ == KindOneofCase.TensorSpecValue) {
- output.WriteRawTag(138, 2);
- output.WriteMessage(TensorSpecValue);
- }
- if (kindCase_ == KindOneofCase.TypeSpecValue) {
- output.WriteRawTag(146, 2);
- output.WriteMessage(TypeSpecValue);
- }
- if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) {
- output.WriteRawTag(154, 2);
- output.WriteMessage(BoundedTensorSpecValue);
- }
- if (kindCase_ == KindOneofCase.ListValue) {
- output.WriteRawTag(154, 3);
- output.WriteMessage(ListValue);
- }
- if (kindCase_ == KindOneofCase.TupleValue) {
- output.WriteRawTag(162, 3);
- output.WriteMessage(TupleValue);
- }
- if (kindCase_ == KindOneofCase.DictValue) {
- output.WriteRawTag(170, 3);
- output.WriteMessage(DictValue);
- }
- if (kindCase_ == KindOneofCase.NamedTupleValue) {
- output.WriteRawTag(178, 3);
- output.WriteMessage(NamedTupleValue);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (kindCase_ == KindOneofCase.NoneValue) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(NoneValue);
- }
- if (kindCase_ == KindOneofCase.Float64Value) {
- size += 1 + 8;
- }
- if (kindCase_ == KindOneofCase.Int64Value) {
- size += 1 + pb::CodedOutputStream.ComputeSInt64Size(Int64Value);
- }
- if (kindCase_ == KindOneofCase.StringValue) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue);
- }
- if (kindCase_ == KindOneofCase.BoolValue) {
- size += 1 + 1;
- }
- if (kindCase_ == KindOneofCase.TensorShapeValue) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(TensorShapeValue);
- }
- if (kindCase_ == KindOneofCase.TensorDtypeValue) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) TensorDtypeValue);
- }
- if (kindCase_ == KindOneofCase.TensorSpecValue) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(TensorSpecValue);
- }
- if (kindCase_ == KindOneofCase.TypeSpecValue) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(TypeSpecValue);
- }
- if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(BoundedTensorSpecValue);
- }
- if (kindCase_ == KindOneofCase.ListValue) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(ListValue);
- }
- if (kindCase_ == KindOneofCase.TupleValue) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(TupleValue);
- }
- if (kindCase_ == KindOneofCase.DictValue) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(DictValue);
- }
- if (kindCase_ == KindOneofCase.NamedTupleValue) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(NamedTupleValue);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(StructuredValue other) {
- if (other == null) {
- return;
- }
- switch (other.KindCase) {
- case KindOneofCase.NoneValue:
- if (NoneValue == null) {
- NoneValue = new global::Tensorflow.NoneValue();
- }
- NoneValue.MergeFrom(other.NoneValue);
- break;
- case KindOneofCase.Float64Value:
- Float64Value = other.Float64Value;
- break;
- case KindOneofCase.Int64Value:
- Int64Value = other.Int64Value;
- break;
- case KindOneofCase.StringValue:
- StringValue = other.StringValue;
- break;
- case KindOneofCase.BoolValue:
- BoolValue = other.BoolValue;
- break;
- case KindOneofCase.TensorShapeValue:
- if (TensorShapeValue == null) {
- TensorShapeValue = new global::Tensorflow.TensorShapeProto();
- }
- TensorShapeValue.MergeFrom(other.TensorShapeValue);
- break;
- case KindOneofCase.TensorDtypeValue:
- TensorDtypeValue = other.TensorDtypeValue;
- break;
- case KindOneofCase.TensorSpecValue:
- if (TensorSpecValue == null) {
- TensorSpecValue = new global::Tensorflow.TensorSpecProto();
- }
- TensorSpecValue.MergeFrom(other.TensorSpecValue);
- break;
- case KindOneofCase.TypeSpecValue:
- if (TypeSpecValue == null) {
- TypeSpecValue = new global::Tensorflow.TypeSpecProto();
- }
- TypeSpecValue.MergeFrom(other.TypeSpecValue);
- break;
- case KindOneofCase.BoundedTensorSpecValue:
- if (BoundedTensorSpecValue == null) {
- BoundedTensorSpecValue = new global::Tensorflow.BoundedTensorSpecProto();
- }
- BoundedTensorSpecValue.MergeFrom(other.BoundedTensorSpecValue);
- break;
- case KindOneofCase.ListValue:
- if (ListValue == null) {
- ListValue = new global::Tensorflow.ListValue();
- }
- ListValue.MergeFrom(other.ListValue);
- break;
- case KindOneofCase.TupleValue:
- if (TupleValue == null) {
- TupleValue = new global::Tensorflow.TupleValue();
- }
- TupleValue.MergeFrom(other.TupleValue);
- break;
- case KindOneofCase.DictValue:
- if (DictValue == null) {
- DictValue = new global::Tensorflow.DictValue();
- }
- DictValue.MergeFrom(other.DictValue);
- break;
- case KindOneofCase.NamedTupleValue:
- if (NamedTupleValue == null) {
- NamedTupleValue = new global::Tensorflow.NamedTupleValue();
- }
- NamedTupleValue.MergeFrom(other.NamedTupleValue);
- break;
- }
-
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- global::Tensorflow.NoneValue subBuilder = new global::Tensorflow.NoneValue();
- if (kindCase_ == KindOneofCase.NoneValue) {
- subBuilder.MergeFrom(NoneValue);
- }
- input.ReadMessage(subBuilder);
- NoneValue = subBuilder;
- break;
- }
- case 89: {
- Float64Value = input.ReadDouble();
- break;
- }
- case 96: {
- Int64Value = input.ReadSInt64();
- break;
- }
- case 106: {
- StringValue = input.ReadString();
- break;
- }
- case 112: {
- BoolValue = input.ReadBool();
- break;
- }
- case 250: {
- global::Tensorflow.TensorShapeProto subBuilder = new global::Tensorflow.TensorShapeProto();
- if (kindCase_ == KindOneofCase.TensorShapeValue) {
- subBuilder.MergeFrom(TensorShapeValue);
- }
- input.ReadMessage(subBuilder);
- TensorShapeValue = subBuilder;
- break;
- }
- case 256: {
- kind_ = input.ReadEnum();
- kindCase_ = KindOneofCase.TensorDtypeValue;
- break;
- }
- case 266: {
- global::Tensorflow.TensorSpecProto subBuilder = new global::Tensorflow.TensorSpecProto();
- if (kindCase_ == KindOneofCase.TensorSpecValue) {
- subBuilder.MergeFrom(TensorSpecValue);
- }
- input.ReadMessage(subBuilder);
- TensorSpecValue = subBuilder;
- break;
- }
- case 274: {
- global::Tensorflow.TypeSpecProto subBuilder = new global::Tensorflow.TypeSpecProto();
- if (kindCase_ == KindOneofCase.TypeSpecValue) {
- subBuilder.MergeFrom(TypeSpecValue);
- }
- input.ReadMessage(subBuilder);
- TypeSpecValue = subBuilder;
- break;
- }
- case 282: {
- global::Tensorflow.BoundedTensorSpecProto subBuilder = new global::Tensorflow.BoundedTensorSpecProto();
- if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) {
- subBuilder.MergeFrom(BoundedTensorSpecValue);
- }
- input.ReadMessage(subBuilder);
- BoundedTensorSpecValue = subBuilder;
- break;
- }
- case 410: {
- global::Tensorflow.ListValue subBuilder = new global::Tensorflow.ListValue();
- if (kindCase_ == KindOneofCase.ListValue) {
- subBuilder.MergeFrom(ListValue);
- }
- input.ReadMessage(subBuilder);
- ListValue = subBuilder;
- break;
- }
- case 418: {
- global::Tensorflow.TupleValue subBuilder = new global::Tensorflow.TupleValue();
- if (kindCase_ == KindOneofCase.TupleValue) {
- subBuilder.MergeFrom(TupleValue);
- }
- input.ReadMessage(subBuilder);
- TupleValue = subBuilder;
- break;
- }
- case 426: {
- global::Tensorflow.DictValue subBuilder = new global::Tensorflow.DictValue();
- if (kindCase_ == KindOneofCase.DictValue) {
- subBuilder.MergeFrom(DictValue);
- }
- input.ReadMessage(subBuilder);
- DictValue = subBuilder;
- break;
- }
- case 434: {
- global::Tensorflow.NamedTupleValue subBuilder = new global::Tensorflow.NamedTupleValue();
- if (kindCase_ == KindOneofCase.NamedTupleValue) {
- subBuilder.MergeFrom(NamedTupleValue);
- }
- input.ReadMessage(subBuilder);
- NamedTupleValue = subBuilder;
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- global::Tensorflow.NoneValue subBuilder = new global::Tensorflow.NoneValue();
- if (kindCase_ == KindOneofCase.NoneValue) {
- subBuilder.MergeFrom(NoneValue);
- }
- input.ReadMessage(subBuilder);
- NoneValue = subBuilder;
- break;
- }
- case 89: {
- Float64Value = input.ReadDouble();
- break;
- }
- case 96: {
- Int64Value = input.ReadSInt64();
- break;
- }
- case 106: {
- StringValue = input.ReadString();
- break;
- }
- case 112: {
- BoolValue = input.ReadBool();
- break;
- }
- case 250: {
- global::Tensorflow.TensorShapeProto subBuilder = new global::Tensorflow.TensorShapeProto();
- if (kindCase_ == KindOneofCase.TensorShapeValue) {
- subBuilder.MergeFrom(TensorShapeValue);
- }
- input.ReadMessage(subBuilder);
- TensorShapeValue = subBuilder;
- break;
- }
- case 256: {
- kind_ = input.ReadEnum();
- kindCase_ = KindOneofCase.TensorDtypeValue;
- break;
- }
- case 266: {
- global::Tensorflow.TensorSpecProto subBuilder = new global::Tensorflow.TensorSpecProto();
- if (kindCase_ == KindOneofCase.TensorSpecValue) {
- subBuilder.MergeFrom(TensorSpecValue);
- }
- input.ReadMessage(subBuilder);
- TensorSpecValue = subBuilder;
- break;
- }
- case 274: {
- global::Tensorflow.TypeSpecProto subBuilder = new global::Tensorflow.TypeSpecProto();
- if (kindCase_ == KindOneofCase.TypeSpecValue) {
- subBuilder.MergeFrom(TypeSpecValue);
- }
- input.ReadMessage(subBuilder);
- TypeSpecValue = subBuilder;
- break;
- }
- case 282: {
- global::Tensorflow.BoundedTensorSpecProto subBuilder = new global::Tensorflow.BoundedTensorSpecProto();
- if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) {
- subBuilder.MergeFrom(BoundedTensorSpecValue);
- }
- input.ReadMessage(subBuilder);
- BoundedTensorSpecValue = subBuilder;
- break;
- }
- case 410: {
- global::Tensorflow.ListValue subBuilder = new global::Tensorflow.ListValue();
- if (kindCase_ == KindOneofCase.ListValue) {
- subBuilder.MergeFrom(ListValue);
- }
- input.ReadMessage(subBuilder);
- ListValue = subBuilder;
- break;
- }
- case 418: {
- global::Tensorflow.TupleValue subBuilder = new global::Tensorflow.TupleValue();
- if (kindCase_ == KindOneofCase.TupleValue) {
- subBuilder.MergeFrom(TupleValue);
- }
- input.ReadMessage(subBuilder);
- TupleValue = subBuilder;
- break;
- }
- case 426: {
- global::Tensorflow.DictValue subBuilder = new global::Tensorflow.DictValue();
- if (kindCase_ == KindOneofCase.DictValue) {
- subBuilder.MergeFrom(DictValue);
- }
- input.ReadMessage(subBuilder);
- DictValue = subBuilder;
- break;
- }
- case 434: {
- global::Tensorflow.NamedTupleValue subBuilder = new global::Tensorflow.NamedTupleValue();
- if (kindCase_ == KindOneofCase.NamedTupleValue) {
- subBuilder.MergeFrom(NamedTupleValue);
- }
- input.ReadMessage(subBuilder);
- NamedTupleValue = subBuilder;
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- /// <summary>
- /// Represents None.
- /// </summary>
- public sealed partial class NoneValue : pb::IMessage<NoneValue>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<NoneValue> _parser = new pb::MessageParser<NoneValue>(() => new NoneValue());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<NoneValue> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public NoneValue() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public NoneValue(NoneValue other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public NoneValue Clone() {
- return new NoneValue(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as NoneValue);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(NoneValue other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(NoneValue other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- }
- }
- }
- #endif
-
- }
-
- /// <summary>
- /// Represents a Python list.
- /// </summary>
- public sealed partial class ListValue : pb::IMessage<ListValue>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<ListValue> _parser = new pb::MessageParser<ListValue>(() => new ListValue());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<ListValue> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[2]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ListValue() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ListValue(ListValue other) : this() {
- values_ = other.values_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ListValue Clone() {
- return new ListValue(this);
- }
-
- /// <summary>Field number for the "values" field.</summary>
- public const int ValuesFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Tensorflow.StructuredValue> _repeated_values_codec
- = pb::FieldCodec.ForMessage(10, global::Tensorflow.StructuredValue.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.StructuredValue> values_ = new pbc::RepeatedField<global::Tensorflow.StructuredValue>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Tensorflow.StructuredValue> Values {
- get { return values_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as ListValue);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(ListValue other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!values_.Equals(other.values_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= values_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- values_.WriteTo(output, _repeated_values_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- values_.WriteTo(ref output, _repeated_values_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- size += values_.CalculateSize(_repeated_values_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(ListValue other) {
- if (other == null) {
- return;
- }
- values_.Add(other.values_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- values_.AddEntriesFrom(input, _repeated_values_codec);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- values_.AddEntriesFrom(ref input, _repeated_values_codec);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- /// <summary>
- /// Represents a Python tuple.
- /// </summary>
- public sealed partial class TupleValue : pb::IMessage<TupleValue>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<TupleValue> _parser = new pb::MessageParser<TupleValue>(() => new TupleValue());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<TupleValue> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[3]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public TupleValue() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public TupleValue(TupleValue other) : this() {
- values_ = other.values_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public TupleValue Clone() {
- return new TupleValue(this);
- }
-
- /// <summary>Field number for the "values" field.</summary>
- public const int ValuesFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Tensorflow.StructuredValue> _repeated_values_codec
- = pb::FieldCodec.ForMessage(10, global::Tensorflow.StructuredValue.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.StructuredValue> values_ = new pbc::RepeatedField<global::Tensorflow.StructuredValue>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Tensorflow.StructuredValue> Values {
- get { return values_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as TupleValue);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(TupleValue other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!values_.Equals(other.values_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= values_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- values_.WriteTo(output, _repeated_values_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- values_.WriteTo(ref output, _repeated_values_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- size += values_.CalculateSize(_repeated_values_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(TupleValue other) {
- if (other == null) {
- return;
- }
- values_.Add(other.values_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- values_.AddEntriesFrom(input, _repeated_values_codec);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- values_.AddEntriesFrom(ref input, _repeated_values_codec);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- /// <summary>
- /// Represents a Python dict keyed by `str`.
- /// The comment on Unicode from Value.string_value applies analogously.
- /// </summary>
- public sealed partial class DictValue : pb::IMessage<DictValue>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<DictValue> _parser = new pb::MessageParser<DictValue>(() => new DictValue());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<DictValue> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[4]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DictValue() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DictValue(DictValue other) : this() {
- fields_ = other.fields_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public DictValue Clone() {
- return new DictValue(this);
- }
-
- /// <summary>Field number for the "fields" field.</summary>
- public const int FieldsFieldNumber = 1;
- private static readonly pbc::MapField<string, global::Tensorflow.StructuredValue>.Codec _map_fields_codec
- = new pbc::MapField<string, global::Tensorflow.StructuredValue>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Tensorflow.StructuredValue.Parser), 10);
- private readonly pbc::MapField<string, global::Tensorflow.StructuredValue> fields_ = new pbc::MapField<string, global::Tensorflow.StructuredValue>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::MapField<string, global::Tensorflow.StructuredValue> Fields {
- get { return fields_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as DictValue);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(DictValue other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!Fields.Equals(other.Fields)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= Fields.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- fields_.WriteTo(output, _map_fields_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- fields_.WriteTo(ref output, _map_fields_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- size += fields_.CalculateSize(_map_fields_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(DictValue other) {
- if (other == null) {
- return;
- }
- fields_.MergeFrom(other.fields_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- fields_.AddEntriesFrom(input, _map_fields_codec);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- fields_.AddEntriesFrom(ref input, _map_fields_codec);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- /// <summary>
- /// Represents a (key, value) pair.
- /// </summary>
- public sealed partial class PairValue : pb::IMessage<PairValue>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<PairValue> _parser = new pb::MessageParser<PairValue>(() => new PairValue());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<PairValue> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[5]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public PairValue() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public PairValue(PairValue other) : this() {
- key_ = other.key_;
- value_ = other.value_ != null ? other.value_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public PairValue Clone() {
- return new PairValue(this);
- }
-
- /// <summary>Field number for the "key" field.</summary>
- public const int KeyFieldNumber = 1;
- private string key_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Key {
- get { return key_; }
- set {
- key_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "value" field.</summary>
- public const int ValueFieldNumber = 2;
- private global::Tensorflow.StructuredValue value_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.StructuredValue Value {
- get { return value_; }
- set {
- value_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as PairValue);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(PairValue other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Key != other.Key) return false;
- if (!object.Equals(Value, other.Value)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (Key.Length != 0) hash ^= Key.GetHashCode();
- if (value_ != null) hash ^= Value.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Key.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Key);
- }
- if (value_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Value);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Key.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Key);
- }
- if (value_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Value);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (Key.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Key);
- }
- if (value_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(PairValue other) {
- if (other == null) {
- return;
- }
- if (other.Key.Length != 0) {
- Key = other.Key;
- }
- if (other.value_ != null) {
- if (value_ == null) {
- Value = new global::Tensorflow.StructuredValue();
- }
- Value.MergeFrom(other.Value);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- Key = input.ReadString();
- break;
- }
- case 18: {
- if (value_ == null) {
- Value = new global::Tensorflow.StructuredValue();
- }
- input.ReadMessage(Value);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- Key = input.ReadString();
- break;
- }
- case 18: {
- if (value_ == null) {
- Value = new global::Tensorflow.StructuredValue();
- }
- input.ReadMessage(Value);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- /// <summary>
- /// Represents Python's namedtuple.
- /// </summary>
- public sealed partial class NamedTupleValue : pb::IMessage<NamedTupleValue>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<NamedTupleValue> _parser = new pb::MessageParser<NamedTupleValue>(() => new NamedTupleValue());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<NamedTupleValue> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[6]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public NamedTupleValue() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public NamedTupleValue(NamedTupleValue other) : this() {
- name_ = other.name_;
- values_ = other.values_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public NamedTupleValue Clone() {
- return new NamedTupleValue(this);
- }
-
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "values" field.</summary>
- public const int ValuesFieldNumber = 2;
- private static readonly pb::FieldCodec<global::Tensorflow.PairValue> _repeated_values_codec
- = pb::FieldCodec.ForMessage(18, global::Tensorflow.PairValue.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.PairValue> values_ = new pbc::RepeatedField<global::Tensorflow.PairValue>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Tensorflow.PairValue> Values {
- get { return values_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as NamedTupleValue);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(NamedTupleValue other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if(!values_.Equals(other.values_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- hash ^= values_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- values_.WriteTo(output, _repeated_values_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- values_.WriteTo(ref output, _repeated_values_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- size += values_.CalculateSize(_repeated_values_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(NamedTupleValue other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- values_.Add(other.values_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- values_.AddEntriesFrom(input, _repeated_values_codec);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- values_.AddEntriesFrom(ref input, _repeated_values_codec);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- /// <summary>
- /// A protobuf to represent tf.TensorSpec.
- /// </summary>
- public sealed partial class TensorSpecProto : pb::IMessage<TensorSpecProto>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<TensorSpecProto> _parser = new pb::MessageParser<TensorSpecProto>(() => new TensorSpecProto());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<TensorSpecProto> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[7]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public TensorSpecProto() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public TensorSpecProto(TensorSpecProto other) : this() {
- name_ = other.name_;
- shape_ = other.shape_ != null ? other.shape_.Clone() : null;
- dtype_ = other.dtype_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public TensorSpecProto Clone() {
- return new TensorSpecProto(this);
- }
-
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "shape" field.</summary>
- public const int ShapeFieldNumber = 2;
- private global::Tensorflow.TensorShapeProto shape_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.TensorShapeProto Shape {
- get { return shape_; }
- set {
- shape_ = value;
- }
- }
-
- /// <summary>Field number for the "dtype" field.</summary>
- public const int DtypeFieldNumber = 3;
- private global::Tensorflow.DataType dtype_ = global::Tensorflow.DataType.DtInvalid;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.DataType Dtype {
- get { return dtype_; }
- set {
- dtype_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as TensorSpecProto);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(TensorSpecProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if (!object.Equals(Shape, other.Shape)) return false;
- if (Dtype != other.Dtype) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- if (shape_ != null) hash ^= Shape.GetHashCode();
- if (Dtype != global::Tensorflow.DataType.DtInvalid) hash ^= Dtype.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (shape_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Shape);
- }
- if (Dtype != global::Tensorflow.DataType.DtInvalid) {
- output.WriteRawTag(24);
- output.WriteEnum((int) Dtype);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (shape_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Shape);
- }
- if (Dtype != global::Tensorflow.DataType.DtInvalid) {
- output.WriteRawTag(24);
- output.WriteEnum((int) Dtype);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (shape_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Shape);
- }
- if (Dtype != global::Tensorflow.DataType.DtInvalid) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Dtype);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(TensorSpecProto other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- if (other.shape_ != null) {
- if (shape_ == null) {
- Shape = new global::Tensorflow.TensorShapeProto();
- }
- Shape.MergeFrom(other.Shape);
- }
- if (other.Dtype != global::Tensorflow.DataType.DtInvalid) {
- Dtype = other.Dtype;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- if (shape_ == null) {
- Shape = new global::Tensorflow.TensorShapeProto();
- }
- input.ReadMessage(Shape);
- break;
- }
- case 24: {
- Dtype = (global::Tensorflow.DataType) input.ReadEnum();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- if (shape_ == null) {
- Shape = new global::Tensorflow.TensorShapeProto();
- }
- input.ReadMessage(Shape);
- break;
- }
- case 24: {
- Dtype = (global::Tensorflow.DataType) input.ReadEnum();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- /// <summary>
- /// A protobuf to represent tf.BoundedTensorSpec.
- /// </summary>
- public sealed partial class BoundedTensorSpecProto : pb::IMessage<BoundedTensorSpecProto>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<BoundedTensorSpecProto> _parser = new pb::MessageParser<BoundedTensorSpecProto>(() => new BoundedTensorSpecProto());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<BoundedTensorSpecProto> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[8]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public BoundedTensorSpecProto() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public BoundedTensorSpecProto(BoundedTensorSpecProto other) : this() {
- name_ = other.name_;
- shape_ = other.shape_ != null ? other.shape_.Clone() : null;
- dtype_ = other.dtype_;
- minimum_ = other.minimum_ != null ? other.minimum_.Clone() : null;
- maximum_ = other.maximum_ != null ? other.maximum_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public BoundedTensorSpecProto Clone() {
- return new BoundedTensorSpecProto(this);
- }
-
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "shape" field.</summary>
- public const int ShapeFieldNumber = 2;
- private global::Tensorflow.TensorShapeProto shape_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.TensorShapeProto Shape {
- get { return shape_; }
- set {
- shape_ = value;
- }
- }
-
- /// <summary>Field number for the "dtype" field.</summary>
- public const int DtypeFieldNumber = 3;
- private global::Tensorflow.DataType dtype_ = global::Tensorflow.DataType.DtInvalid;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.DataType Dtype {
- get { return dtype_; }
- set {
- dtype_ = value;
- }
- }
-
- /// <summary>Field number for the "minimum" field.</summary>
- public const int MinimumFieldNumber = 4;
- private global::Tensorflow.TensorProto minimum_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.TensorProto Minimum {
- get { return minimum_; }
- set {
- minimum_ = value;
- }
- }
-
- /// <summary>Field number for the "maximum" field.</summary>
- public const int MaximumFieldNumber = 5;
- private global::Tensorflow.TensorProto maximum_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.TensorProto Maximum {
- get { return maximum_; }
- set {
- maximum_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as BoundedTensorSpecProto);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(BoundedTensorSpecProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if (!object.Equals(Shape, other.Shape)) return false;
- if (Dtype != other.Dtype) return false;
- if (!object.Equals(Minimum, other.Minimum)) return false;
- if (!object.Equals(Maximum, other.Maximum)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- if (shape_ != null) hash ^= Shape.GetHashCode();
- if (Dtype != global::Tensorflow.DataType.DtInvalid) hash ^= Dtype.GetHashCode();
- if (minimum_ != null) hash ^= Minimum.GetHashCode();
- if (maximum_ != null) hash ^= Maximum.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (shape_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Shape);
- }
- if (Dtype != global::Tensorflow.DataType.DtInvalid) {
- output.WriteRawTag(24);
- output.WriteEnum((int) Dtype);
- }
- if (minimum_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(Minimum);
- }
- if (maximum_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(Maximum);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (shape_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Shape);
- }
- if (Dtype != global::Tensorflow.DataType.DtInvalid) {
- output.WriteRawTag(24);
- output.WriteEnum((int) Dtype);
- }
- if (minimum_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(Minimum);
- }
- if (maximum_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(Maximum);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (shape_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Shape);
- }
- if (Dtype != global::Tensorflow.DataType.DtInvalid) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Dtype);
- }
- if (minimum_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Minimum);
- }
- if (maximum_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Maximum);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(BoundedTensorSpecProto other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- if (other.shape_ != null) {
- if (shape_ == null) {
- Shape = new global::Tensorflow.TensorShapeProto();
- }
- Shape.MergeFrom(other.Shape);
- }
- if (other.Dtype != global::Tensorflow.DataType.DtInvalid) {
- Dtype = other.Dtype;
- }
- if (other.minimum_ != null) {
- if (minimum_ == null) {
- Minimum = new global::Tensorflow.TensorProto();
- }
- Minimum.MergeFrom(other.Minimum);
- }
- if (other.maximum_ != null) {
- if (maximum_ == null) {
- Maximum = new global::Tensorflow.TensorProto();
- }
- Maximum.MergeFrom(other.Maximum);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- if (shape_ == null) {
- Shape = new global::Tensorflow.TensorShapeProto();
- }
- input.ReadMessage(Shape);
- break;
- }
- case 24: {
- Dtype = (global::Tensorflow.DataType) input.ReadEnum();
- break;
- }
- case 34: {
- if (minimum_ == null) {
- Minimum = new global::Tensorflow.TensorProto();
- }
- input.ReadMessage(Minimum);
- break;
- }
- case 42: {
- if (maximum_ == null) {
- Maximum = new global::Tensorflow.TensorProto();
- }
- input.ReadMessage(Maximum);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- if (shape_ == null) {
- Shape = new global::Tensorflow.TensorShapeProto();
- }
- input.ReadMessage(Shape);
- break;
- }
- case 24: {
- Dtype = (global::Tensorflow.DataType) input.ReadEnum();
- break;
- }
- case 34: {
- if (minimum_ == null) {
- Minimum = new global::Tensorflow.TensorProto();
- }
- input.ReadMessage(Minimum);
- break;
- }
- case 42: {
- if (maximum_ == null) {
- Maximum = new global::Tensorflow.TensorProto();
- }
- input.ReadMessage(Maximum);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- /// <summary>
- /// Represents a tf.TypeSpec
- /// </summary>
- public sealed partial class TypeSpecProto : pb::IMessage<TypeSpecProto>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<TypeSpecProto> _parser = new pb::MessageParser<TypeSpecProto>(() => new TypeSpecProto());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<TypeSpecProto> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[9]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public TypeSpecProto() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public TypeSpecProto(TypeSpecProto other) : this() {
- typeSpecClass_ = other.typeSpecClass_;
- typeState_ = other.typeState_ != null ? other.typeState_.Clone() : null;
- typeSpecClassName_ = other.typeSpecClassName_;
- numFlatComponents_ = other.numFlatComponents_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public TypeSpecProto Clone() {
- return new TypeSpecProto(this);
- }
-
- /// <summary>Field number for the "type_spec_class" field.</summary>
- public const int TypeSpecClassFieldNumber = 1;
- private global::Tensorflow.TypeSpecProto.Types.TypeSpecClass typeSpecClass_ = global::Tensorflow.TypeSpecProto.Types.TypeSpecClass.Unknown;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.TypeSpecProto.Types.TypeSpecClass TypeSpecClass {
- get { return typeSpecClass_; }
- set {
- typeSpecClass_ = value;
- }
- }
-
- /// <summary>Field number for the "type_state" field.</summary>
- public const int TypeStateFieldNumber = 2;
- private global::Tensorflow.StructuredValue typeState_;
- /// <summary>
- /// The value returned by TypeSpec._serialize().
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.StructuredValue TypeState {
- get { return typeState_; }
- set {
- typeState_ = value;
- }
- }
-
- /// <summary>Field number for the "type_spec_class_name" field.</summary>
- public const int TypeSpecClassNameFieldNumber = 3;
- private string typeSpecClassName_ = "";
- /// <summary>
- /// The name of the TypeSpec class.
- /// * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
- /// the one registered under this name. For types registered outside
- /// core TensorFlow by an add-on library, that library must be loaded
- /// before this value can be deserialized by nested_structure_coder.
- /// * If type_spec_class specifies a particular TypeSpec class, this field is
- /// redundant with the type_spec_class enum, and is only used for error
- /// reporting in older binaries that do not know the tupe_spec_class enum.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string TypeSpecClassName {
- get { return typeSpecClassName_; }
- set {
- typeSpecClassName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "num_flat_components" field.</summary>
- public const int NumFlatComponentsFieldNumber = 4;
- private int numFlatComponents_;
- /// <summary>
- /// The number of flat tensor components required by this TypeSpec.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int NumFlatComponents {
- get { return numFlatComponents_; }
- set {
- numFlatComponents_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as TypeSpecProto);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(TypeSpecProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (TypeSpecClass != other.TypeSpecClass) return false;
- if (!object.Equals(TypeState, other.TypeState)) return false;
- if (TypeSpecClassName != other.TypeSpecClassName) return false;
- if (NumFlatComponents != other.NumFlatComponents) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (TypeSpecClass != global::Tensorflow.TypeSpecProto.Types.TypeSpecClass.Unknown) hash ^= TypeSpecClass.GetHashCode();
- if (typeState_ != null) hash ^= TypeState.GetHashCode();
- if (TypeSpecClassName.Length != 0) hash ^= TypeSpecClassName.GetHashCode();
- if (NumFlatComponents != 0) hash ^= NumFlatComponents.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (TypeSpecClass != global::Tensorflow.TypeSpecProto.Types.TypeSpecClass.Unknown) {
- output.WriteRawTag(8);
- output.WriteEnum((int) TypeSpecClass);
- }
- if (typeState_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(TypeState);
- }
- if (TypeSpecClassName.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(TypeSpecClassName);
- }
- if (NumFlatComponents != 0) {
- output.WriteRawTag(32);
- output.WriteInt32(NumFlatComponents);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (TypeSpecClass != global::Tensorflow.TypeSpecProto.Types.TypeSpecClass.Unknown) {
- output.WriteRawTag(8);
- output.WriteEnum((int) TypeSpecClass);
- }
- if (typeState_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(TypeState);
- }
- if (TypeSpecClassName.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(TypeSpecClassName);
- }
- if (NumFlatComponents != 0) {
- output.WriteRawTag(32);
- output.WriteInt32(NumFlatComponents);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (TypeSpecClass != global::Tensorflow.TypeSpecProto.Types.TypeSpecClass.Unknown) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TypeSpecClass);
- }
- if (typeState_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(TypeState);
- }
- if (TypeSpecClassName.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeSpecClassName);
- }
- if (NumFlatComponents != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumFlatComponents);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(TypeSpecProto other) {
- if (other == null) {
- return;
- }
- if (other.TypeSpecClass != global::Tensorflow.TypeSpecProto.Types.TypeSpecClass.Unknown) {
- TypeSpecClass = other.TypeSpecClass;
- }
- if (other.typeState_ != null) {
- if (typeState_ == null) {
- TypeState = new global::Tensorflow.StructuredValue();
- }
- TypeState.MergeFrom(other.TypeState);
- }
- if (other.TypeSpecClassName.Length != 0) {
- TypeSpecClassName = other.TypeSpecClassName;
- }
- if (other.NumFlatComponents != 0) {
- NumFlatComponents = other.NumFlatComponents;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- TypeSpecClass = (global::Tensorflow.TypeSpecProto.Types.TypeSpecClass) input.ReadEnum();
- break;
- }
- case 18: {
- if (typeState_ == null) {
- TypeState = new global::Tensorflow.StructuredValue();
- }
- input.ReadMessage(TypeState);
- break;
- }
- case 26: {
- TypeSpecClassName = input.ReadString();
- break;
- }
- case 32: {
- NumFlatComponents = input.ReadInt32();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- TypeSpecClass = (global::Tensorflow.TypeSpecProto.Types.TypeSpecClass) input.ReadEnum();
- break;
- }
- case 18: {
- if (typeState_ == null) {
- TypeState = new global::Tensorflow.StructuredValue();
- }
- input.ReadMessage(TypeState);
- break;
- }
- case 26: {
- TypeSpecClassName = input.ReadString();
- break;
- }
- case 32: {
- NumFlatComponents = input.ReadInt32();
- break;
- }
- }
- }
- }
- #endif
-
- #region Nested types
- /// <summary>Container for nested types declared in the TypeSpecProto message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- public enum TypeSpecClass {
- [pbr::OriginalName("UNKNOWN")] Unknown = 0,
- /// <summary>
- /// tf.SparseTensorSpec
- /// </summary>
- [pbr::OriginalName("SPARSE_TENSOR_SPEC")] SparseTensorSpec = 1,
- /// <summary>
- /// tf.IndexedSlicesSpec
- /// </summary>
- [pbr::OriginalName("INDEXED_SLICES_SPEC")] IndexedSlicesSpec = 2,
- /// <summary>
- /// tf.RaggedTensorSpec
- /// </summary>
- [pbr::OriginalName("RAGGED_TENSOR_SPEC")] RaggedTensorSpec = 3,
- /// <summary>
- /// tf.TensorArraySpec
- /// </summary>
- [pbr::OriginalName("TENSOR_ARRAY_SPEC")] TensorArraySpec = 4,
- /// <summary>
- /// tf.data.DatasetSpec
- /// </summary>
- [pbr::OriginalName("DATA_DATASET_SPEC")] DataDatasetSpec = 5,
- /// <summary>
- /// IteratorSpec from data/ops/iterator_ops.py
- /// </summary>
- [pbr::OriginalName("DATA_ITERATOR_SPEC")] DataIteratorSpec = 6,
- /// <summary>
- /// tf.OptionalSpec
- /// </summary>
- [pbr::OriginalName("OPTIONAL_SPEC")] OptionalSpec = 7,
- /// <summary>
- /// PerReplicaSpec from distribute/values.py
- /// </summary>
- [pbr::OriginalName("PER_REPLICA_SPEC")] PerReplicaSpec = 8,
- /// <summary>
- /// tf.VariableSpec
- /// </summary>
- [pbr::OriginalName("VARIABLE_SPEC")] VariableSpec = 9,
- /// <summary>
- /// RowPartitionSpec from ragged/row_partition.py
- /// </summary>
- [pbr::OriginalName("ROW_PARTITION_SPEC")] RowPartitionSpec = 10,
- /// <summary>
- /// The type registered as type_spec_class_name.
- /// </summary>
- [pbr::OriginalName("REGISTERED_TYPE_SPEC")] RegisteredTypeSpec = 12,
- /// <summary>
- /// Subclasses of tf.ExtensionType
- /// </summary>
- [pbr::OriginalName("EXTENSION_TYPE_SPEC")] ExtensionTypeSpec = 13,
- }
-
- }
- #endregion
-
- }
-
- #endregion
-
- }
-
- #endregion Designer generated code
|