Class Attempt (0.133.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
TypeDescription
int

PARTIAL_FAILURES_FIELD_NUMBER

public static final int PARTIAL_FAILURES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Attempt getDefaultInstance()
Returns
TypeDescription
Attempt

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Attempt.Builder newBuilder()
Returns
TypeDescription
Attempt.Builder

newBuilder(Attempt prototype)

public static Attempt.Builder newBuilder(Attempt prototype)
Parameter
NameDescription
prototypeAttempt
Returns
TypeDescription
Attempt.Builder

parseDelimitedFrom(InputStream input)

public static Attempt parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Attempt
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Attempt parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Attempt
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Attempt parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Attempt
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Attempt parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Attempt
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Attempt parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Attempt
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Attempt parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Attempt
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Attempt parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Attempt
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Attempt parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Attempt
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Attempt parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Attempt
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Attempt parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Attempt
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Attempt parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Attempt
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Attempt parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Attempt
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Attempt> parser()
Returns
TypeDescription
Parser<Attempt>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAttemptTime()

public Timestamp getAttemptTime()

.google.protobuf.Timestamp attempt_time = 1;

Returns
TypeDescription
Timestamp

The attemptTime.

getAttemptTimeOrBuilder()

public TimestampOrBuilder getAttemptTimeOrBuilder()

.google.protobuf.Timestamp attempt_time = 1;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Attempt getDefaultInstanceForType()
Returns
TypeDescription
Attempt

getParserForType()

public Parser<Attempt> getParserForType()
Returns
TypeDescription
Parser<Attempt>
Overrides

getPartialFailures(int index)

public Status getPartialFailures(int index)

Details of errors that occurred.

repeated .google.rpc.Status partial_failures = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status

getPartialFailuresCount()

public int getPartialFailuresCount()

Details of errors that occurred.

repeated .google.rpc.Status partial_failures = 2;

Returns
TypeDescription
int

getPartialFailuresList()

public List<Status> getPartialFailuresList()

Details of errors that occurred.

repeated .google.rpc.Status partial_failures = 2;

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

getPartialFailuresOrBuilderList()

public List<? extends StatusOrBuilder> getPartialFailuresOrBuilderList()

Details of errors that occurred.

repeated .google.rpc.Status partial_failures = 2;

Returns
TypeDescription
List<? extends com.google.rpc.StatusOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAttemptTime()

public boolean hasAttemptTime()

.google.protobuf.Timestamp attempt_time = 1;

Returns
TypeDescription
boolean

Whether the attemptTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Attempt.Builder newBuilderForType()
Returns
TypeDescription
Attempt.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Attempt.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Attempt.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Attempt.Builder toBuilder()
Returns
TypeDescription
Attempt.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException