GoogleCloudPlatform / android-docs-samples

Apache License 2.0
373 stars 594 forks source link

proto/Google #28

Open MrMechis opened 7 years ago

MrMechis commented 7 years ago

Hi!,

Built the example no problem.

Tried to remake it, in my own App, but needed "proto/Google" directory.

Where did this come from?

Thanks!

MrMechis

OneCricketeer commented 7 years ago

This?

https://github.com/GoogleCloudPlatform/android-docs-samples/tree/master/speech/Speech/app/src/main/proto/google

MrMechis commented 7 years ago

Yes, is that defined somewhere as package other than in the sample?

OneCricketeer commented 7 years ago

You need to write your own *.proto files or copy those that are included here when trying to run this app's code externally. Please notice this project is intended as a full sample, and it is using this plugin

https://github.com/google/protobuf-gradle-plugin

MrMechis commented 7 years ago

Yes, I understand this basic point, its not really my question. I had no problem copying it and making it work. But if I can't recreate or know where they come from its difficult if they upgrade for instance "speech/v1". It would be helpful to know where this came from since the package is "package google.cloud.speech.v1;" Does that make sense? Is there a "proto" sample package? Thanks!

OneCricketeer commented 7 years ago

The speech api comes from here

https://godoc.org/google.golang.org/genproto/googleapis/cloud/speech

MrMechis commented 7 years ago

Excellent! Adding your link and this, I found what I was looking for... https://github.com/googleapis/googleapis https://github.com/googleapis/googleapis/tree/master/google/cloud/speech/v1 Thank you very much....