Class ListAdaptiveMtSentencesRequest.Builder (2.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListAdaptiveMtSentencesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListAdaptiveMtSentencesRequest.Builder
Overrides

build()

public ListAdaptiveMtSentencesRequest build()
Returns
TypeDescription
ListAdaptiveMtSentencesRequest

buildPartial()

public ListAdaptiveMtSentencesRequest buildPartial()
Returns
TypeDescription
ListAdaptiveMtSentencesRequest

clear()

public ListAdaptiveMtSentencesRequest.Builder clear()
Returns
TypeDescription
ListAdaptiveMtSentencesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListAdaptiveMtSentencesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListAdaptiveMtSentencesRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ListAdaptiveMtSentencesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListAdaptiveMtSentencesRequest.Builder
Overrides

clearPageSize()

public ListAdaptiveMtSentencesRequest.Builder clearPageSize()

int32 page_size = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ListAdaptiveMtSentencesRequest.Builder

This builder for chaining.

clone()

public ListAdaptiveMtSentencesRequest.Builder clone()
Returns
TypeDescription
ListAdaptiveMtSentencesRequest.Builder
Overrides

getDefaultInstanceForType()

public ListAdaptiveMtSentencesRequest getDefaultInstanceForType()
Returns
TypeDescription
ListAdaptiveMtSentencesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPageSize()

public int getPageSize()

int32 page_size = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListAdaptiveMtSentencesRequest other)

public ListAdaptiveMtSentencesRequest.Builder mergeFrom(ListAdaptiveMtSentencesRequest other)
Parameter
NameDescription
otherListAdaptiveMtSentencesRequest
Returns
TypeDescription
ListAdaptiveMtSentencesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListAdaptiveMtSentencesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListAdaptiveMtSentencesRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListAdaptiveMtSentencesRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListAdaptiveMtSentencesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListAdaptiveMtSentencesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListAdaptiveMtSentencesRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ListAdaptiveMtSentencesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListAdaptiveMtSentencesRequest.Builder
Overrides

setPageSize(int value)

public ListAdaptiveMtSentencesRequest.Builder setPageSize(int value)

int32 page_size = 2;

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
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
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListAdaptiveMtSentencesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListAdaptiveMtSentencesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListAdaptiveMtSentencesRequest.Builder
Overrides