Comments (5)
How about replacing the "..." for dataset with "'dataset-id' and "myKind" in the kind part?
I don't think that putting the code after the imports in a static method is the right thing to do (even though
that can make it a more "compilable code") for the following:
- It is not likely that the method would be used as is.
- adding unnecessary lines of code, just a distraction which would require another level of indentation.
- Can't be used as is. Still need to be put in a class appropriately and I think it would be clear to an Java developer that it should also be put in some method when as-is.
In any case, I don't feel strongly about it. Let me know what you think...
from google-cloud-java.
@ludoch So, I think we do that now for datastore, is that what you were thinking of?
We need one for storage as well. Maybe something similar to the package-info.
Also, once @mziccard thinks we are ready we should probably update the main readme.
from google-cloud-java.
@aozarov I was wondering whether we should use the Storage
interface or the functional Blob
and Bucket
ones in the examples (in the readme, package-info and StorageExample
).
I think using Blob
and Bucket
makes more sense for a simple usage example.
from google-cloud-java.
I think using Blob and Bucket makes more sense for a simple usage example.
Agree.
from google-cloud-java.
Same snippet is now available in each module package-info as well as its README.md
from google-cloud-java.
Related Issues (20)
- google-cloud-compute: ImagesClient does not terminate, and hangs instead HOT 8
- New client library generation creates a commit without proper author email
- CHANGELOG.md is not generated for java-vertexai module HOT 1
- emoji error HOT 2
- Warning: a recent release failed
- Authentication error when using a regional endpoint HOT 12
- Remove `codecov.yaml` and `synth.metadata` in java modules
- [attachDiskAsync]: Attach disk does not work unless "iam.serviceAccounts.actAs" permission is set HOT 13
- The CI status link in README.md is broken
- Nightly IT Failure (java-talent): Tenant Already Exists error. HOT 1
- Nightly IT Failure (graalvm-nightly-17): Terraform cleanup error
- IT Nightly (graalvm): Missing jar-file for com.google.api.grpc:grpc-google-cloud-gkehub-v1alpha2 HOT 1
- IT failure: ITPaginationTest.testPaginationNextToken
- Generate signed URLs when using workload identity in Java HOT 3
- IT failure: aiplatform/v1/JobServiceGrpc incompatible types
- [language]: exception while trying to create LanguageServiceClient instance HOT 2
- Use a single unique java library to call the vertex AI API HOT 1
- [Dialogflow] Flaky test - ITSystemTest.detectIntentTest, ITSystemTest:listContextsTest HOT 1
- `com.google.cloud.aiplatform.v1beta1.PredictionServiceClient#countTokens` promotion from v1beta1 to v1 HOT 1
- Google cloud error reporting - INVALID_ARGUMENT: Reported Error too large HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-cloud-java.