/*
 * Copyright 2023 Google LLC
 *
 * 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
 *
 *     https://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.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/advisorynotifications/v1/service.proto

package com.google.cloud.advisorynotifications.v1;

/**
 *
 *
 * <pre>
 * A message which contains notification details.
 * </pre>
 *
 * Protobuf type {@code google.cloud.advisorynotifications.v1.Message}
 */
public final class Message extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Message)
    MessageOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use Message.newBuilder() to construct.
  private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private Message() {
    attachments_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new Message();
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.advisorynotifications.v1.ServiceProto
        .internal_static_google_cloud_advisorynotifications_v1_Message_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.advisorynotifications.v1.ServiceProto
        .internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.advisorynotifications.v1.Message.class,
            com.google.cloud.advisorynotifications.v1.Message.Builder.class);
  }

  public interface BodyOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Message.Body)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The text content of the message body.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
     *
     * @return Whether the text field is set.
     */
    boolean hasText();
    /**
     *
     *
     * <pre>
     * The text content of the message body.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
     *
     * @return The text.
     */
    com.google.cloud.advisorynotifications.v1.Text getText();
    /**
     *
     *
     * <pre>
     * The text content of the message body.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
     */
    com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder();
  }
  /**
   *
   *
   * <pre>
   * A message body containing text.
   * </pre>
   *
   * Protobuf type {@code google.cloud.advisorynotifications.v1.Message.Body}
   */
  public static final class Body extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Message.Body)
      BodyOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use Body.newBuilder() to construct.
    private Body(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private Body() {}

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      return new Body();
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.advisorynotifications.v1.ServiceProto
          .internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.advisorynotifications.v1.ServiceProto
          .internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.advisorynotifications.v1.Message.Body.class,
              com.google.cloud.advisorynotifications.v1.Message.Body.Builder.class);
    }

    public static final int TEXT_FIELD_NUMBER = 1;
    private com.google.cloud.advisorynotifications.v1.Text text_;
    /**
     *
     *
     * <pre>
     * The text content of the message body.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
     *
     * @return Whether the text field is set.
     */
    @java.lang.Override
    public boolean hasText() {
      return text_ != null;
    }
    /**
     *
     *
     * <pre>
     * The text content of the message body.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
     *
     * @return The text.
     */
    @java.lang.Override
    public com.google.cloud.advisorynotifications.v1.Text getText() {
      return text_ == null
          ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance()
          : text_;
    }
    /**
     *
     *
     * <pre>
     * The text content of the message body.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
     */
    @java.lang.Override
    public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder() {
      return text_ == null
          ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance()
          : text_;
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (text_ != null) {
        output.writeMessage(1, getText());
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (text_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getText());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.cloud.advisorynotifications.v1.Message.Body)) {
        return super.equals(obj);
      }
      com.google.cloud.advisorynotifications.v1.Message.Body other =
          (com.google.cloud.advisorynotifications.v1.Message.Body) obj;

      if (hasText() != other.hasText()) return false;
      if (hasText()) {
        if (!getText().equals(other.getText())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasText()) {
        hash = (37 * hash) + TEXT_FIELD_NUMBER;
        hash = (53 * hash) + getText().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.advisorynotifications.v1.Message.Body parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.advisorynotifications.v1.Message.Body parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.advisorynotifications.v1.Message.Body parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.advisorynotifications.v1.Message.Body parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.advisorynotifications.v1.Message.Body parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.advisorynotifications.v1.Message.Body parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.advisorynotifications.v1.Message.Body parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.advisorynotifications.v1.Message.Body 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.google.cloud.advisorynotifications.v1.Message.Body parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.advisorynotifications.v1.Message.Body 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.google.cloud.advisorynotifications.v1.Message.Body parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.advisorynotifications.v1.Message.Body parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(
        com.google.cloud.advisorynotifications.v1.Message.Body prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    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;
    }
    /**
     *
     *
     * <pre>
     * A message body containing text.
     * </pre>
     *
     * Protobuf type {@code google.cloud.advisorynotifications.v1.Message.Body}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.advisorynotifications.v1.Message.Body)
        com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.advisorynotifications.v1.ServiceProto
            .internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.advisorynotifications.v1.ServiceProto
            .internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.advisorynotifications.v1.Message.Body.class,
                com.google.cloud.advisorynotifications.v1.Message.Body.Builder.class);
      }

      // Construct using com.google.cloud.advisorynotifications.v1.Message.Body.newBuilder()
      private Builder() {}

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        text_ = null;
        if (textBuilder_ != null) {
          textBuilder_.dispose();
          textBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.advisorynotifications.v1.ServiceProto
            .internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.advisorynotifications.v1.Message.Body getDefaultInstanceForType() {
        return com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.advisorynotifications.v1.Message.Body build() {
        com.google.cloud.advisorynotifications.v1.Message.Body result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.advisorynotifications.v1.Message.Body buildPartial() {
        com.google.cloud.advisorynotifications.v1.Message.Body result =
            new com.google.cloud.advisorynotifications.v1.Message.Body(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.google.cloud.advisorynotifications.v1.Message.Body result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.text_ = textBuilder_ == null ? text_ : textBuilder_.build();
        }
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.advisorynotifications.v1.Message.Body) {
          return mergeFrom((com.google.cloud.advisorynotifications.v1.Message.Body) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Message.Body other) {
        if (other == com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance())
          return this;
        if (other.hasText()) {
          mergeText(other.getText());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  input.readMessage(getTextFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private com.google.cloud.advisorynotifications.v1.Text text_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.advisorynotifications.v1.Text,
              com.google.cloud.advisorynotifications.v1.Text.Builder,
              com.google.cloud.advisorynotifications.v1.TextOrBuilder>
          textBuilder_;
      /**
       *
       *
       * <pre>
       * The text content of the message body.
       * </pre>
       *
       * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
       *
       * @return Whether the text field is set.
       */
      public boolean hasText() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       *
       *
       * <pre>
       * The text content of the message body.
       * </pre>
       *
       * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
       *
       * @return The text.
       */
      public com.google.cloud.advisorynotifications.v1.Text getText() {
        if (textBuilder_ == null) {
          return text_ == null
              ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance()
              : text_;
        } else {
          return textBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * The text content of the message body.
       * </pre>
       *
       * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
       */
      public Builder setText(com.google.cloud.advisorynotifications.v1.Text value) {
        if (textBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          text_ = value;
        } else {
          textBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The text content of the message body.
       * </pre>
       *
       * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
       */
      public Builder setText(
          com.google.cloud.advisorynotifications.v1.Text.Builder builderForValue) {
        if (textBuilder_ == null) {
          text_ = builderForValue.build();
        } else {
          textBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The text content of the message body.
       * </pre>
       *
       * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
       */
      public Builder mergeText(com.google.cloud.advisorynotifications.v1.Text value) {
        if (textBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)
              && text_ != null
              && text_ != com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance()) {
            getTextBuilder().mergeFrom(value);
          } else {
            text_ = value;
          }
        } else {
          textBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The text content of the message body.
       * </pre>
       *
       * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
       */
      public Builder clearText() {
        bitField0_ = (bitField0_ & ~0x00000001);
        text_ = null;
        if (textBuilder_ != null) {
          textBuilder_.dispose();
          textBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The text content of the message body.
       * </pre>
       *
       * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
       */
      public com.google.cloud.advisorynotifications.v1.Text.Builder getTextBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getTextFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * The text content of the message body.
       * </pre>
       *
       * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
       */
      public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder() {
        if (textBuilder_ != null) {
          return textBuilder_.getMessageOrBuilder();
        } else {
          return text_ == null
              ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance()
              : text_;
        }
      }
      /**
       *
       *
       * <pre>
       * The text content of the message body.
       * </pre>
       *
       * <code>.google.cloud.advisorynotifications.v1.Text text = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.advisorynotifications.v1.Text,
              com.google.cloud.advisorynotifications.v1.Text.Builder,
              com.google.cloud.advisorynotifications.v1.TextOrBuilder>
          getTextFieldBuilder() {
        if (textBuilder_ == null) {
          textBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.advisorynotifications.v1.Text,
                  com.google.cloud.advisorynotifications.v1.Text.Builder,
                  com.google.cloud.advisorynotifications.v1.TextOrBuilder>(
                  getText(), getParentForChildren(), isClean());
          text_ = null;
        }
        return textBuilder_;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Message.Body)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Message.Body)
    private static final com.google.cloud.advisorynotifications.v1.Message.Body DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Message.Body();
    }

    public static com.google.cloud.advisorynotifications.v1.Message.Body getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<Body> PARSER =
        new com.google.protobuf.AbstractParser<Body>() {
          @java.lang.Override
          public Body parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

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

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

    @java.lang.Override
    public com.google.cloud.advisorynotifications.v1.Message.Body getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int BODY_FIELD_NUMBER = 1;
  private com.google.cloud.advisorynotifications.v1.Message.Body body_;
  /**
   *
   *
   * <pre>
   * The message content.
   * </pre>
   *
   * <code>.google.cloud.advisorynotifications.v1.Message.Body body = 1;</code>
   *
   * @return Whether the body field is set.
   */
  @java.lang.Override
  public boolean hasBody() {
    return body_ != null;
  }
  /**
   *
   *
   * <pre>
   * The message content.
   * </pre>
   *
   * <code>.google.cloud.advisorynotifications.v1.Message.Body body = 1;</code>
   *
   * @return The body.
   */
  @java.lang.Override
  public com.google.cloud.advisorynotifications.v1.Message.Body getBody() {
    return body_ == null
        ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance()
        : body_;
  }
  /**
   *
   *
   * <pre>
   * The message content.
   * </pre>
   *
   * <code>.google.cloud.advisorynotifications.v1.Message.Body body = 1;</code>
   */
  @java.lang.Override
  public com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder getBodyOrBuilder() {
    return body_ == null
        ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance()
        : body_;
  }

  public static final int ATTACHMENTS_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.advisorynotifications.v1.Attachment> attachments_;
  /**
   *
   *
   * <pre>
   * The attachments to download.
   * </pre>
   *
   * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.advisorynotifications.v1.Attachment> getAttachmentsList() {
    return attachments_;
  }
  /**
   *
   *
   * <pre>
   * The attachments to download.
   * </pre>
   *
   * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder>
      getAttachmentsOrBuilderList() {
    return attachments_;
  }
  /**
   *
   *
   * <pre>
   * The attachments to download.
   * </pre>
   *
   * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
   */
  @java.lang.Override
  public int getAttachmentsCount() {
    return attachments_.size();
  }
  /**
   *
   *
   * <pre>
   * The attachments to download.
   * </pre>
   *
   * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
   */
  @java.lang.Override
  public com.google.cloud.advisorynotifications.v1.Attachment getAttachments(int index) {
    return attachments_.get(index);
  }
  /**
   *
   *
   * <pre>
   * The attachments to download.
   * </pre>
   *
   * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
   */
  @java.lang.Override
  public com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachmentsOrBuilder(
      int index) {
    return attachments_.get(index);
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 3;
  private com.google.protobuf.Timestamp createTime_;
  /**
   *
   *
   * <pre>
   * The Message creation timestamp.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 3;</code>
   *
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return createTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * The Message creation timestamp.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 3;</code>
   *
   * @return The createTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   *
   *
   * <pre>
   * The Message creation timestamp.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 3;</code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }

  public static final int LOCALIZATION_TIME_FIELD_NUMBER = 4;
  private com.google.protobuf.Timestamp localizationTime_;
  /**
   *
   *
   * <pre>
   * Time when Message was localized
   * </pre>
   *
   * <code>.google.protobuf.Timestamp localization_time = 4;</code>
   *
   * @return Whether the localizationTime field is set.
   */
  @java.lang.Override
  public boolean hasLocalizationTime() {
    return localizationTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Time when Message was localized
   * </pre>
   *
   * <code>.google.protobuf.Timestamp localization_time = 4;</code>
   *
   * @return The localizationTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getLocalizationTime() {
    return localizationTime_ == null
        ? com.google.protobuf.Timestamp.getDefaultInstance()
        : localizationTime_;
  }
  /**
   *
   *
   * <pre>
   * Time when Message was localized
   * </pre>
   *
   * <code>.google.protobuf.Timestamp localization_time = 4;</code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getLocalizationTimeOrBuilder() {
    return localizationTime_ == null
        ? com.google.protobuf.Timestamp.getDefaultInstance()
        : localizationTime_;
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (body_ != null) {
      output.writeMessage(1, getBody());
    }
    for (int i = 0; i < attachments_.size(); i++) {
      output.writeMessage(2, attachments_.get(i));
    }
    if (createTime_ != null) {
      output.writeMessage(3, getCreateTime());
    }
    if (localizationTime_ != null) {
      output.writeMessage(4, getLocalizationTime());
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (body_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBody());
    }
    for (int i = 0; i < attachments_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attachments_.get(i));
    }
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime());
    }
    if (localizationTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLocalizationTime());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.advisorynotifications.v1.Message)) {
      return super.equals(obj);
    }
    com.google.cloud.advisorynotifications.v1.Message other =
        (com.google.cloud.advisorynotifications.v1.Message) obj;

    if (hasBody() != other.hasBody()) return false;
    if (hasBody()) {
      if (!getBody().equals(other.getBody())) return false;
    }
    if (!getAttachmentsList().equals(other.getAttachmentsList())) return false;
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (!getCreateTime().equals(other.getCreateTime())) return false;
    }
    if (hasLocalizationTime() != other.hasLocalizationTime()) return false;
    if (hasLocalizationTime()) {
      if (!getLocalizationTime().equals(other.getLocalizationTime())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasBody()) {
      hash = (37 * hash) + BODY_FIELD_NUMBER;
      hash = (53 * hash) + getBody().hashCode();
    }
    if (getAttachmentsCount() > 0) {
      hash = (37 * hash) + ATTACHMENTS_FIELD_NUMBER;
      hash = (53 * hash) + getAttachmentsList().hashCode();
    }
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    if (hasLocalizationTime()) {
      hash = (37 * hash) + LOCALIZATION_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getLocalizationTime().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.advisorynotifications.v1.Message parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.advisorynotifications.v1.Message parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.advisorynotifications.v1.Message parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.advisorynotifications.v1.Message parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.advisorynotifications.v1.Message parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.advisorynotifications.v1.Message parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.advisorynotifications.v1.Message parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.advisorynotifications.v1.Message 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.google.cloud.advisorynotifications.v1.Message parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.advisorynotifications.v1.Message 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.google.cloud.advisorynotifications.v1.Message parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.advisorynotifications.v1.Message parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.advisorynotifications.v1.Message prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  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;
  }
  /**
   *
   *
   * <pre>
   * A message which contains notification details.
   * </pre>
   *
   * Protobuf type {@code google.cloud.advisorynotifications.v1.Message}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.advisorynotifications.v1.Message)
      com.google.cloud.advisorynotifications.v1.MessageOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.advisorynotifications.v1.ServiceProto
          .internal_static_google_cloud_advisorynotifications_v1_Message_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.advisorynotifications.v1.ServiceProto
          .internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.advisorynotifications.v1.Message.class,
              com.google.cloud.advisorynotifications.v1.Message.Builder.class);
    }

    // Construct using com.google.cloud.advisorynotifications.v1.Message.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      body_ = null;
      if (bodyBuilder_ != null) {
        bodyBuilder_.dispose();
        bodyBuilder_ = null;
      }
      if (attachmentsBuilder_ == null) {
        attachments_ = java.util.Collections.emptyList();
      } else {
        attachments_ = null;
        attachmentsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      localizationTime_ = null;
      if (localizationTimeBuilder_ != null) {
        localizationTimeBuilder_.dispose();
        localizationTimeBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.advisorynotifications.v1.ServiceProto
          .internal_static_google_cloud_advisorynotifications_v1_Message_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.advisorynotifications.v1.Message getDefaultInstanceForType() {
      return com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.advisorynotifications.v1.Message build() {
      com.google.cloud.advisorynotifications.v1.Message result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.advisorynotifications.v1.Message buildPartial() {
      com.google.cloud.advisorynotifications.v1.Message result =
          new com.google.cloud.advisorynotifications.v1.Message(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(
        com.google.cloud.advisorynotifications.v1.Message result) {
      if (attachmentsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          attachments_ = java.util.Collections.unmodifiableList(attachments_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.attachments_ = attachments_;
      } else {
        result.attachments_ = attachmentsBuilder_.build();
      }
    }

    private void buildPartial0(com.google.cloud.advisorynotifications.v1.Message result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.localizationTime_ =
            localizationTimeBuilder_ == null ? localizationTime_ : localizationTimeBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.advisorynotifications.v1.Message) {
        return mergeFrom((com.google.cloud.advisorynotifications.v1.Message) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Message other) {
      if (other == com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance())
        return this;
      if (other.hasBody()) {
        mergeBody(other.getBody());
      }
      if (attachmentsBuilder_ == null) {
        if (!other.attachments_.isEmpty()) {
          if (attachments_.isEmpty()) {
            attachments_ = other.attachments_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureAttachmentsIsMutable();
            attachments_.addAll(other.attachments_);
          }
          onChanged();
        }
      } else {
        if (!other.attachments_.isEmpty()) {
          if (attachmentsBuilder_.isEmpty()) {
            attachmentsBuilder_.dispose();
            attachmentsBuilder_ = null;
            attachments_ = other.attachments_;
            bitField0_ = (bitField0_ & ~0x00000002);
            attachmentsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getAttachmentsFieldBuilder()
                    : null;
          } else {
            attachmentsBuilder_.addAllMessages(other.attachments_);
          }
        }
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.hasLocalizationTime()) {
        mergeLocalizationTime(other.getLocalizationTime());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                input.readMessage(getBodyFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                com.google.cloud.advisorynotifications.v1.Attachment m =
                    input.readMessage(
                        com.google.cloud.advisorynotifications.v1.Attachment.parser(),
                        extensionRegistry);
                if (attachmentsBuilder_ == null) {
                  ensureAttachmentsIsMutable();
                  attachments_.add(m);
                } else {
                  attachmentsBuilder_.addMessage(m);
                }
                break;
              } // case 18
            case 26:
              {
                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 34:
              {
                input.readMessage(
                    getLocalizationTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000008;
                break;
              } // case 34
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private com.google.cloud.advisorynotifications.v1.Message.Body body_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.advisorynotifications.v1.Message.Body,
            com.google.cloud.advisorynotifications.v1.Message.Body.Builder,
            com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder>
        bodyBuilder_;
    /**
     *
     *
     * <pre>
     * The message content.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Message.Body body = 1;</code>
     *
     * @return Whether the body field is set.
     */
    public boolean hasBody() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     *
     *
     * <pre>
     * The message content.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Message.Body body = 1;</code>
     *
     * @return The body.
     */
    public com.google.cloud.advisorynotifications.v1.Message.Body getBody() {
      if (bodyBuilder_ == null) {
        return body_ == null
            ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance()
            : body_;
      } else {
        return bodyBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The message content.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Message.Body body = 1;</code>
     */
    public Builder setBody(com.google.cloud.advisorynotifications.v1.Message.Body value) {
      if (bodyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        body_ = value;
      } else {
        bodyBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The message content.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Message.Body body = 1;</code>
     */
    public Builder setBody(
        com.google.cloud.advisorynotifications.v1.Message.Body.Builder builderForValue) {
      if (bodyBuilder_ == null) {
        body_ = builderForValue.build();
      } else {
        bodyBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The message content.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Message.Body body = 1;</code>
     */
    public Builder mergeBody(com.google.cloud.advisorynotifications.v1.Message.Body value) {
      if (bodyBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)
            && body_ != null
            && body_
                != com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance()) {
          getBodyBuilder().mergeFrom(value);
        } else {
          body_ = value;
        }
      } else {
        bodyBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The message content.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Message.Body body = 1;</code>
     */
    public Builder clearBody() {
      bitField0_ = (bitField0_ & ~0x00000001);
      body_ = null;
      if (bodyBuilder_ != null) {
        bodyBuilder_.dispose();
        bodyBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The message content.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Message.Body body = 1;</code>
     */
    public com.google.cloud.advisorynotifications.v1.Message.Body.Builder getBodyBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getBodyFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The message content.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Message.Body body = 1;</code>
     */
    public com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder getBodyOrBuilder() {
      if (bodyBuilder_ != null) {
        return bodyBuilder_.getMessageOrBuilder();
      } else {
        return body_ == null
            ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance()
            : body_;
      }
    }
    /**
     *
     *
     * <pre>
     * The message content.
     * </pre>
     *
     * <code>.google.cloud.advisorynotifications.v1.Message.Body body = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.advisorynotifications.v1.Message.Body,
            com.google.cloud.advisorynotifications.v1.Message.Body.Builder,
            com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder>
        getBodyFieldBuilder() {
      if (bodyBuilder_ == null) {
        bodyBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.advisorynotifications.v1.Message.Body,
                com.google.cloud.advisorynotifications.v1.Message.Body.Builder,
                com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder>(
                getBody(), getParentForChildren(), isClean());
        body_ = null;
      }
      return bodyBuilder_;
    }

    private java.util.List<com.google.cloud.advisorynotifications.v1.Attachment> attachments_ =
        java.util.Collections.emptyList();

    private void ensureAttachmentsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        attachments_ =
            new java.util.ArrayList<com.google.cloud.advisorynotifications.v1.Attachment>(
                attachments_);
        bitField0_ |= 0x00000002;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.advisorynotifications.v1.Attachment,
            com.google.cloud.advisorynotifications.v1.Attachment.Builder,
            com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder>
        attachmentsBuilder_;

    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public java.util.List<com.google.cloud.advisorynotifications.v1.Attachment>
        getAttachmentsList() {
      if (attachmentsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(attachments_);
      } else {
        return attachmentsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public int getAttachmentsCount() {
      if (attachmentsBuilder_ == null) {
        return attachments_.size();
      } else {
        return attachmentsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public com.google.cloud.advisorynotifications.v1.Attachment getAttachments(int index) {
      if (attachmentsBuilder_ == null) {
        return attachments_.get(index);
      } else {
        return attachmentsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public Builder setAttachments(
        int index, com.google.cloud.advisorynotifications.v1.Attachment value) {
      if (attachmentsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAttachmentsIsMutable();
        attachments_.set(index, value);
        onChanged();
      } else {
        attachmentsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public Builder setAttachments(
        int index, com.google.cloud.advisorynotifications.v1.Attachment.Builder builderForValue) {
      if (attachmentsBuilder_ == null) {
        ensureAttachmentsIsMutable();
        attachments_.set(index, builderForValue.build());
        onChanged();
      } else {
        attachmentsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public Builder addAttachments(com.google.cloud.advisorynotifications.v1.Attachment value) {
      if (attachmentsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAttachmentsIsMutable();
        attachments_.add(value);
        onChanged();
      } else {
        attachmentsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public Builder addAttachments(
        int index, com.google.cloud.advisorynotifications.v1.Attachment value) {
      if (attachmentsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAttachmentsIsMutable();
        attachments_.add(index, value);
        onChanged();
      } else {
        attachmentsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public Builder addAttachments(
        com.google.cloud.advisorynotifications.v1.Attachment.Builder builderForValue) {
      if (attachmentsBuilder_ == null) {
        ensureAttachmentsIsMutable();
        attachments_.add(builderForValue.build());
        onChanged();
      } else {
        attachmentsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public Builder addAttachments(
        int index, com.google.cloud.advisorynotifications.v1.Attachment.Builder builderForValue) {
      if (attachmentsBuilder_ == null) {
        ensureAttachmentsIsMutable();
        attachments_.add(index, builderForValue.build());
        onChanged();
      } else {
        attachmentsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public Builder addAllAttachments(
        java.lang.Iterable<? extends com.google.cloud.advisorynotifications.v1.Attachment> values) {
      if (attachmentsBuilder_ == null) {
        ensureAttachmentsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachments_);
        onChanged();
      } else {
        attachmentsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public Builder clearAttachments() {
      if (attachmentsBuilder_ == null) {
        attachments_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        attachmentsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public Builder removeAttachments(int index) {
      if (attachmentsBuilder_ == null) {
        ensureAttachmentsIsMutable();
        attachments_.remove(index);
        onChanged();
      } else {
        attachmentsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public com.google.cloud.advisorynotifications.v1.Attachment.Builder getAttachmentsBuilder(
        int index) {
      return getAttachmentsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachmentsOrBuilder(
        int index) {
      if (attachmentsBuilder_ == null) {
        return attachments_.get(index);
      } else {
        return attachmentsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public java.util.List<? extends com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder>
        getAttachmentsOrBuilderList() {
      if (attachmentsBuilder_ != null) {
        return attachmentsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(attachments_);
      }
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public com.google.cloud.advisorynotifications.v1.Attachment.Builder addAttachmentsBuilder() {
      return getAttachmentsFieldBuilder()
          .addBuilder(com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public com.google.cloud.advisorynotifications.v1.Attachment.Builder addAttachmentsBuilder(
        int index) {
      return getAttachmentsFieldBuilder()
          .addBuilder(
              index, com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The attachments to download.
     * </pre>
     *
     * <code>repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;</code>
     */
    public java.util.List<com.google.cloud.advisorynotifications.v1.Attachment.Builder>
        getAttachmentsBuilderList() {
      return getAttachmentsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.advisorynotifications.v1.Attachment,
            com.google.cloud.advisorynotifications.v1.Attachment.Builder,
            com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder>
        getAttachmentsFieldBuilder() {
      if (attachmentsBuilder_ == null) {
        attachmentsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.advisorynotifications.v1.Attachment,
                com.google.cloud.advisorynotifications.v1.Attachment.Builder,
                com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder>(
                attachments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
        attachments_ = null;
      }
      return attachmentsBuilder_;
    }

    private com.google.protobuf.Timestamp createTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        createTimeBuilder_;
    /**
     *
     *
     * <pre>
     * The Message creation timestamp.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 3;</code>
     *
     * @return Whether the createTime field is set.
     */
    public boolean hasCreateTime() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     *
     *
     * <pre>
     * The Message creation timestamp.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 3;</code>
     *
     * @return The createTime.
     */
    public com.google.protobuf.Timestamp getCreateTime() {
      if (createTimeBuilder_ == null) {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      } else {
        return createTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The Message creation timestamp.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 3;</code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        createTime_ = value;
      } else {
        createTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Message creation timestamp.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 3;</code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (createTimeBuilder_ == null) {
        createTime_ = builderForValue.build();
      } else {
        createTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Message creation timestamp.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 3;</code>
     */
    public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)
            && createTime_ != null
            && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getCreateTimeBuilder().mergeFrom(value);
        } else {
          createTime_ = value;
        }
      } else {
        createTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Message creation timestamp.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 3;</code>
     */
    public Builder clearCreateTime() {
      bitField0_ = (bitField0_ & ~0x00000004);
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Message creation timestamp.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 3;</code>
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The Message creation timestamp.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 3;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      if (createTimeBuilder_ != null) {
        return createTimeBuilder_.getMessageOrBuilder();
      } else {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * The Message creation timestamp.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getCreateTimeFieldBuilder() {
      if (createTimeBuilder_ == null) {
        createTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getCreateTime(), getParentForChildren(), isClean());
        createTime_ = null;
      }
      return createTimeBuilder_;
    }

    private com.google.protobuf.Timestamp localizationTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        localizationTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Time when Message was localized
     * </pre>
     *
     * <code>.google.protobuf.Timestamp localization_time = 4;</code>
     *
     * @return Whether the localizationTime field is set.
     */
    public boolean hasLocalizationTime() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     *
     *
     * <pre>
     * Time when Message was localized
     * </pre>
     *
     * <code>.google.protobuf.Timestamp localization_time = 4;</code>
     *
     * @return The localizationTime.
     */
    public com.google.protobuf.Timestamp getLocalizationTime() {
      if (localizationTimeBuilder_ == null) {
        return localizationTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : localizationTime_;
      } else {
        return localizationTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Time when Message was localized
     * </pre>
     *
     * <code>.google.protobuf.Timestamp localization_time = 4;</code>
     */
    public Builder setLocalizationTime(com.google.protobuf.Timestamp value) {
      if (localizationTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        localizationTime_ = value;
      } else {
        localizationTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Time when Message was localized
     * </pre>
     *
     * <code>.google.protobuf.Timestamp localization_time = 4;</code>
     */
    public Builder setLocalizationTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (localizationTimeBuilder_ == null) {
        localizationTime_ = builderForValue.build();
      } else {
        localizationTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Time when Message was localized
     * </pre>
     *
     * <code>.google.protobuf.Timestamp localization_time = 4;</code>
     */
    public Builder mergeLocalizationTime(com.google.protobuf.Timestamp value) {
      if (localizationTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0)
            && localizationTime_ != null
            && localizationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getLocalizationTimeBuilder().mergeFrom(value);
        } else {
          localizationTime_ = value;
        }
      } else {
        localizationTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Time when Message was localized
     * </pre>
     *
     * <code>.google.protobuf.Timestamp localization_time = 4;</code>
     */
    public Builder clearLocalizationTime() {
      bitField0_ = (bitField0_ & ~0x00000008);
      localizationTime_ = null;
      if (localizationTimeBuilder_ != null) {
        localizationTimeBuilder_.dispose();
        localizationTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Time when Message was localized
     * </pre>
     *
     * <code>.google.protobuf.Timestamp localization_time = 4;</code>
     */
    public com.google.protobuf.Timestamp.Builder getLocalizationTimeBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getLocalizationTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Time when Message was localized
     * </pre>
     *
     * <code>.google.protobuf.Timestamp localization_time = 4;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getLocalizationTimeOrBuilder() {
      if (localizationTimeBuilder_ != null) {
        return localizationTimeBuilder_.getMessageOrBuilder();
      } else {
        return localizationTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : localizationTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Time when Message was localized
     * </pre>
     *
     * <code>.google.protobuf.Timestamp localization_time = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getLocalizationTimeFieldBuilder() {
      if (localizationTimeBuilder_ == null) {
        localizationTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getLocalizationTime(), getParentForChildren(), isClean());
        localizationTime_ = null;
      }
      return localizationTimeBuilder_;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Message)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Message)
  private static final com.google.cloud.advisorynotifications.v1.Message DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Message();
  }

  public static com.google.cloud.advisorynotifications.v1.Message getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Message> PARSER =
      new com.google.protobuf.AbstractParser<Message>() {
        @java.lang.Override
        public Message parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

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

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

  @java.lang.Override
  public com.google.cloud.advisorynotifications.v1.Message getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
