/*
 * Copyright 2020 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/dataflow/v1beta3/templates.proto

package com.google.dataflow.v1beta3;

/**
 *
 *
 * <pre>
 * Used in the error_details field of a google.rpc.Status message, this
 * indicates problems with the template parameter.
 * </pre>
 *
 * Protobuf type {@code google.dataflow.v1beta3.InvalidTemplateParameters}
 */
public final class InvalidTemplateParameters extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.dataflow.v1beta3.InvalidTemplateParameters)
    InvalidTemplateParametersOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use InvalidTemplateParameters.newBuilder() to construct.
  private InvalidTemplateParameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private InvalidTemplateParameters() {
    parameterViolations_ = java.util.Collections.emptyList();
  }

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

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

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.dataflow.v1beta3.TemplatesProto
        .internal_static_google_dataflow_v1beta3_InvalidTemplateParameters_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.dataflow.v1beta3.TemplatesProto
        .internal_static_google_dataflow_v1beta3_InvalidTemplateParameters_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.dataflow.v1beta3.InvalidTemplateParameters.class,
            com.google.dataflow.v1beta3.InvalidTemplateParameters.Builder.class);
  }

  public interface ParameterViolationOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The parameter that failed to validate.
     * </pre>
     *
     * <code>string parameter = 1;</code>
     *
     * @return The parameter.
     */
    java.lang.String getParameter();
    /**
     *
     *
     * <pre>
     * The parameter that failed to validate.
     * </pre>
     *
     * <code>string parameter = 1;</code>
     *
     * @return The bytes for parameter.
     */
    com.google.protobuf.ByteString getParameterBytes();

    /**
     *
     *
     * <pre>
     * A description of why the parameter failed to validate.
     * </pre>
     *
     * <code>string description = 2;</code>
     *
     * @return The description.
     */
    java.lang.String getDescription();
    /**
     *
     *
     * <pre>
     * A description of why the parameter failed to validate.
     * </pre>
     *
     * <code>string description = 2;</code>
     *
     * @return The bytes for description.
     */
    com.google.protobuf.ByteString getDescriptionBytes();
  }
  /**
   *
   *
   * <pre>
   * A specific template-parameter violation.
   * </pre>
   *
   * Protobuf type {@code google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation}
   */
  public static final class ParameterViolation extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation)
      ParameterViolationOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use ParameterViolation.newBuilder() to construct.
    private ParameterViolation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private ParameterViolation() {
      parameter_ = "";
      description_ = "";
    }

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

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.dataflow.v1beta3.TemplatesProto
          .internal_static_google_dataflow_v1beta3_InvalidTemplateParameters_ParameterViolation_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.dataflow.v1beta3.TemplatesProto
          .internal_static_google_dataflow_v1beta3_InvalidTemplateParameters_ParameterViolation_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.class,
              com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.Builder
                  .class);
    }

    public static final int PARAMETER_FIELD_NUMBER = 1;
    private volatile java.lang.Object parameter_;
    /**
     *
     *
     * <pre>
     * The parameter that failed to validate.
     * </pre>
     *
     * <code>string parameter = 1;</code>
     *
     * @return The parameter.
     */
    @java.lang.Override
    public java.lang.String getParameter() {
      java.lang.Object ref = parameter_;
      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();
        parameter_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The parameter that failed to validate.
     * </pre>
     *
     * <code>string parameter = 1;</code>
     *
     * @return The bytes for parameter.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getParameterBytes() {
      java.lang.Object ref = parameter_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        parameter_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DESCRIPTION_FIELD_NUMBER = 2;
    private volatile java.lang.Object description_;
    /**
     *
     *
     * <pre>
     * A description of why the parameter failed to validate.
     * </pre>
     *
     * <code>string description = 2;</code>
     *
     * @return The description.
     */
    @java.lang.Override
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      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();
        description_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * A description of why the parameter failed to validate.
     * </pre>
     *
     * <code>string description = 2;</code>
     *
     * @return The bytes for description.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        description_ = 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(parameter_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameter_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameter_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parameter_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
      }
      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.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation)) {
        return super.equals(obj);
      }
      com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation other =
          (com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation) obj;

      if (!getParameter().equals(other.getParameter())) return false;
      if (!getDescription().equals(other.getDescription())) 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();
      hash = (37 * hash) + PARAMETER_FIELD_NUMBER;
      hash = (53 * hash) + getParameter().hashCode();
      hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getDescription().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
        parseFrom(java.nio.ByteBuffer data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
        parseFrom(
            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
        parseFrom(com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

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

    public static com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
        parseFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

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

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

    public static com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
        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.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation 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 specific template-parameter violation.
     * </pre>
     *
     * Protobuf type {@code google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation)
        com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolationOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.dataflow.v1beta3.TemplatesProto
            .internal_static_google_dataflow_v1beta3_InvalidTemplateParameters_ParameterViolation_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.dataflow.v1beta3.TemplatesProto
            .internal_static_google_dataflow_v1beta3_InvalidTemplateParameters_ParameterViolation_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.class,
                com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.Builder
                    .class);
      }

      // Construct using
      // com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.newBuilder()
      private Builder() {}

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

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

        description_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.dataflow.v1beta3.TemplatesProto
            .internal_static_google_dataflow_v1beta3_InvalidTemplateParameters_ParameterViolation_descriptor;
      }

      @java.lang.Override
      public com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
          getDefaultInstanceForType() {
        return com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation build() {
        com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation result =
            buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
          buildPartial() {
        com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation result =
            new com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation(this);
        result.parameter_ = parameter_;
        result.description_ = description_;
        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.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation) {
          return mergeFrom(
              (com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation other) {
        if (other
            == com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
                .getDefaultInstance()) return this;
        if (!other.getParameter().isEmpty()) {
          parameter_ = other.parameter_;
          onChanged();
        }
        if (!other.getDescription().isEmpty()) {
          description_ = other.description_;
          onChanged();
        }
        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:
                {
                  parameter_ = input.readStringRequireUtf8();

                  break;
                } // case 10
              case 18:
                {
                  description_ = input.readStringRequireUtf8();

                  break;
                } // case 18
              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 java.lang.Object parameter_ = "";
      /**
       *
       *
       * <pre>
       * The parameter that failed to validate.
       * </pre>
       *
       * <code>string parameter = 1;</code>
       *
       * @return The parameter.
       */
      public java.lang.String getParameter() {
        java.lang.Object ref = parameter_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          parameter_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The parameter that failed to validate.
       * </pre>
       *
       * <code>string parameter = 1;</code>
       *
       * @return The bytes for parameter.
       */
      public com.google.protobuf.ByteString getParameterBytes() {
        java.lang.Object ref = parameter_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          parameter_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The parameter that failed to validate.
       * </pre>
       *
       * <code>string parameter = 1;</code>
       *
       * @param value The parameter to set.
       * @return This builder for chaining.
       */
      public Builder setParameter(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        parameter_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The parameter that failed to validate.
       * </pre>
       *
       * <code>string parameter = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearParameter() {

        parameter_ = getDefaultInstance().getParameter();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The parameter that failed to validate.
       * </pre>
       *
       * <code>string parameter = 1;</code>
       *
       * @param value The bytes for parameter to set.
       * @return This builder for chaining.
       */
      public Builder setParameterBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

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

      private java.lang.Object description_ = "";
      /**
       *
       *
       * <pre>
       * A description of why the parameter failed to validate.
       * </pre>
       *
       * <code>string description = 2;</code>
       *
       * @return The description.
       */
      public java.lang.String getDescription() {
        java.lang.Object ref = description_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          description_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * A description of why the parameter failed to validate.
       * </pre>
       *
       * <code>string description = 2;</code>
       *
       * @return The bytes for description.
       */
      public com.google.protobuf.ByteString getDescriptionBytes() {
        java.lang.Object ref = description_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          description_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * A description of why the parameter failed to validate.
       * </pre>
       *
       * <code>string description = 2;</code>
       *
       * @param value The description to set.
       * @return This builder for chaining.
       */
      public Builder setDescription(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        description_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * A description of why the parameter failed to validate.
       * </pre>
       *
       * <code>string description = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearDescription() {

        description_ = getDefaultInstance().getDescription();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * A description of why the parameter failed to validate.
       * </pre>
       *
       * <code>string description = 2;</code>
       *
       * @param value The bytes for description to set.
       * @return This builder for chaining.
       */
      public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

        description_ = 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.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation)
    }

    // @@protoc_insertion_point(class_scope:google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation)
    private static final com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE =
          new com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation();
    }

    public static com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<ParameterViolation> PARSER =
        new com.google.protobuf.AbstractParser<ParameterViolation>() {
          @java.lang.Override
          public ParameterViolation 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<ParameterViolation> parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int PARAMETER_VIOLATIONS_FIELD_NUMBER = 1;
  private java.util.List<com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation>
      parameterViolations_;
  /**
   *
   *
   * <pre>
   * Describes all parameter violations in a template request.
   * </pre>
   *
   * <code>
   * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation>
      getParameterViolationsList() {
    return parameterViolations_;
  }
  /**
   *
   *
   * <pre>
   * Describes all parameter violations in a template request.
   * </pre>
   *
   * <code>
   * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
   * </code>
   */
  @java.lang.Override
  public java.util.List<
          ? extends
              com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolationOrBuilder>
      getParameterViolationsOrBuilderList() {
    return parameterViolations_;
  }
  /**
   *
   *
   * <pre>
   * Describes all parameter violations in a template request.
   * </pre>
   *
   * <code>
   * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
   * </code>
   */
  @java.lang.Override
  public int getParameterViolationsCount() {
    return parameterViolations_.size();
  }
  /**
   *
   *
   * <pre>
   * Describes all parameter violations in a template request.
   * </pre>
   *
   * <code>
   * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
   * </code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
      getParameterViolations(int index) {
    return parameterViolations_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Describes all parameter violations in a template request.
   * </pre>
   *
   * <code>
   * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
   * </code>
   */
  @java.lang.Override
  public com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolationOrBuilder
      getParameterViolationsOrBuilder(int index) {
    return parameterViolations_.get(index);
  }

  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 {
    for (int i = 0; i < parameterViolations_.size(); i++) {
      output.writeMessage(1, parameterViolations_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < parameterViolations_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(1, parameterViolations_.get(i));
    }
    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.dataflow.v1beta3.InvalidTemplateParameters)) {
      return super.equals(obj);
    }
    com.google.dataflow.v1beta3.InvalidTemplateParameters other =
        (com.google.dataflow.v1beta3.InvalidTemplateParameters) obj;

    if (!getParameterViolationsList().equals(other.getParameterViolationsList())) 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 (getParameterViolationsCount() > 0) {
      hash = (37 * hash) + PARAMETER_VIOLATIONS_FIELD_NUMBER;
      hash = (53 * hash) + getParameterViolationsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.dataflow.v1beta3.InvalidTemplateParameters parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.dataflow.v1beta3.InvalidTemplateParameters parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.dataflow.v1beta3.InvalidTemplateParameters parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

  public static com.google.dataflow.v1beta3.InvalidTemplateParameters parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.dataflow.v1beta3.InvalidTemplateParameters parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

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

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

  public static com.google.dataflow.v1beta3.InvalidTemplateParameters 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.dataflow.v1beta3.InvalidTemplateParameters 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>
   * Used in the error_details field of a google.rpc.Status message, this
   * indicates problems with the template parameter.
   * </pre>
   *
   * Protobuf type {@code google.dataflow.v1beta3.InvalidTemplateParameters}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.dataflow.v1beta3.InvalidTemplateParameters)
      com.google.dataflow.v1beta3.InvalidTemplateParametersOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.dataflow.v1beta3.TemplatesProto
          .internal_static_google_dataflow_v1beta3_InvalidTemplateParameters_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.dataflow.v1beta3.TemplatesProto
          .internal_static_google_dataflow_v1beta3_InvalidTemplateParameters_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.dataflow.v1beta3.InvalidTemplateParameters.class,
              com.google.dataflow.v1beta3.InvalidTemplateParameters.Builder.class);
    }

    // Construct using com.google.dataflow.v1beta3.InvalidTemplateParameters.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (parameterViolationsBuilder_ == null) {
        parameterViolations_ = java.util.Collections.emptyList();
      } else {
        parameterViolations_ = null;
        parameterViolationsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.dataflow.v1beta3.TemplatesProto
          .internal_static_google_dataflow_v1beta3_InvalidTemplateParameters_descriptor;
    }

    @java.lang.Override
    public com.google.dataflow.v1beta3.InvalidTemplateParameters getDefaultInstanceForType() {
      return com.google.dataflow.v1beta3.InvalidTemplateParameters.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.dataflow.v1beta3.InvalidTemplateParameters build() {
      com.google.dataflow.v1beta3.InvalidTemplateParameters result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.dataflow.v1beta3.InvalidTemplateParameters buildPartial() {
      com.google.dataflow.v1beta3.InvalidTemplateParameters result =
          new com.google.dataflow.v1beta3.InvalidTemplateParameters(this);
      int from_bitField0_ = bitField0_;
      if (parameterViolationsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          parameterViolations_ = java.util.Collections.unmodifiableList(parameterViolations_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.parameterViolations_ = parameterViolations_;
      } else {
        result.parameterViolations_ = parameterViolationsBuilder_.build();
      }
      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.dataflow.v1beta3.InvalidTemplateParameters) {
        return mergeFrom((com.google.dataflow.v1beta3.InvalidTemplateParameters) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.dataflow.v1beta3.InvalidTemplateParameters other) {
      if (other == com.google.dataflow.v1beta3.InvalidTemplateParameters.getDefaultInstance())
        return this;
      if (parameterViolationsBuilder_ == null) {
        if (!other.parameterViolations_.isEmpty()) {
          if (parameterViolations_.isEmpty()) {
            parameterViolations_ = other.parameterViolations_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureParameterViolationsIsMutable();
            parameterViolations_.addAll(other.parameterViolations_);
          }
          onChanged();
        }
      } else {
        if (!other.parameterViolations_.isEmpty()) {
          if (parameterViolationsBuilder_.isEmpty()) {
            parameterViolationsBuilder_.dispose();
            parameterViolationsBuilder_ = null;
            parameterViolations_ = other.parameterViolations_;
            bitField0_ = (bitField0_ & ~0x00000001);
            parameterViolationsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getParameterViolationsFieldBuilder()
                    : null;
          } else {
            parameterViolationsBuilder_.addAllMessages(other.parameterViolations_);
          }
        }
      }
      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:
              {
                com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation m =
                    input.readMessage(
                        com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
                            .parser(),
                        extensionRegistry);
                if (parameterViolationsBuilder_ == null) {
                  ensureParameterViolationsIsMutable();
                  parameterViolations_.add(m);
                } else {
                  parameterViolationsBuilder_.addMessage(m);
                }
                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 java.util.List<com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation>
        parameterViolations_ = java.util.Collections.emptyList();

    private void ensureParameterViolationsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        parameterViolations_ =
            new java.util.ArrayList<
                com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation>(
                parameterViolations_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation,
            com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.Builder,
            com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolationOrBuilder>
        parameterViolationsBuilder_;

    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public java.util.List<com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation>
        getParameterViolationsList() {
      if (parameterViolationsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(parameterViolations_);
      } else {
        return parameterViolationsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public int getParameterViolationsCount() {
      if (parameterViolationsBuilder_ == null) {
        return parameterViolations_.size();
      } else {
        return parameterViolationsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
        getParameterViolations(int index) {
      if (parameterViolationsBuilder_ == null) {
        return parameterViolations_.get(index);
      } else {
        return parameterViolationsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public Builder setParameterViolations(
        int index, com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation value) {
      if (parameterViolationsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureParameterViolationsIsMutable();
        parameterViolations_.set(index, value);
        onChanged();
      } else {
        parameterViolationsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public Builder setParameterViolations(
        int index,
        com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.Builder
            builderForValue) {
      if (parameterViolationsBuilder_ == null) {
        ensureParameterViolationsIsMutable();
        parameterViolations_.set(index, builderForValue.build());
        onChanged();
      } else {
        parameterViolationsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public Builder addParameterViolations(
        com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation value) {
      if (parameterViolationsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureParameterViolationsIsMutable();
        parameterViolations_.add(value);
        onChanged();
      } else {
        parameterViolationsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public Builder addParameterViolations(
        int index, com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation value) {
      if (parameterViolationsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureParameterViolationsIsMutable();
        parameterViolations_.add(index, value);
        onChanged();
      } else {
        parameterViolationsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public Builder addParameterViolations(
        com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.Builder
            builderForValue) {
      if (parameterViolationsBuilder_ == null) {
        ensureParameterViolationsIsMutable();
        parameterViolations_.add(builderForValue.build());
        onChanged();
      } else {
        parameterViolationsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public Builder addParameterViolations(
        int index,
        com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.Builder
            builderForValue) {
      if (parameterViolationsBuilder_ == null) {
        ensureParameterViolationsIsMutable();
        parameterViolations_.add(index, builderForValue.build());
        onChanged();
      } else {
        parameterViolationsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public Builder addAllParameterViolations(
        java.lang.Iterable<
                ? extends com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation>
            values) {
      if (parameterViolationsBuilder_ == null) {
        ensureParameterViolationsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameterViolations_);
        onChanged();
      } else {
        parameterViolationsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public Builder clearParameterViolations() {
      if (parameterViolationsBuilder_ == null) {
        parameterViolations_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        parameterViolationsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public Builder removeParameterViolations(int index) {
      if (parameterViolationsBuilder_ == null) {
        ensureParameterViolationsIsMutable();
        parameterViolations_.remove(index);
        onChanged();
      } else {
        parameterViolationsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.Builder
        getParameterViolationsBuilder(int index) {
      return getParameterViolationsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolationOrBuilder
        getParameterViolationsOrBuilder(int index) {
      if (parameterViolationsBuilder_ == null) {
        return parameterViolations_.get(index);
      } else {
        return parameterViolationsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public java.util.List<
            ? extends
                com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolationOrBuilder>
        getParameterViolationsOrBuilderList() {
      if (parameterViolationsBuilder_ != null) {
        return parameterViolationsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(parameterViolations_);
      }
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.Builder
        addParameterViolationsBuilder() {
      return getParameterViolationsFieldBuilder()
          .addBuilder(
              com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
                  .getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.Builder
        addParameterViolationsBuilder(int index) {
      return getParameterViolationsFieldBuilder()
          .addBuilder(
              index,
              com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation
                  .getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Describes all parameter violations in a template request.
     * </pre>
     *
     * <code>
     * repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;
     * </code>
     */
    public java.util.List<
            com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.Builder>
        getParameterViolationsBuilderList() {
      return getParameterViolationsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation,
            com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.Builder,
            com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolationOrBuilder>
        getParameterViolationsFieldBuilder() {
      if (parameterViolationsBuilder_ == null) {
        parameterViolationsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation,
                com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation.Builder,
                com.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolationOrBuilder>(
                parameterViolations_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        parameterViolations_ = null;
      }
      return parameterViolationsBuilder_;
    }

    @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.dataflow.v1beta3.InvalidTemplateParameters)
  }

  // @@protoc_insertion_point(class_scope:google.dataflow.v1beta3.InvalidTemplateParameters)
  private static final com.google.dataflow.v1beta3.InvalidTemplateParameters DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.dataflow.v1beta3.InvalidTemplateParameters();
  }

  public static com.google.dataflow.v1beta3.InvalidTemplateParameters getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<InvalidTemplateParameters> PARSER =
      new com.google.protobuf.AbstractParser<InvalidTemplateParameters>() {
        @java.lang.Override
        public InvalidTemplateParameters 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<InvalidTemplateParameters> parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public com.google.dataflow.v1beta3.InvalidTemplateParameters getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
