Class CreateDatasetRequest.Builder (2.54.0)

public static final class CreateDatasetRequest.Builder extends GeneratedMessageV3.Builder<CreateDatasetRequest.Builder> implements CreateDatasetRequestOrBuilder

Request message for CreateDataset.

Protobuf type google.cloud.translation.v3.CreateDatasetRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateDatasetRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateDatasetRequest.Builder
Overrides

build()

public CreateDatasetRequest build()
Returns
Type Description
CreateDatasetRequest

buildPartial()

public CreateDatasetRequest buildPartial()
Returns
Type Description
CreateDatasetRequest

clear()

public CreateDatasetRequest.Builder clear()
Returns
Type Description
CreateDatasetRequest.Builder
Overrides

clearDataset()

public CreateDatasetRequest.Builder clearDataset()

Required. The Dataset to create.

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

Returns
Type Description
CreateDatasetRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateDatasetRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateDatasetRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateDatasetRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateDatasetRequest.Builder
Overrides

clearParent()

public CreateDatasetRequest.Builder clearParent()

Required. The project name.

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

Returns
Type Description
CreateDatasetRequest.Builder

This builder for chaining.

clone()

public CreateDatasetRequest.Builder clone()
Returns
Type Description
CreateDatasetRequest.Builder
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.

getDatasetBuilder()

public Dataset.Builder getDatasetBuilder()

Required. The Dataset to create.

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

Returns
Type Description
Dataset.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDataset(Dataset value)

public CreateDatasetRequest.Builder mergeDataset(Dataset value)

Required. The Dataset to create.

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

Parameter
Name Description
value Dataset
Returns
Type Description
CreateDatasetRequest.Builder

mergeFrom(CreateDatasetRequest other)

public CreateDatasetRequest.Builder mergeFrom(CreateDatasetRequest other)
Parameter
Name Description
other CreateDatasetRequest
Returns
Type Description
CreateDatasetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateDatasetRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateDatasetRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateDatasetRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateDatasetRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDatasetRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateDatasetRequest.Builder
Overrides

setDataset(Dataset value)

public CreateDatasetRequest.Builder setDataset(Dataset value)

Required. The Dataset to create.

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

Parameter
Name Description
value Dataset
Returns
Type Description
CreateDatasetRequest.Builder

setDataset(Dataset.Builder builderForValue)

public CreateDatasetRequest.Builder setDataset(Dataset.Builder builderForValue)

Required. The Dataset to create.

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

Parameter
Name Description
builderForValue Dataset.Builder
Returns
Type Description
CreateDatasetRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateDatasetRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateDatasetRequest.Builder
Overrides

setParent(String value)

public CreateDatasetRequest.Builder setParent(String value)

Required. The project name.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDatasetRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDatasetRequest.Builder setParentBytes(ByteString value)

Required. The project name.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDatasetRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateDatasetRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateDatasetRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateDatasetRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateDatasetRequest.Builder
Overrides