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.
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.
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/apiv2beta/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.
Functions
func DefaultAuthScopes
func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
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) 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.
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.
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/apiv2beta"
)
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
}
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/apiv2beta"
)
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
}
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 Developer Preview (at https://developers.google.com/workspace/preview). Gets a conference record by conference ID.
Example
package main
import (
"context"
meet "cloud.google.com/go/apps/meet/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/meetpb#GetConferenceRecordRequest.
}
resp, err := c.GetConferenceRecord(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*ConferenceRecordsClient) GetParticipant
func (c *ConferenceRecordsClient) GetParticipant(ctx context.Context, req *meetpb.GetParticipantRequest, opts ...gax.CallOption) (*meetpb.Participant, error)
GetParticipant Developer Preview (at https://developers.google.com/workspace/preview). Gets a participant by participant ID.
Example
package main
import (
"context"
meet "cloud.google.com/go/apps/meet/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/meetpb#GetParticipantRequest.
}
resp, err := c.GetParticipant(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*ConferenceRecordsClient) GetParticipantSession
func (c *ConferenceRecordsClient) GetParticipantSession(ctx context.Context, req *meetpb.GetParticipantSessionRequest, opts ...gax.CallOption) (*meetpb.ParticipantSession, error)
GetParticipantSession Developer Preview (at https://developers.google.com/workspace/preview). Gets a participant session by participant session ID.
Example
package main
import (
"context"
meet "cloud.google.com/go/apps/meet/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/meetpb#GetParticipantSessionRequest.
}
resp, err := c.GetParticipantSession(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*ConferenceRecordsClient) GetRecording
func (c *ConferenceRecordsClient) GetRecording(ctx context.Context, req *meetpb.GetRecordingRequest, opts ...gax.CallOption) (*meetpb.Recording, error)
GetRecording Developer Preview (at https://developers.google.com/workspace/preview). Gets a recording by recording ID.
Example
package main
import (
"context"
meet "cloud.google.com/go/apps/meet/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/meetpb#GetRecordingRequest.
}
resp, err := c.GetRecording(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*ConferenceRecordsClient) GetTranscript
func (c *ConferenceRecordsClient) GetTranscript(ctx context.Context, req *meetpb.GetTranscriptRequest, opts ...gax.CallOption) (*meetpb.Transcript, error)
GetTranscript Developer Preview (at https://developers.google.com/workspace/preview). Gets a transcript by transcript ID.
Example
package main
import (
"context"
meet "cloud.google.com/go/apps/meet/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/meetpb#GetTranscriptRequest.
}
resp, err := c.GetTranscript(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*ConferenceRecordsClient) GetTranscriptEntry
func (c *ConferenceRecordsClient) GetTranscriptEntry(ctx context.Context, req *meetpb.GetTranscriptEntryRequest, opts ...gax.CallOption) (*meetpb.TranscriptEntry, error)
GetTranscriptEntry Developer Preview (at https://developers.google.com/workspace/preview). 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/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/meetpb#GetTranscriptEntryRequest.
}
resp, err := c.GetTranscriptEntry(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*ConferenceRecordsClient) ListConferenceRecords
func (c *ConferenceRecordsClient) ListConferenceRecords(ctx context.Context, req *meetpb.ListConferenceRecordsRequest, opts ...gax.CallOption) *ConferenceRecordIterator
ListConferenceRecords Developer Preview (at https://developers.google.com/workspace/preview). Lists the conference records by start time and in descending order.
Example
package main
import (
"context"
meet "cloud.google.com/go/apps/meet/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/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
}
}
func (*ConferenceRecordsClient) ListParticipantSessions
func (c *ConferenceRecordsClient) ListParticipantSessions(ctx context.Context, req *meetpb.ListParticipantSessionsRequest, opts ...gax.CallOption) *ParticipantSessionIterator
ListParticipantSessions Developer Preview (at https://developers.google.com/workspace/preview). 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/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/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
}
}
func (*ConferenceRecordsClient) ListParticipants
func (c *ConferenceRecordsClient) ListParticipants(ctx context.Context, req *meetpb.ListParticipantsRequest, opts ...gax.CallOption) *ParticipantIterator
ListParticipants Developer Preview (at https://developers.google.com/workspace/preview). 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/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/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
}
}
func (*ConferenceRecordsClient) ListRecordings
func (c *ConferenceRecordsClient) ListRecordings(ctx context.Context, req *meetpb.ListRecordingsRequest, opts ...gax.CallOption) *RecordingIterator
ListRecordings Developer Preview (at https://developers.google.com/workspace/preview). Lists the recording resources from the conference record.
Example
package main
import (
"context"
meet "cloud.google.com/go/apps/meet/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/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
}
}
func (*ConferenceRecordsClient) ListTranscriptEntries
func (c *ConferenceRecordsClient) ListTranscriptEntries(ctx context.Context, req *meetpb.ListTranscriptEntriesRequest, opts ...gax.CallOption) *TranscriptEntryIterator
ListTranscriptEntries Developer Preview (at https://developers.google.com/workspace/preview). 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/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/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
}
}
func (*ConferenceRecordsClient) ListTranscripts
func (c *ConferenceRecordsClient) ListTranscripts(ctx context.Context, req *meetpb.ListTranscriptsRequest, opts ...gax.CallOption) *TranscriptIterator
ListTranscripts Developer Preview (at https://developers.google.com/workspace/preview). Lists the set of transcripts from the conference record.
Example
package main
import (
"context"
meet "cloud.google.com/go/apps/meet/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/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
}
}
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) 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.
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) 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.
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) 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.
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.
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/apiv2beta"
)
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
}
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/apiv2beta"
)
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
}
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 Developer Preview (at https://developers.google.com/workspace/preview). Creates a space.
Example
package main
import (
"context"
meet "cloud.google.com/go/apps/meet/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/meetpb#CreateSpaceRequest.
}
resp, err := c.CreateSpace(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SpacesClient) EndActiveConference
func (c *SpacesClient) EndActiveConference(ctx context.Context, req *meetpb.EndActiveConferenceRequest, opts ...gax.CallOption) error
EndActiveConference Developer Preview (at https://developers.google.com/workspace/preview). Ends an active conference (if there is one).
Example
package main
import (
"context"
meet "cloud.google.com/go/apps/meet/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/meetpb#EndActiveConferenceRequest.
}
err = c.EndActiveConference(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*SpacesClient) GetSpace
func (c *SpacesClient) GetSpace(ctx context.Context, req *meetpb.GetSpaceRequest, opts ...gax.CallOption) (*meetpb.Space, error)
GetSpace Developer Preview (at https://developers.google.com/workspace/preview). Gets a space by space_id or meeting_code.
Example
package main
import (
"context"
meet "cloud.google.com/go/apps/meet/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/meetpb#GetSpaceRequest.
}
resp, err := c.GetSpace(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SpacesClient) UpdateSpace
func (c *SpacesClient) UpdateSpace(ctx context.Context, req *meetpb.UpdateSpaceRequest, opts ...gax.CallOption) (*meetpb.Space, error)
UpdateSpace Developer Preview (at https://developers.google.com/workspace/preview). Updates a space.
Example
package main
import (
"context"
meet "cloud.google.com/go/apps/meet/apiv2beta"
meetpb "cloud.google.com/go/apps/meet/apiv2beta/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/apiv2beta/meetpb#UpdateSpaceRequest.
}
resp, err := c.UpdateSpace(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
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) 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.
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) 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.