- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.5
- 2.2.0
- 2.1.13
public static final class DetectLanguageRequest.Builder extends GeneratedMessageV3.Builder<DetectLanguageRequest.Builder> implements DetectLanguageRequestOrBuilder
The request message for language detection.
Protobuf type google.cloud.translation.v3beta1.DetectLanguageRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DetectLanguageRequest.BuilderImplements
DetectLanguageRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DetectLanguageRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
DetectLanguageRequest.Builder |
build()
public DetectLanguageRequest build()
Type | Description |
DetectLanguageRequest |
buildPartial()
public DetectLanguageRequest buildPartial()
Type | Description |
DetectLanguageRequest |
clear()
public DetectLanguageRequest.Builder clear()
Type | Description |
DetectLanguageRequest.Builder |
clearContent()
public DetectLanguageRequest.Builder clearContent()
The content of the input stored as a string.
string content = 1;
Type | Description |
DetectLanguageRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public DetectLanguageRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
DetectLanguageRequest.Builder |
clearLabels()
public DetectLanguageRequest.Builder clearLabels()
Type | Description |
DetectLanguageRequest.Builder |
clearMimeType()
public DetectLanguageRequest.Builder clearMimeType()
Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html".
string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
DetectLanguageRequest.Builder | This builder for chaining. |
clearModel()
public DetectLanguageRequest.Builder clearModel()
Optional. The language detection model to be used.
Format:
projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}
Only one language detection model is currently supported:
projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default
.
If not specified, the default model is used.
string model = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
DetectLanguageRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public DetectLanguageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
DetectLanguageRequest.Builder |
clearParent()
public DetectLanguageRequest.Builder clearParent()
Required. Project or location to make a call. Must refer to a caller's
project.
Format: projects/{project-number-or-id}/locations/{location-id}
or
projects/{project-number-or-id}
.
For global calls, use projects/{project-number-or-id}/locations/global
or
projects/{project-number-or-id}
.
Only models within the same region (has same location-id) can be used.
Otherwise an INVALID_ARGUMENT (400) error is returned.
string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
DetectLanguageRequest.Builder | This builder for chaining. |
clearSource()
public DetectLanguageRequest.Builder clearSource()
Type | Description |
DetectLanguageRequest.Builder |
clone()
public DetectLanguageRequest.Builder clone()
Type | Description |
DetectLanguageRequest.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/labels for more information.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
Type | Description |
boolean |
getContent()
public String getContent()
The content of the input stored as a string.
string content = 1;
Type | Description |
String | The content. |
getContentBytes()
public ByteString getContentBytes()
The content of the input stored as a string.
string content = 1;
Type | Description |
ByteString | The bytes for content. |
getDefaultInstanceForType()
public DetectLanguageRequest getDefaultInstanceForType()
Type | Description |
DetectLanguageRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/labels for more information.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/labels for more information.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/labels for more information.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/labels for more information.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
Type | Description |
String |
getMimeType()
public String getMimeType()
Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html".
string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The mimeType. |
getMimeTypeBytes()
public ByteString getMimeTypeBytes()
Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html".
string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for mimeType. |
getModel()
public String getModel()
Optional. The language detection model to be used.
Format:
projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}
Only one language detection model is currently supported:
projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default
.
If not specified, the default model is used.
string model = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The model. |
getModelBytes()
public ByteString getModelBytes()
Optional. The language detection model to be used.
Format:
projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}
Only one language detection model is currently supported:
projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default
.
If not specified, the default model is used.
string model = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for model. |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getParent()
public 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}
or
projects/{project-number-or-id}
.
For global calls, use projects/{project-number-or-id}/locations/global
or
projects/{project-number-or-id}
.
Only models within the same region (has same location-id) can be used.
Otherwise an INVALID_ARGUMENT (400) error is returned.
string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The parent. |
getParentBytes()
public 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}
or
projects/{project-number-or-id}
.
For global calls, use projects/{project-number-or-id}/locations/global
or
projects/{project-number-or-id}
.
Only models within the same region (has same location-id) can be used.
Otherwise an INVALID_ARGUMENT (400) error is returned.
string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for parent. |
getSourceCase()
public DetectLanguageRequest.SourceCase getSourceCase()
Type | Description |
DetectLanguageRequest.SourceCase |
hasContent()
public boolean hasContent()
The content of the input stored as a string.
string content = 1;
Type | Description |
boolean | Whether the content field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(DetectLanguageRequest other)
public DetectLanguageRequest.Builder mergeFrom(DetectLanguageRequest other)
Name | Description |
other | DetectLanguageRequest |
Type | Description |
DetectLanguageRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DetectLanguageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
DetectLanguageRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public DetectLanguageRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
DetectLanguageRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DetectLanguageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
DetectLanguageRequest.Builder |
putAllLabels(Map<String,String> values)
public DetectLanguageRequest.Builder putAllLabels(Map<String,String> values)
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/labels for more information.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
values | Map<String,String> |
Type | Description |
DetectLanguageRequest.Builder |
putLabels(String key, String value)
public DetectLanguageRequest.Builder putLabels(String key, String value)
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/labels for more information.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
value | String |
Type | Description |
DetectLanguageRequest.Builder |
removeLabels(String key)
public DetectLanguageRequest.Builder removeLabels(String key)
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/labels for more information.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
Type | Description |
DetectLanguageRequest.Builder |
setContent(String value)
public DetectLanguageRequest.Builder setContent(String value)
The content of the input stored as a string.
string content = 1;
Name | Description |
value | String The content to set. |
Type | Description |
DetectLanguageRequest.Builder | This builder for chaining. |
setContentBytes(ByteString value)
public DetectLanguageRequest.Builder setContentBytes(ByteString value)
The content of the input stored as a string.
string content = 1;
Name | Description |
value | ByteString The bytes for content to set. |
Type | Description |
DetectLanguageRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public DetectLanguageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
DetectLanguageRequest.Builder |
setMimeType(String value)
public DetectLanguageRequest.Builder setMimeType(String value)
Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html".
string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The mimeType to set. |
Type | Description |
DetectLanguageRequest.Builder | This builder for chaining. |
setMimeTypeBytes(ByteString value)
public DetectLanguageRequest.Builder setMimeTypeBytes(ByteString value)
Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html".
string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for mimeType to set. |
Type | Description |
DetectLanguageRequest.Builder | This builder for chaining. |
setModel(String value)
public DetectLanguageRequest.Builder setModel(String value)
Optional. The language detection model to be used.
Format:
projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}
Only one language detection model is currently supported:
projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default
.
If not specified, the default model is used.
string model = 4 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The model to set. |
Type | Description |
DetectLanguageRequest.Builder | This builder for chaining. |
setModelBytes(ByteString value)
public DetectLanguageRequest.Builder setModelBytes(ByteString value)
Optional. The language detection model to be used.
Format:
projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}
Only one language detection model is currently supported:
projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default
.
If not specified, the default model is used.
string model = 4 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for model to set. |
Type | Description |
DetectLanguageRequest.Builder | This builder for chaining. |
setParent(String value)
public DetectLanguageRequest.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}/locations/{location-id}
or
projects/{project-number-or-id}
.
For global calls, use projects/{project-number-or-id}/locations/global
or
projects/{project-number-or-id}
.
Only models within the same region (has same location-id) can be used.
Otherwise an INVALID_ARGUMENT (400) error is returned.
string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | String The parent to set. |
Type | Description |
DetectLanguageRequest.Builder | This builder for chaining. |
setParentBytes(ByteString value)
public DetectLanguageRequest.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}/locations/{location-id}
or
projects/{project-number-or-id}
.
For global calls, use projects/{project-number-or-id}/locations/global
or
projects/{project-number-or-id}
.
Only models within the same region (has same location-id) can be used.
Otherwise an INVALID_ARGUMENT (400) error is returned.
string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for parent to set. |
Type | Description |
DetectLanguageRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DetectLanguageRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
DetectLanguageRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final DetectLanguageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
DetectLanguageRequest.Builder |