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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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
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
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
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
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
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 | |
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
Returns
Type | Description |
com.google.rpc.Status.Builder | |
public CreateInstructionMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public CreateInstructionMetadata build()
Returns
public CreateInstructionMetadata buildPartial()
Returns
public CreateInstructionMetadata.Builder clear()
Returns
Overrides
public CreateInstructionMetadata.Builder clearCreateTime()
Timestamp when create instruction request was created.
.google.protobuf.Timestamp create_time = 3;
Returns
public CreateInstructionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public CreateInstructionMetadata.Builder clearInstruction()
The name of the created Instruction.
projects/{project_id}/instructions/{instruction_id}
string instruction = 1;
Returns
public CreateInstructionMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
public CreateInstructionMetadata.Builder clone()
Returns
Overrides
public Timestamp getCreateTime()
Timestamp when create instruction request was created.
.google.protobuf.Timestamp create_time = 3;
Returns
public Timestamp.Builder getCreateTimeBuilder()
Timestamp when create instruction request was created.
.google.protobuf.Timestamp create_time = 3;
Returns
public TimestampOrBuilder getCreateTimeOrBuilder()
Timestamp when create instruction request was created.
.google.protobuf.Timestamp create_time = 3;
Returns
public CreateInstructionMetadata getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public String getInstruction()
The name of the created Instruction.
projects/{project_id}/instructions/{instruction_id}
string instruction = 1;
Returns
Type | Description |
String | The instruction.
|
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.
|
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
Returns
Type | Description |
com.google.rpc.Status | |
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
Returns
Type | Description |
com.google.rpc.Status.Builder | |
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> | |
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
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> | |
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
Returns
Type | Description |
com.google.rpc.StatusOrBuilder | |
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> | |
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public CreateInstructionMetadata.Builder mergeCreateTime(Timestamp value)
Timestamp when create instruction request was created.
.google.protobuf.Timestamp create_time = 3;
Parameter
Returns
public CreateInstructionMetadata.Builder mergeFrom(CreateInstructionMetadata other)
Parameter
Returns
public CreateInstructionMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public CreateInstructionMetadata.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final CreateInstructionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
public CreateInstructionMetadata.Builder setCreateTime(Timestamp value)
Timestamp when create instruction request was created.
.google.protobuf.Timestamp create_time = 3;
Parameter
Returns
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
public CreateInstructionMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
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
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
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
public CreateInstructionMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final CreateInstructionMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides