Class CreateInstructionRequest.Builder (0.174.0)

public static final class CreateInstructionRequest.Builder extends GeneratedMessageV3.Builder<CreateInstructionRequest.Builder> implements CreateInstructionRequestOrBuilder

Request message for CreateInstruction.

Protobuf type google.cloud.datalabeling.v1beta1.CreateInstructionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateInstructionRequest build()
Returns
Type Description
CreateInstructionRequest

buildPartial()

public CreateInstructionRequest buildPartial()
Returns
Type Description
CreateInstructionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstruction()

public CreateInstructionRequest.Builder clearInstruction()

Required. Instruction of how to perform the labeling task.

.google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateInstructionRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateInstructionRequest.Builder clearParent()

Required. Instruction resource parent, format: projects/{project_id}

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

Returns
Type Description
CreateInstructionRequest.Builder

This builder for chaining.

clone()

public CreateInstructionRequest.Builder clone()
Returns
Type Description
CreateInstructionRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateInstructionRequest getDefaultInstanceForType()
Returns
Type Description
CreateInstructionRequest

getDescriptorForType()

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

getInstruction()

public Instruction getInstruction()

Required. Instruction of how to perform the labeling task.

.google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Instruction

The instruction.

getInstructionBuilder()

public Instruction.Builder getInstructionBuilder()

Required. Instruction of how to perform the labeling task.

.google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Instruction.Builder

getInstructionOrBuilder()

public InstructionOrBuilder getInstructionOrBuilder()

Required. Instruction of how to perform the labeling task.

.google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InstructionOrBuilder

getParent()

public String getParent()

Required. Instruction resource parent, format: projects/{project_id}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Instruction resource parent, format: projects/{project_id}

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

Returns
Type Description
ByteString

The bytes for parent.

hasInstruction()

public boolean hasInstruction()

Required. Instruction of how to perform the labeling task.

.google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the instruction field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateInstructionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInstruction(Instruction value)

public CreateInstructionRequest.Builder mergeInstruction(Instruction value)

Required. Instruction of how to perform the labeling task.

.google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Instruction
Returns
Type Description
CreateInstructionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstruction(Instruction value)

public CreateInstructionRequest.Builder setInstruction(Instruction value)

Required. Instruction of how to perform the labeling task.

.google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Instruction
Returns
Type Description
CreateInstructionRequest.Builder

setInstruction(Instruction.Builder builderForValue)

public CreateInstructionRequest.Builder setInstruction(Instruction.Builder builderForValue)

Required. Instruction of how to perform the labeling task.

.google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Instruction.Builder
Returns
Type Description
CreateInstructionRequest.Builder

setParent(String value)

public CreateInstructionRequest.Builder setParent(String value)

Required. Instruction resource parent, format: projects/{project_id}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateInstructionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateInstructionRequest.Builder setParentBytes(ByteString value)

Required. Instruction resource parent, format: projects/{project_id}

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
CreateInstructionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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