Class CreateAdaptiveMtDatasetRequest (2.33.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
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateAdaptiveMtDatasetRequest getDefaultInstance()
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateAdaptiveMtDatasetRequest.Builder newBuilder()
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest.Builder

newBuilder(CreateAdaptiveMtDatasetRequest prototype)

public static CreateAdaptiveMtDatasetRequest.Builder newBuilder(CreateAdaptiveMtDatasetRequest prototype)
Parameter
NameDescription
prototypeCreateAdaptiveMtDatasetRequest
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateAdaptiveMtDatasetRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAdaptiveMtDatasetRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateAdaptiveMtDatasetRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateAdaptiveMtDatasetRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateAdaptiveMtDatasetRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateAdaptiveMtDatasetRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateAdaptiveMtDatasetRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAdaptiveMtDatasetRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateAdaptiveMtDatasetRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAdaptiveMtDatasetRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateAdaptiveMtDatasetRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateAdaptiveMtDatasetRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateAdaptiveMtDatasetRequest> parser()
Returns
TypeDescription
Parser<CreateAdaptiveMtDatasetRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AdaptiveMtDatasetOrBuilder

getDefaultInstanceForType()

public CreateAdaptiveMtDatasetRequest getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateAdaptiveMtDatasetRequest> getParserForType()
Returns
TypeDescription
Parser<CreateAdaptiveMtDatasetRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the adaptiveMtDataset field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateAdaptiveMtDatasetRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateAdaptiveMtDatasetRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateAdaptiveMtDatasetRequest.Builder toBuilder()
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException