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

cz.proto.TableSinkSummary Maven / Gradle / Ivy

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

package cz.proto;

/**
 * Protobuf type {@code cz.proto.TableSinkSummary}
 */
public final class TableSinkSummary extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:cz.proto.TableSinkSummary)
    TableSinkSummaryOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TableSinkSummary.newBuilder() to construct.
  private TableSinkSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private TableSinkSummary() {
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private TableSinkSummary(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            cz.proto.OperatorStatistics.Builder subBuilder = null;
            if (compressedOutputBytes_ != null) {
              subBuilder = compressedOutputBytes_.toBuilder();
            }
            compressedOutputBytes_ = input.readMessage(cz.proto.OperatorStatistics.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(compressedOutputBytes_);
              compressedOutputBytes_ = subBuilder.buildPartial();
            }

            break;
          }
          case 16: {

            totalFileCount_ = input.readInt64();
            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 {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return cz.proto.JobProto.internal_static_cz_proto_TableSinkSummary_descriptor;
  }

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

  public static final int COMPRESSED_OUTPUT_BYTES_FIELD_NUMBER = 1;
  private cz.proto.OperatorStatistics compressedOutputBytes_;
  /**
   * .cz.proto.OperatorStatistics compressed_output_bytes = 1;
   * @return Whether the compressedOutputBytes field is set.
   */
  @java.lang.Override
  public boolean hasCompressedOutputBytes() {
    return compressedOutputBytes_ != null;
  }
  /**
   * .cz.proto.OperatorStatistics compressed_output_bytes = 1;
   * @return The compressedOutputBytes.
   */
  @java.lang.Override
  public cz.proto.OperatorStatistics getCompressedOutputBytes() {
    return compressedOutputBytes_ == null ? cz.proto.OperatorStatistics.getDefaultInstance() : compressedOutputBytes_;
  }
  /**
   * .cz.proto.OperatorStatistics compressed_output_bytes = 1;
   */
  @java.lang.Override
  public cz.proto.OperatorStatisticsOrBuilder getCompressedOutputBytesOrBuilder() {
    return getCompressedOutputBytes();
  }

  public static final int TOTAL_FILE_COUNT_FIELD_NUMBER = 2;
  private long totalFileCount_;
  /**
   * int64 total_file_count = 2;
   * @return The totalFileCount.
   */
  @java.lang.Override
  public long getTotalFileCount() {
    return totalFileCount_;
  }

  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 (compressedOutputBytes_ != null) {
      output.writeMessage(1, getCompressedOutputBytes());
    }
    if (totalFileCount_ != 0L) {
      output.writeInt64(2, totalFileCount_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (compressedOutputBytes_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getCompressedOutputBytes());
    }
    if (totalFileCount_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(2, totalFileCount_);
    }
    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.TableSinkSummary)) {
      return super.equals(obj);
    }
    cz.proto.TableSinkSummary other = (cz.proto.TableSinkSummary) obj;

    if (hasCompressedOutputBytes() != other.hasCompressedOutputBytes()) return false;
    if (hasCompressedOutputBytes()) {
      if (!getCompressedOutputBytes()
          .equals(other.getCompressedOutputBytes())) return false;
    }
    if (getTotalFileCount()
        != other.getTotalFileCount()) 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 (hasCompressedOutputBytes()) {
      hash = (37 * hash) + COMPRESSED_OUTPUT_BYTES_FIELD_NUMBER;
      hash = (53 * hash) + getCompressedOutputBytes().hashCode();
    }
    hash = (37 * hash) + TOTAL_FILE_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getTotalFileCount());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (compressedOutputBytesBuilder_ == null) {
        compressedOutputBytes_ = null;
      } else {
        compressedOutputBytes_ = null;
        compressedOutputBytesBuilder_ = null;
      }
      totalFileCount_ = 0L;

      return this;
    }

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

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

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

    @java.lang.Override
    public cz.proto.TableSinkSummary buildPartial() {
      cz.proto.TableSinkSummary result = new cz.proto.TableSinkSummary(this);
      if (compressedOutputBytesBuilder_ == null) {
        result.compressedOutputBytes_ = compressedOutputBytes_;
      } else {
        result.compressedOutputBytes_ = compressedOutputBytesBuilder_.build();
      }
      result.totalFileCount_ = totalFileCount_;
      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.TableSinkSummary) {
        return mergeFrom((cz.proto.TableSinkSummary)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.TableSinkSummary other) {
      if (other == cz.proto.TableSinkSummary.getDefaultInstance()) return this;
      if (other.hasCompressedOutputBytes()) {
        mergeCompressedOutputBytes(other.getCompressedOutputBytes());
      }
      if (other.getTotalFileCount() != 0L) {
        setTotalFileCount(other.getTotalFileCount());
      }
      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.TableSinkSummary parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.TableSinkSummary) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private cz.proto.OperatorStatistics compressedOutputBytes_;
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.OperatorStatistics, cz.proto.OperatorStatistics.Builder, cz.proto.OperatorStatisticsOrBuilder> compressedOutputBytesBuilder_;
    /**
     * .cz.proto.OperatorStatistics compressed_output_bytes = 1;
     * @return Whether the compressedOutputBytes field is set.
     */
    public boolean hasCompressedOutputBytes() {
      return compressedOutputBytesBuilder_ != null || compressedOutputBytes_ != null;
    }
    /**
     * .cz.proto.OperatorStatistics compressed_output_bytes = 1;
     * @return The compressedOutputBytes.
     */
    public cz.proto.OperatorStatistics getCompressedOutputBytes() {
      if (compressedOutputBytesBuilder_ == null) {
        return compressedOutputBytes_ == null ? cz.proto.OperatorStatistics.getDefaultInstance() : compressedOutputBytes_;
      } else {
        return compressedOutputBytesBuilder_.getMessage();
      }
    }
    /**
     * .cz.proto.OperatorStatistics compressed_output_bytes = 1;
     */
    public Builder setCompressedOutputBytes(cz.proto.OperatorStatistics value) {
      if (compressedOutputBytesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        compressedOutputBytes_ = value;
        onChanged();
      } else {
        compressedOutputBytesBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .cz.proto.OperatorStatistics compressed_output_bytes = 1;
     */
    public Builder setCompressedOutputBytes(
        cz.proto.OperatorStatistics.Builder builderForValue) {
      if (compressedOutputBytesBuilder_ == null) {
        compressedOutputBytes_ = builderForValue.build();
        onChanged();
      } else {
        compressedOutputBytesBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .cz.proto.OperatorStatistics compressed_output_bytes = 1;
     */
    public Builder mergeCompressedOutputBytes(cz.proto.OperatorStatistics value) {
      if (compressedOutputBytesBuilder_ == null) {
        if (compressedOutputBytes_ != null) {
          compressedOutputBytes_ =
            cz.proto.OperatorStatistics.newBuilder(compressedOutputBytes_).mergeFrom(value).buildPartial();
        } else {
          compressedOutputBytes_ = value;
        }
        onChanged();
      } else {
        compressedOutputBytesBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .cz.proto.OperatorStatistics compressed_output_bytes = 1;
     */
    public Builder clearCompressedOutputBytes() {
      if (compressedOutputBytesBuilder_ == null) {
        compressedOutputBytes_ = null;
        onChanged();
      } else {
        compressedOutputBytes_ = null;
        compressedOutputBytesBuilder_ = null;
      }

      return this;
    }
    /**
     * .cz.proto.OperatorStatistics compressed_output_bytes = 1;
     */
    public cz.proto.OperatorStatistics.Builder getCompressedOutputBytesBuilder() {
      
      onChanged();
      return getCompressedOutputBytesFieldBuilder().getBuilder();
    }
    /**
     * .cz.proto.OperatorStatistics compressed_output_bytes = 1;
     */
    public cz.proto.OperatorStatisticsOrBuilder getCompressedOutputBytesOrBuilder() {
      if (compressedOutputBytesBuilder_ != null) {
        return compressedOutputBytesBuilder_.getMessageOrBuilder();
      } else {
        return compressedOutputBytes_ == null ?
            cz.proto.OperatorStatistics.getDefaultInstance() : compressedOutputBytes_;
      }
    }
    /**
     * .cz.proto.OperatorStatistics compressed_output_bytes = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.OperatorStatistics, cz.proto.OperatorStatistics.Builder, cz.proto.OperatorStatisticsOrBuilder> 
        getCompressedOutputBytesFieldBuilder() {
      if (compressedOutputBytesBuilder_ == null) {
        compressedOutputBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            cz.proto.OperatorStatistics, cz.proto.OperatorStatistics.Builder, cz.proto.OperatorStatisticsOrBuilder>(
                getCompressedOutputBytes(),
                getParentForChildren(),
                isClean());
        compressedOutputBytes_ = null;
      }
      return compressedOutputBytesBuilder_;
    }

    private long totalFileCount_ ;
    /**
     * int64 total_file_count = 2;
     * @return The totalFileCount.
     */
    @java.lang.Override
    public long getTotalFileCount() {
      return totalFileCount_;
    }
    /**
     * int64 total_file_count = 2;
     * @param value The totalFileCount to set.
     * @return This builder for chaining.
     */
    public Builder setTotalFileCount(long value) {
      
      totalFileCount_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 total_file_count = 2;
     * @return This builder for chaining.
     */
    public Builder clearTotalFileCount() {
      
      totalFileCount_ = 0L;
      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:cz.proto.TableSinkSummary)
  }

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

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

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public TableSinkSummary parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new TableSinkSummary(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.TableSinkSummary getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy