Praca z artefaktami

Z tego przewodnika dowiesz się, jak za pomocą interfejsu Google Meet REST API uzyskać szczegółowe informacje o różnych elementach spotkania wygenerowanych przez konferencję.

Element to plik lub dane wygenerowane przez Google Meet w odpowiedzi na konferencję. Dotyczy to filmów i innych elementów, takich jak transkrypcje.

Aby wygenerować artefakty, uczestnicy muszą to zrobić w Meet przed zakończeniem konferencji. Transkrypcje działają niezależnie od nagrań i nie musisz nagrywać spotkania, aby wygenerować transkrypcję. Więcej informacji znajdziesz w artykułach Nagrywanie spotkania wideo i Korzystanie z transkrypcji w Google Meet.

Jeśli jesteś właścicielem lub uczestnikiem przestrzeni spotkań, możesz wywołać metody get() i list() w zasobach recordings, transcripts i transcripts.entries, aby pobrać artefakty.

Uwierzytelnianie i autoryzacja za pomocą danych logowania użytkownika umożliwiają aplikacjom Google Meet dostęp do danych użytkownika i wykonywanie operacji w imieniu uwierzytelnionego użytkownika. Uwierzytelnianie za pomocą przekazywania dostępu w całej domenie umożliwia autoryzowanie konta usługi aplikacji do uzyskiwania dostępu do danych użytkowników bez potrzeby pytania każdego użytkownika o zgodę.

Przechowywanie artefaktów

Po zakończeniu konferencji Meet zapisuje nagrania i transkrypcje na Dysku Google organizatora spotkania. Domyślnie artefakty Meet są przechowywane zgodnie z regułami Dysku.

Wpisy transkrypcji udostępniane przez interfejs Meet REST API są usuwane 30 dni po zakończeniu konferencji.

Możesz też zarządzać przechowywaniem artefaktów z Meet oddzielnie za pomocą reguł przechowywania dotyczących Meet w Google Vault. Więcej informacji znajdziesz w artykule Przechowywanie danych z Google Meet w Vault.

Nagrania

W sekcjach poniżej znajdziesz szczegółowe informacje o tym, jak uzyskać informacje o nagraniach w rekordzie konferencji.

Meet ma dostęp do identyfikatora nagrania po wygenerowaniu pliku z nagraniem. Użytkownik może usunąć plik nagrania z Dysku Google, ale unikalna nazwa nadal będzie zwracana w Meet.

Zasób recordings zawiera obiekty DriveDestinationState.

Obiekt DriveDestination zawiera lokalizację eksportu na Dysku, w której nagranie jest zapisywane jako plik MP4. Aby pobrać nagranie lub odtworzyć je w przeglądarce, użyj wartości pola exportUri obiektu. Jeśli znasz interfejs Google Drive API, wartość pola file odpowiada polu id w zasobie files. Więcej informacji znajdziesz w artykule Pobieranie i eksportowanie plików.

Obiekt State zawiera stan sesji nagrywania. Dzięki temu możesz sprawdzić, czy nagrywanie się rozpoczęło, czy się zakończyło, ale plik nagrania nie jest gotowy, lub czy plik nagrania został wygenerowany i jest gotowy do pobrania.

Wyświetlanie szczegółów nagrania

Aby uzyskać szczegółowe informacje o konkretnym nagraniu, użyj metody get() w zasobie recordings z parametrem ścieżki name. Jeśli nie znasz nazwy nagrania, możesz wyświetlić listę wszystkich nazw nagrań za pomocą metody list().

Metoda zwraca instancję zasobu recordings.

Poniższy przykładowy kod pokazuje, jak pobrać konkretne nagranie:

Java

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/AsyncGetRecording.java
import com.google.api.core.ApiFuture; import com.google.apps.meet.v2.ConferenceRecordsServiceClient; import com.google.apps.meet.v2.GetRecordingRequest; import com.google.apps.meet.v2.Recording; import com.google.apps.meet.v2.RecordingName;  public class AsyncGetRecording {    public static void main(String[] args) throws Exception {     asyncGetRecording();   }    public static void asyncGetRecording() throws Exception {     // 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library     try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =         ConferenceRecordsServiceClient.create()) {       GetRecordingRequest request =           GetRecordingRequest.newBuilder()               .setName(RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString())               .build();       ApiFuture<Recording> future =           conferenceRecordsServiceClient.getRecordingCallable().futureCall(request);       // Do something.       Recording response = future.get();     }   } }

Node.js

packages/google-apps-meet/samples/generated/v2/conference_records_service.get_recording.js
/**  * 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.  * TODO(developer): Uncomment these variables before running the sample.  */ /**  *  Required. Resource name of the recording.  */ // const name = 'abc123'  // Imports the Meet library const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;  // Instantiates a client const meetClient = new ConferenceRecordsServiceClient();  async function callGetRecording() {   // Construct request   const request = {     name,   };    // Run request   const response = await meetClient.getRecording(request);   console.log(response); }  callGetRecording();

Python

packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_get_recording_async.py
# 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://googleapis.dev/python/google-api-core/latest/client_options.html from google.apps import meet_v2   async def sample_get_recording():     # Create a client     client = meet_v2.ConferenceRecordsServiceAsyncClient()      # Initialize request argument(s)     request = meet_v2.GetRecordingRequest(         name="name_value",     )      # Make the request     response = await client.get_recording(request=request)      # Handle the response     print(response)

Zastąp nazwę nagrania nazwą konkretnego identyfikatora nagrania w rekordzie konferencji.

Wyświetlanie listy wszystkich nagrań

Aby wyświetlić szczegóły wszystkich nagrań w rekordzie konferencji, użyj metody list() w zasobie recordings z parametrem ścieżki parent. Format: conferenceRecords/{conferenceRecord}.

Metoda zwraca listę nagrań konferencji uporządkowaną według startTime w kolejności rosnącej jako instancję zasobu recordings. Aby dostosować rozmiar strony, przeczytaj artykuł Dostosowywanie podziału na strony .

Poniższy przykładowy kod pokazuje, jak wyświetlić listę wszystkich nagrań w nagraniu konferencji:

Java

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/AsyncListRecordings.java
import com.google.api.core.ApiFuture; import com.google.apps.meet.v2.ConferenceRecordName; import com.google.apps.meet.v2.ConferenceRecordsServiceClient; import com.google.apps.meet.v2.ListRecordingsRequest; import com.google.apps.meet.v2.Recording;  public class AsyncListRecordings {    public static void main(String[] args) throws Exception {     asyncListRecordings();   }    public static void asyncListRecordings() throws Exception {     // 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library     try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =         ConferenceRecordsServiceClient.create()) {       ListRecordingsRequest request =           ListRecordingsRequest.newBuilder()               .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())               .setPageSize(883849137)               .setPageToken("pageToken873572522")               .build();       ApiFuture<Recording> future =           conferenceRecordsServiceClient.listRecordingsPagedCallable().futureCall(request);       // Do something.       for (Recording element : future.get().iterateAll()) {         // doThingsWith(element);       }     }   } }

Node.js

packages/google-apps-meet/samples/generated/v2/conference_records_service.list_recordings.js
/**  * 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.  * TODO(developer): Uncomment these variables before running the sample.  */ /**  *  Required. Format: `conferenceRecords/{conference_record}`  */ // const parent = 'abc123' /**  *  Maximum number of recordings to return. The service might return fewer  *  than this value.  *  If unspecified, at most 10 recordings are returned.  *  The maximum value is 100; values above 100 are coerced to 100.  *  Maximum might change in the future.  */ // const pageSize = 1234 /**  *  Page token returned from previous List Call.  */ // const pageToken = 'abc123'  // Imports the Meet library const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;  // Instantiates a client const meetClient = new ConferenceRecordsServiceClient();  async function callListRecordings() {   // Construct request   const request = {     parent,   };    // Run request   const iterable = meetClient.listRecordingsAsync(request);   for await (const response of iterable) {       console.log(response);   } }  callListRecordings();

Python

packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_list_recordings_async.py
# 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://googleapis.dev/python/google-api-core/latest/client_options.html from google.apps import meet_v2   async def sample_list_recordings():     # Create a client     client = meet_v2.ConferenceRecordsServiceAsyncClient()      # Initialize request argument(s)     request = meet_v2.ListRecordingsRequest(         parent="parent_value",     )      # Make the request     page_result = client.list_recordings(request=request)      # Handle the response     async for response in page_result:         print(response)

Zastąp wartość parent nazwą rekordu konferencji.

Transkrypcje

W sekcjach poniżej znajdziesz szczegółowe informacje o tym, jak uzyskać informacje o transkrypcjach rozmów wideo w rekordzie rozmowy.

Gdy dane transkrypcji zostaną wygenerowane, Meet będzie mieć dostęp do identyfikatora transkrypcji. Użytkownik może usunąć plik transkrypcji z Dysku, ale unikalna nazwa nadal będzie zwracana w Meet.

Zasób transcripts zawiera obiekty DocsDestinationState.

Obiekt DocsDestination zawiera lokalizację eksportu na Dysku, w której zapisywany jest plik transkrypcji Dokumentów Google. Aby pobrać treść lub przejrzeć transkrypcję w przeglądarce, użyj wartości pola exportUri obiektu. Jeśli znasz interfejs Google Docs API, wartość pola document odpowiada polu documentId w zasobie documents.

Obiekt State zawiera stan sesji transkrypcji. Umożliwia to sprawdzenie, czy sesja transkrypcji się rozpoczęła, czy się zakończyła, ale plik transkrypcji nie jest gotowy, lub czy plik transkrypcji został wygenerowany i jest gotowy do pobrania.

Wyświetlanie szczegółów transkrypcji

Aby uzyskać szczegółowe informacje o konkretnym transkrypcie, użyj metody get() w zasobie transcripts z parametrem ścieżki name. Jeśli nie znasz nazwy transkrypcji, możesz wyświetlić listę wszystkich nazw transkrypcji za pomocą metody list().

Metoda zwraca instancję zasobu transcripts.

Poniższy przykładowy kod pokazuje, jak pobrać konkretny transkrypt:

Java

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/AsyncGetTranscript.java
import com.google.api.core.ApiFuture; import com.google.apps.meet.v2.ConferenceRecordsServiceClient; import com.google.apps.meet.v2.GetTranscriptRequest; import com.google.apps.meet.v2.Transcript; import com.google.apps.meet.v2.TranscriptName;  public class AsyncGetTranscript {    public static void main(String[] args) throws Exception {     asyncGetTranscript();   }    public static void asyncGetTranscript() throws Exception {     // 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library     try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =         ConferenceRecordsServiceClient.create()) {       GetTranscriptRequest request =           GetTranscriptRequest.newBuilder()               .setName(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString())               .build();       ApiFuture<Transcript> future =           conferenceRecordsServiceClient.getTranscriptCallable().futureCall(request);       // Do something.       Transcript response = future.get();     }   } }

Node.js

packages/google-apps-meet/samples/generated/v2/conference_records_service.get_transcript.js
/**  * 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.  * TODO(developer): Uncomment these variables before running the sample.  */ /**  *  Required. Resource name of the transcript.  */ // const name = 'abc123'  // Imports the Meet library const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;  // Instantiates a client const meetClient = new ConferenceRecordsServiceClient();  async function callGetTranscript() {   // Construct request   const request = {     name,   };    // Run request   const response = await meetClient.getTranscript(request);   console.log(response); }  callGetTranscript();

Python

packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_get_transcript_async.py
# 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://googleapis.dev/python/google-api-core/latest/client_options.html from google.apps import meet_v2   async def sample_get_transcript():     # Create a client     client = meet_v2.ConferenceRecordsServiceAsyncClient()      # Initialize request argument(s)     request = meet_v2.GetTranscriptRequest(         name="name_value",     )      # Make the request     response = await client.get_transcript(request=request)      # Handle the response     print(response)

Zastąp nazwę transkrypcji nazwą konkretnego identyfikatora transkrypcji w rekordzie konferencji.

Wyświetlanie listy wszystkich transkrypcji

Aby wyświetlić szczegóły wszystkich transkrypcji w rekordzie konferencji, użyj metody list() w zasobie transcripts z parametrem ścieżki parent. Format: conferenceRecords/{conferenceRecord}.

Metoda zwraca listę transkrypcji konferencji uporządkowaną według startTime w kolejności rosnącej jako instancję zasobu transcripts. Aby dostosować rozmiar strony, przeczytaj artykuł Dostosowywanie podziału na strony .

Poniższy przykładowy kod pokazuje, jak wyświetlić listę wszystkich transkrypcji w nagraniu konferencji:

Java

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/AsyncListTranscripts.java
import com.google.api.core.ApiFuture; import com.google.apps.meet.v2.ConferenceRecordName; import com.google.apps.meet.v2.ConferenceRecordsServiceClient; import com.google.apps.meet.v2.ListTranscriptsRequest; import com.google.apps.meet.v2.Transcript;  public class AsyncListTranscripts {    public static void main(String[] args) throws Exception {     asyncListTranscripts();   }    public static void asyncListTranscripts() throws Exception {     // 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library     try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =         ConferenceRecordsServiceClient.create()) {       ListTranscriptsRequest request =           ListTranscriptsRequest.newBuilder()               .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())               .setPageSize(883849137)               .setPageToken("pageToken873572522")               .build();       ApiFuture<Transcript> future =           conferenceRecordsServiceClient.listTranscriptsPagedCallable().futureCall(request);       // Do something.       for (Transcript element : future.get().iterateAll()) {         // doThingsWith(element);       }     }   } }

Node.js

packages/google-apps-meet/samples/generated/v2/conference_records_service.list_transcripts.js
/**  * 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.  * TODO(developer): Uncomment these variables before running the sample.  */ /**  *  Required. Format: `conferenceRecords/{conference_record}`  */ // const parent = 'abc123' /**  *  Maximum number of transcripts to return. The service might return fewer  *  than this value.  *  If unspecified, at most 10 transcripts are returned.  *  The maximum value is 100; values above 100 are coerced to 100.  *  Maximum might change in the future.  */ // const pageSize = 1234 /**  *  Page token returned from previous List Call.  */ // const pageToken = 'abc123'  // Imports the Meet library const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;  // Instantiates a client const meetClient = new ConferenceRecordsServiceClient();  async function callListTranscripts() {   // Construct request   const request = {     parent,   };    // Run request   const iterable = meetClient.listTranscriptsAsync(request);   for await (const response of iterable) {       console.log(response);   } }  callListTranscripts();

Python

packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_list_transcripts_async.py
# 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://googleapis.dev/python/google-api-core/latest/client_options.html from google.apps import meet_v2   async def sample_list_transcripts():     # Create a client     client = meet_v2.ConferenceRecordsServiceAsyncClient()      # Initialize request argument(s)     request = meet_v2.ListTranscriptsRequest(         parent="parent_value",     )      # Make the request     page_result = client.list_transcripts(request=request)      # Handle the response     async for response in page_result:         print(response)

Zastąp wartość parent nazwą rekordu konferencji.

Wpisy w transkrypcji

W sekcjach poniżej znajdziesz szczegółowe informacje o tym, jak uzyskać wypowiedzi poszczególnych uczestników w formie wpisów transkrypcji podczas sesji transkrypcji konferencji.

Transkrypcja zawiera tekst głosu uczestnika, maksymalnie 10 000 słów. Wypowiadany tekst languageCode (np. en-US) jest też podany w składni IETF BCP 47.

Każdy wpis w transkrypcji jest połączony z participant nazwą w konferencji. Aby pobrać szczegóły uczestnika, zobacz Pobieranie szczegółów uczestnika.

Dane dotyczące wpisów w transkrypcji są dostępne przez 30 dni po zakończeniu konferencji.

Pamiętaj, że wpisy transkrypcji zwracane przez interfejs Meet REST API mogą nie odpowiadać transkrypcji w pliku transkrypcji Dokumentów. Dzieje się tak, gdy plik transkrypcji zostanie zmodyfikowany po wygenerowaniu.

Wyświetlanie szczegółów wpisu w transkrypcji

Aby uzyskać szczegółowe informacje o konkretnym wpisie w transkrypcji, użyj metody get() w zasobie transcripts.entries z parametrem ścieżki name. Jeśli nie znasz nazwy wpisu transkrypcji, możesz wyświetlić listę wszystkich nazw transkrypcji za pomocą metody list().

Metoda zwraca instancję zasobu transcripts.entries.

Poniższy przykładowy kod pokazuje, jak pobrać konkretny wpis transkrypcji:

Java

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/AsyncGetTranscriptEntry.java
import com.google.api.core.ApiFuture; import com.google.apps.meet.v2.ConferenceRecordsServiceClient; import com.google.apps.meet.v2.GetTranscriptEntryRequest; import com.google.apps.meet.v2.TranscriptEntry; import com.google.apps.meet.v2.TranscriptEntryName;  public class AsyncGetTranscriptEntry {    public static void main(String[] args) throws Exception {     asyncGetTranscriptEntry();   }    public static void asyncGetTranscriptEntry() throws Exception {     // 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library     try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =         ConferenceRecordsServiceClient.create()) {       GetTranscriptEntryRequest request =           GetTranscriptEntryRequest.newBuilder()               .setName(                   TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]")                       .toString())               .build();       ApiFuture<TranscriptEntry> future =           conferenceRecordsServiceClient.getTranscriptEntryCallable().futureCall(request);       // Do something.       TranscriptEntry response = future.get();     }   } }

Node.js

packages/google-apps-meet/samples/generated/v2/conference_records_service.get_transcript_entry.js
/**  * 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.  * TODO(developer): Uncomment these variables before running the sample.  */ /**  *  Required. Resource name of the `TranscriptEntry`.  */ // const name = 'abc123'  // Imports the Meet library const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;  // Instantiates a client const meetClient = new ConferenceRecordsServiceClient();  async function callGetTranscriptEntry() {   // Construct request   const request = {     name,   };    // Run request   const response = await meetClient.getTranscriptEntry(request);   console.log(response); }  callGetTranscriptEntry();

Python

packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_get_transcript_entry_async.py
# 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://googleapis.dev/python/google-api-core/latest/client_options.html from google.apps import meet_v2   async def sample_get_transcript_entry():     # Create a client     client = meet_v2.ConferenceRecordsServiceAsyncClient()      # Initialize request argument(s)     request = meet_v2.GetTranscriptEntryRequest(         name="name_value",     )      # Make the request     response = await client.get_transcript_entry(request=request)      # Handle the response     print(response)

Zastąp nazwę wpisu w transkrypcji nazwą konkretnego wpisu w transkrypcji.

Wyświetlanie listy wszystkich wpisów w transkrypcji

Aby wyświetlić szczegółowe informacje o wszystkich wpisach w transkrypcji, użyj metody list() w zasobie transcripts.entries z parametrem ścieżki parent. Format: conferenceRecords/{conferenceRecord}/transcripts/{transcript}.

Metoda zwraca listę uporządkowanych wpisów transkrypcji dla każdej transkrypcji konferencji, posortowaną według kolumny startTime w kolejności rosnącej, jako instancję zasobu transcripts.entries. Aby dostosować rozmiar strony, przeczytaj artykuł Dostosowywanie paginacji .

Poniższy przykładowy kod pokazuje, jak wyświetlić listę wszystkich wpisów w transkrypcji:

Java

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/AsyncListTranscriptEntries.java
import com.google.api.core.ApiFuture; import com.google.apps.meet.v2.ConferenceRecordsServiceClient; import com.google.apps.meet.v2.ListTranscriptEntriesRequest; import com.google.apps.meet.v2.TranscriptEntry; import com.google.apps.meet.v2.TranscriptName;  public class AsyncListTranscriptEntries {    public static void main(String[] args) throws Exception {     asyncListTranscriptEntries();   }    public static void asyncListTranscriptEntries() throws Exception {     // 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library     try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =         ConferenceRecordsServiceClient.create()) {       ListTranscriptEntriesRequest request =           ListTranscriptEntriesRequest.newBuilder()               .setParent(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString())               .setPageSize(883849137)               .setPageToken("pageToken873572522")               .build();       ApiFuture<TranscriptEntry> future =           conferenceRecordsServiceClient.listTranscriptEntriesPagedCallable().futureCall(request);       // Do something.       for (TranscriptEntry element : future.get().iterateAll()) {         // doThingsWith(element);       }     }   } }

Node.js

packages/google-apps-meet/samples/generated/v2/conference_records_service.list_transcript_entries.js
/**  * 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.  * TODO(developer): Uncomment these variables before running the sample.  */ /**  *  Required. Format:  *  `conferenceRecords/{conference_record}/transcripts/{transcript}`  */ // const parent = 'abc123' /**  *  Maximum number of entries to return. The service might return fewer than  *  this value.  *  If unspecified, at most 10 entries are returned.  *  The maximum value is 100; values above 100 are coerced to 100.  *  Maximum might change in the future.  */ // const pageSize = 1234 /**  *  Page token returned from previous List Call.  */ // const pageToken = 'abc123'  // Imports the Meet library const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;  // Instantiates a client const meetClient = new ConferenceRecordsServiceClient();  async function callListTranscriptEntries() {   // Construct request   const request = {     parent,   };    // Run request   const iterable = meetClient.listTranscriptEntriesAsync(request);   for await (const response of iterable) {       console.log(response);   } }  callListTranscriptEntries();

Python

packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_list_transcript_entries_async.py
# 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://googleapis.dev/python/google-api-core/latest/client_options.html from google.apps import meet_v2   async def sample_list_transcript_entries():     # Create a client     client = meet_v2.ConferenceRecordsServiceAsyncClient()      # Initialize request argument(s)     request = meet_v2.ListTranscriptEntriesRequest(         parent="parent_value",     )      # Make the request     page_result = client.list_transcript_entries(request=request)      # Handle the response     async for response in page_result:         print(response)

Zastąp wartość nadrzędną nazwą rekordu konferencji i nazwą transkrypcji.

Dostosowywanie podziału na strony

Przekaż te parametry zapytania, aby dostosować paginację nagrań, transkrypcji i wpisów w transkrypcji:

  • pageSize: maksymalna liczba produktów do zwrotu. Usługa może zwrócić mniej niż ta wartość. Jeśli nie podano tego argumentu, zwracanych jest maksymalnie 10 elementów. Maksymalna wartość to 100. Wartości większe niż 100 są automatycznie zmieniane na 100.

  • pageToken: token strony otrzymany z poprzedniego wywołania listy. Podaj ten token, aby pobrać następną stronę.