All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.salesforce.servicelibs.ChatProto Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Chat.proto

package com.salesforce.servicelibs;

public final class ChatProto {
  private ChatProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ChatMessageOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.salesforce.servicelibs.ChatMessage)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .google.protobuf.Timestamp when = 1;
     */
    boolean hasWhen();
    /**
     * .google.protobuf.Timestamp when = 1;
     */
    com.google.protobuf.Timestamp getWhen();
    /**
     * .google.protobuf.Timestamp when = 1;
     */
    com.google.protobuf.TimestampOrBuilder getWhenOrBuilder();

    /**
     * string author = 2;
     */
    java.lang.String getAuthor();
    /**
     * string author = 2;
     */
    com.google.protobuf.ByteString
        getAuthorBytes();

    /**
     * string message = 3;
     */
    java.lang.String getMessage();
    /**
     * string message = 3;
     */
    com.google.protobuf.ByteString
        getMessageBytes();
  }
  /**
   * Protobuf type {@code com.salesforce.servicelibs.ChatMessage}
   */
  public  static final class ChatMessage extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:com.salesforce.servicelibs.ChatMessage)
      ChatMessageOrBuilder {
    // Use ChatMessage.newBuilder() to construct.
    private ChatMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private ChatMessage() {
      author_ = "";
      message_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private ChatMessage(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              com.google.protobuf.Timestamp.Builder subBuilder = null;
              if (when_ != null) {
                subBuilder = when_.toBuilder();
              }
              when_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(when_);
                when_ = subBuilder.buildPartial();
              }

              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              author_ = s;
              break;
            }
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();

              message_ = s;
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.salesforce.servicelibs.ChatProto.internal_static_com_salesforce_servicelibs_ChatMessage_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.salesforce.servicelibs.ChatProto.internal_static_com_salesforce_servicelibs_ChatMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.salesforce.servicelibs.ChatProto.ChatMessage.class, com.salesforce.servicelibs.ChatProto.ChatMessage.Builder.class);
    }

    public static final int WHEN_FIELD_NUMBER = 1;
    private com.google.protobuf.Timestamp when_;
    /**
     * .google.protobuf.Timestamp when = 1;
     */
    public boolean hasWhen() {
      return when_ != null;
    }
    /**
     * .google.protobuf.Timestamp when = 1;
     */
    public com.google.protobuf.Timestamp getWhen() {
      return when_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : when_;
    }
    /**
     * .google.protobuf.Timestamp when = 1;
     */
    public com.google.protobuf.TimestampOrBuilder getWhenOrBuilder() {
      return getWhen();
    }

    public static final int AUTHOR_FIELD_NUMBER = 2;
    private volatile java.lang.Object author_;
    /**
     * string author = 2;
     */
    public java.lang.String getAuthor() {
      java.lang.Object ref = author_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        author_ = s;
        return s;
      }
    }
    /**
     * string author = 2;
     */
    public com.google.protobuf.ByteString
        getAuthorBytes() {
      java.lang.Object ref = author_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        author_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int MESSAGE_FIELD_NUMBER = 3;
    private volatile java.lang.Object message_;
    /**
     * string message = 3;
     */
    public java.lang.String getMessage() {
      java.lang.Object ref = message_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        message_ = s;
        return s;
      }
    }
    /**
     * string message = 3;
     */
    public com.google.protobuf.ByteString
        getMessageBytes() {
      java.lang.Object ref = message_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        message_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (when_ != null) {
        output.writeMessage(1, getWhen());
      }
      if (!getAuthorBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, author_);
      }
      if (!getMessageBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_);
      }
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (when_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getWhen());
      }
      if (!getAuthorBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, author_);
      }
      if (!getMessageBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_);
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.salesforce.servicelibs.ChatProto.ChatMessage)) {
        return super.equals(obj);
      }
      com.salesforce.servicelibs.ChatProto.ChatMessage other = (com.salesforce.servicelibs.ChatProto.ChatMessage) obj;

      boolean result = true;
      result = result && (hasWhen() == other.hasWhen());
      if (hasWhen()) {
        result = result && getWhen()
            .equals(other.getWhen());
      }
      result = result && getAuthor()
          .equals(other.getAuthor());
      result = result && getMessage()
          .equals(other.getMessage());
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasWhen()) {
        hash = (37 * hash) + WHEN_FIELD_NUMBER;
        hash = (53 * hash) + getWhen().hashCode();
      }
      hash = (37 * hash) + AUTHOR_FIELD_NUMBER;
      hash = (53 * hash) + getAuthor().hashCode();
      hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
      hash = (53 * hash) + getMessage().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.salesforce.servicelibs.ChatProto.ChatMessage parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.salesforce.servicelibs.ChatProto.ChatMessage parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.salesforce.servicelibs.ChatProto.ChatMessage parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.salesforce.servicelibs.ChatProto.ChatMessage parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.salesforce.servicelibs.ChatProto.ChatMessage parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.salesforce.servicelibs.ChatProto.ChatMessage parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.salesforce.servicelibs.ChatProto.ChatMessage parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.salesforce.servicelibs.ChatProto.ChatMessage parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.salesforce.servicelibs.ChatProto.ChatMessage parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.salesforce.servicelibs.ChatProto.ChatMessage parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.salesforce.servicelibs.ChatProto.ChatMessage parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.salesforce.servicelibs.ChatProto.ChatMessage parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.salesforce.servicelibs.ChatProto.ChatMessage prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code com.salesforce.servicelibs.ChatMessage}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:com.salesforce.servicelibs.ChatMessage)
        com.salesforce.servicelibs.ChatProto.ChatMessageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.salesforce.servicelibs.ChatProto.internal_static_com_salesforce_servicelibs_ChatMessage_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.salesforce.servicelibs.ChatProto.internal_static_com_salesforce_servicelibs_ChatMessage_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.salesforce.servicelibs.ChatProto.ChatMessage.class, com.salesforce.servicelibs.ChatProto.ChatMessage.Builder.class);
      }

      // Construct using com.salesforce.servicelibs.ChatProto.ChatMessage.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        if (whenBuilder_ == null) {
          when_ = null;
        } else {
          when_ = null;
          whenBuilder_ = null;
        }
        author_ = "";

        message_ = "";

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.salesforce.servicelibs.ChatProto.internal_static_com_salesforce_servicelibs_ChatMessage_descriptor;
      }

      public com.salesforce.servicelibs.ChatProto.ChatMessage getDefaultInstanceForType() {
        return com.salesforce.servicelibs.ChatProto.ChatMessage.getDefaultInstance();
      }

      public com.salesforce.servicelibs.ChatProto.ChatMessage build() {
        com.salesforce.servicelibs.ChatProto.ChatMessage result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.salesforce.servicelibs.ChatProto.ChatMessage buildPartial() {
        com.salesforce.servicelibs.ChatProto.ChatMessage result = new com.salesforce.servicelibs.ChatProto.ChatMessage(this);
        if (whenBuilder_ == null) {
          result.when_ = when_;
        } else {
          result.when_ = whenBuilder_.build();
        }
        result.author_ = author_;
        result.message_ = message_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.salesforce.servicelibs.ChatProto.ChatMessage) {
          return mergeFrom((com.salesforce.servicelibs.ChatProto.ChatMessage)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.salesforce.servicelibs.ChatProto.ChatMessage other) {
        if (other == com.salesforce.servicelibs.ChatProto.ChatMessage.getDefaultInstance()) return this;
        if (other.hasWhen()) {
          mergeWhen(other.getWhen());
        }
        if (!other.getAuthor().isEmpty()) {
          author_ = other.author_;
          onChanged();
        }
        if (!other.getMessage().isEmpty()) {
          message_ = other.message_;
          onChanged();
        }
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.salesforce.servicelibs.ChatProto.ChatMessage parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.salesforce.servicelibs.ChatProto.ChatMessage) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private com.google.protobuf.Timestamp when_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> whenBuilder_;
      /**
       * .google.protobuf.Timestamp when = 1;
       */
      public boolean hasWhen() {
        return whenBuilder_ != null || when_ != null;
      }
      /**
       * .google.protobuf.Timestamp when = 1;
       */
      public com.google.protobuf.Timestamp getWhen() {
        if (whenBuilder_ == null) {
          return when_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : when_;
        } else {
          return whenBuilder_.getMessage();
        }
      }
      /**
       * .google.protobuf.Timestamp when = 1;
       */
      public Builder setWhen(com.google.protobuf.Timestamp value) {
        if (whenBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          when_ = value;
          onChanged();
        } else {
          whenBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp when = 1;
       */
      public Builder setWhen(
          com.google.protobuf.Timestamp.Builder builderForValue) {
        if (whenBuilder_ == null) {
          when_ = builderForValue.build();
          onChanged();
        } else {
          whenBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp when = 1;
       */
      public Builder mergeWhen(com.google.protobuf.Timestamp value) {
        if (whenBuilder_ == null) {
          if (when_ != null) {
            when_ =
              com.google.protobuf.Timestamp.newBuilder(when_).mergeFrom(value).buildPartial();
          } else {
            when_ = value;
          }
          onChanged();
        } else {
          whenBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp when = 1;
       */
      public Builder clearWhen() {
        if (whenBuilder_ == null) {
          when_ = null;
          onChanged();
        } else {
          when_ = null;
          whenBuilder_ = null;
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp when = 1;
       */
      public com.google.protobuf.Timestamp.Builder getWhenBuilder() {
        
        onChanged();
        return getWhenFieldBuilder().getBuilder();
      }
      /**
       * .google.protobuf.Timestamp when = 1;
       */
      public com.google.protobuf.TimestampOrBuilder getWhenOrBuilder() {
        if (whenBuilder_ != null) {
          return whenBuilder_.getMessageOrBuilder();
        } else {
          return when_ == null ?
              com.google.protobuf.Timestamp.getDefaultInstance() : when_;
        }
      }
      /**
       * .google.protobuf.Timestamp when = 1;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
          getWhenFieldBuilder() {
        if (whenBuilder_ == null) {
          whenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                  getWhen(),
                  getParentForChildren(),
                  isClean());
          when_ = null;
        }
        return whenBuilder_;
      }

      private java.lang.Object author_ = "";
      /**
       * string author = 2;
       */
      public java.lang.String getAuthor() {
        java.lang.Object ref = author_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          author_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string author = 2;
       */
      public com.google.protobuf.ByteString
          getAuthorBytes() {
        java.lang.Object ref = author_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          author_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string author = 2;
       */
      public Builder setAuthor(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        author_ = value;
        onChanged();
        return this;
      }
      /**
       * string author = 2;
       */
      public Builder clearAuthor() {
        
        author_ = getDefaultInstance().getAuthor();
        onChanged();
        return this;
      }
      /**
       * string author = 2;
       */
      public Builder setAuthorBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        author_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object message_ = "";
      /**
       * string message = 3;
       */
      public java.lang.String getMessage() {
        java.lang.Object ref = message_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          message_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string message = 3;
       */
      public com.google.protobuf.ByteString
          getMessageBytes() {
        java.lang.Object ref = message_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          message_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string message = 3;
       */
      public Builder setMessage(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        message_ = value;
        onChanged();
        return this;
      }
      /**
       * string message = 3;
       */
      public Builder clearMessage() {
        
        message_ = getDefaultInstance().getMessage();
        onChanged();
        return this;
      }
      /**
       * string message = 3;
       */
      public Builder setMessageBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        message_ = value;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }


      // @@protoc_insertion_point(builder_scope:com.salesforce.servicelibs.ChatMessage)
    }

    // @@protoc_insertion_point(class_scope:com.salesforce.servicelibs.ChatMessage)
    private static final com.salesforce.servicelibs.ChatProto.ChatMessage DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.salesforce.servicelibs.ChatProto.ChatMessage();
    }

    public static com.salesforce.servicelibs.ChatProto.ChatMessage getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      public ChatMessage parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
          return new ChatMessage(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    public com.salesforce.servicelibs.ChatProto.ChatMessage getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_com_salesforce_servicelibs_ChatMessage_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_com_salesforce_servicelibs_ChatMessage_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\nChat.proto\022\032com.salesforce.servicelibs" +
      "\032\033google/protobuf/empty.proto\032\037google/pr" +
      "otobuf/timestamp.proto\"X\n\013ChatMessage\022(\n" +
      "\004when\030\001 \001(\0132\032.google.protobuf.Timestamp\022" +
      "\016\n\006author\030\002 \001(\t\022\017\n\007message\030\003 \001(\t2\254\001\n\004Cha" +
      "t\022P\n\013PostMessage\022\'.com.salesforce.servic" +
      "elibs.ChatMessage\032\026.google.protobuf.Empt" +
      "y\"\000\022R\n\013GetMessages\022\026.google.protobuf.Emp" +
      "ty\032\'.com.salesforce.servicelibs.ChatMess" +
      "age\"\0000\001B\'\n\032com.salesforce.servicelibsB\tC",
      "hatProtob\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.google.protobuf.EmptyProto.getDescriptor(),
          com.google.protobuf.TimestampProto.getDescriptor(),
        }, assigner);
    internal_static_com_salesforce_servicelibs_ChatMessage_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_com_salesforce_servicelibs_ChatMessage_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_com_salesforce_servicelibs_ChatMessage_descriptor,
        new java.lang.String[] { "When", "Author", "Message", });
    com.google.protobuf.EmptyProto.getDescriptor();
    com.google.protobuf.TimestampProto.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy