TimeOption

public final class TimeOption extends GeneratedMessageV3 implements ValidatableMessage, TimeOptionOrBuilder
The field value is point in time which lies in the future or in the past.
Is applicable only to `Timestamp`s and types marked as `Temporal`. See `io.spine.time.Temporal`.
Repeated fields are supported.
Example: Using `(when)` option.
    message ScheduleMeeting {
        spine.time.ZonedDateTime start = 1 [(when).in = FUTURE];
    }
Protobuf type TimeOption

Types

Link copied to clipboard
public final class Builder extends GeneratedMessageV3.Builder<BuilderType> implements ValidatingBuilder<M>, TimeOptionOrBuilder
The field value is point in time which lies in the future or in the past.
Is applicable only to `Timestamp`s and types marked as `Temporal`. See `io.spine.time.Temporal`.
Repeated fields are supported.
Example: Using `(when)` option.
    message ScheduleMeeting {
        spine.time.ZonedDateTime start = 1 [(when).in = FUTURE];
    }
Protobuf type TimeOption

Properties

Link copied to clipboard
public final static int ERROR_MSG_FIELD_NUMBER
Link copied to clipboard
public final static int IN_FIELD_NUMBER
Link copied to clipboard
public final static int MSG_FORMAT_FIELD_NUMBER

Inherited properties

Link copied to clipboard
protected static boolean alwaysUseFieldBuilders
Link copied to clipboard
protected int memoizedHashCode
Link copied to clipboard
protected int memoizedSize
Link copied to clipboard
protected UnknownFieldSet unknownFields

Functions

Link copied to clipboard
public boolean equals(Object obj)
Link copied to clipboard
Link copied to clipboard
public final static Descriptors.Descriptor getDescriptor()
Link copied to clipboard
A user-defined validation error format message.
May include tokens `{value}`—for the actual value of the field, and `{other}`—for
the expected value. The tokens will be replaced at runtime when the error is constructed.
string error_msg = 3;
Link copied to clipboard
public ByteString getErrorMsgBytes()
A user-defined validation error format message.
May include tokens `{value}`—for the actual value of the field, and `{other}`—for
the expected value. The tokens will be replaced at runtime when the error is constructed.
string error_msg = 3;
Link copied to clipboard
public Time getIn()
Defines a restriction for the timestamp.
.Time in = 1;
Link copied to clipboard
public int getInValue()
Defines a restriction for the timestamp.
.Time in = 1;
Link copied to clipboard
A user-defined validation error format message.
Deprecated. Use `error_msg` instead.
string msg_format = 2 [deprecated = true];
Link copied to clipboard
public ByteString getMsgFormatBytes()
A user-defined validation error format message.
Deprecated. Use `error_msg` instead.
string msg_format = 2 [deprecated = true];
Link copied to clipboard
public Parser<TimeOption> getParserForType()
Link copied to clipboard
public int getSerializedSize()
Link copied to clipboard
public final UnknownFieldSet getUnknownFields()
Link copied to clipboard
public int hashCode()
Link copied to clipboard
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Link copied to clipboard
public final boolean isInitialized()
Link copied to clipboard
public static TimeOption.Builder newBuilder(TimeOption prototype)
Link copied to clipboard
protected TimeOption.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Link copied to clipboard
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Link copied to clipboard
public static TimeOption parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Link copied to clipboard
public static TimeOption parseFrom(Array<byte> data)
public static TimeOption parseFrom(ByteString data)
public static TimeOption parseFrom(CodedInputStream input)
public static TimeOption parseFrom(InputStream input)
public static TimeOption parseFrom(ByteBuffer data)
public static TimeOption parseFrom(Array<byte> data, ExtensionRegistryLite extensionRegistry)
public static TimeOption parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TimeOption parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TimeOption parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TimeOption parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Link copied to clipboard
public static Parser<TimeOption> parser()
Link copied to clipboard
Link copied to clipboard
public Optional<ValidationError> validate()
Link copied to clipboard
public void writeTo(CodedOutputStream output)

Inherited functions

Link copied to clipboard
protected static void addAll<T>(Iterable<T> values, Collection<? extends Object> list)
Link copied to clipboard
protected static boolean canUseUnsafe()
Link copied to clipboard
protected static void checkByteStringIsUtf8(ByteString byteString)
Link copied to clipboard
protected static int computeStringSize(int fieldNumber, Object value)
Link copied to clipboard
protected static int computeStringSizeNoTag(Object value)
Link copied to clipboard
protected static Internal.BooleanList emptyBooleanList()
Link copied to clipboard
protected static Internal.DoubleList emptyDoubleList()
Link copied to clipboard
protected static Internal.FloatList emptyFloatList()
Link copied to clipboard
protected static Internal.IntList emptyIntList()
Link copied to clipboard
protected static Internal.LongList emptyLongList()
Link copied to clipboard
Link copied to clipboard
public Map<Descriptors.FieldDescriptor, Object> getAllFields()
Link copied to clipboard
public abstract MessageLite getDefaultInstanceForType()
Link copied to clipboard
public Descriptors.Descriptor getDescriptorForType()
Link copied to clipboard
public Object getField(Descriptors.FieldDescriptor field)
Link copied to clipboard
public Descriptors.FieldDescriptor getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof)
Link copied to clipboard
public abstract Parser<? extends MessageLite> getParserForType()
Link copied to clipboard
public Object getRepeatedField(Descriptors.FieldDescriptor field, int index)
Link copied to clipboard
public int getRepeatedFieldCount(Descriptors.FieldDescriptor field)
Link copied to clipboard
public boolean hasField(Descriptors.FieldDescriptor field)
Link copied to clipboard
protected static int hashBoolean(boolean b)
Link copied to clipboard
protected static int hashEnum(Internal.EnumLite e)
Link copied to clipboard
protected static int hashEnumList(List<? extends Internal.EnumLite> list)
Link copied to clipboard
protected static int hashFields(int hash, Map<Descriptors.FieldDescriptor, Object> map)
Link copied to clipboard
protected static int hashLong(long n)
Link copied to clipboard
public boolean hasOneof(Descriptors.OneofDescriptor oneof)
Link copied to clipboard
protected MapField internalGetMapField(int fieldNumber)
Link copied to clipboard
protected static boolean isStringEmpty(Object value)
Link copied to clipboard
protected void makeExtensionsImmutable()
Link copied to clipboard
protected void mergeFromAndMakeImmutableInternal(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Link copied to clipboard
protected static Internal.BooleanList mutableCopy(Internal.BooleanList list)
protected static Internal.DoubleList mutableCopy(Internal.DoubleList list)
protected static Internal.FloatList mutableCopy(Internal.FloatList list)
protected static Internal.IntList mutableCopy(Internal.IntList list)
protected static Internal.LongList mutableCopy(Internal.LongList list)
Link copied to clipboard
protected static Internal.BooleanList newBooleanList()
Link copied to clipboard
protected static Internal.DoubleList newDoubleList()
Link copied to clipboard
protected static Internal.FloatList newFloatList()
Link copied to clipboard
protected static Internal.IntList newIntList()
Link copied to clipboard
protected static Internal.LongList newLongList()
Link copied to clipboard
protected static M parseDelimitedWithIOException<M extends Message>(Parser<M> parser, InputStream input)
Link copied to clipboard
protected boolean parseUnknownField(CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag)
Link copied to clipboard
protected boolean parseUnknownFieldProto3(CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag)
Link copied to clipboard
protected static M parseWithIOException<M extends Message>(Parser<M> parser, InputStream input)
Link copied to clipboard
protected static void serializeBooleanMapTo<V>(CodedOutputStream out, MapField<Boolean, V> field, MapEntry<Boolean, V> defaultEntry, int fieldNumber)
Link copied to clipboard
protected static void serializeIntegerMapTo<V>(CodedOutputStream out, MapField<Integer, V> field, MapEntry<Integer, V> defaultEntry, int fieldNumber)
Link copied to clipboard
protected static void serializeLongMapTo<V>(CodedOutputStream out, MapField<Long, V> field, MapEntry<Long, V> defaultEntry, int fieldNumber)
Link copied to clipboard
protected static void serializeStringMapTo<V>(CodedOutputStream out, MapField<String, V> field, MapEntry<String, V> defaultEntry, int fieldNumber)
Link copied to clipboard
public Array<byte> toByteArray()
Link copied to clipboard
public ByteString toByteString()
Link copied to clipboard
public final String toString()
Link copied to clipboard
public void writeDelimitedTo(OutputStream output)
Link copied to clipboard
protected Object writeReplace()
Link copied to clipboard
protected static void writeString(CodedOutputStream output, int fieldNumber, Object value)
Link copied to clipboard
protected static void writeStringNoTag(CodedOutputStream output, Object value)