コード例 #1
0
def test_operation_polling_method():
    T = descriptor_pb2.FieldDescriptorProto.Type

    operation = make_message(
        name="Operation",
        fields=[
            make_field(name=name, type=T.Value("TYPE_STRING"), number=i)
            for i, name in enumerate(
                ("name", "status", "error_code", "error_message"), start=1)
        ],
    )
    for f in operation.fields.values():
        options = descriptor_pb2.FieldOptions()
        # Note: The field numbers were carefully chosen to be the corresponding enum values.
        options.Extensions[ex_ops_pb2.operation_field] = f.number
        f.options.MergeFrom(options)

    request = make_message(
        name="GetOperation",
        fields=[
            make_field(name="name", type=T.Value("TYPE_STRING"), number=1)
        ],
    )

    options = descriptor_pb2.MethodOptions()
    options.Extensions[ex_ops_pb2.operation_polling_method] = True
    polling_method = make_method(
        name="Get",
        input_message=request,
        output_message=operation,
        options=options,
    )

    # Even though polling_method returns an Operation, it isn't an LRO
    ops_service = make_service(
        name="CustomOperations",
        methods=[
            polling_method,
            make_method(
                name="Delete",
                input_message=make_message(name="Input"),
                output_message=make_message("Output"),
            ),
        ],
    )

    assert ops_service.operation_polling_method == polling_method

    # Methods are LROs, so they are not polling methods
    user_service = make_service(
        name="ComputationStarter",
        methods=[
            make_method(
                name="Start",
                input_message=make_message(name="StartRequest"),
                output_message=operation,
            ),
        ],
    )

    assert not user_service.operation_polling_method
コード例 #2
0
            name='cancelUpdateInstallation',
            full_name='Devialet.Fresh.Update.cancelUpdateInstallation',
            index=3,
            containing_service=None,
            input_type=CallMeMaybe_dot_CommonMessages__pb2._EMPTY,
            output_type=CallMeMaybe_dot_CommonMessages__pb2._EMPTY,
            options=None,
        ),
        _descriptor.MethodDescriptor(
            name='updateDownloadProgress',
            full_name='Devialet.Fresh.Update.updateDownloadProgress',
            index=4,
            containing_service=None,
            input_type=_UPDATEDOWNLOADPROGRESS,
            output_type=CallMeMaybe_dot_CommonMessages__pb2._EMPTY,
            options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(),
                                              _b('\222M\002\010\001')),
        ),
        _descriptor.MethodDescriptor(
            name='updateDownloadFailed',
            full_name='Devialet.Fresh.Update.updateDownloadFailed',
            index=5,
            containing_service=None,
            input_type=CallMeMaybe_dot_CommonMessages__pb2._EMPTY,
            output_type=CallMeMaybe_dot_CommonMessages__pb2._EMPTY,
            options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(),
                                              _b('\222M\002\010\001')),
        ),
    ])

Update = service_reflection.GeneratedServiceType(
コード例 #3
0
 index=0,
 options=_descriptor._ParseOptions(
     descriptor_pb2.ServiceOptions(),
     _b('\202\265\030)A service for accessing Steam player data')),
 serialized_start=1066,
 serialized_end=1710,
 methods=[
     _descriptor.MethodDescriptor(
         name='GetGameBadgeLevels',
         full_name='Player.GetGameBadgeLevels',
         index=0,
         containing_service=None,
         input_type=_CPLAYER_GETGAMEBADGELEVELS_REQUEST,
         output_type=_CPLAYER_GETGAMEBADGELEVELS_RESPONSE,
         options=_descriptor._ParseOptions(
             descriptor_pb2.MethodOptions(),
             _b('\202\265\030QReturns the Steam Level of a user, the Badge level for the game, and if it\'s foil'
                )),
     ),
     _descriptor.MethodDescriptor(
         name='ClientGetLastPlayedTimes',
         full_name='Player.ClientGetLastPlayedTimes',
         index=1,
         containing_service=None,
         input_type=_CPLAYER_GETLASTPLAYEDTIMES_REQUEST,
         output_type=_CPLAYER_GETLASTPLAYEDTIMES_RESPONSE,
         options=_descriptor._ParseOptions(
             descriptor_pb2.MethodOptions(),
             _b('\202\265\030*Gets the last-played times for the account')),
     ),
     _descriptor.MethodDescriptor(
コード例 #4
0
  name='BiddingStrategyService',
  full_name='google.ads.googleads.v0.services.BiddingStrategyService',
  file=DESCRIPTOR,
  index=0,
  options=None,
  serialized_start=842,
  serialized_end=1291,
  methods=[
  _descriptor.MethodDescriptor(
    name='GetBiddingStrategy',
    full_name='google.ads.googleads.v0.services.BiddingStrategyService.GetBiddingStrategy',
    index=0,
    containing_service=None,
    input_type=_GETBIDDINGSTRATEGYREQUEST,
    output_type=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_bidding__strategy__pb2._BIDDINGSTRATEGY,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0025\0223/v0/{resource_name=customers/*/biddingStrategies/*}')),
  ),
  _descriptor.MethodDescriptor(
    name='MutateBiddingStrategies',
    full_name='google.ads.googleads.v0.services.BiddingStrategyService.MutateBiddingStrategies',
    index=1,
    containing_service=None,
    input_type=_MUTATEBIDDINGSTRATEGIESREQUEST,
    output_type=_MUTATEBIDDINGSTRATEGIESRESPONSE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002;\"6/v0/customers/{customer_id=*}/biddingStrategies:mutate:\001*')),
  ),
])
_sym_db.RegisterServiceDescriptor(_BIDDINGSTRATEGYSERVICE)

DESCRIPTOR.services_by_name['BiddingStrategyService'] = _BIDDINGSTRATEGYSERVICE
コード例 #5
0
 name='UptimeCheckService',
 full_name='google.monitoring.v3.UptimeCheckService',
 file=DESCRIPTOR,
 index=0,
 options=None,
 serialized_start=992,
 serialized_end=2087,
 methods=[
 _descriptor.MethodDescriptor(
   name='ListUptimeCheckConfigs',
   full_name='google.monitoring.v3.UptimeCheckService.ListUptimeCheckConfigs',
   index=0,
   containing_service=None,
   input_type=_LISTUPTIMECHECKCONFIGSREQUEST,
   output_type=_LISTUPTIMECHECKCONFIGSRESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\022*/v3/{parent=projects/*}/uptimeCheckConfigs')),
 ),
 _descriptor.MethodDescriptor(
   name='GetUptimeCheckConfig',
   full_name='google.monitoring.v3.UptimeCheckService.GetUptimeCheckConfig',
   index=1,
   containing_service=None,
   input_type=_GETUPTIMECHECKCONFIGREQUEST,
   output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\022*/v3/{name=projects/*/uptimeCheckConfigs/*}')),
 ),
 _descriptor.MethodDescriptor(
   name='CreateUptimeCheckConfig',
   full_name='google.monitoring.v3.UptimeCheckService.CreateUptimeCheckConfig',
   index=2,
   containing_service=None,
コード例 #6
0
 name='ErrorStatsService',
 full_name='google.devtools.clouderrorreporting.v1beta1.ErrorStatsService',
 file=DESCRIPTOR,
 index=0,
 options=None,
 serialized_start=2743,
 serialized_end=3369,
 methods=[
 _descriptor.MethodDescriptor(
   name='ListGroupStats',
   full_name='google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats',
   index=0,
   containing_service=None,
   input_type=_LISTGROUPSTATSREQUEST,
   output_type=_LISTGROUPSTATSRESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1beta1/{project_name=projects/*}/groupStats')),
 ),
 _descriptor.MethodDescriptor(
   name='ListEvents',
   full_name='google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListEvents',
   index=1,
   containing_service=None,
   input_type=_LISTEVENTSREQUEST,
   output_type=_LISTEVENTSRESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002+\022)/v1beta1/{project_name=projects/*}/events')),
 ),
 _descriptor.MethodDescriptor(
   name='DeleteEvents',
   full_name='google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.DeleteEvents',
   index=2,
   containing_service=None,
コード例 #7
0
 name='MetricService',
 full_name='google.monitoring.v3.MetricService',
 file=DESCRIPTOR,
 index=0,
 options=None,
 serialized_start=1775,
 serialized_end=3172,
 methods=[
 _descriptor.MethodDescriptor(
   name='ListMonitoredResourceDescriptors',
   full_name='google.monitoring.v3.MetricService.ListMonitoredResourceDescriptors',
   index=0,
   containing_service=None,
   input_type=_LISTMONITOREDRESOURCEDESCRIPTORSREQUEST,
   output_type=_LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0024\0222/v3/{name=projects/*}/monitoredResourceDescriptors')),
 ),
 _descriptor.MethodDescriptor(
   name='GetMonitoredResourceDescriptor',
   full_name='google.monitoring.v3.MetricService.GetMonitoredResourceDescriptor',
   index=1,
   containing_service=None,
   input_type=_GETMONITOREDRESOURCEDESCRIPTORREQUEST,
   output_type=google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEDESCRIPTOR,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0026\0224/v3/{name=projects/*/monitoredResourceDescriptors/*}')),
 ),
 _descriptor.MethodDescriptor(
   name='ListMetricDescriptors',
   full_name='google.monitoring.v3.MetricService.ListMetricDescriptors',
   index=2,
   containing_service=None,
コード例 #8
0
  name='Econ',
  full_name='Econ',
  file=DESCRIPTOR,
  index=0,
  options=_descriptor._ParseOptions(descriptor_pb2.ServiceOptions(), b'\202\265\030;A service that provides communication with the econ servers'),
  serialized_start=195,
  serialized_end=486,
  methods=[
  _descriptor.MethodDescriptor(
    name='ClientGetItemShopOverlayAuthURL',
    full_name='Econ.ClientGetItemShopOverlayAuthURL',
    index=0,
    containing_service=None,
    input_type=_CECON_CLIENTGETITEMSHOPOVERLAYAUTHURL_REQUEST,
    output_type=_CECON_CLIENTGETITEMSHOPOVERLAYAUTHURL_RESPONSE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), b'\202\265\030QGenerates a URL which sets a secure cookie for in-game-browser itemshop purchases'),
  ),
])

Econ = service_reflection.GeneratedServiceType('Econ', (_service.Service,), dict(
  DESCRIPTOR = _ECON,
  __module__ = 'steammessages_econ_pb2'
  ))

Econ_Stub = service_reflection.GeneratedServiceStubType('Econ_Stub', (Econ,), dict(
  DESCRIPTOR = _ECON,
  __module__ = 'steammessages_econ_pb2'
  ))


# @@protoc_insertion_point(module_scope)
コード例 #9
0
  name='ProfilerService',
  full_name='google.devtools.cloudprofiler.v2.ProfilerService',
  file=DESCRIPTOR,
  index=0,
  options=None,
  serialized_start=1107,
  serialized_end=1475,
  methods=[
  _descriptor.MethodDescriptor(
    name='CreateProfile',
    full_name='google.devtools.cloudprofiler.v2.ProfilerService.CreateProfile',
    index=0,
    containing_service=None,
    input_type=_CREATEPROFILEREQUEST,
    output_type=_PROFILE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0022\"-/v2/projects/{deployment.project_id}/profiles:\001*')),
  ),
  _descriptor.MethodDescriptor(
    name='UpdateProfile',
    full_name='google.devtools.cloudprofiler.v2.ProfilerService.UpdateProfile',
    index=1,
    containing_service=None,
    input_type=_UPDATEPROFILEREQUEST,
    output_type=_PROFILE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\00232(/v2/{profile.name=projects/*/profiles/*}:\007profile')),
  ),
])
_sym_db.RegisterServiceDescriptor(_PROFILERSERVICE)

DESCRIPTOR.services_by_name['ProfilerService'] = _PROFILERSERVICE
コード例 #10
0
  name='Secrets',
  full_name='Secrets',
  file=DESCRIPTOR,
  index=0,
  options=_descriptor._ParseOptions(descriptor_pb2.ServiceOptions(), _b('\202\265\0306Service for accessing credentials and guarding secrets')),
  serialized_start=601,
  serialized_end=801,
  methods=[
  _descriptor.MethodDescriptor(
    name='KeyEscrow',
    full_name='Secrets.KeyEscrow',
    index=0,
    containing_service=None,
    input_type=_CKEYESCROW_REQUEST,
    output_type=_CKEYESCROW_RESPONSE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\265\030DService to perform authenticated key-exchange involving Steam Client')),
  ),
])

Secrets = service_reflection.GeneratedServiceType('Secrets', (_service.Service,), dict(
  DESCRIPTOR = _SECRETS,
  __module__ = 'steammessages_secrets_pb2'
  ))

Secrets_Stub = service_reflection.GeneratedServiceStubType('Secrets_Stub', (Secrets,), dict(
  DESCRIPTOR = _SECRETS,
  __module__ = 'steammessages_secrets_pb2'
  ))


# @@protoc_insertion_point(module_scope)
コード例 #11
0
_sym_db.RegisterMessage(Message)


DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z\005hello'))

_HELLOSERVICE = _descriptor.ServiceDescriptor(
  name='HelloService',
  full_name='hello.HelloService',
  file=DESCRIPTOR,
  index=0,
  options=None,
  serialized_start=93,
  serialized_end=186,
  methods=[
  _descriptor.MethodDescriptor(
    name='Hello',
    full_name='hello.HelloService.Hello',
    index=0,
    containing_service=None,
    input_type=_MESSAGE,
    output_type=_MESSAGE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\036\"\034/v1/example/hello/{id}/{msg}')),
  ),
])
_sym_db.RegisterServiceDescriptor(_HELLOSERVICE)

DESCRIPTOR.services_by_name['HelloService'] = _HELLOSERVICE

# @@protoc_insertion_point(module_scope)
コード例 #12
0
  name='Integrations',
  full_name='dialog.Integrations',
  file=DESCRIPTOR,
  index=0,
  options=None,
  serialized_start=458,
  serialized_end=777,
  methods=[
  _descriptor.MethodDescriptor(
    name='GetIntegrationToken',
    full_name='dialog.Integrations.GetIntegrationToken',
    index=0,
    containing_service=None,
    input_type=_REQUESTGETINTEGRATIONTOKEN,
    output_type=_RESPONSEINTEGRATIONTOKEN,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.\")/v1/grpc/Integrations/GetIntegrationToken:\001*')),
  ),
  _descriptor.MethodDescriptor(
    name='RevokeIntegrationToken',
    full_name='dialog.Integrations.RevokeIntegrationToken',
    index=1,
    containing_service=None,
    input_type=_REQUESTREVOKEINTEGRATIONTOKEN,
    output_type=_RESPONSEINTEGRATIONTOKEN,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021\",/v1/grpc/Integrations/RevokeIntegrationToken:\001*')),
  ),
])
_sym_db.RegisterServiceDescriptor(_INTEGRATIONS)

DESCRIPTOR.services_by_name['Integrations'] = _INTEGRATIONS
コード例 #13
0
 name='TypingAndOnline',
 full_name='dialog.TypingAndOnline',
 file=DESCRIPTOR,
 index=0,
 options=None,
 serialized_start=2078,
 serialized_end=2691,
 methods=[
 _descriptor.MethodDescriptor(
   name='Typing',
   full_name='dialog.TypingAndOnline.Typing',
   index=0,
   containing_service=None,
   input_type=_REQUESTTYPING,
   output_type=miscellaneous__pb2._RESPONSEVOID,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002$\"\037/v1/grpc/TypingAndOnline/Typing:\001*')),
 ),
 _descriptor.MethodDescriptor(
   name='StopTyping',
   full_name='dialog.TypingAndOnline.StopTyping',
   index=1,
   containing_service=None,
   input_type=_REQUESTSTOPTYPING,
   output_type=miscellaneous__pb2._RESPONSEVOID,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002(\"#/v1/grpc/TypingAndOnline/StopTyping:\001*')),
 ),
 _descriptor.MethodDescriptor(
   name='SetOnline',
   full_name='dialog.TypingAndOnline.SetOnline',
   index=2,
   containing_service=None,
コード例 #14
0
def test_extended_operations_lro_detection():
    T = descriptor_pb2.FieldDescriptorProto.Type

    operation = make_message(
        name="Operation",
        fields=[
            make_field(name=name, type=T.Value("TYPE_STRING"), number=i)
            for i, name in enumerate(
                ("name", "status", "error_code", "error_message"), start=1)
        ],
    )
    for f in operation.fields.values():
        options = descriptor_pb2.FieldOptions()
        # Note: The field numbers were carefully chosen to be the corresponding enum values.
        options.Extensions[ex_ops_pb2.operation_field] = f.number
        f.options.MergeFrom(options)

    request = make_message(
        name="GetOperation",
        fields=[
            make_field(name="name", type=T.Value("TYPE_STRING"), number=1)
        ],
    )

    options = descriptor_pb2.MethodOptions()
    options.Extensions[ex_ops_pb2.operation_polling_method] = True
    polling_method = make_method(
        name="Get",
        input_message=request,
        output_message=operation,
        options=options,
    )

    ops_service = make_service(
        name="CustomOperations",
        methods=[
            polling_method,
            make_method(
                name="Delete",
                input_message=make_message(name="Input"),
                output_message=make_message("Output"),
            ),
        ],
    )

    assert not ops_service.has_extended_lro
    assert not ops_service.any_extended_operations_methods
    assert not polling_method.operation_service

    # Methods are LROs, so they are not polling methods
    lro_opts = descriptor_pb2.MethodOptions()
    lro_opts.Extensions[ex_ops_pb2.operation_service] = "CustomOperations"
    lro = make_method(
        name="Start",
        input_message=make_message(name="StartRequest"),
        output_message=operation,
        options=lro_opts,
    )
    user_service = make_service(
        name="ComputationStarter",
        methods=[
            lro,
        ],
    )

    assert user_service.any_extended_operations_methods
    # Note: we can't have the operation_serivce property point to the actual operation service
    # because Service objects can't perform the lookup.
    # Instead we kick that can to the API object and make it do the lookup and verification.
    assert lro.operation_service == "CustomOperations"
コード例 #15
0
  name='SiteManagerClient',
  full_name='SiteManagerClient',
  file=DESCRIPTOR,
  index=0,
  options=_descriptor._ParseOptions(descriptor_pb2.ServiceOptions(), _b('\202\265\030!Local site manager client service\300\265\030\002')),
  serialized_start=1157,
  serialized_end=1547,
  methods=[
  _descriptor.MethodDescriptor(
    name='IncomingClient',
    full_name='SiteManagerClient.IncomingClient',
    index=0,
    containing_service=None,
    input_type=_CSITEMANAGERCLIENT_INCOMINGCLIENT_REQUEST,
    output_type=_CSITEMANAGERCLIENT_INCOMINGCLIENT_RESPONSE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\265\030@Rack informing site manager of new inbound client PSK connection')),
  ),
  _descriptor.MethodDescriptor(
    name='ClientSeatCheckoutNotification',
    full_name='SiteManagerClient.ClientSeatCheckoutNotification',
    index=1,
    containing_service=None,
    input_type=_CSITELICENSE_CLIENTSEATCHECKOUT_NOTIFICATION,
    output_type=steammessages__unified__base__pb2._NORESPONSE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\265\0301Notify client directly about seat checkout result')),
  ),
])

SiteManagerClient = service_reflection.GeneratedServiceType('SiteManagerClient', (_service.Service,), dict(
  DESCRIPTOR = _SITEMANAGERCLIENT,
  __module__ = 'steammessages_site_license_pb2'
コード例 #16
0
  name='SharedSetService',
  full_name='google.ads.googleads.v0.services.SharedSetService',
  file=DESCRIPTOR,
  index=0,
  options=None,
  serialized_start=773,
  serialized_end=1163,
  methods=[
  _descriptor.MethodDescriptor(
    name='GetSharedSet',
    full_name='google.ads.googleads.v0.services.SharedSetService.GetSharedSet',
    index=0,
    containing_service=None,
    input_type=_GETSHAREDSETREQUEST,
    output_type=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_shared__set__pb2._SHAREDSET,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.\022,/v0/{resource_name=customers/*/sharedSets/*}')),
  ),
  _descriptor.MethodDescriptor(
    name='MutateSharedSets',
    full_name='google.ads.googleads.v0.services.SharedSetService.MutateSharedSets',
    index=1,
    containing_service=None,
    input_type=_MUTATESHAREDSETSREQUEST,
    output_type=_MUTATESHAREDSETSRESPONSE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0024\"//v0/customers/{customer_id=*}/sharedSets:mutate:\001*')),
  ),
])
_sym_db.RegisterServiceDescriptor(_SHAREDSETSERVICE)

DESCRIPTOR.services_by_name['SharedSetService'] = _SHAREDSETSERVICE
コード例 #17
0
    name='SetLeaves',
    full_name='trillian.TrillianMap.SetLeaves',
    index=2,
    containing_service=None,
    input_type=_SETMAPLEAVESREQUEST,
    output_type=_SETMAPLEAVESRESPONSE,
    options=None,
  ),
  _descriptor.MethodDescriptor(
    name='GetSignedMapRoot',
    full_name='trillian.TrillianMap.GetSignedMapRoot',
    index=3,
    containing_service=None,
    input_type=_GETSIGNEDMAPROOTREQUEST,
    output_type=_GETSIGNEDMAPROOTRESPONSE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002%\022#/v1beta1/maps/{map_id}/roots:latest')),
  ),
  _descriptor.MethodDescriptor(
    name='GetSignedMapRootByRevision',
    full_name='trillian.TrillianMap.GetSignedMapRootByRevision',
    index=4,
    containing_service=None,
    input_type=_GETSIGNEDMAPROOTBYREVISIONREQUEST,
    output_type=_GETSIGNEDMAPROOTRESPONSE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002)\022\'/v1beta1/maps/{map_id}/roots/{revision}')),
  ),
])
_sym_db.RegisterServiceDescriptor(_TRILLIANMAP)

DESCRIPTOR.services_by_name['TrillianMap'] = _TRILLIANMAP
コード例 #18
0
 name='CloudRedis',
 full_name='google.cloud.redis.v1beta1.CloudRedis',
 file=DESCRIPTOR,
 index=0,
 options=None,
 serialized_start=1823,
 serialized_end=2688,
 methods=[
 _descriptor.MethodDescriptor(
   name='ListInstances',
   full_name='google.cloud.redis.v1beta1.CloudRedis.ListInstances',
   index=0,
   containing_service=None,
   input_type=_LISTINSTANCESREQUEST,
   output_type=_LISTINSTANCESRESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0024\0222/v1beta1/{parent=projects/*/locations/*}/instances')),
 ),
 _descriptor.MethodDescriptor(
   name='GetInstance',
   full_name='google.cloud.redis.v1beta1.CloudRedis.GetInstance',
   index=1,
   containing_service=None,
   input_type=_GETINSTANCEREQUEST,
   output_type=_INSTANCE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0024\0222/v1beta1/{name=projects/*/locations/*/instances/*}')),
 ),
 _descriptor.MethodDescriptor(
   name='CreateInstance',
   full_name='google.cloud.redis.v1beta1.CloudRedis.CreateInstance',
   index=2,
   containing_service=None,
コード例 #19
0
  name='Store',
  full_name='Store',
  file=DESCRIPTOR,
  index=0,
  options=_descriptor._ParseOptions(descriptor_pb2.ServiceOptions(), _b('\202\265\030\037A service to access store data.')),
  serialized_start=302,
  serialized_end=501,
  methods=[
  _descriptor.MethodDescriptor(
    name='GetLocalizedNameForTags',
    full_name='Store.GetLocalizedNameForTags',
    index=0,
    containing_service=None,
    input_type=_CSTORE_GETLOCALIZEDNAMEFORTAGS_REQUEST,
    output_type=_CSTORE_GETLOCALIZEDNAMEFORTAGS_RESPONSE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\265\030&Gets tag names in a different language')),
  ),
])

Store = service_reflection.GeneratedServiceType('Store', (_service.Service,), dict(
  DESCRIPTOR = _STORE,
  __module__ = 'steammessages_store_pb2'
  ))

Store_Stub = service_reflection.GeneratedServiceStubType('Store_Stub', (Store,), dict(
  DESCRIPTOR = _STORE,
  __module__ = 'steammessages_store_pb2'
  ))


# @@protoc_insertion_point(module_scope)
コード例 #20
0
  name='TestSteamClient',
  full_name='TestSteamClient',
  file=DESCRIPTOR,
  index=0,
  options=_descriptor._ParseOptions(descriptor_pb2.ServiceOptions(), _b('\300\265\030\002')),
  serialized_start=515,
  serialized_end=774,
  methods=[
  _descriptor.MethodDescriptor(
    name='MessageToClient',
    full_name='TestSteamClient.MessageToClient',
    index=0,
    containing_service=None,
    input_type=_CMSGTEST_MESSAGETOCLIENT_REQUEST,
    output_type=_CMSGTEST_MESSAGETOCLIENT_RESPONSE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\265\030#Some description - MessageToClient.')),
  ),
  _descriptor.MethodDescriptor(
    name='NotifyClient',
    full_name='TestSteamClient.NotifyClient',
    index=1,
    containing_service=None,
    input_type=_CMSGTEST_NOTIFYCLIENT_NOTIFICATION,
    output_type=steammessages__unified__base__pb2._NORESPONSE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\265\030 Some description - NotifyClient.')),
  ),
])

TestSteamClient = service_reflection.GeneratedServiceType('TestSteamClient', (_service.Service,), dict(
  DESCRIPTOR = _TESTSTEAMCLIENT,
  __module__ = 'steammessages_unified_test_pb2'
コード例 #21
0
ファイル: cloud_redis_pb2.py プロジェクト: arthrone/UncleBot
 name='CloudRedis',
 full_name='google.cloud.redis.v1.CloudRedis',
 file=DESCRIPTOR,
 index=0,
 options=None,
 serialized_start=1984,
 serialized_end=2789,
 methods=[
 _descriptor.MethodDescriptor(
   name='ListInstances',
   full_name='google.cloud.redis.v1.CloudRedis.ListInstances',
   index=0,
   containing_service=None,
   input_type=_LISTINSTANCESREQUEST,
   output_type=_LISTINSTANCESRESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/instances')),
 ),
 _descriptor.MethodDescriptor(
   name='GetInstance',
   full_name='google.cloud.redis.v1.CloudRedis.GetInstance',
   index=1,
   containing_service=None,
   input_type=_GETINSTANCEREQUEST,
   output_type=_INSTANCE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002/\022-/v1/{name=projects/*/locations/*/instances/*}')),
 ),
 _descriptor.MethodDescriptor(
   name='CreateInstance',
   full_name='google.cloud.redis.v1.CloudRedis.CreateInstance',
   index=2,
   containing_service=None,
コード例 #22
0
 name='Video',
 full_name='Video',
 file=DESCRIPTOR,
 index=0,
 options=_descriptor._ParseOptions(descriptor_pb2.ServiceOptions(), _b('\202\265\030\rVideo methods')),
 serialized_start=1686,
 serialized_end=2251,
 methods=[
 _descriptor.MethodDescriptor(
   name='ClientGetVideoURL',
   full_name='Video.ClientGetVideoURL',
   index=0,
   containing_service=None,
   input_type=_CVIDEO_CLIENTGETVIDEOURL_REQUEST,
   output_type=_CVIDEO_CLIENTGETVIDEOURL_RESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\265\030.Get the initial URL to begin streaming a video')),
 ),
 _descriptor.MethodDescriptor(
   name='SetVideoBookmark',
   full_name='Video.SetVideoBookmark',
   index=1,
   containing_service=None,
   input_type=_CVIDEO_SETVIDEOBOOKMARK_NOTIFICATION,
   output_type=steammessages__unified__base__pb2._NORESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\265\030uBookmarks the locations in the video the user has reached. As as record playback settings per video. Fire and forget.')),
 ),
 _descriptor.MethodDescriptor(
   name='GetVideoBookmarks',
   full_name='Video.GetVideoBookmarks',
   index=2,
   containing_service=None,
コード例 #23
0
 name='BigtableTableService',
 full_name='google.bigtable.admin.table.v1.BigtableTableService',
 file=DESCRIPTOR,
 index=0,
 options=None,
 serialized_start=283,
 serialized_end=1881,
 methods=[
 _descriptor.MethodDescriptor(
   name='CreateTable',
   full_name='google.bigtable.admin.table.v1.BigtableTableService.CreateTable',
   index=0,
   containing_service=None,
   input_type=google_dot_bigtable_dot_admin_dot_table_dot_v1_dot_bigtable__table__service__messages__pb2._CREATETABLEREQUEST,
   output_type=google_dot_bigtable_dot_admin_dot_table_dot_v1_dot_bigtable__table__data__pb2._TABLE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0024\"//v1/{name=projects/*/zones/*/clusters/*}/tables:\001*')),
 ),
 _descriptor.MethodDescriptor(
   name='ListTables',
   full_name='google.bigtable.admin.table.v1.BigtableTableService.ListTables',
   index=1,
   containing_service=None,
   input_type=google_dot_bigtable_dot_admin_dot_table_dot_v1_dot_bigtable__table__service__messages__pb2._LISTTABLESREQUEST,
   output_type=google_dot_bigtable_dot_admin_dot_table_dot_v1_dot_bigtable__table__service__messages__pb2._LISTTABLESRESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021\022//v1/{name=projects/*/zones/*/clusters/*}/tables')),
 ),
 _descriptor.MethodDescriptor(
   name='GetTable',
   full_name='google.bigtable.admin.table.v1.BigtableTableService.GetTable',
   index=2,
   containing_service=None,
コード例 #24
0
 name='KeywordPlanService',
 full_name='google.ads.googleads.v0.services.KeywordPlanService',
 file=DESCRIPTOR,
 index=0,
 options=None,
 serialized_start=2395,
 serialized_end=3297,
 methods=[
 _descriptor.MethodDescriptor(
   name='GetKeywordPlan',
   full_name='google.ads.googleads.v0.services.KeywordPlanService.GetKeywordPlan',
   index=0,
   containing_service=None,
   input_type=_GETKEYWORDPLANREQUEST,
   output_type=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_keyword__plan__pb2._KEYWORDPLAN,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0020\022./v0/{resource_name=customers/*/keywordPlans/*}')),
 ),
 _descriptor.MethodDescriptor(
   name='MutateKeywordPlans',
   full_name='google.ads.googleads.v0.services.KeywordPlanService.MutateKeywordPlans',
   index=1,
   containing_service=None,
   input_type=_MUTATEKEYWORDPLANSREQUEST,
   output_type=_MUTATEKEYWORDPLANSRESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0026\"1/v0/customers/{customer_id=*}/keywordPlans:mutate:\001*')),
 ),
 _descriptor.MethodDescriptor(
   name='GenerateForecastMetrics',
   full_name='google.ads.googleads.v0.services.KeywordPlanService.GenerateForecastMetrics',
   index=2,
   containing_service=None,
コード例 #25
0
    name='StreamEndpoints',
    full_name='envoy.api.v2.EndpointDiscoveryService.StreamEndpoints',
    index=0,
    containing_service=None,
    input_type=envoy_dot_api_dot_v2_dot_discovery__pb2._DISCOVERYREQUEST,
    output_type=envoy_dot_api_dot_v2_dot_discovery__pb2._DISCOVERYRESPONSE,
    options=None,
  ),
  _descriptor.MethodDescriptor(
    name='FetchEndpoints',
    full_name='envoy.api.v2.EndpointDiscoveryService.FetchEndpoints',
    index=1,
    containing_service=None,
    input_type=envoy_dot_api_dot_v2_dot_discovery__pb2._DISCOVERYREQUEST,
    output_type=envoy_dot_api_dot_v2_dot_discovery__pb2._DISCOVERYRESPONSE,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\034\"\027/v2/discovery:endpoints:\001*')),
  ),
])
_sym_db.RegisterServiceDescriptor(_ENDPOINTDISCOVERYSERVICE)

DESCRIPTOR.services_by_name['EndpointDiscoveryService'] = _ENDPOINTDISCOVERYSERVICE

try:
  # THESE ELEMENTS WILL BE DEPRECATED.
  # Please use the generated *_pb2_grpc.py files instead.
  import grpc
  from grpc.beta import implementations as beta_implementations
  from grpc.beta import interfaces as beta_interfaces
  from grpc.framework.common import cardinality
  from grpc.framework.interfaces.face import utilities as face_utilities
コード例 #26
0
 name='Player',
 full_name='Player',
 file=DESCRIPTOR,
 index=0,
 options=_descriptor._ParseOptions(descriptor_pb2.ServiceOptions(), _b('\202\265\030)A service for accessing Steam player data')),
 serialized_start=787,
 serialized_end=1280,
 methods=[
 _descriptor.MethodDescriptor(
   name='GetGameBadgeLevels',
   full_name='Player.GetGameBadgeLevels',
   index=0,
   containing_service=None,
   input_type=_CPLAYER_GETGAMEBADGELEVELS_REQUEST,
   output_type=_CPLAYER_GETGAMEBADGELEVELS_RESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\265\030QReturns the Steam Level of a user, the Badge level for the game, and if it\'s foil')),
 ),
 _descriptor.MethodDescriptor(
   name='ClientGetLastPlayedTimes',
   full_name='Player.ClientGetLastPlayedTimes',
   index=1,
   containing_service=None,
   input_type=_CPLAYER_GETLASTPLAYEDTIMES_REQUEST,
   output_type=_CPLAYER_GETLASTPLAYEDTIMES_RESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\265\030*Gets the last-played times for the account')),
 ),
 _descriptor.MethodDescriptor(
   name='AcceptSSA',
   full_name='Player.AcceptSSA',
   index=2,
   containing_service=None,
コード例 #27
0
   name='openConnection',
   full_name='Devialet.CallMeMaybe.Connection.openConnection',
   index=0,
   containing_service=None,
   input_type=_CONNECTIONREQUEST,
   output_type=_CONNECTIONREPLY,
   options=None,
 ),
 _descriptor.MethodDescriptor(
   name='ping',
   full_name='Devialet.CallMeMaybe.Connection.ping',
   index=1,
   containing_service=None,
   input_type=CallMeMaybe_dot_CommonMessages__pb2._EMPTY,
   output_type=CallMeMaybe_dot_CommonMessages__pb2._EMPTY,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\222M\002 \000')),
 ),
 _descriptor.MethodDescriptor(
   name='serviceAdded',
   full_name='Devialet.CallMeMaybe.Connection.serviceAdded',
   index=2,
   containing_service=None,
   input_type=_SERVICE,
   output_type=CallMeMaybe_dot_CommonMessages__pb2._EMPTY,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\222M\002\010\001')),
 ),
 _descriptor.MethodDescriptor(
   name='serviceRemoved',
   full_name='Devialet.CallMeMaybe.Connection.serviceRemoved',
   index=3,
   containing_service=None,
コード例 #28
0
 name='Checkin',
 full_name='bloombox.schema.services.checkin.v1beta1.Checkin',
 file=DESCRIPTOR,
 index=0,
 options=None,
 serialized_start=1818,
 serialized_end=2394,
 methods=[
 _descriptor.MethodDescriptor(
   name='Ping',
   full_name='bloombox.schema.services.checkin.v1beta1.Checkin.Ping',
   index=0,
   containing_service=None,
   input_type=_PING_REQUEST,
   output_type=_PING_RESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\027\022\025/checkin/v1beta1/ping')),
 ),
 _descriptor.MethodDescriptor(
   name='Identification',
   full_name='bloombox.schema.services.checkin.v1beta1.Checkin.Identification',
   index=1,
   containing_service=None,
   input_type=_IDCHECKIN_REQUEST,
   output_type=_CHECKINRESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002_\"9/checkin/v1beta1/{scope=partners/*/locations/*}/global:id:\001*Z\037\"\032/checkin/v1beta1/global:id:\001*')),
 ),
 _descriptor.MethodDescriptor(
   name='Card',
   full_name='bloombox.schema.services.checkin.v1beta1.Checkin.Card',
   index=2,
   containing_service=None,
コード例 #29
0
  name='ErrorGroupService',
  full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupService',
  file=DESCRIPTOR,
  index=0,
  options=None,
  serialized_start=340,
  serialized_end=738,
  methods=[
  _descriptor.MethodDescriptor(
    name='GetGroup',
    full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupService.GetGroup',
    index=0,
    containing_service=None,
    input_type=_GETGROUPREQUEST,
    output_type=google_dot_devtools_dot_clouderrorreporting_dot_v1beta1_dot_common__pb2._ERRORGROUP,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002+\022)/v1beta1/{group_name=projects/*/groups/*}')),
  ),
  _descriptor.MethodDescriptor(
    name='UpdateGroup',
    full_name='google.devtools.clouderrorreporting.v1beta1.ErrorGroupService.UpdateGroup',
    index=1,
    containing_service=None,
    input_type=_UPDATEGROUPREQUEST,
    output_type=google_dot_devtools_dot_clouderrorreporting_dot_v1beta1_dot_common__pb2._ERRORGROUP,
    options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0022\032)/v1beta1/{group.name=projects/*/groups/*}:\005group')),
  ),
])
_sym_db.RegisterServiceDescriptor(_ERRORGROUPSERVICE)

DESCRIPTOR.services_by_name['ErrorGroupService'] = _ERRORGROUPSERVICE
コード例 #30
0
 name='LoggingServiceV2',
 full_name='google.logging.v2.LoggingServiceV2',
 file=DESCRIPTOR,
 index=0,
 options=None,
 serialized_start=1474,
 serialized_end=2458,
 methods=[
 _descriptor.MethodDescriptor(
   name='DeleteLog',
   full_name='google.logging.v2.LoggingServiceV2.DeleteLog',
   index=0,
   containing_service=None,
   input_type=_DELETELOGREQUEST,
   output_type=google_dot_protobuf_dot_empty__pb2._EMPTY,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\231\001* /v2/{log_name=projects/*/logs/*}Z\'*%/v2/{log_name=organizations/*/logs/*}Z!*\037/v2/{log_name=folders/*/logs/*}Z)*\'/v2/{log_name=billingAccounts/*/logs/*}')),
 ),
 _descriptor.MethodDescriptor(
   name='WriteLogEntries',
   full_name='google.logging.v2.LoggingServiceV2.WriteLogEntries',
   index=1,
   containing_service=None,
   input_type=_WRITELOGENTRIESREQUEST,
   output_type=_WRITELOGENTRIESRESPONSE,
   options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\026\"\021/v2/entries:write:\001*')),
 ),
 _descriptor.MethodDescriptor(
   name='ListLogEntries',
   full_name='google.logging.v2.LoggingServiceV2.ListLogEntries',
   index=2,
   containing_service=None,