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

cz.proto.WindowSpec Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: operator.proto

package cz.proto;

/**
 * Protobuf type {@code cz.proto.WindowSpec}
 */
public final class WindowSpec extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:cz.proto.WindowSpec)
    WindowSpecOrBuilder {
private static final long serialVersionUID = 0L;
  // Use WindowSpec.newBuilder() to construct.
  private WindowSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private WindowSpec() {
    keys_ = java.util.Collections.emptyList();
    orders_ = java.util.Collections.emptyList();
    boundaryType_ = 0;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private WindowSpec(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    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: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              keys_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            keys_.add(
                input.readMessage(cz.proto.Expression.Reference.parser(), extensionRegistry));
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              orders_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            orders_.add(
                input.readMessage(cz.proto.OrderByDesc.parser(), extensionRegistry));
            break;
          }
          case 24: {
            int rawValue = input.readEnum();

            boundaryType_ = rawValue;
            break;
          }
          case 34: {
            cz.proto.WindowBoundary.Builder subBuilder = null;
            if (lowerBound_ != null) {
              subBuilder = lowerBound_.toBuilder();
            }
            lowerBound_ = input.readMessage(cz.proto.WindowBoundary.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(lowerBound_);
              lowerBound_ = subBuilder.buildPartial();
            }

            break;
          }
          case 42: {
            cz.proto.WindowBoundary.Builder subBuilder = null;
            if (upperBound_ != null) {
              subBuilder = upperBound_.toBuilder();
            }
            upperBound_ = input.readMessage(cz.proto.WindowBoundary.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(upperBound_);
              upperBound_ = subBuilder.buildPartial();
            }

            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        keys_ = java.util.Collections.unmodifiableList(keys_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        orders_ = java.util.Collections.unmodifiableList(orders_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return cz.proto.OperatorProto.internal_static_cz_proto_WindowSpec_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return cz.proto.OperatorProto.internal_static_cz_proto_WindowSpec_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            cz.proto.WindowSpec.class, cz.proto.WindowSpec.Builder.class);
  }

  /**
   * Protobuf enum {@code cz.proto.WindowSpec.BoundaryType}
   */
  public enum BoundaryType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * ROWS = 0;
     */
    ROWS(0),
    /**
     * RANGE = 1;
     */
    RANGE(1),
    /**
     * GROUP = 2;
     */
    GROUP(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * ROWS = 0;
     */
    public static final int ROWS_VALUE = 0;
    /**
     * RANGE = 1;
     */
    public static final int RANGE_VALUE = 1;
    /**
     * GROUP = 2;
     */
    public static final int GROUP_VALUE = 2;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static BoundaryType valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static BoundaryType forNumber(int value) {
      switch (value) {
        case 0: return ROWS;
        case 1: return RANGE;
        case 2: return GROUP;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        BoundaryType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public BoundaryType findValueByNumber(int number) {
              return BoundaryType.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return cz.proto.WindowSpec.getDescriptor().getEnumTypes().get(0);
    }

    private static final BoundaryType[] VALUES = values();

    public static BoundaryType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:cz.proto.WindowSpec.BoundaryType)
  }

  public static final int KEYS_FIELD_NUMBER = 1;
  private java.util.List keys_;
  /**
   * repeated .cz.proto.Reference keys = 1;
   */
  @java.lang.Override
  public java.util.List getKeysList() {
    return keys_;
  }
  /**
   * repeated .cz.proto.Reference keys = 1;
   */
  @java.lang.Override
  public java.util.List 
      getKeysOrBuilderList() {
    return keys_;
  }
  /**
   * repeated .cz.proto.Reference keys = 1;
   */
  @java.lang.Override
  public int getKeysCount() {
    return keys_.size();
  }
  /**
   * repeated .cz.proto.Reference keys = 1;
   */
  @java.lang.Override
  public cz.proto.Expression.Reference getKeys(int index) {
    return keys_.get(index);
  }
  /**
   * repeated .cz.proto.Reference keys = 1;
   */
  @java.lang.Override
  public cz.proto.Expression.ReferenceOrBuilder getKeysOrBuilder(
      int index) {
    return keys_.get(index);
  }

  public static final int ORDERS_FIELD_NUMBER = 2;
  private java.util.List orders_;
  /**
   * repeated .cz.proto.OrderByDesc orders = 2;
   */
  @java.lang.Override
  public java.util.List getOrdersList() {
    return orders_;
  }
  /**
   * repeated .cz.proto.OrderByDesc orders = 2;
   */
  @java.lang.Override
  public java.util.List 
      getOrdersOrBuilderList() {
    return orders_;
  }
  /**
   * repeated .cz.proto.OrderByDesc orders = 2;
   */
  @java.lang.Override
  public int getOrdersCount() {
    return orders_.size();
  }
  /**
   * repeated .cz.proto.OrderByDesc orders = 2;
   */
  @java.lang.Override
  public cz.proto.OrderByDesc getOrders(int index) {
    return orders_.get(index);
  }
  /**
   * repeated .cz.proto.OrderByDesc orders = 2;
   */
  @java.lang.Override
  public cz.proto.OrderByDescOrBuilder getOrdersOrBuilder(
      int index) {
    return orders_.get(index);
  }

  public static final int BOUNDARY_TYPE_FIELD_NUMBER = 3;
  private int boundaryType_;
  /**
   * .cz.proto.WindowSpec.BoundaryType boundary_type = 3;
   * @return The enum numeric value on the wire for boundaryType.
   */
  @java.lang.Override public int getBoundaryTypeValue() {
    return boundaryType_;
  }
  /**
   * .cz.proto.WindowSpec.BoundaryType boundary_type = 3;
   * @return The boundaryType.
   */
  @java.lang.Override public cz.proto.WindowSpec.BoundaryType getBoundaryType() {
    @SuppressWarnings("deprecation")
    cz.proto.WindowSpec.BoundaryType result = cz.proto.WindowSpec.BoundaryType.valueOf(boundaryType_);
    return result == null ? cz.proto.WindowSpec.BoundaryType.UNRECOGNIZED : result;
  }

  public static final int LOWER_BOUND_FIELD_NUMBER = 4;
  private cz.proto.WindowBoundary lowerBound_;
  /**
   * .cz.proto.WindowBoundary lower_bound = 4;
   * @return Whether the lowerBound field is set.
   */
  @java.lang.Override
  public boolean hasLowerBound() {
    return lowerBound_ != null;
  }
  /**
   * .cz.proto.WindowBoundary lower_bound = 4;
   * @return The lowerBound.
   */
  @java.lang.Override
  public cz.proto.WindowBoundary getLowerBound() {
    return lowerBound_ == null ? cz.proto.WindowBoundary.getDefaultInstance() : lowerBound_;
  }
  /**
   * .cz.proto.WindowBoundary lower_bound = 4;
   */
  @java.lang.Override
  public cz.proto.WindowBoundaryOrBuilder getLowerBoundOrBuilder() {
    return getLowerBound();
  }

  public static final int UPPER_BOUND_FIELD_NUMBER = 5;
  private cz.proto.WindowBoundary upperBound_;
  /**
   * .cz.proto.WindowBoundary upper_bound = 5;
   * @return Whether the upperBound field is set.
   */
  @java.lang.Override
  public boolean hasUpperBound() {
    return upperBound_ != null;
  }
  /**
   * .cz.proto.WindowBoundary upper_bound = 5;
   * @return The upperBound.
   */
  @java.lang.Override
  public cz.proto.WindowBoundary getUpperBound() {
    return upperBound_ == null ? cz.proto.WindowBoundary.getDefaultInstance() : upperBound_;
  }
  /**
   * .cz.proto.WindowBoundary upper_bound = 5;
   */
  @java.lang.Override
  public cz.proto.WindowBoundaryOrBuilder getUpperBoundOrBuilder() {
    return getUpperBound();
  }

  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 < keys_.size(); i++) {
      output.writeMessage(1, keys_.get(i));
    }
    for (int i = 0; i < orders_.size(); i++) {
      output.writeMessage(2, orders_.get(i));
    }
    if (boundaryType_ != cz.proto.WindowSpec.BoundaryType.ROWS.getNumber()) {
      output.writeEnum(3, boundaryType_);
    }
    if (lowerBound_ != null) {
      output.writeMessage(4, getLowerBound());
    }
    if (upperBound_ != null) {
      output.writeMessage(5, getUpperBound());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < keys_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, keys_.get(i));
    }
    for (int i = 0; i < orders_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, orders_.get(i));
    }
    if (boundaryType_ != cz.proto.WindowSpec.BoundaryType.ROWS.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(3, boundaryType_);
    }
    if (lowerBound_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getLowerBound());
    }
    if (upperBound_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, getUpperBound());
    }
    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 cz.proto.WindowSpec)) {
      return super.equals(obj);
    }
    cz.proto.WindowSpec other = (cz.proto.WindowSpec) obj;

    if (!getKeysList()
        .equals(other.getKeysList())) return false;
    if (!getOrdersList()
        .equals(other.getOrdersList())) return false;
    if (boundaryType_ != other.boundaryType_) return false;
    if (hasLowerBound() != other.hasLowerBound()) return false;
    if (hasLowerBound()) {
      if (!getLowerBound()
          .equals(other.getLowerBound())) return false;
    }
    if (hasUpperBound() != other.hasUpperBound()) return false;
    if (hasUpperBound()) {
      if (!getUpperBound()
          .equals(other.getUpperBound())) 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();
    if (getKeysCount() > 0) {
      hash = (37 * hash) + KEYS_FIELD_NUMBER;
      hash = (53 * hash) + getKeysList().hashCode();
    }
    if (getOrdersCount() > 0) {
      hash = (37 * hash) + ORDERS_FIELD_NUMBER;
      hash = (53 * hash) + getOrdersList().hashCode();
    }
    hash = (37 * hash) + BOUNDARY_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + boundaryType_;
    if (hasLowerBound()) {
      hash = (37 * hash) + LOWER_BOUND_FIELD_NUMBER;
      hash = (53 * hash) + getLowerBound().hashCode();
    }
    if (hasUpperBound()) {
      hash = (37 * hash) + UPPER_BOUND_FIELD_NUMBER;
      hash = (53 * hash) + getUpperBound().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static cz.proto.WindowSpec parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.WindowSpec parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.WindowSpec parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.WindowSpec parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.WindowSpec parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.WindowSpec parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.WindowSpec parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static cz.proto.WindowSpec 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 cz.proto.WindowSpec parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static cz.proto.WindowSpec 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 cz.proto.WindowSpec parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static cz.proto.WindowSpec 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(cz.proto.WindowSpec 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 cz.proto.WindowSpec}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:cz.proto.WindowSpec)
      cz.proto.WindowSpecOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return cz.proto.OperatorProto.internal_static_cz_proto_WindowSpec_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return cz.proto.OperatorProto.internal_static_cz_proto_WindowSpec_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              cz.proto.WindowSpec.class, cz.proto.WindowSpec.Builder.class);
    }

    // Construct using cz.proto.WindowSpec.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getKeysFieldBuilder();
        getOrdersFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (keysBuilder_ == null) {
        keys_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        keysBuilder_.clear();
      }
      if (ordersBuilder_ == null) {
        orders_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        ordersBuilder_.clear();
      }
      boundaryType_ = 0;

      if (lowerBoundBuilder_ == null) {
        lowerBound_ = null;
      } else {
        lowerBound_ = null;
        lowerBoundBuilder_ = null;
      }
      if (upperBoundBuilder_ == null) {
        upperBound_ = null;
      } else {
        upperBound_ = null;
        upperBoundBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return cz.proto.OperatorProto.internal_static_cz_proto_WindowSpec_descriptor;
    }

    @java.lang.Override
    public cz.proto.WindowSpec getDefaultInstanceForType() {
      return cz.proto.WindowSpec.getDefaultInstance();
    }

    @java.lang.Override
    public cz.proto.WindowSpec build() {
      cz.proto.WindowSpec result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public cz.proto.WindowSpec buildPartial() {
      cz.proto.WindowSpec result = new cz.proto.WindowSpec(this);
      int from_bitField0_ = bitField0_;
      if (keysBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          keys_ = java.util.Collections.unmodifiableList(keys_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.keys_ = keys_;
      } else {
        result.keys_ = keysBuilder_.build();
      }
      if (ordersBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          orders_ = java.util.Collections.unmodifiableList(orders_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.orders_ = orders_;
      } else {
        result.orders_ = ordersBuilder_.build();
      }
      result.boundaryType_ = boundaryType_;
      if (lowerBoundBuilder_ == null) {
        result.lowerBound_ = lowerBound_;
      } else {
        result.lowerBound_ = lowerBoundBuilder_.build();
      }
      if (upperBoundBuilder_ == null) {
        result.upperBound_ = upperBound_;
      } else {
        result.upperBound_ = upperBoundBuilder_.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 cz.proto.WindowSpec) {
        return mergeFrom((cz.proto.WindowSpec)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.WindowSpec other) {
      if (other == cz.proto.WindowSpec.getDefaultInstance()) return this;
      if (keysBuilder_ == null) {
        if (!other.keys_.isEmpty()) {
          if (keys_.isEmpty()) {
            keys_ = other.keys_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureKeysIsMutable();
            keys_.addAll(other.keys_);
          }
          onChanged();
        }
      } else {
        if (!other.keys_.isEmpty()) {
          if (keysBuilder_.isEmpty()) {
            keysBuilder_.dispose();
            keysBuilder_ = null;
            keys_ = other.keys_;
            bitField0_ = (bitField0_ & ~0x00000001);
            keysBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getKeysFieldBuilder() : null;
          } else {
            keysBuilder_.addAllMessages(other.keys_);
          }
        }
      }
      if (ordersBuilder_ == null) {
        if (!other.orders_.isEmpty()) {
          if (orders_.isEmpty()) {
            orders_ = other.orders_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureOrdersIsMutable();
            orders_.addAll(other.orders_);
          }
          onChanged();
        }
      } else {
        if (!other.orders_.isEmpty()) {
          if (ordersBuilder_.isEmpty()) {
            ordersBuilder_.dispose();
            ordersBuilder_ = null;
            orders_ = other.orders_;
            bitField0_ = (bitField0_ & ~0x00000002);
            ordersBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getOrdersFieldBuilder() : null;
          } else {
            ordersBuilder_.addAllMessages(other.orders_);
          }
        }
      }
      if (other.boundaryType_ != 0) {
        setBoundaryTypeValue(other.getBoundaryTypeValue());
      }
      if (other.hasLowerBound()) {
        mergeLowerBound(other.getLowerBound());
      }
      if (other.hasUpperBound()) {
        mergeUpperBound(other.getUpperBound());
      }
      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 {
      cz.proto.WindowSpec parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.WindowSpec) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List keys_ =
      java.util.Collections.emptyList();
    private void ensureKeysIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        keys_ = new java.util.ArrayList(keys_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.Expression.Reference, cz.proto.Expression.Reference.Builder, cz.proto.Expression.ReferenceOrBuilder> keysBuilder_;

    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public java.util.List getKeysList() {
      if (keysBuilder_ == null) {
        return java.util.Collections.unmodifiableList(keys_);
      } else {
        return keysBuilder_.getMessageList();
      }
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public int getKeysCount() {
      if (keysBuilder_ == null) {
        return keys_.size();
      } else {
        return keysBuilder_.getCount();
      }
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public cz.proto.Expression.Reference getKeys(int index) {
      if (keysBuilder_ == null) {
        return keys_.get(index);
      } else {
        return keysBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder setKeys(
        int index, cz.proto.Expression.Reference value) {
      if (keysBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureKeysIsMutable();
        keys_.set(index, value);
        onChanged();
      } else {
        keysBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder setKeys(
        int index, cz.proto.Expression.Reference.Builder builderForValue) {
      if (keysBuilder_ == null) {
        ensureKeysIsMutable();
        keys_.set(index, builderForValue.build());
        onChanged();
      } else {
        keysBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder addKeys(cz.proto.Expression.Reference value) {
      if (keysBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureKeysIsMutable();
        keys_.add(value);
        onChanged();
      } else {
        keysBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder addKeys(
        int index, cz.proto.Expression.Reference value) {
      if (keysBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureKeysIsMutable();
        keys_.add(index, value);
        onChanged();
      } else {
        keysBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder addKeys(
        cz.proto.Expression.Reference.Builder builderForValue) {
      if (keysBuilder_ == null) {
        ensureKeysIsMutable();
        keys_.add(builderForValue.build());
        onChanged();
      } else {
        keysBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder addKeys(
        int index, cz.proto.Expression.Reference.Builder builderForValue) {
      if (keysBuilder_ == null) {
        ensureKeysIsMutable();
        keys_.add(index, builderForValue.build());
        onChanged();
      } else {
        keysBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder addAllKeys(
        java.lang.Iterable values) {
      if (keysBuilder_ == null) {
        ensureKeysIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, keys_);
        onChanged();
      } else {
        keysBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder clearKeys() {
      if (keysBuilder_ == null) {
        keys_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        keysBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder removeKeys(int index) {
      if (keysBuilder_ == null) {
        ensureKeysIsMutable();
        keys_.remove(index);
        onChanged();
      } else {
        keysBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public cz.proto.Expression.Reference.Builder getKeysBuilder(
        int index) {
      return getKeysFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public cz.proto.Expression.ReferenceOrBuilder getKeysOrBuilder(
        int index) {
      if (keysBuilder_ == null) {
        return keys_.get(index);  } else {
        return keysBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public java.util.List 
         getKeysOrBuilderList() {
      if (keysBuilder_ != null) {
        return keysBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(keys_);
      }
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public cz.proto.Expression.Reference.Builder addKeysBuilder() {
      return getKeysFieldBuilder().addBuilder(
          cz.proto.Expression.Reference.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public cz.proto.Expression.Reference.Builder addKeysBuilder(
        int index) {
      return getKeysFieldBuilder().addBuilder(
          index, cz.proto.Expression.Reference.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public java.util.List 
         getKeysBuilderList() {
      return getKeysFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.Expression.Reference, cz.proto.Expression.Reference.Builder, cz.proto.Expression.ReferenceOrBuilder> 
        getKeysFieldBuilder() {
      if (keysBuilder_ == null) {
        keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            cz.proto.Expression.Reference, cz.proto.Expression.Reference.Builder, cz.proto.Expression.ReferenceOrBuilder>(
                keys_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        keys_ = null;
      }
      return keysBuilder_;
    }

    private java.util.List orders_ =
      java.util.Collections.emptyList();
    private void ensureOrdersIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        orders_ = new java.util.ArrayList(orders_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.OrderByDesc, cz.proto.OrderByDesc.Builder, cz.proto.OrderByDescOrBuilder> ordersBuilder_;

    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public java.util.List getOrdersList() {
      if (ordersBuilder_ == null) {
        return java.util.Collections.unmodifiableList(orders_);
      } else {
        return ordersBuilder_.getMessageList();
      }
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public int getOrdersCount() {
      if (ordersBuilder_ == null) {
        return orders_.size();
      } else {
        return ordersBuilder_.getCount();
      }
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public cz.proto.OrderByDesc getOrders(int index) {
      if (ordersBuilder_ == null) {
        return orders_.get(index);
      } else {
        return ordersBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder setOrders(
        int index, cz.proto.OrderByDesc value) {
      if (ordersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOrdersIsMutable();
        orders_.set(index, value);
        onChanged();
      } else {
        ordersBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder setOrders(
        int index, cz.proto.OrderByDesc.Builder builderForValue) {
      if (ordersBuilder_ == null) {
        ensureOrdersIsMutable();
        orders_.set(index, builderForValue.build());
        onChanged();
      } else {
        ordersBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder addOrders(cz.proto.OrderByDesc value) {
      if (ordersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOrdersIsMutable();
        orders_.add(value);
        onChanged();
      } else {
        ordersBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder addOrders(
        int index, cz.proto.OrderByDesc value) {
      if (ordersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOrdersIsMutable();
        orders_.add(index, value);
        onChanged();
      } else {
        ordersBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder addOrders(
        cz.proto.OrderByDesc.Builder builderForValue) {
      if (ordersBuilder_ == null) {
        ensureOrdersIsMutable();
        orders_.add(builderForValue.build());
        onChanged();
      } else {
        ordersBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder addOrders(
        int index, cz.proto.OrderByDesc.Builder builderForValue) {
      if (ordersBuilder_ == null) {
        ensureOrdersIsMutable();
        orders_.add(index, builderForValue.build());
        onChanged();
      } else {
        ordersBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder addAllOrders(
        java.lang.Iterable values) {
      if (ordersBuilder_ == null) {
        ensureOrdersIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, orders_);
        onChanged();
      } else {
        ordersBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder clearOrders() {
      if (ordersBuilder_ == null) {
        orders_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        ordersBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder removeOrders(int index) {
      if (ordersBuilder_ == null) {
        ensureOrdersIsMutable();
        orders_.remove(index);
        onChanged();
      } else {
        ordersBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public cz.proto.OrderByDesc.Builder getOrdersBuilder(
        int index) {
      return getOrdersFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public cz.proto.OrderByDescOrBuilder getOrdersOrBuilder(
        int index) {
      if (ordersBuilder_ == null) {
        return orders_.get(index);  } else {
        return ordersBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public java.util.List 
         getOrdersOrBuilderList() {
      if (ordersBuilder_ != null) {
        return ordersBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(orders_);
      }
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public cz.proto.OrderByDesc.Builder addOrdersBuilder() {
      return getOrdersFieldBuilder().addBuilder(
          cz.proto.OrderByDesc.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public cz.proto.OrderByDesc.Builder addOrdersBuilder(
        int index) {
      return getOrdersFieldBuilder().addBuilder(
          index, cz.proto.OrderByDesc.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public java.util.List 
         getOrdersBuilderList() {
      return getOrdersFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.OrderByDesc, cz.proto.OrderByDesc.Builder, cz.proto.OrderByDescOrBuilder> 
        getOrdersFieldBuilder() {
      if (ordersBuilder_ == null) {
        ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            cz.proto.OrderByDesc, cz.proto.OrderByDesc.Builder, cz.proto.OrderByDescOrBuilder>(
                orders_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        orders_ = null;
      }
      return ordersBuilder_;
    }

    private int boundaryType_ = 0;
    /**
     * .cz.proto.WindowSpec.BoundaryType boundary_type = 3;
     * @return The enum numeric value on the wire for boundaryType.
     */
    @java.lang.Override public int getBoundaryTypeValue() {
      return boundaryType_;
    }
    /**
     * .cz.proto.WindowSpec.BoundaryType boundary_type = 3;
     * @param value The enum numeric value on the wire for boundaryType to set.
     * @return This builder for chaining.
     */
    public Builder setBoundaryTypeValue(int value) {
      
      boundaryType_ = value;
      onChanged();
      return this;
    }
    /**
     * .cz.proto.WindowSpec.BoundaryType boundary_type = 3;
     * @return The boundaryType.
     */
    @java.lang.Override
    public cz.proto.WindowSpec.BoundaryType getBoundaryType() {
      @SuppressWarnings("deprecation")
      cz.proto.WindowSpec.BoundaryType result = cz.proto.WindowSpec.BoundaryType.valueOf(boundaryType_);
      return result == null ? cz.proto.WindowSpec.BoundaryType.UNRECOGNIZED : result;
    }
    /**
     * .cz.proto.WindowSpec.BoundaryType boundary_type = 3;
     * @param value The boundaryType to set.
     * @return This builder for chaining.
     */
    public Builder setBoundaryType(cz.proto.WindowSpec.BoundaryType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      boundaryType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .cz.proto.WindowSpec.BoundaryType boundary_type = 3;
     * @return This builder for chaining.
     */
    public Builder clearBoundaryType() {
      
      boundaryType_ = 0;
      onChanged();
      return this;
    }

    private cz.proto.WindowBoundary lowerBound_;
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.WindowBoundary, cz.proto.WindowBoundary.Builder, cz.proto.WindowBoundaryOrBuilder> lowerBoundBuilder_;
    /**
     * .cz.proto.WindowBoundary lower_bound = 4;
     * @return Whether the lowerBound field is set.
     */
    public boolean hasLowerBound() {
      return lowerBoundBuilder_ != null || lowerBound_ != null;
    }
    /**
     * .cz.proto.WindowBoundary lower_bound = 4;
     * @return The lowerBound.
     */
    public cz.proto.WindowBoundary getLowerBound() {
      if (lowerBoundBuilder_ == null) {
        return lowerBound_ == null ? cz.proto.WindowBoundary.getDefaultInstance() : lowerBound_;
      } else {
        return lowerBoundBuilder_.getMessage();
      }
    }
    /**
     * .cz.proto.WindowBoundary lower_bound = 4;
     */
    public Builder setLowerBound(cz.proto.WindowBoundary value) {
      if (lowerBoundBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        lowerBound_ = value;
        onChanged();
      } else {
        lowerBoundBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .cz.proto.WindowBoundary lower_bound = 4;
     */
    public Builder setLowerBound(
        cz.proto.WindowBoundary.Builder builderForValue) {
      if (lowerBoundBuilder_ == null) {
        lowerBound_ = builderForValue.build();
        onChanged();
      } else {
        lowerBoundBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .cz.proto.WindowBoundary lower_bound = 4;
     */
    public Builder mergeLowerBound(cz.proto.WindowBoundary value) {
      if (lowerBoundBuilder_ == null) {
        if (lowerBound_ != null) {
          lowerBound_ =
            cz.proto.WindowBoundary.newBuilder(lowerBound_).mergeFrom(value).buildPartial();
        } else {
          lowerBound_ = value;
        }
        onChanged();
      } else {
        lowerBoundBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .cz.proto.WindowBoundary lower_bound = 4;
     */
    public Builder clearLowerBound() {
      if (lowerBoundBuilder_ == null) {
        lowerBound_ = null;
        onChanged();
      } else {
        lowerBound_ = null;
        lowerBoundBuilder_ = null;
      }

      return this;
    }
    /**
     * .cz.proto.WindowBoundary lower_bound = 4;
     */
    public cz.proto.WindowBoundary.Builder getLowerBoundBuilder() {
      
      onChanged();
      return getLowerBoundFieldBuilder().getBuilder();
    }
    /**
     * .cz.proto.WindowBoundary lower_bound = 4;
     */
    public cz.proto.WindowBoundaryOrBuilder getLowerBoundOrBuilder() {
      if (lowerBoundBuilder_ != null) {
        return lowerBoundBuilder_.getMessageOrBuilder();
      } else {
        return lowerBound_ == null ?
            cz.proto.WindowBoundary.getDefaultInstance() : lowerBound_;
      }
    }
    /**
     * .cz.proto.WindowBoundary lower_bound = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.WindowBoundary, cz.proto.WindowBoundary.Builder, cz.proto.WindowBoundaryOrBuilder> 
        getLowerBoundFieldBuilder() {
      if (lowerBoundBuilder_ == null) {
        lowerBoundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            cz.proto.WindowBoundary, cz.proto.WindowBoundary.Builder, cz.proto.WindowBoundaryOrBuilder>(
                getLowerBound(),
                getParentForChildren(),
                isClean());
        lowerBound_ = null;
      }
      return lowerBoundBuilder_;
    }

    private cz.proto.WindowBoundary upperBound_;
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.WindowBoundary, cz.proto.WindowBoundary.Builder, cz.proto.WindowBoundaryOrBuilder> upperBoundBuilder_;
    /**
     * .cz.proto.WindowBoundary upper_bound = 5;
     * @return Whether the upperBound field is set.
     */
    public boolean hasUpperBound() {
      return upperBoundBuilder_ != null || upperBound_ != null;
    }
    /**
     * .cz.proto.WindowBoundary upper_bound = 5;
     * @return The upperBound.
     */
    public cz.proto.WindowBoundary getUpperBound() {
      if (upperBoundBuilder_ == null) {
        return upperBound_ == null ? cz.proto.WindowBoundary.getDefaultInstance() : upperBound_;
      } else {
        return upperBoundBuilder_.getMessage();
      }
    }
    /**
     * .cz.proto.WindowBoundary upper_bound = 5;
     */
    public Builder setUpperBound(cz.proto.WindowBoundary value) {
      if (upperBoundBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        upperBound_ = value;
        onChanged();
      } else {
        upperBoundBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .cz.proto.WindowBoundary upper_bound = 5;
     */
    public Builder setUpperBound(
        cz.proto.WindowBoundary.Builder builderForValue) {
      if (upperBoundBuilder_ == null) {
        upperBound_ = builderForValue.build();
        onChanged();
      } else {
        upperBoundBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .cz.proto.WindowBoundary upper_bound = 5;
     */
    public Builder mergeUpperBound(cz.proto.WindowBoundary value) {
      if (upperBoundBuilder_ == null) {
        if (upperBound_ != null) {
          upperBound_ =
            cz.proto.WindowBoundary.newBuilder(upperBound_).mergeFrom(value).buildPartial();
        } else {
          upperBound_ = value;
        }
        onChanged();
      } else {
        upperBoundBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .cz.proto.WindowBoundary upper_bound = 5;
     */
    public Builder clearUpperBound() {
      if (upperBoundBuilder_ == null) {
        upperBound_ = null;
        onChanged();
      } else {
        upperBound_ = null;
        upperBoundBuilder_ = null;
      }

      return this;
    }
    /**
     * .cz.proto.WindowBoundary upper_bound = 5;
     */
    public cz.proto.WindowBoundary.Builder getUpperBoundBuilder() {
      
      onChanged();
      return getUpperBoundFieldBuilder().getBuilder();
    }
    /**
     * .cz.proto.WindowBoundary upper_bound = 5;
     */
    public cz.proto.WindowBoundaryOrBuilder getUpperBoundOrBuilder() {
      if (upperBoundBuilder_ != null) {
        return upperBoundBuilder_.getMessageOrBuilder();
      } else {
        return upperBound_ == null ?
            cz.proto.WindowBoundary.getDefaultInstance() : upperBound_;
      }
    }
    /**
     * .cz.proto.WindowBoundary upper_bound = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.WindowBoundary, cz.proto.WindowBoundary.Builder, cz.proto.WindowBoundaryOrBuilder> 
        getUpperBoundFieldBuilder() {
      if (upperBoundBuilder_ == null) {
        upperBoundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            cz.proto.WindowBoundary, cz.proto.WindowBoundary.Builder, cz.proto.WindowBoundaryOrBuilder>(
                getUpperBound(),
                getParentForChildren(),
                isClean());
        upperBound_ = null;
      }
      return upperBoundBuilder_;
    }
    @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:cz.proto.WindowSpec)
  }

  // @@protoc_insertion_point(class_scope:cz.proto.WindowSpec)
  private static final cz.proto.WindowSpec DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new cz.proto.WindowSpec();
  }

  public static cz.proto.WindowSpec getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public cz.proto.WindowSpec getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy