Class ListAdaptiveMtSentencesRequest.Builder (2.46.0)

public static final class ListAdaptiveMtSentencesRequest.Builder extends GeneratedMessageV3.Builder<ListAdaptiveMtSentencesRequest.Builder> implements ListAdaptiveMtSentencesRequestOrBuilder

The request for listing Adaptive MT sentences from a Dataset/File.

Protobuf type google.cloud.translation.v3.ListAdaptiveMtSentencesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListAdaptiveMtSentencesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder
Overrides

build()

public ListAdaptiveMtSentencesRequest build()
Returns
Type Description
ListAdaptiveMtSentencesRequest

buildPartial()

public ListAdaptiveMtSentencesRequest buildPartial()
Returns
Type Description
ListAdaptiveMtSentencesRequest

clear()

public ListAdaptiveMtSentencesRequest.Builder clear()
Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListAdaptiveMtSentencesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ListAdaptiveMtSentencesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder
Overrides

clearPageSize()

public ListAdaptiveMtSentencesRequest.Builder clearPageSize()

int32 page_size = 2;

Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder

This builder for chaining.

clearPageToken()

public ListAdaptiveMtSentencesRequest.Builder clearPageToken()

A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to ListTranslationMemories method. The first page is returned if page_token is empty or missing.

string page_token = 3;

Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder

This builder for chaining.

clearParent()

public ListAdaptiveMtSentencesRequest.Builder clearParent()

Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file} The following format lists all sentences within a dataset. projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder

This builder for chaining.

clone()

public ListAdaptiveMtSentencesRequest.Builder clone()
Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder
Overrides

getDefaultInstanceForType()

public ListAdaptiveMtSentencesRequest getDefaultInstanceForType()
Returns
Type Description
ListAdaptiveMtSentencesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPageSize()

public int getPageSize()

int32 page_size = 2;

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to ListTranslationMemories method. The first page is returned if page_token is empty or missing.

string page_token = 3;

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to ListTranslationMemories method. The first page is returned if page_token is empty or missing.

string page_token = 3;

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file} The following format lists all sentences within a dataset. projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file} The following format lists all sentences within a dataset. projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListAdaptiveMtSentencesRequest other)

public ListAdaptiveMtSentencesRequest.Builder mergeFrom(ListAdaptiveMtSentencesRequest other)
Parameter
Name Description
other ListAdaptiveMtSentencesRequest
Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListAdaptiveMtSentencesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListAdaptiveMtSentencesRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListAdaptiveMtSentencesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ListAdaptiveMtSentencesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder
Overrides

setPageSize(int value)

public ListAdaptiveMtSentencesRequest.Builder setPageSize(int value)

int32 page_size = 2;

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListAdaptiveMtSentencesRequest.Builder setPageToken(String value)

A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to ListTranslationMemories method. The first page is returned if page_token is empty or missing.

string page_token = 3;

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListAdaptiveMtSentencesRequest.Builder setPageTokenBytes(ByteString value)

A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to ListTranslationMemories method. The first page is returned if page_token is empty or missing.

string page_token = 3;

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder

This builder for chaining.

setParent(String value)

public ListAdaptiveMtSentencesRequest.Builder setParent(String value)

Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file} The following format lists all sentences within a dataset. projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListAdaptiveMtSentencesRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file} The following format lists all sentences within a dataset. projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListAdaptiveMtSentencesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListAdaptiveMtSentencesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListAdaptiveMtSentencesRequest.Builder
Overrides