Class StudyTimeConstraint (3.46.0)

public final class StudyTimeConstraint extends GeneratedMessageV3 implements StudyTimeConstraintOrBuilder

Time-based Constraint for Study

Protobuf type google.cloud.aiplatform.v1beta1.StudyTimeConstraint

Static Fields

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
Type Description
int

MAX_DURATION_FIELD_NUMBER

public static final int MAX_DURATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StudyTimeConstraint getDefaultInstance()
Returns
Type Description
StudyTimeConstraint

getDescriptor()

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

newBuilder()

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

newBuilder(StudyTimeConstraint prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getConstraintCase()

public StudyTimeConstraint.ConstraintCase getConstraintCase()
Returns
Type Description
StudyTimeConstraint.ConstraintCase

getDefaultInstanceForType()

public StudyTimeConstraint getDefaultInstanceForType()
Returns
Type Description
StudyTimeConstraint

getEndTime()

public Timestamp getEndTime()

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

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
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
Type Description
TimestampOrBuilder

getMaxDuration()

public Duration getMaxDuration()

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

.google.protobuf.Duration max_duration = 1;

Returns
Type Description
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
Type Description
DurationOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasEndTime()

public boolean hasEndTime()

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

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
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
Type Description
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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