Class CreateInstructionMetadata.Builder (0.139.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.rpc.Status>
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateInstructionMetadata build()
Returns
TypeDescription
CreateInstructionMetadata

buildPartial()

public CreateInstructionMetadata buildPartial()
Returns
TypeDescription
CreateInstructionMetadata

clear()

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

clearCreateTime()

public CreateInstructionMetadata.Builder clearCreateTime()

Timestamp when create instruction request was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
CreateInstructionMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateInstructionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateInstructionMetadata.Builder
Overrides

clearInstruction()

public CreateInstructionMetadata.Builder clearInstruction()

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

string instruction = 1;

Returns
TypeDescription
CreateInstructionMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Timestamp when create instruction request was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Timestamp when create instruction request was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Timestamp when create instruction request was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public CreateInstructionMetadata getDefaultInstanceForType()
Returns
TypeDescription
CreateInstructionMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstruction()

public String getInstruction()

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

string instruction = 1;

Returns
TypeDescription
String

The instruction.

getInstructionBytes()

public ByteString getInstructionBytes()

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

string instruction = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.rpc.StatusOrBuilder>

hasCreateTime()

public boolean hasCreateTime()

Timestamp when create instruction request was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
CreateInstructionMetadata.Builder

mergeFrom(CreateInstructionMetadata other)

public CreateInstructionMetadata.Builder mergeFrom(CreateInstructionMetadata other)
Parameter
NameDescription
otherCreateInstructionMetadata
Returns
TypeDescription
CreateInstructionMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateInstructionMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateInstructionMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateInstructionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
CreateInstructionMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The instruction to set.

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

The bytes for instruction to set.

Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
CreateInstructionMetadata.Builder

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

public CreateInstructionMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateInstructionMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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