Class Attempt (0.166.0)

public final class Attempt extends GeneratedMessageV3 implements AttemptOrBuilder

Records a failed evaluation job run.

Protobuf type google.cloud.datalabeling.v1beta1.Attempt

Implements

AttemptOrBuilder

Static Fields

ATTEMPT_TIME_FIELD_NUMBER

public static final int ATTEMPT_TIME_FIELD_NUMBER
Field Value
Type Description
int

PARTIAL_FAILURES_FIELD_NUMBER

public static final int PARTIAL_FAILURES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Attempt getDefaultInstance()
Returns
Type Description
Attempt

getDescriptor()

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

newBuilder()

public static Attempt.Builder newBuilder()
Returns
Type Description
Attempt.Builder

newBuilder(Attempt prototype)

public static Attempt.Builder newBuilder(Attempt prototype)
Parameter
Name Description
prototype Attempt
Returns
Type Description
Attempt.Builder

parseDelimitedFrom(InputStream input)

public static Attempt parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Attempt
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Attempt parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attempt
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Attempt parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Attempt
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Attempt parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attempt
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Attempt parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Attempt
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Attempt parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attempt
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Attempt parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Attempt
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Attempt parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attempt
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Attempt parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Attempt
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Attempt parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attempt
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Attempt parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Attempt
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Attempt parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attempt
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Attempt> parser()
Returns
Type Description
Parser<Attempt>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAttemptTime()

public Timestamp getAttemptTime()

.google.protobuf.Timestamp attempt_time = 1;

Returns
Type Description
Timestamp

The attemptTime.

getAttemptTimeOrBuilder()

public TimestampOrBuilder getAttemptTimeOrBuilder()

.google.protobuf.Timestamp attempt_time = 1;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Attempt getDefaultInstanceForType()
Returns
Type Description
Attempt

getParserForType()

public Parser<Attempt> getParserForType()
Returns
Type Description
Parser<Attempt>
Overrides

getPartialFailures(int index)

public Status getPartialFailures(int index)

Details of errors that occurred.

repeated .google.rpc.Status partial_failures = 2;

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

getPartialFailuresCount()

public int getPartialFailuresCount()

Details of errors that occurred.

repeated .google.rpc.Status partial_failures = 2;

Returns
Type Description
int

getPartialFailuresList()

public List<Status> getPartialFailuresList()

Details of errors that occurred.

repeated .google.rpc.Status partial_failures = 2;

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

getPartialFailuresOrBuilder(int index)

public StatusOrBuilder getPartialFailuresOrBuilder(int index)

Details of errors that occurred.

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()

Details of errors that occurred.

repeated .google.rpc.Status partial_failures = 2;

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAttemptTime()

public boolean hasAttemptTime()

.google.protobuf.Timestamp attempt_time = 1;

Returns
Type Description
boolean

Whether the attemptTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Attempt.Builder newBuilderForType()
Returns
Type Description
Attempt.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Attempt.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Attempt.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Attempt.Builder toBuilder()
Returns
Type Description
Attempt.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException