public static final class GetSupportedLanguagesRequest.Builder extends GeneratedMessageV3.Builder<GetSupportedLanguagesRequest.Builder> implements GetSupportedLanguagesRequestOrBuilder
The request message for discovering supported languages.Protobuf type
google.cloud.translation.v3beta1.GetSupportedLanguagesRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<GetSupportedLanguagesRequest.Builder>
public GetSupportedLanguagesRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<GetSupportedLanguagesRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<GetSupportedLanguagesRequest.Builder>
public GetSupportedLanguagesRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public GetSupportedLanguagesRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public GetSupportedLanguagesRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public GetSupportedLanguagesRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<GetSupportedLanguagesRequest.Builder>
public GetSupportedLanguagesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<GetSupportedLanguagesRequest.Builder>
public GetSupportedLanguagesRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<GetSupportedLanguagesRequest.Builder>
public GetSupportedLanguagesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<GetSupportedLanguagesRequest.Builder>
public GetSupportedLanguagesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<GetSupportedLanguagesRequest.Builder>
public GetSupportedLanguagesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<GetSupportedLanguagesRequest.Builder>
public GetSupportedLanguagesRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<GetSupportedLanguagesRequest.Builder>
public GetSupportedLanguagesRequest.Builder mergeFrom(GetSupportedLanguagesRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<GetSupportedLanguagesRequest.Builder>
public GetSupportedLanguagesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<GetSupportedLanguagesRequest.Builder>
IOException
public String getParent()
Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or `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}`. Non-global location is required for AutoML models. Only models within the same region (have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent
in interface GetSupportedLanguagesRequestOrBuilder
public ByteString getParentBytes()
Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or `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}`. Non-global location is required for AutoML models. Only models within the same region (have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes
in interface GetSupportedLanguagesRequestOrBuilder
public GetSupportedLanguagesRequest.Builder setParent(String value)
Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or `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}`. Non-global location is required for AutoML models. Only models within the same region (have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The parent to set.public GetSupportedLanguagesRequest.Builder clearParent()
Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or `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}`. Non-global location is required for AutoML models. Only models within the same region (have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public GetSupportedLanguagesRequest.Builder setParentBytes(ByteString value)
Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or `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}`. Non-global location is required for AutoML models. Only models within the same region (have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for parent to set.public String getDisplayLanguageCode()
Optional. The language to use to return localized, human readable names of supported languages. If missing, then display names are not returned in a response.
string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
getDisplayLanguageCode
in interface GetSupportedLanguagesRequestOrBuilder
public ByteString getDisplayLanguageCodeBytes()
Optional. The language to use to return localized, human readable names of supported languages. If missing, then display names are not returned in a response.
string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
getDisplayLanguageCodeBytes
in interface GetSupportedLanguagesRequestOrBuilder
public GetSupportedLanguagesRequest.Builder setDisplayLanguageCode(String value)
Optional. The language to use to return localized, human readable names of supported languages. If missing, then display names are not returned in a response.
string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
value
- The displayLanguageCode to set.public GetSupportedLanguagesRequest.Builder clearDisplayLanguageCode()
Optional. The language to use to return localized, human readable names of supported languages. If missing, then display names are not returned in a response.
string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
public GetSupportedLanguagesRequest.Builder setDisplayLanguageCodeBytes(ByteString value)
Optional. The language to use to return localized, human readable names of supported languages. If missing, then display names are not returned in a response.
string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for displayLanguageCode to set.public String getModel()
Optional. Get supported languages of this model. The format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, Returns languages supported by the specified model. If missing, we get supported languages of Google general NMT model.
string model = 2 [(.google.api.field_behavior) = OPTIONAL];
getModel
in interface GetSupportedLanguagesRequestOrBuilder
public ByteString getModelBytes()
Optional. Get supported languages of this model. The format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, Returns languages supported by the specified model. If missing, we get supported languages of Google general NMT model.
string model = 2 [(.google.api.field_behavior) = OPTIONAL];
getModelBytes
in interface GetSupportedLanguagesRequestOrBuilder
public GetSupportedLanguagesRequest.Builder setModel(String value)
Optional. Get supported languages of this model. The format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, Returns languages supported by the specified model. If missing, we get supported languages of Google general NMT model.
string model = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The model to set.public GetSupportedLanguagesRequest.Builder clearModel()
Optional. Get supported languages of this model. The format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, Returns languages supported by the specified model. If missing, we get supported languages of Google general NMT model.
string model = 2 [(.google.api.field_behavior) = OPTIONAL];
public GetSupportedLanguagesRequest.Builder setModelBytes(ByteString value)
Optional. Get supported languages of this model. The format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, Returns languages supported by the specified model. If missing, we get supported languages of Google general NMT model.
string model = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for model to set.public final GetSupportedLanguagesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<GetSupportedLanguagesRequest.Builder>
public final GetSupportedLanguagesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<GetSupportedLanguagesRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.