Update dependenciess

Exclude minio-go for now (pin to 3.x.y).
This commit is contained in:
Alexander Neumann 2017-12-03 21:01:25 +01:00
parent 9d0f13c4c0
commit 946c8399e2
2985 changed files with 1008107 additions and 118934 deletions

View file

@ -49,6 +49,9 @@ const basePath = "https://speech.googleapis.com/"
const (
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
// Convert speech to text using Google speech recognition technology
CloudSpeechScope = "https://www.googleapis.com/auth/cloud-speech"
)
func New(client *http.Client) (*Service, error) {
@ -151,8 +154,8 @@ type ListOperationsResponse struct {
}
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListOperationsResponse
raw := noMethod(*s)
type NoMethod ListOperationsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -186,8 +189,8 @@ type LongRunningRecognizeRequest struct {
}
func (s *LongRunningRecognizeRequest) MarshalJSON() ([]byte, error) {
type noMethod LongRunningRecognizeRequest
raw := noMethod(*s)
type NoMethod LongRunningRecognizeRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -261,8 +264,8 @@ type Operation struct {
}
func (s *Operation) MarshalJSON() ([]byte, error) {
type noMethod Operation
raw := noMethod(*s)
type NoMethod Operation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -310,8 +313,8 @@ type RecognitionAudio struct {
}
func (s *RecognitionAudio) MarshalJSON() ([]byte, error) {
type noMethod RecognitionAudio
raw := noMethod(*s)
type NoMethod RecognitionAudio
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -444,8 +447,8 @@ type RecognitionConfig struct {
}
func (s *RecognitionConfig) MarshalJSON() ([]byte, error) {
type noMethod RecognitionConfig
raw := noMethod(*s)
type NoMethod RecognitionConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -478,8 +481,8 @@ type RecognizeRequest struct {
}
func (s *RecognizeRequest) MarshalJSON() ([]byte, error) {
type noMethod RecognizeRequest
raw := noMethod(*s)
type NoMethod RecognizeRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -516,8 +519,8 @@ type RecognizeResponse struct {
}
func (s *RecognizeResponse) MarshalJSON() ([]byte, error) {
type noMethod RecognizeResponse
raw := noMethod(*s)
type NoMethod RecognizeResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -556,8 +559,8 @@ type SpeechContext struct {
}
func (s *SpeechContext) MarshalJSON() ([]byte, error) {
type noMethod SpeechContext
raw := noMethod(*s)
type NoMethod SpeechContext
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -605,18 +608,18 @@ type SpeechRecognitionAlternative struct {
}
func (s *SpeechRecognitionAlternative) MarshalJSON() ([]byte, error) {
type noMethod SpeechRecognitionAlternative
raw := noMethod(*s)
type NoMethod SpeechRecognitionAlternative
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *SpeechRecognitionAlternative) UnmarshalJSON(data []byte) error {
type noMethod SpeechRecognitionAlternative
type NoMethod SpeechRecognitionAlternative
var s1 struct {
Confidence gensupport.JSONFloat64 `json:"confidence"`
*noMethod
*NoMethod
}
s1.noMethod = (*noMethod)(s)
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
@ -660,8 +663,8 @@ type SpeechRecognitionResult struct {
}
func (s *SpeechRecognitionResult) MarshalJSON() ([]byte, error) {
type noMethod SpeechRecognitionResult
raw := noMethod(*s)
type NoMethod SpeechRecognitionResult
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -779,8 +782,8 @@ type Status struct {
}
func (s *Status) MarshalJSON() ([]byte, error) {
type noMethod Status
raw := noMethod(*s)
type NoMethod Status
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -832,8 +835,8 @@ type WordInfo struct {
}
func (s *WordInfo) MarshalJSON() ([]byte, error) {
type noMethod WordInfo
raw := noMethod(*s)
type NoMethod WordInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -954,7 +957,7 @@ func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -983,7 +986,8 @@ func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
// "$ref": "Empty"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/cloud-speech"
// ]
// }
@ -1088,7 +1092,7 @@ func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -1114,7 +1118,8 @@ func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
// "$ref": "Empty"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/cloud-speech"
// ]
// }
@ -1231,7 +1236,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -1257,7 +1262,8 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/cloud-speech"
// ]
// }
@ -1409,7 +1415,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -1447,7 +1453,8 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe
// "$ref": "ListOperationsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/cloud-speech"
// ]
// }
@ -1574,7 +1581,7 @@ func (c *SpeechLongrunningrecognizeCall) Do(opts ...googleapi.CallOption) (*Oper
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -1593,7 +1600,8 @@ func (c *SpeechLongrunningrecognizeCall) Do(opts ...googleapi.CallOption) (*Oper
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/cloud-speech"
// ]
// }
@ -1696,7 +1704,7 @@ func (c *SpeechRecognizeCall) Do(opts ...googleapi.CallOption) (*RecognizeRespon
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -1715,7 +1723,8 @@ func (c *SpeechRecognizeCall) Do(opts ...googleapi.CallOption) (*RecognizeRespon
// "$ref": "RecognizeResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/cloud-speech"
// ]
// }