Class DetectLanguageRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
- com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder
-
- All Implemented Interfaces:
DetectLanguageRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- DetectLanguageRequest
public static final class DetectLanguageRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder> implements DetectLanguageRequestOrBuilder
The request message for language detection.
Protobuf typegoogle.cloud.translation.v3beta1.DetectLanguageRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DetectLanguageRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DetectLanguageRequest
build()
DetectLanguageRequest
buildPartial()
DetectLanguageRequest.Builder
clear()
DetectLanguageRequest.Builder
clearContent()
The content of the input stored as a string.DetectLanguageRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DetectLanguageRequest.Builder
clearLabels()
DetectLanguageRequest.Builder
clearMimeType()
Optional.DetectLanguageRequest.Builder
clearModel()
Optional.DetectLanguageRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DetectLanguageRequest.Builder
clearParent()
Required.DetectLanguageRequest.Builder
clearSource()
DetectLanguageRequest.Builder
clone()
boolean
containsLabels(String key)
Optional.String
getContent()
The content of the input stored as a string.com.google.protobuf.ByteString
getContentBytes()
The content of the input stored as a string.DetectLanguageRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Optional.Map<String,String>
getLabelsMap()
Optional.String
getLabelsOrDefault(String key, String defaultValue)
Optional.String
getLabelsOrThrow(String key)
Optional.String
getMimeType()
Optional.com.google.protobuf.ByteString
getMimeTypeBytes()
Optional.String
getModel()
Optional.com.google.protobuf.ByteString
getModelBytes()
Optional.Map<String,String>
getMutableLabels()
Deprecated.String
getParent()
Required.com.google.protobuf.ByteString
getParentBytes()
Required.DetectLanguageRequest.SourceCase
getSourceCase()
boolean
hasContent()
The content of the input stored as a string.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
DetectLanguageRequest.Builder
mergeFrom(DetectLanguageRequest other)
DetectLanguageRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DetectLanguageRequest.Builder
mergeFrom(com.google.protobuf.Message other)
DetectLanguageRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DetectLanguageRequest.Builder
putAllLabels(Map<String,String> values)
Optional.DetectLanguageRequest.Builder
putLabels(String key, String value)
Optional.DetectLanguageRequest.Builder
removeLabels(String key)
Optional.DetectLanguageRequest.Builder
setContent(String value)
The content of the input stored as a string.DetectLanguageRequest.Builder
setContentBytes(com.google.protobuf.ByteString value)
The content of the input stored as a string.DetectLanguageRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DetectLanguageRequest.Builder
setMimeType(String value)
Optional.DetectLanguageRequest.Builder
setMimeTypeBytes(com.google.protobuf.ByteString value)
Optional.DetectLanguageRequest.Builder
setModel(String value)
Optional.DetectLanguageRequest.Builder
setModelBytes(com.google.protobuf.ByteString value)
Optional.DetectLanguageRequest.Builder
setParent(String value)
Required.DetectLanguageRequest.Builder
setParentBytes(com.google.protobuf.ByteString value)
Required.DetectLanguageRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DetectLanguageRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
clear
public DetectLanguageRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
getDefaultInstanceForType
public DetectLanguageRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DetectLanguageRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DetectLanguageRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DetectLanguageRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
setField
public DetectLanguageRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
clearField
public DetectLanguageRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
clearOneof
public DetectLanguageRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
setRepeatedField
public DetectLanguageRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
addRepeatedField
public DetectLanguageRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
mergeFrom
public DetectLanguageRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DetectLanguageRequest.Builder>
-
mergeFrom
public DetectLanguageRequest.Builder mergeFrom(DetectLanguageRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
mergeFrom
public DetectLanguageRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DetectLanguageRequest.Builder>
- Throws:
IOException
-
getSourceCase
public DetectLanguageRequest.SourceCase getSourceCase()
- Specified by:
getSourceCase
in interfaceDetectLanguageRequestOrBuilder
-
clearSource
public DetectLanguageRequest.Builder clearSource()
-
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) = { ... }
- Specified by:
getParent
in interfaceDetectLanguageRequestOrBuilder
- Returns:
- The parent.
-
getParentBytes
public 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}` 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) = { ... }
- Specified by:
getParentBytes
in interfaceDetectLanguageRequestOrBuilder
- Returns:
- The bytes for parent.
-
setParent
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) = { ... }
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
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) = { ... }
- Returns:
- This builder for chaining.
-
setParentBytes
public DetectLanguageRequest.Builder setParentBytes(com.google.protobuf.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) = { ... }
- Parameters:
value
- The bytes for parent to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getModel
in interfaceDetectLanguageRequestOrBuilder
- Returns:
- The model.
-
getModelBytes
public com.google.protobuf.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];
- Specified by:
getModelBytes
in interfaceDetectLanguageRequestOrBuilder
- Returns:
- The bytes for model.
-
setModel
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];
- Parameters:
value
- The model to set.- Returns:
- 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];
- Returns:
- This builder for chaining.
-
setModelBytes
public DetectLanguageRequest.Builder setModelBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for model to set.- Returns:
- This builder for chaining.
-
hasContent
public boolean hasContent()
The content of the input stored as a string.
string content = 1;
- Specified by:
hasContent
in interfaceDetectLanguageRequestOrBuilder
- Returns:
- Whether the content field is set.
-
getContent
public String getContent()
The content of the input stored as a string.
string content = 1;
- Specified by:
getContent
in interfaceDetectLanguageRequestOrBuilder
- Returns:
- The content.
-
getContentBytes
public com.google.protobuf.ByteString getContentBytes()
The content of the input stored as a string.
string content = 1;
- Specified by:
getContentBytes
in interfaceDetectLanguageRequestOrBuilder
- Returns:
- The bytes for content.
-
setContent
public DetectLanguageRequest.Builder setContent(String value)
The content of the input stored as a string.
string content = 1;
- Parameters:
value
- The content to set.- Returns:
- This builder for chaining.
-
clearContent
public DetectLanguageRequest.Builder clearContent()
The content of the input stored as a string.
string content = 1;
- Returns:
- This builder for chaining.
-
setContentBytes
public DetectLanguageRequest.Builder setContentBytes(com.google.protobuf.ByteString value)
The content of the input stored as a string.
string content = 1;
- Parameters:
value
- The bytes for content to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getMimeType
in interfaceDetectLanguageRequestOrBuilder
- Returns:
- The mimeType.
-
getMimeTypeBytes
public com.google.protobuf.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];
- Specified by:
getMimeTypeBytes
in interfaceDetectLanguageRequestOrBuilder
- Returns:
- The bytes for mimeType.
-
setMimeType
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];
- Parameters:
value
- The mimeType to set.- Returns:
- This builder for chaining.
-
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];
- Returns:
- This builder for chaining.
-
setMimeTypeBytes
public DetectLanguageRequest.Builder setMimeTypeBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for mimeType to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:DetectLanguageRequestOrBuilder
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];
- Specified by:
getLabelsCount
in interfaceDetectLanguageRequestOrBuilder
-
containsLabels
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];
- Specified by:
containsLabels
in interfaceDetectLanguageRequestOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceDetectLanguageRequestOrBuilder
-
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];
- Specified by:
getLabelsMap
in interfaceDetectLanguageRequestOrBuilder
-
getLabelsOrDefault
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];
- Specified by:
getLabelsOrDefault
in interfaceDetectLanguageRequestOrBuilder
-
getLabelsOrThrow
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];
- Specified by:
getLabelsOrThrow
in interfaceDetectLanguageRequestOrBuilder
-
clearLabels
public DetectLanguageRequest.Builder clearLabels()
-
removeLabels
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];
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
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];
-
putAllLabels
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];
-
setUnknownFields
public final DetectLanguageRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
mergeUnknownFields
public final DetectLanguageRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectLanguageRequest.Builder>
-
-