Class CreateInstructionMetadata.Builder (0.171.0)

public static final class CreateInstructionMetadata.Builder extends GeneratedMessageV3.Builder<CreateInstructionMetadata.Builder> implements CreateInstructionMetadataOrBuilder

Metadata of a CreateInstruction operation.

Protobuf type google.cloud.datalabeling.v1beta1.CreateInstructionMetadata

Static Methods

getDescriptor()

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

Methods

addAllPartialFailures(Iterable<? extends Status> values)

public CreateInstructionMetadata.Builder addAllPartialFailures(Iterable<? extends Status> values)

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Parameter
Name Description
values Iterable<? extends com.google.rpc.Status>
Returns
Type Description
CreateInstructionMetadata.Builder

addPartialFailures(Status value)

public CreateInstructionMetadata.Builder addPartialFailures(Status value)

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
CreateInstructionMetadata.Builder

addPartialFailures(Status.Builder builderForValue)

public CreateInstructionMetadata.Builder addPartialFailures(Status.Builder builderForValue)

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
CreateInstructionMetadata.Builder

addPartialFailures(int index, Status value)

public CreateInstructionMetadata.Builder addPartialFailures(int index, Status value)

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
CreateInstructionMetadata.Builder

addPartialFailures(int index, Status.Builder builderForValue)

public CreateInstructionMetadata.Builder addPartialFailures(int index, Status.Builder builderForValue)

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
CreateInstructionMetadata.Builder

addPartialFailuresBuilder()

public Status.Builder addPartialFailuresBuilder()

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Returns
Type Description
com.google.rpc.Status.Builder

addPartialFailuresBuilder(int index)

public Status.Builder addPartialFailuresBuilder(int index)

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateInstructionMetadata build()
Returns
Type Description
CreateInstructionMetadata

buildPartial()

public CreateInstructionMetadata buildPartial()
Returns
Type Description
CreateInstructionMetadata

clear()

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

clearCreateTime()

public CreateInstructionMetadata.Builder clearCreateTime()

Timestamp when create instruction request was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
CreateInstructionMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInstruction()

public CreateInstructionMetadata.Builder clearInstruction()

The name of the created Instruction. projects/{project_id}/instructions/{instruction_id}

string instruction = 1;

Returns
Type Description
CreateInstructionMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartialFailures()

public CreateInstructionMetadata.Builder clearPartialFailures()

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Returns
Type Description
CreateInstructionMetadata.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Timestamp when create instruction request was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Timestamp when create instruction request was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Timestamp when create instruction request was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public CreateInstructionMetadata getDefaultInstanceForType()
Returns
Type Description
CreateInstructionMetadata

getDescriptorForType()

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

getInstruction()

public String getInstruction()

The name of the created Instruction. projects/{project_id}/instructions/{instruction_id}

string instruction = 1;

Returns
Type Description
String

The instruction.

getInstructionBytes()

public ByteString getInstructionBytes()

The name of the created Instruction. projects/{project_id}/instructions/{instruction_id}

string instruction = 1;

Returns
Type Description
ByteString

The bytes for instruction.

getPartialFailures(int index)

public Status getPartialFailures(int index)

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status

getPartialFailuresBuilder(int index)

public Status.Builder getPartialFailuresBuilder(int index)

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status.Builder

getPartialFailuresBuilderList()

public List<Status.Builder> getPartialFailuresBuilderList()

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Returns
Type Description
List<com.google.rpc.Status.Builder>

getPartialFailuresCount()

public int getPartialFailuresCount()

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Returns
Type Description
int

getPartialFailuresList()

public List<Status> getPartialFailuresList()

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Returns
Type Description
List<com.google.rpc.Status>

getPartialFailuresOrBuilder(int index)

public StatusOrBuilder getPartialFailuresOrBuilder(int index)

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.StatusOrBuilder

getPartialFailuresOrBuilderList()

public List<? extends StatusOrBuilder> getPartialFailuresOrBuilderList()

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Returns
Type Description
List<? extends com.google.rpc.StatusOrBuilder>

hasCreateTime()

public boolean hasCreateTime()

Timestamp when create instruction request was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public CreateInstructionMetadata.Builder mergeCreateTime(Timestamp value)

Timestamp when create instruction request was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
CreateInstructionMetadata.Builder

mergeFrom(CreateInstructionMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePartialFailures(int index)

public CreateInstructionMetadata.Builder removePartialFailures(int index)

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Parameter
Name Description
index int
Returns
Type Description
CreateInstructionMetadata.Builder

setCreateTime(Timestamp value)

public CreateInstructionMetadata.Builder setCreateTime(Timestamp value)

Timestamp when create instruction request was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
CreateInstructionMetadata.Builder

setCreateTime(Timestamp.Builder builderForValue)

public CreateInstructionMetadata.Builder setCreateTime(Timestamp.Builder builderForValue)

Timestamp when create instruction request was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CreateInstructionMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstruction(String value)

public CreateInstructionMetadata.Builder setInstruction(String value)

The name of the created Instruction. projects/{project_id}/instructions/{instruction_id}

string instruction = 1;

Parameter
Name Description
value String

The instruction to set.

Returns
Type Description
CreateInstructionMetadata.Builder

This builder for chaining.

setInstructionBytes(ByteString value)

public CreateInstructionMetadata.Builder setInstructionBytes(ByteString value)

The name of the created Instruction. projects/{project_id}/instructions/{instruction_id}

string instruction = 1;

Parameter
Name Description
value ByteString

The bytes for instruction to set.

Returns
Type Description
CreateInstructionMetadata.Builder

This builder for chaining.

setPartialFailures(int index, Status value)

public CreateInstructionMetadata.Builder setPartialFailures(int index, Status value)

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
CreateInstructionMetadata.Builder

setPartialFailures(int index, Status.Builder builderForValue)

public CreateInstructionMetadata.Builder setPartialFailures(int index, Status.Builder builderForValue)

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details.

repeated .google.rpc.Status partial_failures = 2;

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
CreateInstructionMetadata.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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