Documentation
¶
Overview ¶
Package meet is an auto-generated package for the Google Meet API.
Create and manage meetings in Google Meet.
NOTE: This package is in beta. It is not stable, and may be subject to changes.
General documentation ¶
For information that is relevant for all client libraries please reference https://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on this page includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage ¶
To get started with this package, create a client.
// go get cloud.google.com/go/apps/meet/apiv2@latest ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewSpacesClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed. The methods of Client are safe for concurrent use by multiple goroutines. The returned client must be Closed when it is done being used.
Using the Client ¶
The following is an example of making an API call with the newly created client, mentioned above.
req := &meetpb.CreateSpaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#CreateSpaceRequest. } resp, err := c.CreateSpace(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp
Use of Context ¶
The ctx passed to NewSpacesClient is used for authentication requests and for creating the underlying connection, but is not used for subsequent calls. Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
Index ¶
- func DefaultAuthScopes() []string
- type ConferenceRecordIterator
- type ConferenceRecordsCallOptions
- type ConferenceRecordsClient
- func (c *ConferenceRecordsClient) Close() error
- func (c *ConferenceRecordsClient) Connection() *grpc.ClientConndeprecated
- func (c *ConferenceRecordsClient) GetConferenceRecord(ctx context.Context, req *meetpb.GetConferenceRecordRequest, ...) (*meetpb.ConferenceRecord, error)
- func (c *ConferenceRecordsClient) GetParticipant(ctx context.Context, req *meetpb.GetParticipantRequest, opts ...gax.CallOption) (*meetpb.Participant, error)
- func (c *ConferenceRecordsClient) GetParticipantSession(ctx context.Context, req *meetpb.GetParticipantSessionRequest, ...) (*meetpb.ParticipantSession, error)
- func (c *ConferenceRecordsClient) GetRecording(ctx context.Context, req *meetpb.GetRecordingRequest, opts ...gax.CallOption) (*meetpb.Recording, error)
- func (c *ConferenceRecordsClient) GetTranscript(ctx context.Context, req *meetpb.GetTranscriptRequest, opts ...gax.CallOption) (*meetpb.Transcript, error)
- func (c *ConferenceRecordsClient) GetTranscriptEntry(ctx context.Context, req *meetpb.GetTranscriptEntryRequest, ...) (*meetpb.TranscriptEntry, error)
- func (c *ConferenceRecordsClient) ListConferenceRecords(ctx context.Context, req *meetpb.ListConferenceRecordsRequest, ...) *ConferenceRecordIterator
- func (c *ConferenceRecordsClient) ListParticipantSessions(ctx context.Context, req *meetpb.ListParticipantSessionsRequest, ...) *ParticipantSessionIterator
- func (c *ConferenceRecordsClient) ListParticipants(ctx context.Context, req *meetpb.ListParticipantsRequest, ...) *ParticipantIterator
- func (c *ConferenceRecordsClient) ListRecordings(ctx context.Context, req *meetpb.ListRecordingsRequest, opts ...gax.CallOption) *RecordingIterator
- func (c *ConferenceRecordsClient) ListTranscriptEntries(ctx context.Context, req *meetpb.ListTranscriptEntriesRequest, ...) *TranscriptEntryIterator
- func (c *ConferenceRecordsClient) ListTranscripts(ctx context.Context, req *meetpb.ListTranscriptsRequest, ...) *TranscriptIterator
- type ParticipantIterator
- type ParticipantSessionIterator
- type RecordingIterator
- type SpacesCallOptions
- type SpacesClient
- func (c *SpacesClient) Close() error
- func (c *SpacesClient) Connection() *grpc.ClientConndeprecated
- func (c *SpacesClient) CreateSpace(ctx context.Context, req *meetpb.CreateSpaceRequest, opts ...gax.CallOption) (*meetpb.Space, error)
- func (c *SpacesClient) EndActiveConference(ctx context.Context, req *meetpb.EndActiveConferenceRequest, ...) error
- func (c *SpacesClient) GetSpace(ctx context.Context, req *meetpb.GetSpaceRequest, opts ...gax.CallOption) (*meetpb.Space, error)
- func (c *SpacesClient) UpdateSpace(ctx context.Context, req *meetpb.UpdateSpaceRequest, opts ...gax.CallOption) (*meetpb.Space, error)
- type TranscriptEntryIterator
- type TranscriptIterator
Examples ¶
- ConferenceRecordsClient.GetConferenceRecord
- ConferenceRecordsClient.GetParticipant
- ConferenceRecordsClient.GetParticipantSession
- ConferenceRecordsClient.GetRecording
- ConferenceRecordsClient.GetTranscript
- ConferenceRecordsClient.GetTranscriptEntry
- ConferenceRecordsClient.ListConferenceRecords
- ConferenceRecordsClient.ListConferenceRecords (All)
- ConferenceRecordsClient.ListParticipantSessions
- ConferenceRecordsClient.ListParticipantSessions (All)
- ConferenceRecordsClient.ListParticipants
- ConferenceRecordsClient.ListParticipants (All)
- ConferenceRecordsClient.ListRecordings
- ConferenceRecordsClient.ListRecordings (All)
- ConferenceRecordsClient.ListTranscriptEntries
- ConferenceRecordsClient.ListTranscriptEntries (All)
- ConferenceRecordsClient.ListTranscripts
- ConferenceRecordsClient.ListTranscripts (All)
- NewConferenceRecordsClient
- NewConferenceRecordsRESTClient
- NewSpacesClient
- NewSpacesRESTClient
- SpacesClient.CreateSpace
- SpacesClient.EndActiveConference
- SpacesClient.GetSpace
- SpacesClient.UpdateSpace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAuthScopes ¶
func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
Types ¶
type ConferenceRecordIterator ¶
type ConferenceRecordIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*meetpb.ConferenceRecord, nextPageToken string, err error) // contains filtered or unexported fields }
ConferenceRecordIterator manages a stream of *meetpb.ConferenceRecord.
func (*ConferenceRecordIterator) All ¶ added in v0.5.1
func (it *ConferenceRecordIterator) All() iter.Seq2[*meetpb.ConferenceRecord, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ConferenceRecordIterator) Next ¶
func (it *ConferenceRecordIterator) Next() (*meetpb.ConferenceRecord, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ConferenceRecordIterator) PageInfo ¶
func (it *ConferenceRecordIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ConferenceRecordsCallOptions ¶
type ConferenceRecordsCallOptions struct { GetConferenceRecord []gax.CallOption ListConferenceRecords []gax.CallOption GetParticipant []gax.CallOption ListParticipants []gax.CallOption GetParticipantSession []gax.CallOption ListParticipantSessions []gax.CallOption GetRecording []gax.CallOption ListRecordings []gax.CallOption GetTranscript []gax.CallOption ListTranscripts []gax.CallOption GetTranscriptEntry []gax.CallOption ListTranscriptEntries []gax.CallOption }
ConferenceRecordsCallOptions contains the retry settings for each method of ConferenceRecordsClient.
type ConferenceRecordsClient ¶
type ConferenceRecordsClient struct { // The call options for this service. CallOptions *ConferenceRecordsCallOptions // contains filtered or unexported fields }
ConferenceRecordsClient is a client for interacting with Google Meet API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
REST API for services dealing with conference records.
func NewConferenceRecordsClient ¶
func NewConferenceRecordsClient(ctx context.Context, opts ...option.ClientOption) (*ConferenceRecordsClient, error)
NewConferenceRecordsClient creates a new conference records service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
REST API for services dealing with conference records.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
func NewConferenceRecordsRESTClient ¶
func NewConferenceRecordsRESTClient(ctx context.Context, opts ...option.ClientOption) (*ConferenceRecordsClient, error)
NewConferenceRecordsRESTClient creates a new conference records service rest client.
REST API for services dealing with conference records.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsRESTClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
func (*ConferenceRecordsClient) Close ¶
func (c *ConferenceRecordsClient) Close() error
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*ConferenceRecordsClient) Connection
deprecated
func (c *ConferenceRecordsClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*ConferenceRecordsClient) GetConferenceRecord ¶
func (c *ConferenceRecordsClient) GetConferenceRecord(ctx context.Context, req *meetpb.GetConferenceRecordRequest, opts ...gax.CallOption) (*meetpb.ConferenceRecord, error)
GetConferenceRecord gets a conference record by conference ID.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.GetConferenceRecordRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#GetConferenceRecordRequest. } resp, err := c.GetConferenceRecord(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*ConferenceRecordsClient) GetParticipant ¶
func (c *ConferenceRecordsClient) GetParticipant(ctx context.Context, req *meetpb.GetParticipantRequest, opts ...gax.CallOption) (*meetpb.Participant, error)
GetParticipant gets a participant by participant ID.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.GetParticipantRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#GetParticipantRequest. } resp, err := c.GetParticipant(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*ConferenceRecordsClient) GetParticipantSession ¶
func (c *ConferenceRecordsClient) GetParticipantSession(ctx context.Context, req *meetpb.GetParticipantSessionRequest, opts ...gax.CallOption) (*meetpb.ParticipantSession, error)
GetParticipantSession gets a participant session by participant session ID.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.GetParticipantSessionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#GetParticipantSessionRequest. } resp, err := c.GetParticipantSession(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*ConferenceRecordsClient) GetRecording ¶
func (c *ConferenceRecordsClient) GetRecording(ctx context.Context, req *meetpb.GetRecordingRequest, opts ...gax.CallOption) (*meetpb.Recording, error)
GetRecording gets a recording by recording ID.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.GetRecordingRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#GetRecordingRequest. } resp, err := c.GetRecording(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*ConferenceRecordsClient) GetTranscript ¶
func (c *ConferenceRecordsClient) GetTranscript(ctx context.Context, req *meetpb.GetTranscriptRequest, opts ...gax.CallOption) (*meetpb.Transcript, error)
GetTranscript gets a transcript by transcript ID.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.GetTranscriptRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#GetTranscriptRequest. } resp, err := c.GetTranscript(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*ConferenceRecordsClient) GetTranscriptEntry ¶
func (c *ConferenceRecordsClient) GetTranscriptEntry(ctx context.Context, req *meetpb.GetTranscriptEntryRequest, opts ...gax.CallOption) (*meetpb.TranscriptEntry, error)
GetTranscriptEntry gets a TranscriptEntry resource by entry ID.
Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.GetTranscriptEntryRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#GetTranscriptEntryRequest. } resp, err := c.GetTranscriptEntry(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*ConferenceRecordsClient) ListConferenceRecords ¶
func (c *ConferenceRecordsClient) ListConferenceRecords(ctx context.Context, req *meetpb.ListConferenceRecordsRequest, opts ...gax.CallOption) *ConferenceRecordIterator
ListConferenceRecords lists the conference records. By default, ordered by start time and in descending order.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.ListConferenceRecordsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#ListConferenceRecordsRequest. } it := c.ListConferenceRecords(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*meetpb.ListConferenceRecordsResponse) } }
Output:
Example (All) ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.ListConferenceRecordsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#ListConferenceRecordsRequest. } for resp, err := range c.ListConferenceRecords(ctx, req).All() { if err != nil { // TODO: Handle error and break/return/continue. Iteration will stop after any error. } // TODO: Use resp. _ = resp } }
Output:
func (*ConferenceRecordsClient) ListParticipantSessions ¶
func (c *ConferenceRecordsClient) ListParticipantSessions(ctx context.Context, req *meetpb.ListParticipantSessionsRequest, opts ...gax.CallOption) *ParticipantSessionIterator
ListParticipantSessions lists the participant sessions of a participant in a conference record. By default, ordered by join time and in descending order. This API supports fields as standard parameters like every other API. However, when the fields request parameter is omitted this API defaults to 'participantsessions/*, next_page_token'.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.ListParticipantSessionsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#ListParticipantSessionsRequest. } it := c.ListParticipantSessions(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*meetpb.ListParticipantSessionsResponse) } }
Output:
Example (All) ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.ListParticipantSessionsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#ListParticipantSessionsRequest. } for resp, err := range c.ListParticipantSessions(ctx, req).All() { if err != nil { // TODO: Handle error and break/return/continue. Iteration will stop after any error. } // TODO: Use resp. _ = resp } }
Output:
func (*ConferenceRecordsClient) ListParticipants ¶
func (c *ConferenceRecordsClient) ListParticipants(ctx context.Context, req *meetpb.ListParticipantsRequest, opts ...gax.CallOption) *ParticipantIterator
ListParticipants lists the participants in a conference record. By default, ordered by join time and in descending order. This API supports fields as standard parameters like every other API. However, when the fields request parameter is omitted, this API defaults to 'participants/*, next_page_token'.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.ListParticipantsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#ListParticipantsRequest. } it := c.ListParticipants(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*meetpb.ListParticipantsResponse) } }
Output:
Example (All) ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.ListParticipantsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#ListParticipantsRequest. } for resp, err := range c.ListParticipants(ctx, req).All() { if err != nil { // TODO: Handle error and break/return/continue. Iteration will stop after any error. } // TODO: Use resp. _ = resp } }
Output:
func (*ConferenceRecordsClient) ListRecordings ¶
func (c *ConferenceRecordsClient) ListRecordings(ctx context.Context, req *meetpb.ListRecordingsRequest, opts ...gax.CallOption) *RecordingIterator
ListRecordings lists the recording resources from the conference record. By default, ordered by start time and in ascending order.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.ListRecordingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#ListRecordingsRequest. } it := c.ListRecordings(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*meetpb.ListRecordingsResponse) } }
Output:
Example (All) ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.ListRecordingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#ListRecordingsRequest. } for resp, err := range c.ListRecordings(ctx, req).All() { if err != nil { // TODO: Handle error and break/return/continue. Iteration will stop after any error. } // TODO: Use resp. _ = resp } }
Output:
func (*ConferenceRecordsClient) ListTranscriptEntries ¶
func (c *ConferenceRecordsClient) ListTranscriptEntries(ctx context.Context, req *meetpb.ListTranscriptEntriesRequest, opts ...gax.CallOption) *TranscriptEntryIterator
ListTranscriptEntries lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order.
Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.ListTranscriptEntriesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#ListTranscriptEntriesRequest. } it := c.ListTranscriptEntries(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*meetpb.ListTranscriptEntriesResponse) } }
Output:
Example (All) ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.ListTranscriptEntriesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#ListTranscriptEntriesRequest. } for resp, err := range c.ListTranscriptEntries(ctx, req).All() { if err != nil { // TODO: Handle error and break/return/continue. Iteration will stop after any error. } // TODO: Use resp. _ = resp } }
Output:
func (*ConferenceRecordsClient) ListTranscripts ¶
func (c *ConferenceRecordsClient) ListTranscripts(ctx context.Context, req *meetpb.ListTranscriptsRequest, opts ...gax.CallOption) *TranscriptIterator
ListTranscripts lists the set of transcripts from the conference record. By default, ordered by start time and in ascending order.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.ListTranscriptsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#ListTranscriptsRequest. } it := c.ListTranscripts(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*meetpb.ListTranscriptsResponse) } }
Output:
Example (All) ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewConferenceRecordsClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.ListTranscriptsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#ListTranscriptsRequest. } for resp, err := range c.ListTranscripts(ctx, req).All() { if err != nil { // TODO: Handle error and break/return/continue. Iteration will stop after any error. } // TODO: Use resp. _ = resp } }
Output:
type ParticipantIterator ¶
type ParticipantIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*meetpb.Participant, nextPageToken string, err error) // contains filtered or unexported fields }
ParticipantIterator manages a stream of *meetpb.Participant.
func (*ParticipantIterator) All ¶ added in v0.5.1
func (it *ParticipantIterator) All() iter.Seq2[*meetpb.Participant, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ParticipantIterator) Next ¶
func (it *ParticipantIterator) Next() (*meetpb.Participant, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ParticipantIterator) PageInfo ¶
func (it *ParticipantIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ParticipantSessionIterator ¶
type ParticipantSessionIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*meetpb.ParticipantSession, nextPageToken string, err error) // contains filtered or unexported fields }
ParticipantSessionIterator manages a stream of *meetpb.ParticipantSession.
func (*ParticipantSessionIterator) All ¶ added in v0.5.1
func (it *ParticipantSessionIterator) All() iter.Seq2[*meetpb.ParticipantSession, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ParticipantSessionIterator) Next ¶
func (it *ParticipantSessionIterator) Next() (*meetpb.ParticipantSession, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ParticipantSessionIterator) PageInfo ¶
func (it *ParticipantSessionIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type RecordingIterator ¶
type RecordingIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*meetpb.Recording, nextPageToken string, err error) // contains filtered or unexported fields }
RecordingIterator manages a stream of *meetpb.Recording.
func (*RecordingIterator) All ¶ added in v0.5.1
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*RecordingIterator) Next ¶
func (it *RecordingIterator) Next() (*meetpb.Recording, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*RecordingIterator) PageInfo ¶
func (it *RecordingIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type SpacesCallOptions ¶
type SpacesCallOptions struct { CreateSpace []gax.CallOption GetSpace []gax.CallOption UpdateSpace []gax.CallOption EndActiveConference []gax.CallOption }
SpacesCallOptions contains the retry settings for each method of SpacesClient.
type SpacesClient ¶
type SpacesClient struct { // The call options for this service. CallOptions *SpacesCallOptions // contains filtered or unexported fields }
SpacesClient is a client for interacting with Google Meet API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
REST API for services dealing with spaces.
func NewSpacesClient ¶
func NewSpacesClient(ctx context.Context, opts ...option.ClientOption) (*SpacesClient, error)
NewSpacesClient creates a new spaces service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
REST API for services dealing with spaces.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewSpacesClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
func NewSpacesRESTClient ¶
func NewSpacesRESTClient(ctx context.Context, opts ...option.ClientOption) (*SpacesClient, error)
NewSpacesRESTClient creates a new spaces service rest client.
REST API for services dealing with spaces.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewSpacesRESTClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
func (*SpacesClient) Close ¶
func (c *SpacesClient) Close() error
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*SpacesClient) Connection
deprecated
func (c *SpacesClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*SpacesClient) CreateSpace ¶
func (c *SpacesClient) CreateSpace(ctx context.Context, req *meetpb.CreateSpaceRequest, opts ...gax.CallOption) (*meetpb.Space, error)
CreateSpace creates a space.
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewSpacesClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.CreateSpaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#CreateSpaceRequest. } resp, err := c.CreateSpace(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*SpacesClient) EndActiveConference ¶
func (c *SpacesClient) EndActiveConference(ctx context.Context, req *meetpb.EndActiveConferenceRequest, opts ...gax.CallOption) error
EndActiveConference ends an active conference (if there’s one).
For an example, see End active conference (at https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewSpacesClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.EndActiveConferenceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#EndActiveConferenceRequest. } err = c.EndActiveConference(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*SpacesClient) GetSpace ¶
func (c *SpacesClient) GetSpace(ctx context.Context, req *meetpb.GetSpaceRequest, opts ...gax.CallOption) (*meetpb.Space, error)
GetSpace gets details about a meeting space.
For an example, see Get a meeting space (at https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space).
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewSpacesClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.GetSpaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#GetSpaceRequest. } resp, err := c.GetSpace(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*SpacesClient) UpdateSpace ¶
func (c *SpacesClient) UpdateSpace(ctx context.Context, req *meetpb.UpdateSpaceRequest, opts ...gax.CallOption) (*meetpb.Space, error)
UpdateSpace updates details about a meeting space.
For an example, see Update a meeting space (at https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space).
Example ¶
package main import ( "context" meet "cloud.google.com/go/apps/meet/apiv2" meetpb "cloud.google.com/go/apps/meet/apiv2/meetpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := meet.NewSpacesClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &meetpb.UpdateSpaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/apps/meet/apiv2/meetpb#UpdateSpaceRequest. } resp, err := c.UpdateSpace(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
type TranscriptEntryIterator ¶
type TranscriptEntryIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*meetpb.TranscriptEntry, nextPageToken string, err error) // contains filtered or unexported fields }
TranscriptEntryIterator manages a stream of *meetpb.TranscriptEntry.
func (*TranscriptEntryIterator) All ¶ added in v0.5.1
func (it *TranscriptEntryIterator) All() iter.Seq2[*meetpb.TranscriptEntry, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*TranscriptEntryIterator) Next ¶
func (it *TranscriptEntryIterator) Next() (*meetpb.TranscriptEntry, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*TranscriptEntryIterator) PageInfo ¶
func (it *TranscriptEntryIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type TranscriptIterator ¶
type TranscriptIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*meetpb.Transcript, nextPageToken string, err error) // contains filtered or unexported fields }
TranscriptIterator manages a stream of *meetpb.Transcript.
func (*TranscriptIterator) All ¶ added in v0.5.1
func (it *TranscriptIterator) All() iter.Seq2[*meetpb.Transcript, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*TranscriptIterator) Next ¶
func (it *TranscriptIterator) Next() (*meetpb.Transcript, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*TranscriptIterator) PageInfo ¶
func (it *TranscriptIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.