Class CreateDatasetRequest (2.52.0)

public final class CreateDatasetRequest extends GeneratedMessageV3 implements CreateDatasetRequestOrBuilder

Request message for CreateDataset.

Protobuf type google.cloud.translation.v3.CreateDatasetRequest

Static Fields

DATASET_FIELD_NUMBER

public static final int 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 CreateDatasetRequest getDefaultInstance()
Returns
Type Description
CreateDatasetRequest

getDescriptor()

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

newBuilder()

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

newBuilder(CreateDatasetRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDataset()

public Dataset getDataset()

Required. The Dataset to create.

.google.cloud.translation.v3.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Dataset

The dataset.

getDatasetOrBuilder()

public DatasetOrBuilder getDatasetOrBuilder()

Required. The Dataset to create.

.google.cloud.translation.v3.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DatasetOrBuilder

getDefaultInstanceForType()

public CreateDatasetRequest getDefaultInstanceForType()
Returns
Type Description
CreateDatasetRequest

getParent()

public String getParent()

Required. The project name.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project name.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasDataset()

public boolean hasDataset()

Required. The Dataset to create.

.google.cloud.translation.v3.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the dataset 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 CreateDatasetRequest.Builder newBuilderForType()
Returns
Type Description
CreateDatasetRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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