Class CreateAdaptiveMtDatasetRequest (2.47.0)

public final class CreateAdaptiveMtDatasetRequest extends GeneratedMessageV3 implements CreateAdaptiveMtDatasetRequestOrBuilder

Request message for creating an AdaptiveMtDataset.

Protobuf type google.cloud.translation.v3.CreateAdaptiveMtDatasetRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CreateAdaptiveMtDatasetRequest

Static Fields

ADAPTIVE_MT_DATASET_FIELD_NUMBER

public static final int ADAPTIVE_MT_DATASET_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateAdaptiveMtDatasetRequest getDefaultInstance()
Returns
Type Description
CreateAdaptiveMtDatasetRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CreateAdaptiveMtDatasetRequest.Builder newBuilder()
Returns
Type Description
CreateAdaptiveMtDatasetRequest.Builder

newBuilder(CreateAdaptiveMtDatasetRequest prototype)

public static CreateAdaptiveMtDatasetRequest.Builder newBuilder(CreateAdaptiveMtDatasetRequest prototype)
Parameter
Name Description
prototype CreateAdaptiveMtDatasetRequest
Returns
Type Description
CreateAdaptiveMtDatasetRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateAdaptiveMtDatasetRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateAdaptiveMtDatasetRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAdaptiveMtDatasetRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAdaptiveMtDatasetRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateAdaptiveMtDatasetRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateAdaptiveMtDatasetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateAdaptiveMtDatasetRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAdaptiveMtDatasetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateAdaptiveMtDatasetRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateAdaptiveMtDatasetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateAdaptiveMtDatasetRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAdaptiveMtDatasetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateAdaptiveMtDatasetRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateAdaptiveMtDatasetRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAdaptiveMtDatasetRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAdaptiveMtDatasetRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateAdaptiveMtDatasetRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateAdaptiveMtDatasetRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAdaptiveMtDatasetRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAdaptiveMtDatasetRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateAdaptiveMtDatasetRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateAdaptiveMtDatasetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateAdaptiveMtDatasetRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAdaptiveMtDatasetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateAdaptiveMtDatasetRequest> parser()
Returns
Type Description
Parser<CreateAdaptiveMtDatasetRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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];

Returns
Type Description
AdaptiveMtDataset

The adaptiveMtDataset.

getAdaptiveMtDatasetOrBuilder()

public AdaptiveMtDatasetOrBuilder getAdaptiveMtDatasetOrBuilder()

Required. The AdaptiveMtDataset to be created.

.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AdaptiveMtDatasetOrBuilder

getDefaultInstanceForType()

public CreateAdaptiveMtDatasetRequest getDefaultInstanceForType()
Returns
Type Description
CreateAdaptiveMtDatasetRequest

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.

getParserForType()

public Parser<CreateAdaptiveMtDatasetRequest> getParserForType()
Returns
Type Description
Parser<CreateAdaptiveMtDatasetRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateAdaptiveMtDatasetRequest.Builder newBuilderForType()
Returns
Type Description
CreateAdaptiveMtDatasetRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateAdaptiveMtDatasetRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateAdaptiveMtDatasetRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CreateAdaptiveMtDatasetRequest.Builder toBuilder()
Returns
Type Description
CreateAdaptiveMtDatasetRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException