Class ListAdaptiveMtFilesResponse.Builder (2.46.0)

public static final class ListAdaptiveMtFilesResponse.Builder extends GeneratedMessageV3.Builder<ListAdaptiveMtFilesResponse.Builder> implements ListAdaptiveMtFilesResponseOrBuilder

The response for listing all AdaptiveMt files under a given dataset.

Protobuf type google.cloud.translation.v3.ListAdaptiveMtFilesResponse

Static Methods

getDescriptor()

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

Methods

addAdaptiveMtFiles(AdaptiveMtFile value)

public ListAdaptiveMtFilesResponse.Builder addAdaptiveMtFiles(AdaptiveMtFile value)

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AdaptiveMtFile
Returns
Type Description
ListAdaptiveMtFilesResponse.Builder

addAdaptiveMtFiles(AdaptiveMtFile.Builder builderForValue)

public ListAdaptiveMtFilesResponse.Builder addAdaptiveMtFiles(AdaptiveMtFile.Builder builderForValue)

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue AdaptiveMtFile.Builder
Returns
Type Description
ListAdaptiveMtFilesResponse.Builder

addAdaptiveMtFiles(int index, AdaptiveMtFile value)

public ListAdaptiveMtFilesResponse.Builder addAdaptiveMtFiles(int index, AdaptiveMtFile value)

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value AdaptiveMtFile
Returns
Type Description
ListAdaptiveMtFilesResponse.Builder

addAdaptiveMtFiles(int index, AdaptiveMtFile.Builder builderForValue)

public ListAdaptiveMtFilesResponse.Builder addAdaptiveMtFiles(int index, AdaptiveMtFile.Builder builderForValue)

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue AdaptiveMtFile.Builder
Returns
Type Description
ListAdaptiveMtFilesResponse.Builder

addAdaptiveMtFilesBuilder()

public AdaptiveMtFile.Builder addAdaptiveMtFilesBuilder()

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AdaptiveMtFile.Builder

addAdaptiveMtFilesBuilder(int index)

public AdaptiveMtFile.Builder addAdaptiveMtFilesBuilder(int index)

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtFile.Builder

addAllAdaptiveMtFiles(Iterable<? extends AdaptiveMtFile> values)

public ListAdaptiveMtFilesResponse.Builder addAllAdaptiveMtFiles(Iterable<? extends AdaptiveMtFile> values)

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.translate.v3.AdaptiveMtFile>
Returns
Type Description
ListAdaptiveMtFilesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAdaptiveMtFilesResponse build()
Returns
Type Description
ListAdaptiveMtFilesResponse

buildPartial()

public ListAdaptiveMtFilesResponse buildPartial()
Returns
Type Description
ListAdaptiveMtFilesResponse

clear()

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

clearAdaptiveMtFiles()

public ListAdaptiveMtFilesResponse.Builder clearAdaptiveMtFiles()

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListAdaptiveMtFilesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListAdaptiveMtFilesResponse.Builder clearNextPageToken()

Optional. A token to retrieve a page of results. Pass this value in the ListAdaptiveMtFilesRequest.page_token field in the subsequent call to ListAdaptiveMtFiles method to retrieve the next page of results.

string next_page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListAdaptiveMtFilesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAdaptiveMtFiles(int index)

public AdaptiveMtFile getAdaptiveMtFiles(int index)

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtFile

getAdaptiveMtFilesBuilder(int index)

public AdaptiveMtFile.Builder getAdaptiveMtFilesBuilder(int index)

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtFile.Builder

getAdaptiveMtFilesBuilderList()

public List<AdaptiveMtFile.Builder> getAdaptiveMtFilesBuilderList()

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getAdaptiveMtFilesCount()

public int getAdaptiveMtFilesCount()

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getAdaptiveMtFilesList()

public List<AdaptiveMtFile> getAdaptiveMtFilesList()

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<AdaptiveMtFile>

getAdaptiveMtFilesOrBuilder(int index)

public AdaptiveMtFileOrBuilder getAdaptiveMtFilesOrBuilder(int index)

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtFileOrBuilder

getAdaptiveMtFilesOrBuilderList()

public List<? extends AdaptiveMtFileOrBuilder> getAdaptiveMtFilesOrBuilderList()

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.translate.v3.AdaptiveMtFileOrBuilder>

getDefaultInstanceForType()

public ListAdaptiveMtFilesResponse getDefaultInstanceForType()
Returns
Type Description
ListAdaptiveMtFilesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Optional. A token to retrieve a page of results. Pass this value in the ListAdaptiveMtFilesRequest.page_token field in the subsequent call to ListAdaptiveMtFiles method to retrieve the next page of results.

string next_page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Optional. A token to retrieve a page of results. Pass this value in the ListAdaptiveMtFilesRequest.page_token field in the subsequent call to ListAdaptiveMtFiles method to retrieve the next page of results.

string next_page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListAdaptiveMtFilesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAdaptiveMtFiles(int index)

public ListAdaptiveMtFilesResponse.Builder removeAdaptiveMtFiles(int index)

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ListAdaptiveMtFilesResponse.Builder

setAdaptiveMtFiles(int index, AdaptiveMtFile value)

public ListAdaptiveMtFilesResponse.Builder setAdaptiveMtFiles(int index, AdaptiveMtFile value)

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value AdaptiveMtFile
Returns
Type Description
ListAdaptiveMtFilesResponse.Builder

setAdaptiveMtFiles(int index, AdaptiveMtFile.Builder builderForValue)

public ListAdaptiveMtFilesResponse.Builder setAdaptiveMtFiles(int index, AdaptiveMtFile.Builder builderForValue)

Output only. The Adaptive MT files.

repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue AdaptiveMtFile.Builder
Returns
Type Description
ListAdaptiveMtFilesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListAdaptiveMtFilesResponse.Builder setNextPageToken(String value)

Optional. A token to retrieve a page of results. Pass this value in the ListAdaptiveMtFilesRequest.page_token field in the subsequent call to ListAdaptiveMtFiles method to retrieve the next page of results.

string next_page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListAdaptiveMtFilesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListAdaptiveMtFilesResponse.Builder setNextPageTokenBytes(ByteString value)

Optional. A token to retrieve a page of results. Pass this value in the ListAdaptiveMtFilesRequest.page_token field in the subsequent call to ListAdaptiveMtFiles method to retrieve the next page of results.

string next_page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListAdaptiveMtFilesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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