/*
 * Copyright 2025 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: schema/google/showcase/v1beta1/messaging.proto

package com.google.showcase.v1beta1;

/**
 *
 *
 * <pre>
 * The request message for the google.showcase.v1beta1.Messaging&#92;Connect
 * method.
 * </pre>
 *
 * Protobuf type {@code google.showcase.v1beta1.ConnectRequest}
 */
public final class ConnectRequest extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ConnectRequest)
    ConnectRequestOrBuilder {
  private static final long serialVersionUID = 0L;

  // Use ConnectRequest.newBuilder() to construct.
  private ConnectRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private ConnectRequest() {}

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  private ConnectRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10:
            {
              com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder subBuilder = null;
              if (requestCase_ == 1) {
                subBuilder =
                    ((com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_)
                        .toBuilder();
              }
              request_ =
                  input.readMessage(
                      com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.parser(),
                      extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(
                    (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_);
                request_ = subBuilder.buildPartial();
              }
              requestCase_ = 1;
              break;
            }
          case 18:
            {
              com.google.showcase.v1beta1.Blurb.Builder subBuilder = null;
              if (requestCase_ == 2) {
                subBuilder = ((com.google.showcase.v1beta1.Blurb) request_).toBuilder();
              }
              request_ =
                  input.readMessage(com.google.showcase.v1beta1.Blurb.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.showcase.v1beta1.Blurb) request_);
                request_ = subBuilder.buildPartial();
              }
              requestCase_ = 2;
              break;
            }
          default:
            {
              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (com.google.protobuf.UninitializedMessageException e) {
      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.showcase.v1beta1.MessagingOuterClass
        .internal_static_google_showcase_v1beta1_ConnectRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.showcase.v1beta1.MessagingOuterClass
        .internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.showcase.v1beta1.ConnectRequest.class,
            com.google.showcase.v1beta1.ConnectRequest.Builder.class);
  }

  public interface ConnectConfigOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ConnectRequest.ConnectConfig)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The room or profile to follow and create messages for.
     * </pre>
     *
     * <code>string parent = 1 [(.google.api.resource_reference) = { ... }</code>
     *
     * @return The parent.
     */
    java.lang.String getParent();

    /**
     *
     *
     * <pre>
     * The room or profile to follow and create messages for.
     * </pre>
     *
     * <code>string parent = 1 [(.google.api.resource_reference) = { ... }</code>
     *
     * @return The bytes for parent.
     */
    com.google.protobuf.ByteString getParentBytes();
  }

  /** Protobuf type {@code google.showcase.v1beta1.ConnectRequest.ConnectConfig} */
  public static final class ConnectConfig extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ConnectRequest.ConnectConfig)
      ConnectConfigOrBuilder {
    private static final long serialVersionUID = 0L;

    // Use ConnectConfig.newBuilder() to construct.
    private ConnectConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private ConnectConfig() {
      parent_ = "";
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    private ConnectConfig(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                java.lang.String s = input.readStringRequireUtf8();

                parent_ = s;
                break;
              }
            default:
              {
                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.showcase.v1beta1.MessagingOuterClass
          .internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.showcase.v1beta1.MessagingOuterClass
          .internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.class,
              com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder.class);
    }

    public static final int PARENT_FIELD_NUMBER = 1;
    private volatile java.lang.Object parent_;

    /**
     *
     *
     * <pre>
     * The room or profile to follow and create messages for.
     * </pre>
     *
     * <code>string parent = 1 [(.google.api.resource_reference) = { ... }</code>
     *
     * @return The parent.
     */
    @java.lang.Override
    public java.lang.String getParent() {
      java.lang.Object ref = parent_;
      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();
        parent_ = s;
        return s;
      }
    }

    /**
     *
     *
     * <pre>
     * The room or profile to follow and create messages for.
     * </pre>
     *
     * <code>string parent = 1 [(.google.api.resource_reference) = { ... }</code>
     *
     * @return The bytes for parent.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getParentBytes() {
      java.lang.Object ref = parent_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        parent_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
      }
      size += unknownFields.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.showcase.v1beta1.ConnectRequest.ConnectConfig)) {
        return super.equals(obj);
      }
      com.google.showcase.v1beta1.ConnectRequest.ConnectConfig other =
          (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) obj;

      if (!getParent().equals(other.getParent())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

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

    public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig 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.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig 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.showcase.v1beta1.ConnectRequest.ConnectConfig parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig 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.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig 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.showcase.v1beta1.ConnectRequest.ConnectConfig 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;
    }

    /** Protobuf type {@code google.showcase.v1beta1.ConnectRequest.ConnectConfig} */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ConnectRequest.ConnectConfig)
        com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.showcase.v1beta1.MessagingOuterClass
            .internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.showcase.v1beta1.MessagingOuterClass
            .internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.class,
                com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder.class);
      }

      // Construct using com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        parent_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.showcase.v1beta1.MessagingOuterClass
            .internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor;
      }

      @java.lang.Override
      public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getDefaultInstanceForType() {
        return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig build() {
        com.google.showcase.v1beta1.ConnectRequest.ConnectConfig result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig buildPartial() {
        com.google.showcase.v1beta1.ConnectRequest.ConnectConfig result =
            new com.google.showcase.v1beta1.ConnectRequest.ConnectConfig(this);
        result.parent_ = parent_;
        onBuilt();
        return result;
      }

      @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.showcase.v1beta1.ConnectRequest.ConnectConfig) {
          return mergeFrom((com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.showcase.v1beta1.ConnectRequest.ConnectConfig other) {
        if (other == com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance())
          return this;
        if (!other.getParent().isEmpty()) {
          parent_ = other.parent_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage =
              (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object parent_ = "";

      /**
       *
       *
       * <pre>
       * The room or profile to follow and create messages for.
       * </pre>
       *
       * <code>string parent = 1 [(.google.api.resource_reference) = { ... }</code>
       *
       * @return The parent.
       */
      public java.lang.String getParent() {
        java.lang.Object ref = parent_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          parent_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }

      /**
       *
       *
       * <pre>
       * The room or profile to follow and create messages for.
       * </pre>
       *
       * <code>string parent = 1 [(.google.api.resource_reference) = { ... }</code>
       *
       * @return The bytes for parent.
       */
      public com.google.protobuf.ByteString getParentBytes() {
        java.lang.Object ref = parent_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          parent_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      /**
       *
       *
       * <pre>
       * The room or profile to follow and create messages for.
       * </pre>
       *
       * <code>string parent = 1 [(.google.api.resource_reference) = { ... }</code>
       *
       * @param value The parent to set.
       * @return This builder for chaining.
       */
      public Builder setParent(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        parent_ = value;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The room or profile to follow and create messages for.
       * </pre>
       *
       * <code>string parent = 1 [(.google.api.resource_reference) = { ... }</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearParent() {

        parent_ = getDefaultInstance().getParent();
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The room or profile to follow and create messages for.
       * </pre>
       *
       * <code>string parent = 1 [(.google.api.resource_reference) = { ... }</code>
       *
       * @param value The bytes for parent to set.
       * @return This builder for chaining.
       */
      public Builder setParentBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

        parent_ = value;
        onChanged();
        return this;
      }

      @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.showcase.v1beta1.ConnectRequest.ConnectConfig)
    }

    // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ConnectRequest.ConnectConfig)
    private static final com.google.showcase.v1beta1.ConnectRequest.ConnectConfig DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ConnectRequest.ConnectConfig();
    }

    public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<ConnectConfig> PARSER =
        new com.google.protobuf.AbstractParser<ConnectConfig>() {
          @java.lang.Override
          public ConnectConfig parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            return new ConnectConfig(input, extensionRegistry);
          }
        };

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

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

    @java.lang.Override
    public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  private int requestCase_ = 0;
  private java.lang.Object request_;

  public enum RequestCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    CONFIG(1),
    BLURB(2),
    REQUEST_NOT_SET(0);
    private final int value;

    private RequestCase(int value) {
      this.value = value;
    }

    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static RequestCase valueOf(int value) {
      return forNumber(value);
    }

    public static RequestCase forNumber(int value) {
      switch (value) {
        case 1:
          return CONFIG;
        case 2:
          return BLURB;
        case 0:
          return REQUEST_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public RequestCase getRequestCase() {
    return RequestCase.forNumber(requestCase_);
  }

  public static final int CONFIG_FIELD_NUMBER = 1;

  /**
   *
   *
   * <pre>
   * Provides information that specifies how to process subsequent requests.
   * The first `ConnectRequest` message must contain a `config`  message.
   * </pre>
   *
   * <code>.google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1;</code>
   *
   * @return Whether the config field is set.
   */
  @java.lang.Override
  public boolean hasConfig() {
    return requestCase_ == 1;
  }

  /**
   *
   *
   * <pre>
   * Provides information that specifies how to process subsequent requests.
   * The first `ConnectRequest` message must contain a `config`  message.
   * </pre>
   *
   * <code>.google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1;</code>
   *
   * @return The config.
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getConfig() {
    if (requestCase_ == 1) {
      return (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_;
    }
    return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance();
  }

  /**
   *
   *
   * <pre>
   * Provides information that specifies how to process subsequent requests.
   * The first `ConnectRequest` message must contain a `config`  message.
   * </pre>
   *
   * <code>.google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1;</code>
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder getConfigOrBuilder() {
    if (requestCase_ == 1) {
      return (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_;
    }
    return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance();
  }

  public static final int BLURB_FIELD_NUMBER = 2;

  /**
   *
   *
   * <pre>
   * The blurb to be created.
   * </pre>
   *
   * <code>.google.showcase.v1beta1.Blurb blurb = 2;</code>
   *
   * @return Whether the blurb field is set.
   */
  @java.lang.Override
  public boolean hasBlurb() {
    return requestCase_ == 2;
  }

  /**
   *
   *
   * <pre>
   * The blurb to be created.
   * </pre>
   *
   * <code>.google.showcase.v1beta1.Blurb blurb = 2;</code>
   *
   * @return The blurb.
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.Blurb getBlurb() {
    if (requestCase_ == 2) {
      return (com.google.showcase.v1beta1.Blurb) request_;
    }
    return com.google.showcase.v1beta1.Blurb.getDefaultInstance();
  }

  /**
   *
   *
   * <pre>
   * The blurb to be created.
   * </pre>
   *
   * <code>.google.showcase.v1beta1.Blurb blurb = 2;</code>
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() {
    if (requestCase_ == 2) {
      return (com.google.showcase.v1beta1.Blurb) request_;
    }
    return com.google.showcase.v1beta1.Blurb.getDefaultInstance();
  }

  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 (requestCase_ == 1) {
      output.writeMessage(1, (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_);
    }
    if (requestCase_ == 2) {
      output.writeMessage(2, (com.google.showcase.v1beta1.Blurb) request_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (requestCase_ == 1) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              1, (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_);
    }
    if (requestCase_ == 2) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              2, (com.google.showcase.v1beta1.Blurb) request_);
    }
    size += unknownFields.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.showcase.v1beta1.ConnectRequest)) {
      return super.equals(obj);
    }
    com.google.showcase.v1beta1.ConnectRequest other =
        (com.google.showcase.v1beta1.ConnectRequest) obj;

    if (!getRequestCase().equals(other.getRequestCase())) return false;
    switch (requestCase_) {
      case 1:
        if (!getConfig().equals(other.getConfig())) return false;
        break;
      case 2:
        if (!getBlurb().equals(other.getBlurb())) return false;
        break;
      case 0:
      default:
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    switch (requestCase_) {
      case 1:
        hash = (37 * hash) + CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getConfig().hashCode();
        break;
      case 2:
        hash = (37 * hash) + BLURB_FIELD_NUMBER;
        hash = (53 * hash) + getBlurb().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.showcase.v1beta1.ConnectRequest parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.showcase.v1beta1.ConnectRequest parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.showcase.v1beta1.ConnectRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.showcase.v1beta1.ConnectRequest 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.showcase.v1beta1.ConnectRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.showcase.v1beta1.ConnectRequest parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.showcase.v1beta1.ConnectRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

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

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

  public static com.google.showcase.v1beta1.ConnectRequest 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.showcase.v1beta1.ConnectRequest 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>
   * The request message for the google.showcase.v1beta1.Messaging&#92;Connect
   * method.
   * </pre>
   *
   * Protobuf type {@code google.showcase.v1beta1.ConnectRequest}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ConnectRequest)
      com.google.showcase.v1beta1.ConnectRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.showcase.v1beta1.MessagingOuterClass
          .internal_static_google_showcase_v1beta1_ConnectRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.showcase.v1beta1.MessagingOuterClass
          .internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.showcase.v1beta1.ConnectRequest.class,
              com.google.showcase.v1beta1.ConnectRequest.Builder.class);
    }

    // Construct using com.google.showcase.v1beta1.ConnectRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

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

    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      requestCase_ = 0;
      request_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.showcase.v1beta1.MessagingOuterClass
          .internal_static_google_showcase_v1beta1_ConnectRequest_descriptor;
    }

    @java.lang.Override
    public com.google.showcase.v1beta1.ConnectRequest getDefaultInstanceForType() {
      return com.google.showcase.v1beta1.ConnectRequest.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.showcase.v1beta1.ConnectRequest build() {
      com.google.showcase.v1beta1.ConnectRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.showcase.v1beta1.ConnectRequest buildPartial() {
      com.google.showcase.v1beta1.ConnectRequest result =
          new com.google.showcase.v1beta1.ConnectRequest(this);
      if (requestCase_ == 1) {
        if (configBuilder_ == null) {
          result.request_ = request_;
        } else {
          result.request_ = configBuilder_.build();
        }
      }
      if (requestCase_ == 2) {
        if (blurbBuilder_ == null) {
          result.request_ = request_;
        } else {
          result.request_ = blurbBuilder_.build();
        }
      }
      result.requestCase_ = requestCase_;
      onBuilt();
      return result;
    }

    @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.showcase.v1beta1.ConnectRequest) {
        return mergeFrom((com.google.showcase.v1beta1.ConnectRequest) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.showcase.v1beta1.ConnectRequest other) {
      if (other == com.google.showcase.v1beta1.ConnectRequest.getDefaultInstance()) return this;
      switch (other.getRequestCase()) {
        case CONFIG:
          {
            mergeConfig(other.getConfig());
            break;
          }
        case BLURB:
          {
            mergeBlurb(other.getBlurb());
            break;
          }
        case REQUEST_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      com.google.showcase.v1beta1.ConnectRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.showcase.v1beta1.ConnectRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int requestCase_ = 0;
    private java.lang.Object request_;

    public RequestCase getRequestCase() {
      return RequestCase.forNumber(requestCase_);
    }

    public Builder clearRequest() {
      requestCase_ = 0;
      request_ = null;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.showcase.v1beta1.ConnectRequest.ConnectConfig,
            com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder,
            com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder>
        configBuilder_;

    /**
     *
     *
     * <pre>
     * Provides information that specifies how to process subsequent requests.
     * The first `ConnectRequest` message must contain a `config`  message.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1;</code>
     *
     * @return Whether the config field is set.
     */
    @java.lang.Override
    public boolean hasConfig() {
      return requestCase_ == 1;
    }

    /**
     *
     *
     * <pre>
     * Provides information that specifies how to process subsequent requests.
     * The first `ConnectRequest` message must contain a `config`  message.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1;</code>
     *
     * @return The config.
     */
    @java.lang.Override
    public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getConfig() {
      if (configBuilder_ == null) {
        if (requestCase_ == 1) {
          return (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_;
        }
        return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance();
      } else {
        if (requestCase_ == 1) {
          return configBuilder_.getMessage();
        }
        return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * Provides information that specifies how to process subsequent requests.
     * The first `ConnectRequest` message must contain a `config`  message.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1;</code>
     */
    public Builder setConfig(com.google.showcase.v1beta1.ConnectRequest.ConnectConfig value) {
      if (configBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        request_ = value;
        onChanged();
      } else {
        configBuilder_.setMessage(value);
      }
      requestCase_ = 1;
      return this;
    }

    /**
     *
     *
     * <pre>
     * Provides information that specifies how to process subsequent requests.
     * The first `ConnectRequest` message must contain a `config`  message.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1;</code>
     */
    public Builder setConfig(
        com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder builderForValue) {
      if (configBuilder_ == null) {
        request_ = builderForValue.build();
        onChanged();
      } else {
        configBuilder_.setMessage(builderForValue.build());
      }
      requestCase_ = 1;
      return this;
    }

    /**
     *
     *
     * <pre>
     * Provides information that specifies how to process subsequent requests.
     * The first `ConnectRequest` message must contain a `config`  message.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1;</code>
     */
    public Builder mergeConfig(com.google.showcase.v1beta1.ConnectRequest.ConnectConfig value) {
      if (configBuilder_ == null) {
        if (requestCase_ == 1
            && request_
                != com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance()) {
          request_ =
              com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.newBuilder(
                      (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          request_ = value;
        }
        onChanged();
      } else {
        if (requestCase_ == 1) {
          configBuilder_.mergeFrom(value);
        } else {
          configBuilder_.setMessage(value);
        }
      }
      requestCase_ = 1;
      return this;
    }

    /**
     *
     *
     * <pre>
     * Provides information that specifies how to process subsequent requests.
     * The first `ConnectRequest` message must contain a `config`  message.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1;</code>
     */
    public Builder clearConfig() {
      if (configBuilder_ == null) {
        if (requestCase_ == 1) {
          requestCase_ = 0;
          request_ = null;
          onChanged();
        }
      } else {
        if (requestCase_ == 1) {
          requestCase_ = 0;
          request_ = null;
        }
        configBuilder_.clear();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Provides information that specifies how to process subsequent requests.
     * The first `ConnectRequest` message must contain a `config`  message.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1;</code>
     */
    public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder getConfigBuilder() {
      return getConfigFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * Provides information that specifies how to process subsequent requests.
     * The first `ConnectRequest` message must contain a `config`  message.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1;</code>
     */
    @java.lang.Override
    public com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder getConfigOrBuilder() {
      if ((requestCase_ == 1) && (configBuilder_ != null)) {
        return configBuilder_.getMessageOrBuilder();
      } else {
        if (requestCase_ == 1) {
          return (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_;
        }
        return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * Provides information that specifies how to process subsequent requests.
     * The first `ConnectRequest` message must contain a `config`  message.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.showcase.v1beta1.ConnectRequest.ConnectConfig,
            com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder,
            com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder>
        getConfigFieldBuilder() {
      if (configBuilder_ == null) {
        if (!(requestCase_ == 1)) {
          request_ = com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance();
        }
        configBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.showcase.v1beta1.ConnectRequest.ConnectConfig,
                com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder,
                com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder>(
                (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_,
                getParentForChildren(),
                isClean());
        request_ = null;
      }
      requestCase_ = 1;
      onChanged();
      ;
      return configBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.showcase.v1beta1.Blurb,
            com.google.showcase.v1beta1.Blurb.Builder,
            com.google.showcase.v1beta1.BlurbOrBuilder>
        blurbBuilder_;

    /**
     *
     *
     * <pre>
     * The blurb to be created.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.Blurb blurb = 2;</code>
     *
     * @return Whether the blurb field is set.
     */
    @java.lang.Override
    public boolean hasBlurb() {
      return requestCase_ == 2;
    }

    /**
     *
     *
     * <pre>
     * The blurb to be created.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.Blurb blurb = 2;</code>
     *
     * @return The blurb.
     */
    @java.lang.Override
    public com.google.showcase.v1beta1.Blurb getBlurb() {
      if (blurbBuilder_ == null) {
        if (requestCase_ == 2) {
          return (com.google.showcase.v1beta1.Blurb) request_;
        }
        return com.google.showcase.v1beta1.Blurb.getDefaultInstance();
      } else {
        if (requestCase_ == 2) {
          return blurbBuilder_.getMessage();
        }
        return com.google.showcase.v1beta1.Blurb.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * The blurb to be created.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.Blurb blurb = 2;</code>
     */
    public Builder setBlurb(com.google.showcase.v1beta1.Blurb value) {
      if (blurbBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        request_ = value;
        onChanged();
      } else {
        blurbBuilder_.setMessage(value);
      }
      requestCase_ = 2;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The blurb to be created.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.Blurb blurb = 2;</code>
     */
    public Builder setBlurb(com.google.showcase.v1beta1.Blurb.Builder builderForValue) {
      if (blurbBuilder_ == null) {
        request_ = builderForValue.build();
        onChanged();
      } else {
        blurbBuilder_.setMessage(builderForValue.build());
      }
      requestCase_ = 2;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The blurb to be created.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.Blurb blurb = 2;</code>
     */
    public Builder mergeBlurb(com.google.showcase.v1beta1.Blurb value) {
      if (blurbBuilder_ == null) {
        if (requestCase_ == 2
            && request_ != com.google.showcase.v1beta1.Blurb.getDefaultInstance()) {
          request_ =
              com.google.showcase.v1beta1.Blurb.newBuilder(
                      (com.google.showcase.v1beta1.Blurb) request_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          request_ = value;
        }
        onChanged();
      } else {
        if (requestCase_ == 2) {
          blurbBuilder_.mergeFrom(value);
        } else {
          blurbBuilder_.setMessage(value);
        }
      }
      requestCase_ = 2;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The blurb to be created.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.Blurb blurb = 2;</code>
     */
    public Builder clearBlurb() {
      if (blurbBuilder_ == null) {
        if (requestCase_ == 2) {
          requestCase_ = 0;
          request_ = null;
          onChanged();
        }
      } else {
        if (requestCase_ == 2) {
          requestCase_ = 0;
          request_ = null;
        }
        blurbBuilder_.clear();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The blurb to be created.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.Blurb blurb = 2;</code>
     */
    public com.google.showcase.v1beta1.Blurb.Builder getBlurbBuilder() {
      return getBlurbFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * The blurb to be created.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.Blurb blurb = 2;</code>
     */
    @java.lang.Override
    public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() {
      if ((requestCase_ == 2) && (blurbBuilder_ != null)) {
        return blurbBuilder_.getMessageOrBuilder();
      } else {
        if (requestCase_ == 2) {
          return (com.google.showcase.v1beta1.Blurb) request_;
        }
        return com.google.showcase.v1beta1.Blurb.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * The blurb to be created.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.Blurb blurb = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.showcase.v1beta1.Blurb,
            com.google.showcase.v1beta1.Blurb.Builder,
            com.google.showcase.v1beta1.BlurbOrBuilder>
        getBlurbFieldBuilder() {
      if (blurbBuilder_ == null) {
        if (!(requestCase_ == 2)) {
          request_ = com.google.showcase.v1beta1.Blurb.getDefaultInstance();
        }
        blurbBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.showcase.v1beta1.Blurb,
                com.google.showcase.v1beta1.Blurb.Builder,
                com.google.showcase.v1beta1.BlurbOrBuilder>(
                (com.google.showcase.v1beta1.Blurb) request_, getParentForChildren(), isClean());
        request_ = null;
      }
      requestCase_ = 2;
      onChanged();
      ;
      return blurbBuilder_;
    }

    @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.showcase.v1beta1.ConnectRequest)
  }

  // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ConnectRequest)
  private static final com.google.showcase.v1beta1.ConnectRequest DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ConnectRequest();
  }

  public static com.google.showcase.v1beta1.ConnectRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<ConnectRequest> PARSER =
      new com.google.protobuf.AbstractParser<ConnectRequest>() {
        @java.lang.Override
        public ConnectRequest parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new ConnectRequest(input, extensionRegistry);
        }
      };

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

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

  @java.lang.Override
  public com.google.showcase.v1beta1.ConnectRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
