public static final class CreateAdaptiveMtDatasetRequest.Builder extends GeneratedMessageV3.Builder<CreateAdaptiveMtDatasetRequest.Builder> implements CreateAdaptiveMtDatasetRequestOrBuilder
Request message for creating an AdaptiveMtDataset.
Protobuf type google.cloud.translation.v3.CreateAdaptiveMtDatasetRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateAdaptiveMtDatasetRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateAdaptiveMtDatasetRequest build()
buildPartial()
public CreateAdaptiveMtDatasetRequest buildPartial()
clear()
public CreateAdaptiveMtDatasetRequest.Builder clear()
Overrides
clearAdaptiveMtDataset()
public CreateAdaptiveMtDatasetRequest.Builder clearAdaptiveMtDataset()
Required. The AdaptiveMtDataset to be created.
.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public CreateAdaptiveMtDatasetRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateAdaptiveMtDatasetRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParent()
public CreateAdaptiveMtDatasetRequest.Builder clearParent()
Required. Name of the parent project. In form of
projects/{project-number-or-id}/locations/{location-id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clone()
public CreateAdaptiveMtDatasetRequest.Builder clone()
Overrides
getAdaptiveMtDataset()
public AdaptiveMtDataset getAdaptiveMtDataset()
Required. The AdaptiveMtDataset to be created.
.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
getAdaptiveMtDatasetBuilder()
public AdaptiveMtDataset.Builder getAdaptiveMtDatasetBuilder()
Required. The AdaptiveMtDataset to be created.
.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
getAdaptiveMtDatasetOrBuilder()
public AdaptiveMtDatasetOrBuilder getAdaptiveMtDatasetOrBuilder()
Required. The AdaptiveMtDataset to be created.
.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public CreateAdaptiveMtDatasetRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getParent()
public String getParent()
Required. Name of the parent project. In form of
projects/{project-number-or-id}/locations/{location-id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. Name of the parent project. In form of
projects/{project-number-or-id}/locations/{location-id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for parent.
|
hasAdaptiveMtDataset()
public boolean hasAdaptiveMtDataset()
Required. The AdaptiveMtDataset to be created.
.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the adaptiveMtDataset field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAdaptiveMtDataset(AdaptiveMtDataset value)
public CreateAdaptiveMtDatasetRequest.Builder mergeAdaptiveMtDataset(AdaptiveMtDataset value)
Required. The AdaptiveMtDataset to be created.
.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
mergeFrom(CreateAdaptiveMtDatasetRequest other)
public CreateAdaptiveMtDatasetRequest.Builder mergeFrom(CreateAdaptiveMtDatasetRequest other)
public CreateAdaptiveMtDatasetRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateAdaptiveMtDatasetRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateAdaptiveMtDatasetRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAdaptiveMtDataset(AdaptiveMtDataset value)
public CreateAdaptiveMtDatasetRequest.Builder setAdaptiveMtDataset(AdaptiveMtDataset value)
Required. The AdaptiveMtDataset to be created.
.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
setAdaptiveMtDataset(AdaptiveMtDataset.Builder builderForValue)
public CreateAdaptiveMtDatasetRequest.Builder setAdaptiveMtDataset(AdaptiveMtDataset.Builder builderForValue)
Required. The AdaptiveMtDataset to be created.
.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
setField(Descriptors.FieldDescriptor field, Object value)
public CreateAdaptiveMtDatasetRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setParent(String value)
public CreateAdaptiveMtDatasetRequest.Builder setParent(String value)
Required. Name of the parent project. In form of
projects/{project-number-or-id}/locations/{location-id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The parent to set.
|
setParentBytes(ByteString value)
public CreateAdaptiveMtDatasetRequest.Builder setParentBytes(ByteString value)
Required. Name of the parent project. In form of
projects/{project-number-or-id}/locations/{location-id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for parent to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateAdaptiveMtDatasetRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateAdaptiveMtDatasetRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides