Class CreateInstructionRequest.Builder (0.137.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateInstructionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateInstructionRequest.Builder
Overrides

build()

public CreateInstructionRequest build()
Returns
TypeDescription
CreateInstructionRequest

buildPartial()

public CreateInstructionRequest buildPartial()
Returns
TypeDescription
CreateInstructionRequest

clear()

public CreateInstructionRequest.Builder clear()
Returns
TypeDescription
CreateInstructionRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateInstructionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
CreateInstructionRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateInstructionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateInstructionRequest.Builder

This builder for chaining.

clone()

public CreateInstructionRequest.Builder clone()
Returns
TypeDescription
CreateInstructionRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateInstructionRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateInstructionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the instruction field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateInstructionRequest other)

public CreateInstructionRequest.Builder mergeFrom(CreateInstructionRequest other)
Parameter
NameDescription
otherCreateInstructionRequest
Returns
TypeDescription
CreateInstructionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateInstructionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateInstructionRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateInstructionRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueInstruction
Returns
TypeDescription
CreateInstructionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateInstructionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateInstructionRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateInstructionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInstruction
Returns
TypeDescription
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
NameDescription
builderForValueInstruction.Builder
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateInstructionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateInstructionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateInstructionRequest.Builder
Overrides