/*
 * Copyright (C) 2019 The Turms Project
 * https://github.com/turms-im/turms
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package im.turms.server.common.access.client.dto.request.message;

public interface CreateMessageRequestOrBuilder extends
        // @@protoc_insertion_point(interface_extends:im.turms.proto.CreateMessageRequest)
        com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional int64 message_id = 1;</code>
     *
     * @return Whether the messageId field is set.
     */
    boolean hasMessageId();

    /**
     * <code>optional int64 message_id = 1;</code>
     *
     * @return The messageId.
     */
    long getMessageId();

    /**
     * <pre>
     * is_system_message can only be true if the user is an administrator,
     * or turms server will return an error
     * </pre>
     * 
     * <code>optional bool is_system_message = 2;</code>
     *
     * @return Whether the isSystemMessage field is set.
     */
    boolean hasIsSystemMessage();

    /**
     * <pre>
     * is_system_message can only be true if the user is an administrator,
     * or turms server will return an error
     * </pre>
     * 
     * <code>optional bool is_system_message = 2;</code>
     *
     * @return The isSystemMessage.
     */
    boolean getIsSystemMessage();

    /**
     * <code>optional int64 group_id = 3;</code>
     *
     * @return Whether the groupId field is set.
     */
    boolean hasGroupId();

    /**
     * <code>optional int64 group_id = 3;</code>
     *
     * @return The groupId.
     */
    long getGroupId();

    /**
     * <code>optional int64 recipient_id = 4;</code>
     *
     * @return Whether the recipientId field is set.
     */
    boolean hasRecipientId();

    /**
     * <code>optional int64 recipient_id = 4;</code>
     *
     * @return The recipientId.
     */
    long getRecipientId();

    /**
     * <code>optional int64 delivery_date = 5;</code>
     *
     * @return Whether the deliveryDate field is set.
     */
    boolean hasDeliveryDate();

    /**
     * <code>optional int64 delivery_date = 5;</code>
     *
     * @return The deliveryDate.
     */
    long getDeliveryDate();

    /**
     * <code>optional string text = 6;</code>
     *
     * @return Whether the text field is set.
     */
    boolean hasText();

    /**
     * <code>optional string text = 6;</code>
     *
     * @return The text.
     */
    java.lang.String getText();

    /**
     * <code>optional string text = 6;</code>
     *
     * @return The bytes for text.
     */
    com.google.protobuf.ByteString getTextBytes();

    /**
     * <code>repeated bytes records = 7;</code>
     *
     * @return A list containing the records.
     */
    java.util.List<com.google.protobuf.ByteString> getRecordsList();

    /**
     * <code>repeated bytes records = 7;</code>
     *
     * @return The count of records.
     */
    int getRecordsCount();

    /**
     * <code>repeated bytes records = 7;</code>
     *
     * @param index The index of the element to return.
     * @return The records at the given index.
     */
    com.google.protobuf.ByteString getRecords(int index);

    /**
     * <code>optional int32 burn_after = 8;</code>
     *
     * @return Whether the burnAfter field is set.
     */
    boolean hasBurnAfter();

    /**
     * <code>optional int32 burn_after = 8;</code>
     *
     * @return The burnAfter.
     */
    int getBurnAfter();

    /**
     * <code>optional int64 pre_message_id = 9;</code>
     *
     * @return Whether the preMessageId field is set.
     */
    boolean hasPreMessageId();

    /**
     * <code>optional int64 pre_message_id = 9;</code>
     *
     * @return The preMessageId.
     */
    long getPreMessageId();
}