github.com/cloudwan/edgelq-sdk@v1.15.4/cellular-api/client/v1/cellular_api/cellular_api.pb.descriptor.go (about)

     1  // Code generated by protoc-gen-goten-client
     2  // Service: CellularApi
     3  // DO NOT EDIT!!!
     4  
     5  package cellular_api_client
     6  
     7  import (
     8  	gotenclient "github.com/cloudwan/goten-sdk/runtime/client"
     9  	gotenresource "github.com/cloudwan/goten-sdk/runtime/resource"
    10  )
    11  
    12  // proto imports
    13  import (
    14  	contract_client "github.com/cloudwan/edgelq-sdk/cellular-api/client/v1/contract"
    15  	sim_card_client "github.com/cloudwan/edgelq-sdk/cellular-api/client/v1/sim_card"
    16  	sim_card_stock_client "github.com/cloudwan/edgelq-sdk/cellular-api/client/v1/sim_card_stock"
    17  	contract "github.com/cloudwan/edgelq-sdk/cellular-api/resources/v1/contract"
    18  	sim_card "github.com/cloudwan/edgelq-sdk/cellular-api/resources/v1/sim_card"
    19  	sim_card_stock "github.com/cloudwan/edgelq-sdk/cellular-api/resources/v1/sim_card_stock"
    20  )
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var (
    24  	_ = new(gotenclient.MethodDescriptor)
    25  	_ = gotenresource.WildcardId
    26  )
    27  
    28  // make sure we're using proto imports
    29  var (
    30  	_ = &contract.Contract{}
    31  	_ = &contract_client.GetContractRequest{}
    32  	_ = &sim_card.SimCard{}
    33  	_ = &sim_card_client.GetSimCardRequest{}
    34  	_ = &sim_card_stock.SimCardStock{}
    35  	_ = &sim_card_stock_client.GetSimCardStockRequest{}
    36  )
    37  
    38  var (
    39  	descriptorInitialized bool
    40  	cellularApiDescriptor *CellularApiDescriptor
    41  )
    42  
    43  type CellularApiDescriptor struct{}
    44  
    45  func (d *CellularApiDescriptor) GetServiceName() string {
    46  	return "cellularApi"
    47  }
    48  
    49  func (d *CellularApiDescriptor) GetServiceDomain() string {
    50  	return "cellular-api.edgelq.com"
    51  }
    52  
    53  func (d *CellularApiDescriptor) GetVersion() string {
    54  	return "v1"
    55  }
    56  
    57  func (d *CellularApiDescriptor) GetNextVersion() string {
    58  
    59  	return ""
    60  }
    61  
    62  func (d *CellularApiDescriptor) AllResourceDescriptors() []gotenresource.Descriptor {
    63  	return []gotenresource.Descriptor{
    64  		contract.GetDescriptor(),
    65  		sim_card.GetDescriptor(),
    66  		sim_card_stock.GetDescriptor(),
    67  	}
    68  }
    69  
    70  func (d *CellularApiDescriptor) AllApiDescriptors() []gotenclient.ApiDescriptor {
    71  	return []gotenclient.ApiDescriptor{
    72  		contract_client.GetContractServiceDescriptor(),
    73  		sim_card_client.GetSimCardServiceDescriptor(),
    74  		sim_card_stock_client.GetSimCardStockServiceDescriptor(),
    75  	}
    76  }
    77  
    78  func (d *CellularApiDescriptor) AllImportedServiceInfos() []gotenclient.ServiceImportInfo {
    79  	return []gotenclient.ServiceImportInfo{
    80  		{
    81  			Domain:  "iam.edgelq.com",
    82  			Version: "v1",
    83  		},
    84  		{
    85  			Domain:  "meta.goten.com",
    86  			Version: "v1",
    87  		},
    88  		{
    89  			Domain:  "secrets.edgelq.com",
    90  			Version: "v1",
    91  		},
    92  	}
    93  }
    94  
    95  func GetCellularApiDescriptor() *CellularApiDescriptor {
    96  	return cellularApiDescriptor
    97  }
    98  
    99  func initDescriptor() {
   100  	cellularApiDescriptor = &CellularApiDescriptor{}
   101  	gotenclient.GetRegistry().RegisterSvcDescriptor(cellularApiDescriptor)
   102  }
   103  
   104  func init() {
   105  	if !descriptorInitialized {
   106  		initDescriptor()
   107  		descriptorInitialized = true
   108  	}
   109  }