1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-29 22:53:30 +00:00

vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2018-01-16 13:20:59 +00:00
parent 8e83fb6fb9
commit 7d3a17725d
4878 changed files with 1974229 additions and 201215 deletions

View File

@@ -151,8 +151,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 +186,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 +261,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 +310,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)
}
@@ -332,8 +332,7 @@ type RecognitionConfig struct {
// `RecognitionAudio` messages.
//
// Possible values:
// "ENCODING_UNSPECIFIED" - Not specified. Will return result
// google.rpc.Code.INVALID_ARGUMENT.
// "ENCODING_UNSPECIFIED" - Not specified.
// "LINEAR16" - Uncompressed 16-bit signed little-endian samples
// (Linear PCM).
// "FLAC" - [`FLAC`](https://xiph.org/flac/documentation.html) (Free
@@ -444,8 +443,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 +477,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 +515,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 +555,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)
}
@@ -572,8 +571,9 @@ type SpeechRecognitionAlternative struct {
// hypothesis, and
// only for `is_final=true` results. Clients should not rely on
// the
// `confidence` field as it is not guaranteed to be accurate or
// consistent.
// `confidence` field as it is not guaranteed to be accurate, or even
// set, in
// any of the results.
// The default of 0.0 is a sentinel value indicating `confidence` was
// not set.
Confidence float64 `json:"confidence,omitempty"`
@@ -604,18 +604,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
}
@@ -634,6 +634,13 @@ type SpeechRecognitionResult struct {
// alternative being the most probable, as ranked by the recognizer.
Alternatives []*SpeechRecognitionAlternative `json:"alternatives,omitempty"`
// ChannelTag: For multi-channel audio, this is the channel number
// corresponding to the
// recognized result for the audio from that channel.
// For audio_channel_count = N, its output values can range from '0' to
// 'N-1'.
ChannelTag int64 `json:"channelTag,omitempty"`
// ForceSendFields is a list of field names (e.g. "Alternatives") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -652,8 +659,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)
}
@@ -771,8 +778,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)
}
@@ -824,8 +831,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)
}
@@ -946,7 +953,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
@@ -1080,7 +1087,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
@@ -1223,7 +1230,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
@@ -1401,7 +1408,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
@@ -1566,7 +1573,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
@@ -1688,7 +1695,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