Field PHP Class Code Examples

This page contains top rated real world PHP examples of class Field extracted from open source projects. You can rate examples to help us improve the quality of examples

Example #1
Show file File: ResponseData.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.prebill.SListQuery.Response.ResponseData');
     // required string handler = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "handler";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $descriptor->addField($f);
     // optional uint32 row_counter = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "row_counter";
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->type = \DrSlump\Protobuf::TYPE_UINT32;
     $descriptor->addField($f);
     // repeated message page = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "page";
     $f->rule = \DrSlump\Protobuf::RULE_REPEATED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\PreBill\\PrebillList';
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #2
Show file File: LocationInfo.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.supprovision.location.LocationInfo');
     // optional message location = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "location";
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Location';
     $descriptor->addField($f);
     // optional message region_data = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "region_data";
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\SupProvision\\Location\\RegionData';
     $descriptor->addField($f);
     // optional string timestamp = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "timestamp";
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #3
Show file File: Criteria.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.commercialgroup.ListQuery.Filter.Criteria');
     // required enum type = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "type";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_ENUM;
     $f->reference = '\\Application\\Proto\\CommercialGroup\\ListQuery\\Filter\\Criteria\\Type';
     $descriptor->addField($f);
     // required bool reverse = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "reverse";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_BOOL;
     $descriptor->addField($f);
     // optional string aggregator_id = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "aggregator_id";
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #4
Show file File: descriptor.pb.php Project: JosephGarrone/flerovium
0
 public static function descriptor(\DrSlump\Protobuf\Descriptor $descriptor = NULL)
 {
     if (NULL !== $descriptor) {
         self::$__descriptor = $descriptor;
         return self::$__descriptor;
     }
     if (!self::$__descriptor) {
         $descriptor = new \DrSlump\Protobuf\Descriptor("\\google\\protobuf\\SourceCodeInfo\\Location");
         // repeated  path = 1
         $f = new \DrSlump\Protobuf\Field();
         $f->number = 1;
         $f->name = "path";
         $f->nameOrig = "path";
         $f->type = 5;
         $f->rule = 3;
         $descriptor->addField($f);
         // repeated  span = 2
         $f = new \DrSlump\Protobuf\Field();
         $f->number = 2;
         $f->name = "span";
         $f->nameOrig = "span";
         $f->type = 5;
         $f->rule = 3;
         $descriptor->addField($f);
         foreach (self::$__extensions as $cb) {
             $descriptor->addField($cb(), true);
         }
         self::$__descriptor = $descriptor;
     }
     return self::$__descriptor;
 }
Example #5
Show file File: Row.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.enumerated.ListCountryQuery.Response.Data.Row');
     // required string id = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "id";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $descriptor->addField($f);
     // required string name = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "name";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $descriptor->addField($f);
     // repeated message translation = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "translation";
     $f->rule = \DrSlump\Protobuf::RULE_REPEATED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Translation';
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #6
Show file File: SelfManagement.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.prebill.DataQuery.Response.ResponseData.ServiceGlobalCharges.SupplementaryServicesCustomerCharges.MonthlyFee.SelfManagement');
     // required int64 total_amount = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "total_amount";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_INT64;
     $descriptor->addField($f);
     // required int64 suspension_tariff = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "suspension_tariff";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_INT64;
     $descriptor->addField($f);
     // required int64 tariff = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "tariff";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_INT64;
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #7
Show file File: DataQuery.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.prebill.DataQuery');
     // required message accounting = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "accounting";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Accounting';
     $descriptor->addField($f);
     // required message organization = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "organization";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Organization';
     $descriptor->addField($f);
     // required string id = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "id";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #8
Show file File: Charset.php Project: mattharden/vitess
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'binlogdata.Charset');
     // OPTIONAL INT32 client = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "client";
     $f->type = \DrSlump\Protobuf::TYPE_INT32;
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $descriptor->addField($f);
     // OPTIONAL INT32 conn = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "conn";
     $f->type = \DrSlump\Protobuf::TYPE_INT32;
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $descriptor->addField($f);
     // OPTIONAL INT32 server = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "server";
     $f->type = \DrSlump\Protobuf::TYPE_INT32;
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #9
Show file File: StreamKeyRangeRequest.php Project: mattharden/vitess
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'binlogdata.StreamKeyRangeRequest');
     // OPTIONAL STRING position = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "position";
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $descriptor->addField($f);
     // OPTIONAL MESSAGE key_range = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "key_range";
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->reference = '\\Vitess\\Proto\\Topodata\\KeyRange';
     $descriptor->addField($f);
     // OPTIONAL MESSAGE charset = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "charset";
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->reference = '\\Vitess\\Proto\\Binlogdata\\Charset';
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #10
Show file File: LegacySIMs.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.preinventory.LegacySIMs');
     // required message accounting = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "accounting";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Accounting';
     $descriptor->addField($f);
     // required message organization = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "organization";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Organization';
     $descriptor->addField($f);
     // repeated message sim_data = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "sim_data";
     $f->rule = \DrSlump\Protobuf::RULE_REPEATED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\PreInventory\\Service\\LegacySIMs\\LegacySIMData';
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #11
Show file File: DcaTariff.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.supplservices.SupplServicesTariff.DcaTariff');
     // required message transitions = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "transitions";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\SupplServices\\SupplServicesTariff\\TransitionTariff';
     $descriptor->addField($f);
     // required message customer = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "customer";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\SupplServices\\SupplServicesTariff\\DcaTariff\\CustomerTariff';
     $descriptor->addField($f);
     // required message subscription = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "subscription";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\SupplServices\\SupplServicesTariff\\DcaTariff\\SubscriptionTariff';
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #12
Show file File: DeleteData.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.report.DeleteData');
     // required message accounting = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "accounting";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Accounting';
     $descriptor->addField($f);
     // required message organization = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "organization";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Organization';
     $descriptor->addField($f);
     // repeated string file_names = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "file_names";
     $f->rule = \DrSlump\Protobuf::RULE_REPEATED;
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #13
Show file File: AlarmCountExtract.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.inventory.Row.AlarmCountExtract');
     // required message expense = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "expense";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Inventory\\Service\\Row\\AlarmCountExtract\\CategoryExtract';
     $descriptor->addField($f);
     // required message administrative = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "administrative";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Inventory\\Service\\Row\\AlarmCountExtract\\CategoryExtract';
     $descriptor->addField($f);
     // required message supervision = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "supervision";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Inventory\\Service\\Row\\AlarmCountExtract\\CategoryExtract';
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #14
Show file File: BoundShardQuery.php Project: mattharden/vitess
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'vtgate.BoundShardQuery');
     // OPTIONAL MESSAGE query = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "query";
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->reference = '\\Vitess\\Proto\\Query\\BoundQuery';
     $descriptor->addField($f);
     // OPTIONAL STRING keyspace = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "keyspace";
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $descriptor->addField($f);
     // REPEATED STRING shards = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "shards";
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $f->rule = \DrSlump\Protobuf::RULE_REPEATED;
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #15
Show file File: UpdateBulkQuery.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.inventory.UpdateBulkQuery');
     // required message accounting = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "accounting";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Accounting';
     $descriptor->addField($f);
     // required message organization = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "organization";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Organization';
     $descriptor->addField($f);
     // repeated message rows = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "rows";
     $f->rule = \DrSlump\Protobuf::RULE_REPEATED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Inventory\\Service\\UpdateBulkQuery\\Row';
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #16
Show file File: CreateData.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.servicepack.CreateData');
     // required message accounting = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "accounting";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Accounting';
     $descriptor->addField($f);
     // required message organization = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "organization";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Organization';
     $descriptor->addField($f);
     // required message create_data = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "create_data";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\ServicePack\\Service\\ServicePackSet';
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #17
Show file File: ListQuery.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.organization.enduser.ListQuery');
     // required message accounting = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "accounting";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Accounting';
     $descriptor->addField($f);
     // optional message organization = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "organization";
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Organization';
     $descriptor->addField($f);
     // optional message filter = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "filter";
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Org\\Filter';
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #18
Show file File: SchemaDefinition.php Project: mattharden/vitess
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'tabletmanagerdata.SchemaDefinition');
     // OPTIONAL STRING database_schema = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "database_schema";
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $descriptor->addField($f);
     // REPEATED MESSAGE table_definitions = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "table_definitions";
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->rule = \DrSlump\Protobuf::RULE_REPEATED;
     $f->reference = '\\Vitess\\Proto\\Tabletmanagerdata\\TableDefinition';
     $descriptor->addField($f);
     // OPTIONAL STRING version = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "version";
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #19
Show file File: Keyspace.php Project: mattharden/vitess
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'vschema.Keyspace');
     // OPTIONAL BOOL sharded = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "sharded";
     $f->type = \DrSlump\Protobuf::TYPE_BOOL;
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $descriptor->addField($f);
     // REPEATED MESSAGE vindexes = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "vindexes";
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->rule = \DrSlump\Protobuf::RULE_REPEATED;
     $f->reference = '\\Vitess\\Proto\\Vschema\\Keyspace\\VindexesEntry';
     $descriptor->addField($f);
     // REPEATED MESSAGE tables = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "tables";
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->rule = \DrSlump\Protobuf::RULE_REPEATED;
     $f->reference = '\\Vitess\\Proto\\Vschema\\Keyspace\\TablesEntry';
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #20
Show file File: WorkgroupListResponse.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.suplist.customer.WorkgroupListResponse');
     // required message result = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "result";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\Result';
     $descriptor->addField($f);
     // optional int32 pages_number = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "pages_number";
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->type = \DrSlump\Protobuf::TYPE_INT32;
     $descriptor->addField($f);
     // repeated message workgroup_data_list = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "workgroup_data_list";
     $f->rule = \DrSlump\Protobuf::RULE_REPEATED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\SupProvision\\Workgroup\\WorkgroupData';
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #21
Show file File: Taxes.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.prebill.DataQuery.Response.ResponseData.TotalChargeData.Taxes');
     // required int64 total_amount = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "total_amount";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_INT64;
     $descriptor->addField($f);
     // repeated message customer = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "customer";
     $f->rule = \DrSlump\Protobuf::RULE_REPEATED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\PreBill\\Service\\DataQuery\\Response\\ResponseData\\TotalChargeData\\PercentageData';
     $descriptor->addField($f);
     // repeated message billing_account = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "billing_account";
     $f->rule = \DrSlump\Protobuf::RULE_REPEATED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\PreBill\\Service\\DataQuery\\Response\\ResponseData\\TotalChargeData\\PercentageData';
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #22
Show file File: DatesData.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.prebill.DataQuery.Response.ResponseData.DatesData');
     // required string creation_date = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "creation_date";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $descriptor->addField($f);
     // optional string issued_date = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "issued_date";
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $descriptor->addField($f);
     // optional string last_modification_date = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "last_modification_date";
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #23
Show file File: OverageTraffic.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.prebill.DataQuery.Response.ResponseData.SubscriptionsChargesSummary.BasicServices.CommercialGroupData.OverageTraffic');
     // required int64 voice = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "voice";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_INT64;
     $descriptor->addField($f);
     // required int64 sms = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "sms";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_INT64;
     $descriptor->addField($f);
     // required int64 data = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "data";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_INT64;
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }
Example #24
Show file File: CloseAlarm.php Project: SandeepUmredkar/PortalSMIP
0
 public static function descriptor()
 {
     $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'business.service.suplist.alarm.CloseAlarm');
     // required message alarm_data = 1
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 1;
     $f->name = "alarm_data";
     $f->rule = \DrSlump\Protobuf::RULE_REQUIRED;
     $f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
     $f->reference = '\\Application\\Proto\\SupList\\Alarm\\AlarmData';
     $descriptor->addField($f);
     // optional string closing_date = 2
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 2;
     $f->name = "closing_date";
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->type = \DrSlump\Protobuf::TYPE_STRING;
     $descriptor->addField($f);
     // optional enum mode = 3
     $f = new \DrSlump\Protobuf\Field();
     $f->number = 3;
     $f->name = "mode";
     $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
     $f->type = \DrSlump\Protobuf::TYPE_ENUM;
     $f->reference = '\\Application\\Proto\\SupList\\Alarm\\CloseAlarm\\Mode';
     $descriptor->addField($f);
     foreach (self::$__extensions as $cb) {
         $descriptor->addField($cb(), true);
     }
     return $descriptor;
 }