Class ListAdaptiveMtSentencesResponse (2.35.0)

public final class ListAdaptiveMtSentencesResponse extends GeneratedMessageV3 implements ListAdaptiveMtSentencesResponseOrBuilder

List AdaptiveMt sentences response.

Protobuf type google.cloud.translation.v3.ListAdaptiveMtSentencesResponse

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ListAdaptiveMtSentencesResponse

Static Fields

ADAPTIVE_MT_SENTENCES_FIELD_NUMBER

public static final int ADAPTIVE_MT_SENTENCES_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_PAGE_TOKEN_FIELD_NUMBER

public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ListAdaptiveMtSentencesResponse getDefaultInstance()
Returns
TypeDescription
ListAdaptiveMtSentencesResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ListAdaptiveMtSentencesResponse.Builder newBuilder()
Returns
TypeDescription
ListAdaptiveMtSentencesResponse.Builder

newBuilder(ListAdaptiveMtSentencesResponse prototype)

public static ListAdaptiveMtSentencesResponse.Builder newBuilder(ListAdaptiveMtSentencesResponse prototype)
Parameter
NameDescription
prototypeListAdaptiveMtSentencesResponse
Returns
TypeDescription
ListAdaptiveMtSentencesResponse.Builder

parseDelimitedFrom(InputStream input)

public static ListAdaptiveMtSentencesResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListAdaptiveMtSentencesResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListAdaptiveMtSentencesResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListAdaptiveMtSentencesResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ListAdaptiveMtSentencesResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ListAdaptiveMtSentencesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ListAdaptiveMtSentencesResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListAdaptiveMtSentencesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ListAdaptiveMtSentencesResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ListAdaptiveMtSentencesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ListAdaptiveMtSentencesResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListAdaptiveMtSentencesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ListAdaptiveMtSentencesResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ListAdaptiveMtSentencesResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ListAdaptiveMtSentencesResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListAdaptiveMtSentencesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ListAdaptiveMtSentencesResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListAdaptiveMtSentencesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListAdaptiveMtSentencesResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListAdaptiveMtSentencesResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ListAdaptiveMtSentencesResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ListAdaptiveMtSentencesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ListAdaptiveMtSentencesResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListAdaptiveMtSentencesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ListAdaptiveMtSentencesResponse> parser()
Returns
TypeDescription
Parser<ListAdaptiveMtSentencesResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAdaptiveMtSentences(int index)

public AdaptiveMtSentence getAdaptiveMtSentences(int index)

Output only. The list of AdaptiveMtSentences.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AdaptiveMtSentence

getAdaptiveMtSentencesCount()

public int getAdaptiveMtSentencesCount()

Output only. The list of AdaptiveMtSentences.

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

Returns
TypeDescription
int

getAdaptiveMtSentencesList()

public List<AdaptiveMtSentence> getAdaptiveMtSentencesList()

Output only. The list of AdaptiveMtSentences.

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

Returns
TypeDescription
List<AdaptiveMtSentence>

getAdaptiveMtSentencesOrBuilder(int index)

public AdaptiveMtSentenceOrBuilder getAdaptiveMtSentencesOrBuilder(int index)

Output only. The list of AdaptiveMtSentences.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AdaptiveMtSentenceOrBuilder

getAdaptiveMtSentencesOrBuilderList()

public List<? extends AdaptiveMtSentenceOrBuilder> getAdaptiveMtSentencesOrBuilderList()

Output only. The list of AdaptiveMtSentences.

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

Returns
TypeDescription
List<? extends com.google.cloud.translate.v3.AdaptiveMtSentenceOrBuilder>

getDefaultInstanceForType()

public ListAdaptiveMtSentencesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListAdaptiveMtSentencesResponse

getNextPageToken()

public String getNextPageToken()

Optional.

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

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Optional.

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

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getParserForType()

public Parser<ListAdaptiveMtSentencesResponse> getParserForType()
Returns
TypeDescription
Parser<ListAdaptiveMtSentencesResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ListAdaptiveMtSentencesResponse.Builder newBuilderForType()
Returns
TypeDescription
ListAdaptiveMtSentencesResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ListAdaptiveMtSentencesResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ListAdaptiveMtSentencesResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ListAdaptiveMtSentencesResponse.Builder toBuilder()
Returns
TypeDescription
ListAdaptiveMtSentencesResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException