Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pub/Sub PullRequest.maxMessages is mandatory #997

Closed
mziccard opened this issue May 9, 2016 · 3 comments
Closed

Pub/Sub PullRequest.maxMessages is mandatory #997

mziccard opened this issue May 9, 2016 · 3 comments
Assignees
Labels
api: pubsub Issues related to the Pub/Sub API.

Comments

@mziccard
Copy link
Contributor

mziccard commented May 9, 2016

The PullRequest.maxMessages is a mandatory field, if we don't provide it we get this error:

{
 "error": {
  "code": 400,
  "message": "A required argument is missing in the request: (argument=\"max_messages\").",
  "status": "INVALID_ARGUMENT",
 }
}

The PubSub API design we drafted considers maxMessages an optional option, we must either fix this (by transforming it into a mandatory parameter) or use a default value if the user does not explicitly provide it. /cc @eschapira @aozarov thoughts?

@mziccard mziccard added the api: pubsub Issues related to the Pub/Sub API. label May 9, 2016
@eschapira
Copy link

Is this for calling the pull method explicitly or for the callback version?
I would say that for explicit pulls it is required, and for callback there
should be a default (set it to 100, no hard data on why that's a good
value, but sounds reasonable to me).

On Mon, May 9, 2016 at 9:52 AM, Marco Ziccardi [email protected]
wrote:

The PullRequest.maxMessages is a mandatory field, if we don't provide it
we get this error:

{
"error": {
"code": 400,
"message": "A required argument is missing in the request: (argument="max_messages").",
"status": "INVALID_ARGUMENT",
}
}

The PubSub API design we drafted considers maxMessages an optional
option, we must either fix this (by transforming it into a mandatory
parameter) or use a default value if the user does not explicitly provide
it. /cc @eschapira https://github.com/eschapira @aozarov
https://github.com/aozarov thoughts?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#997

Emilio Schapira

@mziccard
Copy link
Contributor Author

mziccard commented May 9, 2016

Yes, this is for calling the pull method explicitly.

For the pull method with callback the idea was to allow the user to limit
the maximum number of concurrent callbacks. 100 sounds like a reasonable
value in this case.
On 9 May 2016 16:01, "eschapira" [email protected] wrote:

Is this for calling the pull method explicitly or for the callback version?
I would say that for explicit pulls it is required, and for callback there
should be a default (set it to 100, no hard data on why that's a good
value, but sounds reasonable to me).

On Mon, May 9, 2016 at 9:52 AM, Marco Ziccardi [email protected]
wrote:

The PullRequest.maxMessages is a mandatory field, if we don't provide it
we get this error:

{
"error": {
"code": 400,
"message": "A required argument is missing in the request:
(argument="max_messages").",
"status": "INVALID_ARGUMENT",
}
}

The PubSub API design we drafted considers maxMessages an optional
option, we must either fix this (by transforming it into a mandatory
parameter) or use a default value if the user does not explicitly provide
it. /cc @eschapira https://github.com/eschapira @aozarov
https://github.com/aozarov thoughts?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#997

Emilio Schapira


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#997 (comment)

@mziccard
Copy link
Contributor Author

Fixed in #996

github-actions bot pushed a commit that referenced this issue Jul 20, 2022
- [ ] Regenerate this pull request now.

feat: add shared_resources for supported prediction_resources

PiperOrigin-RevId: 461971827

Source-Link: googleapis/googleapis@0b24d03

Source-Link: https://github.com/googleapis/googleapis-gen/commit/d3298e7762e2e071cf4850277325bbfeb94ede9b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDMyOThlNzc2MmUyZTA3MWNmNDg1MDI3NzMyNWJiZmViOTRlZGU5YiJ9
github-actions bot pushed a commit that referenced this issue Aug 9, 2022
🤖 I have created a release *beep* *boop*
---


## [3.2.0](googleapis/java-aiplatform@v3.1.0...v3.2.0) (2022-08-09)


### Features

* add a DeploymentResourcePool API resource_definition ([#997](googleapis/java-aiplatform#997)) ([82551d8](googleapis/java-aiplatform@82551d8))
* add DeploymentResourcePool in aiplatform v1beta1 deployment_resource_pool.proto ([#998](googleapis/java-aiplatform#998)) ([76dc64f](googleapis/java-aiplatform@76dc64f))
* add DeploymentResourcePoolService in aiplatform v1beta1 deployment_resource_pool_service.proto ([76dc64f](googleapis/java-aiplatform@76dc64f))
* add shared_resources for supported prediction_resources ([82551d8](googleapis/java-aiplatform@82551d8))
* add SHARED_RESOURCES to DeploymentResourcesType in aiplatform v1beta1 model.proto ([76dc64f](googleapis/java-aiplatform@76dc64f))
* added SHARED_RESOURCES enum to aiplatform v1 model.proto ([301cfb0](googleapis/java-aiplatform@301cfb0))
* DeploymentResourcePool and DeployementResourcePoolService added to aiplatform v1beta1 model.proto (cl/463147866) ([301cfb0](googleapis/java-aiplatform@301cfb0))
* making network arg optional in aiplatform v1 custom_job.proto ([#999](googleapis/java-aiplatform#999)) ([301cfb0](googleapis/java-aiplatform@301cfb0))
* making network arg optional in aiplatform v1beta1 custom_job.proto ([301cfb0](googleapis/java-aiplatform@301cfb0))
* **samples:** add all feature samples ([#980](googleapis/java-aiplatform#980)) ([8c2a485](googleapis/java-aiplatform@8c2a485))
* **samples:** add all feature values samples ([#981](googleapis/java-aiplatform#981)) ([2d4e6fe](googleapis/java-aiplatform@2d4e6fe))


### Bug Fixes

* declaring test-scope artifact as runtime ([#1014](googleapis/java-aiplatform#1014)) ([6c47c65](googleapis/java-aiplatform@6c47c65))


### Documentation

* doc edits to aiplatform v1 dataset_service.proto, job_service.proto, model_service.proto, pipeline_service.proto, saved_query.proto, study.proto, types.proto ([301cfb0](googleapis/java-aiplatform@301cfb0))
* doc edits to aiplatform v1beta1 job_service.proto, model_service.proto, pipeline_service.proto, saved_query.proto, study.proto, types.proto ([301cfb0](googleapis/java-aiplatform@301cfb0))


### Dependencies

* update dependency com.google.api.grpc:proto-google-cloud-aiplatform-v1beta1 to v0.17.0 ([#1003](googleapis/java-aiplatform#1003)) ([b793732](googleapis/java-aiplatform@b793732))
* update dependency com.google.cloud:google-cloud-bigquery to v2.14.1 ([#1006](googleapis/java-aiplatform#1006)) ([6bb8982](googleapis/java-aiplatform@6bb8982))
* update dependency com.google.cloud:google-cloud-bigquery to v2.14.3 ([#1009](googleapis/java-aiplatform#1009)) ([8cca8b5](googleapis/java-aiplatform@8cca8b5))
* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#1000](googleapis/java-aiplatform#1000)) ([c93de30](googleapis/java-aiplatform@c93de30))
* update dependency com.google.cloud:google-cloud-storage to v2.10.0 ([#1004](googleapis/java-aiplatform#1004)) ([dd52cad](googleapis/java-aiplatform@dd52cad))
* update dependency com.google.cloud:google-cloud-storage to v2.11.0 ([#1005](googleapis/java-aiplatform#1005)) ([60e2f76](googleapis/java-aiplatform@60e2f76))
* update dependency com.google.cloud:google-cloud-storage to v2.11.1 ([#1008](googleapis/java-aiplatform#1008)) ([9a2fe64](googleapis/java-aiplatform@9a2fe64))
* update dependency com.google.cloud:google-cloud-storage to v2.11.2 ([#1010](googleapis/java-aiplatform#1010)) ([3c2ac16](googleapis/java-aiplatform@3c2ac16))
* update dependency com.google.code.gson:gson to v2.9.1 ([#1001](googleapis/java-aiplatform#1001)) ([a6ffed4](googleapis/java-aiplatform@a6ffed4))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions bot pushed a commit that referenced this issue Sep 19, 2022
🤖 I have created a release *beep* *boop*
---


## [4.8.2](googleapis/java-dialogflow@v4.8.1...v4.8.2) (2022-09-15)


### Dependencies

* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#996](googleapis/java-dialogflow#996)) ([89801af](googleapis/java-dialogflow@89801af))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#999](googleapis/java-dialogflow#999)) ([4861133](googleapis/java-dialogflow@4861133))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions bot pushed a commit that referenced this issue Oct 5, 2022
suztomo pushed a commit that referenced this issue Feb 1, 2023
🤖 I have created a release *beep* *boop*
---


### Updating meta-information for bleeding-edge SNAPSHOT release.

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API.
Projects
None yet
Development

No branches or pull requests

2 participants