-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Remove JobInfo hierarchy, add JobConfiguration hierarchy #584
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
Conversation
e0a6fec to
84402ac
Compare
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Done withe the review. looks good. Main comment (as discussed verbally) is the suggestion to make JobConfiguration interface an abstract class (and use package scope methods to set or get from pb). |
022ad08 to
d170550
Compare
d170550 to
a2c8b39
Compare
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Looks great! Do you plan to do the same for BaseTableInfo ? BTW, looks like BigQueryException has 2 unused import statements. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@aozarov Yes I plan to do a similar change to table's hierarchy but in a different PR as this is already big enough. |
Remove JobInfo hierarchy, add JobConfiguration hierarchy
…o v2.5.2 (#584) [](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-retail](https://togithub.com/googleapis/java-retail) ([source](https://togithub.com/googleapis/java-)) | `2.5.1` -> `2.5.2` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-retail). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMTkuMSIsInVwZGF0ZWRJblZlciI6IjMyLjIxOS4xIn0=-->
This PR was generated using Autosynth. 🌈 <details><summary>Log from Synthtool</summary> ``` 2021-07-15 14:31:54,255 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-logging/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-15 14:31:55,514 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ``` </details> Full log will be available here: https://source.cloud.google.com/results/invocations/81c91fa3-2a6b-4ed0-853b-380810c54bf3/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
This PR removes
JobInfohierarchy and replaces it with a hierarchy onJobConfiguration. This change is needed to make functionalJobextendJobInfo. Notes:CopyJobConfiguration,ExtractJobConfiguration,LoadJobConfigurationorQueryJobConfiguration) must be provided to create aJobInfoobject.LoadJobConfigurationalso extendsLoadConfigurationwhich is used for resumable uploadsJobConfigurationis an interface with only atype()method since configurations have no common data (this is also required to makeLoadJobConfigurationextendLoadConfiguration).