Versions in this module Expand all Collapse all v0 v0.196.2 Sep 10, 2024 Changes in this version + const CloudPlatformScope + type ABNFGrammar struct + AbnfStrings []string + ForceSendFields []string + NullFields []string + func (s ABNFGrammar) MarshalJSON() ([]byte, error) + type ClassItem struct + ForceSendFields []string + NullFields []string + Value string + func (s ClassItem) MarshalJSON() ([]byte, error) + type CreateCustomClassRequest struct + CustomClass *CustomClass + CustomClassId string + ForceSendFields []string + NullFields []string + func (s CreateCustomClassRequest) MarshalJSON() ([]byte, error) + type CreatePhraseSetRequest struct + ForceSendFields []string + NullFields []string + PhraseSet *PhraseSet + PhraseSetId string + func (s CreatePhraseSetRequest) MarshalJSON() ([]byte, error) + type CustomClass struct + Annotations map[string]string + CustomClassId string + DeleteTime string + DisplayName string + Etag string + ExpireTime string + ForceSendFields []string + Items []*ClassItem + KmsKeyName string + KmsKeyVersionName string + Name string + NullFields []string + Reconciling bool + State string + Uid string + func (s CustomClass) MarshalJSON() ([]byte, error) + type Empty struct + type Entry struct + CaseSensitive bool + ForceSendFields []string + NullFields []string + Replace string + Search string + func (s Entry) MarshalJSON() ([]byte, error) + type ListCustomClassesResponse struct + CustomClasses []*CustomClass + ForceSendFields []string + NextPageToken string + NullFields []string + func (s ListCustomClassesResponse) MarshalJSON() ([]byte, error) + type ListOperationsResponse struct + ForceSendFields []string + NextPageToken string + NullFields []string + Operations []*Operation + func (s ListOperationsResponse) MarshalJSON() ([]byte, error) + type ListPhraseSetResponse struct + ForceSendFields []string + NextPageToken string + NullFields []string + PhraseSets []*PhraseSet + func (s ListPhraseSetResponse) MarshalJSON() ([]byte, error) + type LongRunningRecognizeMetadata struct + ForceSendFields []string + LastUpdateTime string + NullFields []string + ProgressPercent int64 + StartTime string + Uri string + func (s LongRunningRecognizeMetadata) MarshalJSON() ([]byte, error) + type LongRunningRecognizeRequest struct + Audio *RecognitionAudio + Config *RecognitionConfig + ForceSendFields []string + NullFields []string + OutputConfig *TranscriptOutputConfig + func (s LongRunningRecognizeRequest) MarshalJSON() ([]byte, error) + type LongRunningRecognizeResponse struct + ForceSendFields []string + NullFields []string + OutputConfig *TranscriptOutputConfig + OutputError *Status + RequestId int64 + Results []*SpeechRecognitionResult + SpeechAdaptationInfo *SpeechAdaptationInfo + TotalBilledTime string + func (s LongRunningRecognizeResponse) MarshalJSON() ([]byte, error) + type Operation struct + Done bool + Error *Status + ForceSendFields []string + Metadata googleapi.RawMessage + Name string + NullFields []string + Response googleapi.RawMessage + func (s Operation) MarshalJSON() ([]byte, error) + type OperationsGetCall struct + func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall + func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) + func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall + func (c *OperationsGetCall) Header() http.Header + func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall + type OperationsListCall struct + func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall + func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) + func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall + func (c *OperationsListCall) Filter(filter string) *OperationsListCall + func (c *OperationsListCall) Header() http.Header + func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall + func (c *OperationsListCall) Name(name string) *OperationsListCall + func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall + func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall + func (c *OperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error + type OperationsService struct + func NewOperationsService(s *Service) *OperationsService + func (r *OperationsService) Get(name string) *OperationsGetCall + func (r *OperationsService) List() *OperationsListCall + type Phrase struct + Boost float64 + ForceSendFields []string + NullFields []string + Value string + func (s *Phrase) UnmarshalJSON(data []byte) error + func (s Phrase) MarshalJSON() ([]byte, error) + type PhraseSet struct + Annotations map[string]string + Boost float64 + DeleteTime string + DisplayName string + Etag string + ExpireTime string + ForceSendFields []string + KmsKeyName string + KmsKeyVersionName string + Name string + NullFields []string + Phrases []*Phrase + Reconciling bool + State string + Uid string + func (s *PhraseSet) UnmarshalJSON(data []byte) error + func (s PhraseSet) MarshalJSON() ([]byte, error) + type ProjectsLocationsCustomClassesCreateCall struct + func (c *ProjectsLocationsCustomClassesCreateCall) Context(ctx context.Context) *ProjectsLocationsCustomClassesCreateCall + func (c *ProjectsLocationsCustomClassesCreateCall) Do(opts ...googleapi.CallOption) (*CustomClass, error) + func (c *ProjectsLocationsCustomClassesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomClassesCreateCall + func (c *ProjectsLocationsCustomClassesCreateCall) Header() http.Header + type ProjectsLocationsCustomClassesDeleteCall struct + func (c *ProjectsLocationsCustomClassesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCustomClassesDeleteCall + func (c *ProjectsLocationsCustomClassesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) + func (c *ProjectsLocationsCustomClassesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomClassesDeleteCall + func (c *ProjectsLocationsCustomClassesDeleteCall) Header() http.Header + type ProjectsLocationsCustomClassesGetCall struct + func (c *ProjectsLocationsCustomClassesGetCall) Context(ctx context.Context) *ProjectsLocationsCustomClassesGetCall + func (c *ProjectsLocationsCustomClassesGetCall) Do(opts ...googleapi.CallOption) (*CustomClass, error) + func (c *ProjectsLocationsCustomClassesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomClassesGetCall + func (c *ProjectsLocationsCustomClassesGetCall) Header() http.Header + func (c *ProjectsLocationsCustomClassesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomClassesGetCall + type ProjectsLocationsCustomClassesListCall struct + func (c *ProjectsLocationsCustomClassesListCall) Context(ctx context.Context) *ProjectsLocationsCustomClassesListCall + func (c *ProjectsLocationsCustomClassesListCall) Do(opts ...googleapi.CallOption) (*ListCustomClassesResponse, error) + func (c *ProjectsLocationsCustomClassesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomClassesListCall + func (c *ProjectsLocationsCustomClassesListCall) Header() http.Header + func (c *ProjectsLocationsCustomClassesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomClassesListCall + func (c *ProjectsLocationsCustomClassesListCall) PageSize(pageSize int64) *ProjectsLocationsCustomClassesListCall + func (c *ProjectsLocationsCustomClassesListCall) PageToken(pageToken string) *ProjectsLocationsCustomClassesListCall + func (c *ProjectsLocationsCustomClassesListCall) Pages(ctx context.Context, f func(*ListCustomClassesResponse) error) error + type ProjectsLocationsCustomClassesPatchCall struct + func (c *ProjectsLocationsCustomClassesPatchCall) Context(ctx context.Context) *ProjectsLocationsCustomClassesPatchCall + func (c *ProjectsLocationsCustomClassesPatchCall) Do(opts ...googleapi.CallOption) (*CustomClass, error) + func (c *ProjectsLocationsCustomClassesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomClassesPatchCall + func (c *ProjectsLocationsCustomClassesPatchCall) Header() http.Header + func (c *ProjectsLocationsCustomClassesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCustomClassesPatchCall + type ProjectsLocationsCustomClassesService struct + func NewProjectsLocationsCustomClassesService(s *Service) *ProjectsLocationsCustomClassesService + func (r *ProjectsLocationsCustomClassesService) Create(parent string, createcustomclassrequest *CreateCustomClassRequest) *ProjectsLocationsCustomClassesCreateCall + func (r *ProjectsLocationsCustomClassesService) Delete(name string) *ProjectsLocationsCustomClassesDeleteCall + func (r *ProjectsLocationsCustomClassesService) Get(name string) *ProjectsLocationsCustomClassesGetCall + func (r *ProjectsLocationsCustomClassesService) List(parent string) *ProjectsLocationsCustomClassesListCall + func (r *ProjectsLocationsCustomClassesService) Patch(name string, customclass *CustomClass) *ProjectsLocationsCustomClassesPatchCall + type ProjectsLocationsPhraseSetsCreateCall struct + func (c *ProjectsLocationsPhraseSetsCreateCall) Context(ctx context.Context) *ProjectsLocationsPhraseSetsCreateCall + func (c *ProjectsLocationsPhraseSetsCreateCall) Do(opts ...googleapi.CallOption) (*PhraseSet, error) + func (c *ProjectsLocationsPhraseSetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseSetsCreateCall + func (c *ProjectsLocationsPhraseSetsCreateCall) Header() http.Header + type ProjectsLocationsPhraseSetsDeleteCall struct + func (c *ProjectsLocationsPhraseSetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsPhraseSetsDeleteCall + func (c *ProjectsLocationsPhraseSetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) + func (c *ProjectsLocationsPhraseSetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseSetsDeleteCall + func (c *ProjectsLocationsPhraseSetsDeleteCall) Header() http.Header + type ProjectsLocationsPhraseSetsGetCall struct + func (c *ProjectsLocationsPhraseSetsGetCall) Context(ctx context.Context) *ProjectsLocationsPhraseSetsGetCall + func (c *ProjectsLocationsPhraseSetsGetCall) Do(opts ...googleapi.CallOption) (*PhraseSet, error) + func (c *ProjectsLocationsPhraseSetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseSetsGetCall + func (c *ProjectsLocationsPhraseSetsGetCall) Header() http.Header + func (c *ProjectsLocationsPhraseSetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPhraseSetsGetCall + type ProjectsLocationsPhraseSetsListCall struct + func (c *ProjectsLocationsPhraseSetsListCall) Context(ctx context.Context) *ProjectsLocationsPhraseSetsListCall + func (c *ProjectsLocationsPhraseSetsListCall) Do(opts ...googleapi.CallOption) (*ListPhraseSetResponse, error) + func (c *ProjectsLocationsPhraseSetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseSetsListCall + func (c *ProjectsLocationsPhraseSetsListCall) Header() http.Header + func (c *ProjectsLocationsPhraseSetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPhraseSetsListCall + func (c *ProjectsLocationsPhraseSetsListCall) PageSize(pageSize int64) *ProjectsLocationsPhraseSetsListCall + func (c *ProjectsLocationsPhraseSetsListCall) PageToken(pageToken string) *ProjectsLocationsPhraseSetsListCall + func (c *ProjectsLocationsPhraseSetsListCall) Pages(ctx context.Context, f func(*ListPhraseSetResponse) error) error + type ProjectsLocationsPhraseSetsPatchCall struct + func (c *ProjectsLocationsPhraseSetsPatchCall) Context(ctx context.Context) *ProjectsLocationsPhraseSetsPatchCall + func (c *ProjectsLocationsPhraseSetsPatchCall) Do(opts ...googleapi.CallOption) (*PhraseSet, error) + func (c *ProjectsLocationsPhraseSetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseSetsPatchCall + func (c *ProjectsLocationsPhraseSetsPatchCall) Header() http.Header + func (c *ProjectsLocationsPhraseSetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsPhraseSetsPatchCall + type ProjectsLocationsPhraseSetsService struct + func NewProjectsLocationsPhraseSetsService(s *Service) *ProjectsLocationsPhraseSetsService + func (r *ProjectsLocationsPhraseSetsService) Create(parent string, createphrasesetrequest *CreatePhraseSetRequest) *ProjectsLocationsPhraseSetsCreateCall + func (r *ProjectsLocationsPhraseSetsService) Delete(name string) *ProjectsLocationsPhraseSetsDeleteCall + func (r *ProjectsLocationsPhraseSetsService) Get(name string) *ProjectsLocationsPhraseSetsGetCall + func (r *ProjectsLocationsPhraseSetsService) List(parent string) *ProjectsLocationsPhraseSetsListCall + func (r *ProjectsLocationsPhraseSetsService) Patch(name string, phraseset *PhraseSet) *ProjectsLocationsPhraseSetsPatchCall + type ProjectsLocationsService struct + CustomClasses *ProjectsLocationsCustomClassesService + PhraseSets *ProjectsLocationsPhraseSetsService + func NewProjectsLocationsService(s *Service) *ProjectsLocationsService + type ProjectsService struct + Locations *ProjectsLocationsService + func NewProjectsService(s *Service) *ProjectsService + type RecognitionAudio struct + Content string + ForceSendFields []string + NullFields []string + Uri string + func (s RecognitionAudio) MarshalJSON() ([]byte, error) + type RecognitionConfig struct + Adaptation *SpeechAdaptation + AlternativeLanguageCodes []string + AudioChannelCount int64 + DiarizationConfig *SpeakerDiarizationConfig + EnableAutomaticPunctuation bool + EnableSeparateRecognitionPerChannel bool + EnableSpokenEmojis bool + EnableSpokenPunctuation bool + EnableWordConfidence bool + EnableWordTimeOffsets bool + Encoding string + ForceSendFields []string + LanguageCode string + MaxAlternatives int64 + Metadata *RecognitionMetadata + Model string + NullFields []string + ProfanityFilter bool + SampleRateHertz int64 + SpeechContexts []*SpeechContext + TranscriptNormalization *TranscriptNormalization + UseEnhanced bool + func (s RecognitionConfig) MarshalJSON() ([]byte, error) + type RecognitionMetadata struct + AudioTopic string + ForceSendFields []string + IndustryNaicsCodeOfAudio int64 + InteractionType string + MicrophoneDistance string + NullFields []string + OriginalMediaType string + OriginalMimeType string + RecordingDeviceName string + RecordingDeviceType string + func (s RecognitionMetadata) MarshalJSON() ([]byte, error) + type RecognizeRequest struct + Audio *RecognitionAudio + Config *RecognitionConfig + ForceSendFields []string + NullFields []string + func (s RecognizeRequest) MarshalJSON() ([]byte, error) + type RecognizeResponse struct + ForceSendFields []string + NullFields []string + RequestId int64 + Results []*SpeechRecognitionResult + SpeechAdaptationInfo *SpeechAdaptationInfo + TotalBilledTime string + UsingLegacyModels bool + func (s RecognizeResponse) MarshalJSON() ([]byte, error) + type Service struct + BasePath string + Operations *OperationsService + Projects *ProjectsService + Speech *SpeechService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type SpeakerDiarizationConfig struct + EnableSpeakerDiarization bool + ForceSendFields []string + MaxSpeakerCount int64 + MinSpeakerCount int64 + NullFields []string + SpeakerTag int64 + func (s SpeakerDiarizationConfig) MarshalJSON() ([]byte, error) + type SpeechAdaptation struct + AbnfGrammar *ABNFGrammar + CustomClasses []*CustomClass + ForceSendFields []string + NullFields []string + PhraseSetReferences []string + PhraseSets []*PhraseSet + func (s SpeechAdaptation) MarshalJSON() ([]byte, error) + type SpeechAdaptationInfo struct + AdaptationTimeout bool + ForceSendFields []string + NullFields []string + TimeoutMessage string + func (s SpeechAdaptationInfo) MarshalJSON() ([]byte, error) + type SpeechContext struct + Boost float64 + ForceSendFields []string + NullFields []string + Phrases []string + func (s *SpeechContext) UnmarshalJSON(data []byte) error + func (s SpeechContext) MarshalJSON() ([]byte, error) + type SpeechLongrunningrecognizeCall struct + func (c *SpeechLongrunningrecognizeCall) Context(ctx context.Context) *SpeechLongrunningrecognizeCall + func (c *SpeechLongrunningrecognizeCall) Do(opts ...googleapi.CallOption) (*Operation, error) + func (c *SpeechLongrunningrecognizeCall) Fields(s ...googleapi.Field) *SpeechLongrunningrecognizeCall + func (c *SpeechLongrunningrecognizeCall) Header() http.Header + type SpeechRecognitionAlternative struct + Confidence float64 + ForceSendFields []string + NullFields []string + Transcript string + Words []*WordInfo + func (s *SpeechRecognitionAlternative) UnmarshalJSON(data []byte) error + func (s SpeechRecognitionAlternative) MarshalJSON() ([]byte, error) + type SpeechRecognitionResult struct + Alternatives []*SpeechRecognitionAlternative + ChannelTag int64 + ForceSendFields []string + LanguageCode string + NullFields []string + ResultEndTime string + func (s SpeechRecognitionResult) MarshalJSON() ([]byte, error) + type SpeechRecognizeCall struct + func (c *SpeechRecognizeCall) Context(ctx context.Context) *SpeechRecognizeCall + func (c *SpeechRecognizeCall) Do(opts ...googleapi.CallOption) (*RecognizeResponse, error) + func (c *SpeechRecognizeCall) Fields(s ...googleapi.Field) *SpeechRecognizeCall + func (c *SpeechRecognizeCall) Header() http.Header + type SpeechService struct + func NewSpeechService(s *Service) *SpeechService + func (r *SpeechService) Longrunningrecognize(longrunningrecognizerequest *LongRunningRecognizeRequest) *SpeechLongrunningrecognizeCall + func (r *SpeechService) Recognize(recognizerequest *RecognizeRequest) *SpeechRecognizeCall + type Status struct + Code int64 + Details []googleapi.RawMessage + ForceSendFields []string + Message string + NullFields []string + func (s Status) MarshalJSON() ([]byte, error) + type TranscriptNormalization struct + Entries []*Entry + ForceSendFields []string + NullFields []string + func (s TranscriptNormalization) MarshalJSON() ([]byte, error) + type TranscriptOutputConfig struct + ForceSendFields []string + GcsUri string + NullFields []string + func (s TranscriptOutputConfig) MarshalJSON() ([]byte, error) + type WordInfo struct + Confidence float64 + EndTime string + ForceSendFields []string + NullFields []string + SpeakerLabel string + SpeakerTag int64 + StartTime string + Word string + func (s *WordInfo) UnmarshalJSON(data []byte) error + func (s WordInfo) MarshalJSON() ([]byte, error)