Class Event.Builder

  • All Implemented Interfaces:
    EventOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    Event

    public static final class Event.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    implements EventOrBuilder
    Protobuf type Event
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
      • clear

        public Event.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
      • getDefaultInstanceForType

        public Event getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Event build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Event buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Event.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
      • setField

        public Event.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                      java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
      • clearField

        public Event.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
      • clearOneof

        public Event.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
      • setRepeatedField

        public Event.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              int index,
                                              java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
      • addRepeatedField

        public Event.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
      • mergeFrom

        public Event.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Event.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
      • mergeFrom

        public Event.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Event.Builder>
        Throws:
        java.io.IOException
      • hasId

        public boolean hasId()
        .EventID id = 1;
        Specified by:
        hasId in interface EventOrBuilder
        Returns:
        Whether the id field is set.
      • hasParentId

        public boolean hasParentId()
         Event id of parent event. It is null for root event
         
        .EventID parent_id = 2;
        Specified by:
        hasParentId in interface EventOrBuilder
        Returns:
        Whether the parentId field is set.
      • getParentId

        public EventID getParentId()
         Event id of parent event. It is null for root event
         
        .EventID parent_id = 2;
        Specified by:
        getParentId in interface EventOrBuilder
        Returns:
        The parentId.
      • setParentId

        public Event.Builder setParentId​(EventID value)
         Event id of parent event. It is null for root event
         
        .EventID parent_id = 2;
      • setParentId

        public Event.Builder setParentId​(EventID.Builder builderForValue)
         Event id of parent event. It is null for root event
         
        .EventID parent_id = 2;
      • mergeParentId

        public Event.Builder mergeParentId​(EventID value)
         Event id of parent event. It is null for root event
         
        .EventID parent_id = 2;
      • clearParentId

        public Event.Builder clearParentId()
         Event id of parent event. It is null for root event
         
        .EventID parent_id = 2;
      • getParentIdBuilder

        public EventID.Builder getParentIdBuilder()
         Event id of parent event. It is null for root event
         
        .EventID parent_id = 2;
      • hasStartTimestamp

        public boolean hasStartTimestamp()
        .google.protobuf.Timestamp start_timestamp = 3;
        Specified by:
        hasStartTimestamp in interface EventOrBuilder
        Returns:
        Whether the startTimestamp field is set.
      • getStartTimestamp

        public com.google.protobuf.Timestamp getStartTimestamp()
        .google.protobuf.Timestamp start_timestamp = 3;
        Specified by:
        getStartTimestamp in interface EventOrBuilder
        Returns:
        The startTimestamp.
      • setStartTimestamp

        public Event.Builder setStartTimestamp​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp start_timestamp = 3;
      • setStartTimestamp

        public Event.Builder setStartTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
        .google.protobuf.Timestamp start_timestamp = 3;
      • mergeStartTimestamp

        public Event.Builder mergeStartTimestamp​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp start_timestamp = 3;
      • clearStartTimestamp

        public Event.Builder clearStartTimestamp()
        .google.protobuf.Timestamp start_timestamp = 3;
      • getStartTimestampBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimestampBuilder()
        .google.protobuf.Timestamp start_timestamp = 3;
      • getStartTimestampOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimestampOrBuilder()
        .google.protobuf.Timestamp start_timestamp = 3;
        Specified by:
        getStartTimestampOrBuilder in interface EventOrBuilder
      • hasEndTimestamp

        public boolean hasEndTimestamp()
        .google.protobuf.Timestamp end_timestamp = 4;
        Specified by:
        hasEndTimestamp in interface EventOrBuilder
        Returns:
        Whether the endTimestamp field is set.
      • getEndTimestamp

        public com.google.protobuf.Timestamp getEndTimestamp()
        .google.protobuf.Timestamp end_timestamp = 4;
        Specified by:
        getEndTimestamp in interface EventOrBuilder
        Returns:
        The endTimestamp.
      • setEndTimestamp

        public Event.Builder setEndTimestamp​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp end_timestamp = 4;
      • setEndTimestamp

        public Event.Builder setEndTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
        .google.protobuf.Timestamp end_timestamp = 4;
      • mergeEndTimestamp

        public Event.Builder mergeEndTimestamp​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp end_timestamp = 4;
      • clearEndTimestamp

        public Event.Builder clearEndTimestamp()
        .google.protobuf.Timestamp end_timestamp = 4;
      • getEndTimestampBuilder

        public com.google.protobuf.Timestamp.Builder getEndTimestampBuilder()
        .google.protobuf.Timestamp end_timestamp = 4;
      • getEndTimestampOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimestampOrBuilder()
        .google.protobuf.Timestamp end_timestamp = 4;
        Specified by:
        getEndTimestampOrBuilder in interface EventOrBuilder
      • getStatusValue

        public int getStatusValue()
         Aggregated status of current and children events which sync written.
         
        .EventStatus status = 5;
        Specified by:
        getStatusValue in interface EventOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public Event.Builder setStatusValue​(int value)
         Aggregated status of current and children events which sync written.
         
        .EventStatus status = 5;
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • getStatus

        public EventStatus getStatus()
         Aggregated status of current and children events which sync written.
         
        .EventStatus status = 5;
        Specified by:
        getStatus in interface EventOrBuilder
        Returns:
        The status.
      • setStatus

        public Event.Builder setStatus​(EventStatus value)
         Aggregated status of current and children events which sync written.
         
        .EventStatus status = 5;
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public Event.Builder clearStatus()
         Aggregated status of current and children events which sync written.
         
        .EventStatus status = 5;
        Returns:
        This builder for chaining.
      • getName

        public java.lang.String getName()
        string name = 6;
        Specified by:
        getName in interface EventOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
        string name = 6;
        Specified by:
        getNameBytes in interface EventOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Event.Builder setName​(java.lang.String value)
        string name = 6;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Event.Builder clearName()
        string name = 6;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Event.Builder setNameBytes​(com.google.protobuf.ByteString value)
        string name = 6;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getType

        public java.lang.String getType()
        string type = 7;
        Specified by:
        getType in interface EventOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
        string type = 7;
        Specified by:
        getTypeBytes in interface EventOrBuilder
        Returns:
        The bytes for type.
      • setType

        public Event.Builder setType​(java.lang.String value)
        string type = 7;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public Event.Builder clearType()
        string type = 7;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public Event.Builder setTypeBytes​(com.google.protobuf.ByteString value)
        string type = 7;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • getBody

        public com.google.protobuf.ByteString getBody()
        bytes body = 8;
        Specified by:
        getBody in interface EventOrBuilder
        Returns:
        The body.
      • setBody

        public Event.Builder setBody​(com.google.protobuf.ByteString value)
        bytes body = 8;
        Parameters:
        value - The body to set.
        Returns:
        This builder for chaining.
      • clearBody

        public Event.Builder clearBody()
        bytes body = 8;
        Returns:
        This builder for chaining.
      • setAttachedMessageIds

        public Event.Builder setAttachedMessageIds​(int index,
                                                   MessageID value)
        repeated .MessageID attached_message_ids = 9;
      • setAttachedMessageIds

        public Event.Builder setAttachedMessageIds​(int index,
                                                   MessageID.Builder builderForValue)
        repeated .MessageID attached_message_ids = 9;
      • addAttachedMessageIds

        public Event.Builder addAttachedMessageIds​(MessageID value)
        repeated .MessageID attached_message_ids = 9;
      • addAttachedMessageIds

        public Event.Builder addAttachedMessageIds​(int index,
                                                   MessageID value)
        repeated .MessageID attached_message_ids = 9;
      • addAttachedMessageIds

        public Event.Builder addAttachedMessageIds​(MessageID.Builder builderForValue)
        repeated .MessageID attached_message_ids = 9;
      • addAttachedMessageIds

        public Event.Builder addAttachedMessageIds​(int index,
                                                   MessageID.Builder builderForValue)
        repeated .MessageID attached_message_ids = 9;
      • addAllAttachedMessageIds

        public Event.Builder addAllAttachedMessageIds​(java.lang.Iterable<? extends MessageID> values)
        repeated .MessageID attached_message_ids = 9;
      • clearAttachedMessageIds

        public Event.Builder clearAttachedMessageIds()
        repeated .MessageID attached_message_ids = 9;
      • removeAttachedMessageIds

        public Event.Builder removeAttachedMessageIds​(int index)
        repeated .MessageID attached_message_ids = 9;
      • getAttachedMessageIdsBuilder

        public MessageID.Builder getAttachedMessageIdsBuilder​(int index)
        repeated .MessageID attached_message_ids = 9;
      • addAttachedMessageIdsBuilder

        public MessageID.Builder addAttachedMessageIdsBuilder()
        repeated .MessageID attached_message_ids = 9;
      • addAttachedMessageIdsBuilder

        public MessageID.Builder addAttachedMessageIdsBuilder​(int index)
        repeated .MessageID attached_message_ids = 9;
      • getAttachedMessageIdsBuilderList

        public java.util.List<MessageID.Builder> getAttachedMessageIdsBuilderList()
        repeated .MessageID attached_message_ids = 9;
      • setUnknownFields

        public final Event.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
      • mergeUnknownFields

        public final Event.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>