Praca z artefaktami

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

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

Aby wygenerować artefakty, uczestnicy muszą je wygenerować 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 Używanie transkrypcji w Google Meet.

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

Uwierzytelnianie i autoryzowanie za pomocą danych logowania użytkownika umożliwia 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. Domyślnie artefakty Meet są przechowywane zgodnie z regułami Dysku.

Zapis treści udostępniany przez interfejs API Meet jest usuwany po 30 dniach od zakończenia konferencji.

Możesz też zarządzać przechowywaniem artefaktów z Meet oddzielnie, używając reguł przechowywania w Google Vault. Więcej informacji znajdziesz w artykule Przechowywanie danych z Google Meet w Vault.

Nagrania

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

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

Zasób recordings zawiera zarówno obiekty DriveDestination, jak i State.

Obiekt DriveDestination zawiera lokalizację eksportu na Dysku, gdzie 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 API Dysku Google, wartość pola file odpowiada wartości id w zasobach 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 zostało rozpoczęte, czy zostało zakończone, ale plik z nagraniem nie jest jeszcze gotowy, czy plik z nagraniem został wygenerowany i jest gotowy do pobrania.

Uzyskiwanie 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ć wszystkie nazwy nagrań, korzystając z metody list().

Metoda zwraca instancję zasobu recordings.

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

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 instancja zasobu recordings. Aby dostosować rozmiar strony, przeczytaj artykuł Dostosowywanie podziału na strony .

Poniższy przykładowy kod pokazuje, jak wyświetlić wszystkie nagrania w zapisie 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ść nadrzędną nazwą rekordu konferencji.

Transkrypcje

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

Meet ma dostęp do identyfikatora transkrypcji po wygenerowaniu danych transkrypcji. Użytkownik może usunąć plik transkrypcji z Dysku, ale unikalna nazwa jest nadal zwracana w Meet.

Zasób transcripts zawiera zarówno obiekty DocsDestination, jak i State.

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

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

Uzyskiwanie 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ć wszystkie nazwy transkrypcji, używając metody list().

Metoda zwraca instancję zasobu transcripts.

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

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 instancja zasobu transcripts. Aby dostosować rozmiar strony, przeczytaj artykuł Dostosowywanie podziału na strony .

Poniższy przykładowy kod pokazuje, jak wyświetlić wszystkie transkrypcje w nagraniu z rozmowy konferencyjnej:

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ść nadrzędną nazwą rekordu konferencji.

Wpisy w transkrypcji

W kolejnych sekcjach znajdziesz szczegółowe informacje o tym, jak podczas sesji transkrypcji konferencji uzyskać transkrypcję mowy każdego uczestnika.

Wpis transkrypcji zawiera transkrypcję głosu uczestnika (maksymalnie 10 tys. słów). Tekst languageCode (na przykład en-US) jest również dołączony w składni IETF BCP 47.

Każdy wpis w transkrypcji jest powiązany z nazwą participant w konferencji. Aby pobrać dane uczestnika, przeczytaj artykuł Pobieranie danych o uczestniku.

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

Pamiętaj, że wpisy transkrypcji zwrócone przez interfejs Meet REST API mogą nie odpowiadać transkrypcji w pliku transkrypcji w Dokumentach. Występuje to, gdy plik transkrypcji zostanie zmodyfikowany po wygenerowaniu.

Uzyskiwanie 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 w transkrypcji, możesz wyświetlić wszystkie nazwy transkrypcji, używając metody list().

Metoda zwraca instancję zasobu transcripts.entries.

Poniższy przykładowy kod pokazuje, jak pobrać konkretny wpis z 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ą identyfikatora konkretnego wpisu w transkrypcji.

Wyświetlanie listy wszystkich wpisó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 transkrypcji w ramach konferencji startTime, posortowanych według kolumny startTime w kolejności rosnącej, jako instancja zasobu transcripts.entries. Aby dostosować rozmiar strony, przeczytaj artykuł Dostosowywanie podziału na strony .

Poniższy przykładowy kod pokazuje, jak wyświetlić wszystkie wpisy transkrypcji 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

Aby dostosować podział na strony nagrań, transkrypcji i ich wpisów, podaj te parametry zapytania:

  • pageSize: maksymalna liczba produktów do zwrotu. Usługa może zwrócić mniej niż tę wartość. Jeśli nie podano tego argumentu, zwracane 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ć kolejną stronę.