Interface RefineTextRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RefineTextRequest,RefineTextRequest.Builder
@Generated
public interface RefineTextRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.com.google.protobuf.ByteStringRequired.getRefinementEntries(int index) Required.intRequired.Required.getRefinementEntriesOrBuilder(int index) Required.List<? extends RefinementEntryOrBuilder>Required.Required.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getParent
String getParent()Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`.string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The parent.
-
getParentBytes
com.google.protobuf.ByteString getParentBytes()Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`.string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for parent.
-
getRefinementEntriesList
List<RefinementEntry> getRefinementEntriesList()Required. The source texts and original translations in the source and target languages.
repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; -
getRefinementEntries
Required. The source texts and original translations in the source and target languages.
repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; -
getRefinementEntriesCount
int getRefinementEntriesCount()Required. The source texts and original translations in the source and target languages.
repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; -
getRefinementEntriesOrBuilderList
List<? extends RefinementEntryOrBuilder> getRefinementEntriesOrBuilderList()Required. The source texts and original translations in the source and target languages.
repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; -
getRefinementEntriesOrBuilder
Required. The source texts and original translations in the source and target languages.
repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; -
getSourceLanguageCode
String getSourceLanguageCode()Required. The BCP-47 language code of the source text in the request, for example, "en-US".
string source_language_code = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The sourceLanguageCode.
-
getSourceLanguageCodeBytes
com.google.protobuf.ByteString getSourceLanguageCodeBytes()Required. The BCP-47 language code of the source text in the request, for example, "en-US".
string source_language_code = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for sourceLanguageCode.
-
getTargetLanguageCode
String getTargetLanguageCode()Required. The BCP-47 language code for translation output, for example, "zh-CN".
string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The targetLanguageCode.
-
getTargetLanguageCodeBytes
com.google.protobuf.ByteString getTargetLanguageCodeBytes()Required. The BCP-47 language code for translation output, for example, "zh-CN".
string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for targetLanguageCode.
-