Yapılarla çalışma

Bu kılavuzda, Google Meet REST API'yi kullanarak bir konferans tarafından oluşturulan farklı toplantı yapıları hakkında nasıl ayrıntılı bilgi edineceğiniz açıklanmaktadır.

Yapı, Google Meet'in bir konferansa yanıt olarak oluşturduğu bir dosya veya veridir. Buna videolar ve transkriptler gibi diğer öğeler dahildir.

Çıktı oluşturmak için katılımcıların konferans sona ermeden önce Meet'te çıktı oluşturması gerekir. Transkriptler kayıtlardan bağımsız olarak çalışır ve transkript oluşturmak için toplantıyı kaydetmeniz gerekmez. Daha fazla bilgi için Görüntülü toplantıyı kaydetme ve Google Meet'te transkriptleri kullanma başlıklı makaleleri inceleyin.

Toplantı alanı sahibi veya katılımcısıysanız get() ve list() yöntemlerini recordings, transcripts ve transcripts.entries kaynaklarında çağırarak yapay nesneleri alabilirsiniz.

Kullanıcı kimlik bilgileriyle kimlik doğrulama ve yetkilendirme, Google Meet uygulamalarının kullanıcı verilerine erişmesine ve kimliği doğrulanmış kullanıcı adına işlemler gerçekleştirmesine olanak tanır. Alan genelinde yetki ile kimlik doğrulama, her kullanıcının tek tek izin vermesine gerek olmadan bir uygulamanın hizmet hesabını kullanıcılarınızın verilerine erişebilmesi için yetkilendirmenize olanak tanır.

Yapı saklama

Bir konferans sona erdikten sonra Meet, kayıtları ve transkriptleri toplantıyı düzenleyen kullanıcının Google Drive'ına kaydeder. Varsayılan olarak Meet yapay nesneleri Drive kurallarına göre saklanır.

Meet REST API tarafından sağlanan transkript girişleri, konferans sona erdikten 30 gün sonra silinir.

Ayrıca, Google Apps Kasası'nda Meet'e özel saklama kurallarını kullanarak Meet çıktılarını ayrı olarak saklayabilirsiniz. Daha fazla bilgi için Apps Kasası'nı kullanarak Google Meet verilerini saklama başlıklı makaleyi inceleyin.

Kayıtlar

Aşağıdaki bölümlerde, konferans kaydındaki kayıtlar hakkında nasıl bilgi alınacağı ayrıntılı olarak açıklanmaktadır.

Meet, kayıt dosyası oluşturulduktan sonra kayıt kimliğine erişebilir. Kullanıcılar, kayıt dosyasını Google Drive'dan silebilir ancak Meet'te benzersiz ad döndürülmeye devam edebilir.

recordings kaynağı hem DriveDestination hem de State nesnelerini içerir.

DriveDestination nesnesi, kaydın MP4 dosyası olarak kaydedildiği Drive'daki dışa aktarma konumunu tutar. Kaydı indirmek veya tarayıcıda oynatmak için nesnenin exportUri alan değerini kullanın. Google Drive API'yi biliyorsanız file alan değeri, files kaynağındaki id değerine karşılık gelir. Daha fazla bilgi için Dosyaları indirme ve dışa aktarma başlıklı makaleyi inceleyin.

State nesnesi, kayıt oturumunun durumunu tutar. Bu sayede, kaydın başlatılıp başlatılmadığını, kaydın bitip bitmediğini ancak kayıt dosyasının hazır olup olmadığını veya kayıt dosyasının oluşturulup indirilmeye hazır olup olmadığını sorgulayabilirsiniz.

Kayıt hakkında ayrıntılı bilgi edinme

Belirli bir kayıtla ilgili ayrıntıları almak için name yol parametresiyle recordings kaynağında get() yöntemini kullanın. Kayıt adını bilmiyorsanız list() yöntemini kullanarak tüm kayıt adlarını listeleyebilirsiniz.

Yöntem, recordings kaynağının bir örneğini döndürür.

Aşağıdaki kod örneğinde, belirli bir kaydın nasıl alınacağı gösterilmektedir:

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)

Kayıt adını, konferans kaydındaki belirli kayıt kimliğinin adıyla değiştirin.

Tüm kayıtları listeleme

Bir konferans kaydındaki tüm kayıtlarla ilgili ayrıntıları listelemek için recordings kaynağında parent yol parametresiyle list() yöntemini kullanın. Biçim: conferenceRecords/{conferenceRecord}.

Yöntem, startTime ile artan düzende sıralanmış konferans kayıtlarının listesini recordings kaynağının bir örneği olarak döndürür. Sayfa boyutunu ayarlamak için Sayfalandırmayı özelleştirme başlıklı makaleye bakın.

Aşağıdaki kod örneğinde, bir konferanstaki tüm kayıtların nasıl listeleneceği gösterilmektedir: record:

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)

Üst değeri, konferans kaydının adıyla değiştirin.

Transkriptler

Aşağıdaki bölümlerde, konferans kayıtlarındaki konferans transkriptleri hakkında nasıl bilgi edineceğiniz ayrıntılı olarak açıklanmaktadır.

Meet, transkript verileri oluşturulduktan sonra transkript kimliğine erişebilir. Kullanıcı, transkript dosyasını Drive'dan silmiş olabilir ancak Meet'te benzersiz ad döndürülmeye devam eder.

transcripts kaynağı hem DocsDestination hem de State nesnelerini içerir.

DocsDestination nesnesi, Google Dokümanlar transkript dosyasının kaydedildiği Drive'daki dışa aktarma konumunu tutar. İçeriği getirmek veya transkripti tarayıcıda incelemek için nesnenin exportUri alan değerini kullanın. Google Dokümanlar API'si hakkında bilginiz varsa document alan değeri, documents kaynağındaki documentId ile eşleşir.

State nesnesi, transkript oturumunun durumunu tutar. Bu sayede, transkript oturumunun başlatılıp başlatılmadığını, transkript oturumunun sona erip ermediğini ancak transkript dosyasının hazır olup olmadığını veya transkript dosyasının oluşturulup indirilmeye hazır olup olmadığını sorgulayabilirsiniz.

Transkript hakkında ayrıntılı bilgi edinme

Belirli bir transkriptle ilgili ayrıntıları almak için name yolu parametresiyle transcripts kaynağında get() yöntemini kullanın. Transkript adını bilmiyorsanız list() yöntemini kullanarak tüm transkript adlarını listeleyebilirsiniz.

Yöntem, transcripts kaynağının bir örneğini döndürür.

Aşağıdaki kod örneğinde, belirli bir transkriptin nasıl alınacağı gösterilmektedir:

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)

Transkript adını, konferans kaydındaki belirli transkript kimliğinin adıyla değiştirin.

Tüm transkriptleri listeleme

Bir konferans kaydındaki tüm transkriptlerle ilgili ayrıntıları listelemek için parent yol parametresine sahip transcripts kaynağında list() yöntemini kullanın. Biçim: conferenceRecords/{conferenceRecord}.

Yöntem, startTime ile artan düzende sıralanmış konferans transkriptlerinin listesini transcripts kaynağının bir örneği olarak döndürür. Sayfa boyutunu ayarlamak için Sayfalandırmayı özelleştirme başlıklı makaleye bakın.

Aşağıdaki kod örneğinde, bir konferans kaydındaki tüm transkriptlerin nasıl listeleneceği gösterilmektedir:

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)

Üst değeri, konferans kaydının adıyla değiştirin.

Transkript girişleri

Aşağıdaki bölümlerde, konferans transkripti oturumu sırasında her katılımcının konuşmasının transkript girişleri olarak nasıl alınacağı ayrıntılı olarak açıklanmaktadır.

Transkript girişi, katılımcının sesinin transkriptini içeren metni (en fazla 10.000 kelime) içerir. Konuşulan metin languageCode (örneğin, en-US) IETF BCP 47 söz dizimi olarak da eklenir.

Her transkript girişi, konferanstaki bir participant adına bağlanır. Katılımcı ayrıntılarını almak için Katılımcılar hakkında ayrıntılı bilgi edinme başlıklı makaleyi inceleyin.

Transkript girişi verileri, konferans sona erdikten sonraki 30 gün boyunca kullanılabilir.

Meet REST API tarafından döndürülen transkript girişlerinin, Dokümanlar transkript dosyasındaki transkriptle eşleşmeyebileceğini unutmayın. Bu durum, transkript dosyası oluşturulduktan sonra değiştirildiğinde ortaya çıkar.

Transkript girişi hakkında ayrıntılı bilgi edinme

Belirli bir transkript girişiyle ilgili ayrıntıları almak için name yol parametresiyle transcripts.entries kaynağında get() yöntemini kullanın. Transkript girişi adını bilmiyorsanız list() yöntemini kullanarak tüm transkript adlarını listeleyebilirsiniz.

Yöntem, transcripts.entries kaynağının bir örneğini döndürür.

Aşağıdaki kod örneğinde, belirli bir transkript girişinin nasıl alınacağı gösterilmektedir:

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)

Transkript girişi adını, transkriptteki belirli transkript girişi kimliğinin adıyla değiştirin.

Tüm transkript girişlerini listeleme

Bir transkriptteki tüm transkript girişleriyle ilgili ayrıntıları listelemek için parent yol parametresiyle transcripts.entries kaynağında list() yöntemini kullanın. Biçim: conferenceRecords/{conferenceRecord}/transcripts/{transcript}.

Bu yöntem, startTime kaynağının bir örneği olarak, konferans transkripti başına yapılandırılmış transkript girişlerinin bir listesini döndürür. Bu liste, startTime sütununa göre artan düzende sıralanır.transcripts.entries Sayfa boyutunu ayarlamak için Sayfalandırmayı özelleştirme başlıklı makaleyi inceleyin.

Aşağıdaki kod örneğinde, bir transkriptteki tüm transkript girişlerinin nasıl listeleneceği gösterilmektedir:

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)

Üst değeri, konferans kaydının adı ve transkript adıyla değiştirin.

Sayfalara ayırma işlemini özelleştirme

Kayıtların, transkriptlerin ve transkript girişlerinin sayfalara ayrılmasını özelleştirmek için aşağıdaki sorgu parametrelerini iletin:

  • pageSize: İade edilecek maksimum öğe sayısı. Hizmet, bu değerden daha az sonuç döndürebilir. Belirtilmemesi halinde en fazla 10 öğe döndürülür. Maksimum değer 100'dür. 100'den büyük değerler otomatik olarak 100'e değiştirilir.

  • pageToken: Önceki bir liste çağrısından alınan sayfa jetonu. Sonraki sayfayı almak için bu jetonu sağlayın.