Class StudyTimeConstraint (3.33.0)

public final class StudyTimeConstraint extends GeneratedMessageV3 implements StudyTimeConstraintOrBuilder

Time-based Constraint for Study

Protobuf type google.cloud.aiplatform.v1.StudyTimeConstraint

Static Fields

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_DURATION_FIELD_NUMBER

public static final int MAX_DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StudyTimeConstraint getDefaultInstance()
Returns
TypeDescription
StudyTimeConstraint

getDescriptor()

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

newBuilder()

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

newBuilder(StudyTimeConstraint prototype)

public static StudyTimeConstraint.Builder newBuilder(StudyTimeConstraint prototype)
Parameter
NameDescription
prototypeStudyTimeConstraint
Returns
TypeDescription
StudyTimeConstraint.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getConstraintCase()

public StudyTimeConstraint.ConstraintCase getConstraintCase()
Returns
TypeDescription
StudyTimeConstraint.ConstraintCase

getDefaultInstanceForType()

public StudyTimeConstraint getDefaultInstanceForType()
Returns
TypeDescription
StudyTimeConstraint

getEndTime()

public Timestamp getEndTime()

Compares the wallclock time to this time. Must use UTC timezone.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Compares the wallclock time to this time. Must use UTC timezone.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getMaxDuration()

public Duration getMaxDuration()

Counts the wallclock time passed since the creation of this Study.

.google.protobuf.Duration max_duration = 1;

Returns
TypeDescription
Duration

The maxDuration.

getMaxDurationOrBuilder()

public DurationOrBuilder getMaxDurationOrBuilder()

Counts the wallclock time passed since the creation of this Study.

.google.protobuf.Duration max_duration = 1;

Returns
TypeDescription
DurationOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasEndTime()

public boolean hasEndTime()

Compares the wallclock time to this time. Must use UTC timezone.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasMaxDuration()

public boolean hasMaxDuration()

Counts the wallclock time passed since the creation of this Study.

.google.protobuf.Duration max_duration = 1;

Returns
TypeDescription
boolean

Whether the maxDuration 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 StudyTimeConstraint.Builder newBuilderForType()
Returns
TypeDescription
StudyTimeConstraint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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