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

cz.proto.FileSplitMeta Maven / Gradle / Ivy

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

package cz.proto;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private FileSplitMeta(
      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 26: {
            java.lang.String s = input.readStringRequireUtf8();

            splitFile_ = s;
            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              offset_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            offset_.add(
                input.readMessage(cz.proto.FileSplitMeta.Offset.parser(), extensionRegistry));
            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)) {
        offset_ = java.util.Collections.unmodifiableList(offset_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return cz.proto.InputSplitProto.internal_static_cz_proto_FileSplitMeta_descriptor;
  }

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

  public interface OffsetOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cz.proto.FileSplitMeta.Offset)
      com.google.protobuf.MessageOrBuilder {

    /**
     * int64 task_id = 1;
     * @return The taskId.
     */
    long getTaskId();

    /**
     * int64 start_offset = 2;
     * @return The startOffset.
     */
    long getStartOffset();

    /**
     * int64 end_offset = 3;
     * @return The endOffset.
     */
    long getEndOffset();
  }
  /**
   * Protobuf type {@code cz.proto.FileSplitMeta.Offset}
   */
  public static final class Offset extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:cz.proto.FileSplitMeta.Offset)
      OffsetOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Offset.newBuilder() to construct.
    private Offset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Offset() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Offset(
        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 8: {

              taskId_ = input.readInt64();
              break;
            }
            case 16: {

              startOffset_ = input.readInt64();
              break;
            }
            case 24: {

              endOffset_ = 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.InputSplitProto.internal_static_cz_proto_FileSplitMeta_Offset_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return cz.proto.InputSplitProto.internal_static_cz_proto_FileSplitMeta_Offset_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              cz.proto.FileSplitMeta.Offset.class, cz.proto.FileSplitMeta.Offset.Builder.class);
    }

    public static final int TASK_ID_FIELD_NUMBER = 1;
    private long taskId_;
    /**
     * int64 task_id = 1;
     * @return The taskId.
     */
    @java.lang.Override
    public long getTaskId() {
      return taskId_;
    }

    public static final int START_OFFSET_FIELD_NUMBER = 2;
    private long startOffset_;
    /**
     * int64 start_offset = 2;
     * @return The startOffset.
     */
    @java.lang.Override
    public long getStartOffset() {
      return startOffset_;
    }

    public static final int END_OFFSET_FIELD_NUMBER = 3;
    private long endOffset_;
    /**
     * int64 end_offset = 3;
     * @return The endOffset.
     */
    @java.lang.Override
    public long getEndOffset() {
      return endOffset_;
    }

    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 (taskId_ != 0L) {
        output.writeInt64(1, taskId_);
      }
      if (startOffset_ != 0L) {
        output.writeInt64(2, startOffset_);
      }
      if (endOffset_ != 0L) {
        output.writeInt64(3, endOffset_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (taskId_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, taskId_);
      }
      if (startOffset_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, startOffset_);
      }
      if (endOffset_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(3, endOffset_);
      }
      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.FileSplitMeta.Offset)) {
        return super.equals(obj);
      }
      cz.proto.FileSplitMeta.Offset other = (cz.proto.FileSplitMeta.Offset) obj;

      if (getTaskId()
          != other.getTaskId()) return false;
      if (getStartOffset()
          != other.getStartOffset()) return false;
      if (getEndOffset()
          != other.getEndOffset()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getTaskId());
      hash = (37 * hash) + START_OFFSET_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getStartOffset());
      hash = (37 * hash) + END_OFFSET_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getEndOffset());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return cz.proto.InputSplitProto.internal_static_cz_proto_FileSplitMeta_Offset_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                cz.proto.FileSplitMeta.Offset.class, cz.proto.FileSplitMeta.Offset.Builder.class);
      }

      // Construct using cz.proto.FileSplitMeta.Offset.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();
        taskId_ = 0L;

        startOffset_ = 0L;

        endOffset_ = 0L;

        return this;
      }

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

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

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

      @java.lang.Override
      public cz.proto.FileSplitMeta.Offset buildPartial() {
        cz.proto.FileSplitMeta.Offset result = new cz.proto.FileSplitMeta.Offset(this);
        result.taskId_ = taskId_;
        result.startOffset_ = startOffset_;
        result.endOffset_ = endOffset_;
        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.FileSplitMeta.Offset) {
          return mergeFrom((cz.proto.FileSplitMeta.Offset)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(cz.proto.FileSplitMeta.Offset other) {
        if (other == cz.proto.FileSplitMeta.Offset.getDefaultInstance()) return this;
        if (other.getTaskId() != 0L) {
          setTaskId(other.getTaskId());
        }
        if (other.getStartOffset() != 0L) {
          setStartOffset(other.getStartOffset());
        }
        if (other.getEndOffset() != 0L) {
          setEndOffset(other.getEndOffset());
        }
        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.FileSplitMeta.Offset parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (cz.proto.FileSplitMeta.Offset) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private long taskId_ ;
      /**
       * int64 task_id = 1;
       * @return The taskId.
       */
      @java.lang.Override
      public long getTaskId() {
        return taskId_;
      }
      /**
       * int64 task_id = 1;
       * @param value The taskId to set.
       * @return This builder for chaining.
       */
      public Builder setTaskId(long value) {
        
        taskId_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 task_id = 1;
       * @return This builder for chaining.
       */
      public Builder clearTaskId() {
        
        taskId_ = 0L;
        onChanged();
        return this;
      }

      private long startOffset_ ;
      /**
       * int64 start_offset = 2;
       * @return The startOffset.
       */
      @java.lang.Override
      public long getStartOffset() {
        return startOffset_;
      }
      /**
       * int64 start_offset = 2;
       * @param value The startOffset to set.
       * @return This builder for chaining.
       */
      public Builder setStartOffset(long value) {
        
        startOffset_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 start_offset = 2;
       * @return This builder for chaining.
       */
      public Builder clearStartOffset() {
        
        startOffset_ = 0L;
        onChanged();
        return this;
      }

      private long endOffset_ ;
      /**
       * int64 end_offset = 3;
       * @return The endOffset.
       */
      @java.lang.Override
      public long getEndOffset() {
        return endOffset_;
      }
      /**
       * int64 end_offset = 3;
       * @param value The endOffset to set.
       * @return This builder for chaining.
       */
      public Builder setEndOffset(long value) {
        
        endOffset_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 end_offset = 3;
       * @return This builder for chaining.
       */
      public Builder clearEndOffset() {
        
        endOffset_ = 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.FileSplitMeta.Offset)
    }

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

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

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

  }

  public static final int SPLIT_FILE_FIELD_NUMBER = 3;
  private volatile java.lang.Object splitFile_;
  /**
   * string split_file = 3;
   * @return The splitFile.
   */
  @java.lang.Override
  public java.lang.String getSplitFile() {
    java.lang.Object ref = splitFile_;
    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();
      splitFile_ = s;
      return s;
    }
  }
  /**
   * string split_file = 3;
   * @return The bytes for splitFile.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSplitFileBytes() {
    java.lang.Object ref = splitFile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      splitFile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OFFSET_FIELD_NUMBER = 4;
  private java.util.List offset_;
  /**
   * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
   */
  @java.lang.Override
  public java.util.List getOffsetList() {
    return offset_;
  }
  /**
   * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
   */
  @java.lang.Override
  public java.util.List 
      getOffsetOrBuilderList() {
    return offset_;
  }
  /**
   * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
   */
  @java.lang.Override
  public int getOffsetCount() {
    return offset_.size();
  }
  /**
   * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
   */
  @java.lang.Override
  public cz.proto.FileSplitMeta.Offset getOffset(int index) {
    return offset_.get(index);
  }
  /**
   * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
   */
  @java.lang.Override
  public cz.proto.FileSplitMeta.OffsetOrBuilder getOffsetOrBuilder(
      int index) {
    return offset_.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 {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(splitFile_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, splitFile_);
    }
    for (int i = 0; i < offset_.size(); i++) {
      output.writeMessage(4, offset_.get(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(splitFile_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, splitFile_);
    }
    for (int i = 0; i < offset_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, offset_.get(i));
    }
    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.FileSplitMeta)) {
      return super.equals(obj);
    }
    cz.proto.FileSplitMeta other = (cz.proto.FileSplitMeta) obj;

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

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + SPLIT_FILE_FIELD_NUMBER;
    hash = (53 * hash) + getSplitFile().hashCode();
    if (getOffsetCount() > 0) {
      hash = (37 * hash) + OFFSET_FIELD_NUMBER;
      hash = (53 * hash) + getOffsetList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getOffsetFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      splitFile_ = "";

      if (offsetBuilder_ == null) {
        offset_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        offsetBuilder_.clear();
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public cz.proto.FileSplitMeta buildPartial() {
      cz.proto.FileSplitMeta result = new cz.proto.FileSplitMeta(this);
      int from_bitField0_ = bitField0_;
      result.splitFile_ = splitFile_;
      if (offsetBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          offset_ = java.util.Collections.unmodifiableList(offset_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.offset_ = offset_;
      } else {
        result.offset_ = offsetBuilder_.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.FileSplitMeta) {
        return mergeFrom((cz.proto.FileSplitMeta)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.FileSplitMeta other) {
      if (other == cz.proto.FileSplitMeta.getDefaultInstance()) return this;
      if (!other.getSplitFile().isEmpty()) {
        splitFile_ = other.splitFile_;
        onChanged();
      }
      if (offsetBuilder_ == null) {
        if (!other.offset_.isEmpty()) {
          if (offset_.isEmpty()) {
            offset_ = other.offset_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureOffsetIsMutable();
            offset_.addAll(other.offset_);
          }
          onChanged();
        }
      } else {
        if (!other.offset_.isEmpty()) {
          if (offsetBuilder_.isEmpty()) {
            offsetBuilder_.dispose();
            offsetBuilder_ = null;
            offset_ = other.offset_;
            bitField0_ = (bitField0_ & ~0x00000001);
            offsetBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getOffsetFieldBuilder() : null;
          } else {
            offsetBuilder_.addAllMessages(other.offset_);
          }
        }
      }
      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.FileSplitMeta parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.FileSplitMeta) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object splitFile_ = "";
    /**
     * string split_file = 3;
     * @return The splitFile.
     */
    public java.lang.String getSplitFile() {
      java.lang.Object ref = splitFile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        splitFile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string split_file = 3;
     * @return The bytes for splitFile.
     */
    public com.google.protobuf.ByteString
        getSplitFileBytes() {
      java.lang.Object ref = splitFile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        splitFile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string split_file = 3;
     * @param value The splitFile to set.
     * @return This builder for chaining.
     */
    public Builder setSplitFile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      splitFile_ = value;
      onChanged();
      return this;
    }
    /**
     * string split_file = 3;
     * @return This builder for chaining.
     */
    public Builder clearSplitFile() {
      
      splitFile_ = getDefaultInstance().getSplitFile();
      onChanged();
      return this;
    }
    /**
     * string split_file = 3;
     * @param value The bytes for splitFile to set.
     * @return This builder for chaining.
     */
    public Builder setSplitFileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      splitFile_ = value;
      onChanged();
      return this;
    }

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.FileSplitMeta.Offset, cz.proto.FileSplitMeta.Offset.Builder, cz.proto.FileSplitMeta.OffsetOrBuilder> offsetBuilder_;

    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public java.util.List getOffsetList() {
      if (offsetBuilder_ == null) {
        return java.util.Collections.unmodifiableList(offset_);
      } else {
        return offsetBuilder_.getMessageList();
      }
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public int getOffsetCount() {
      if (offsetBuilder_ == null) {
        return offset_.size();
      } else {
        return offsetBuilder_.getCount();
      }
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public cz.proto.FileSplitMeta.Offset getOffset(int index) {
      if (offsetBuilder_ == null) {
        return offset_.get(index);
      } else {
        return offsetBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public Builder setOffset(
        int index, cz.proto.FileSplitMeta.Offset value) {
      if (offsetBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOffsetIsMutable();
        offset_.set(index, value);
        onChanged();
      } else {
        offsetBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public Builder setOffset(
        int index, cz.proto.FileSplitMeta.Offset.Builder builderForValue) {
      if (offsetBuilder_ == null) {
        ensureOffsetIsMutable();
        offset_.set(index, builderForValue.build());
        onChanged();
      } else {
        offsetBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public Builder addOffset(cz.proto.FileSplitMeta.Offset value) {
      if (offsetBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOffsetIsMutable();
        offset_.add(value);
        onChanged();
      } else {
        offsetBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public Builder addOffset(
        int index, cz.proto.FileSplitMeta.Offset value) {
      if (offsetBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOffsetIsMutable();
        offset_.add(index, value);
        onChanged();
      } else {
        offsetBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public Builder addOffset(
        cz.proto.FileSplitMeta.Offset.Builder builderForValue) {
      if (offsetBuilder_ == null) {
        ensureOffsetIsMutable();
        offset_.add(builderForValue.build());
        onChanged();
      } else {
        offsetBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public Builder addOffset(
        int index, cz.proto.FileSplitMeta.Offset.Builder builderForValue) {
      if (offsetBuilder_ == null) {
        ensureOffsetIsMutable();
        offset_.add(index, builderForValue.build());
        onChanged();
      } else {
        offsetBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public Builder addAllOffset(
        java.lang.Iterable values) {
      if (offsetBuilder_ == null) {
        ensureOffsetIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, offset_);
        onChanged();
      } else {
        offsetBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public Builder clearOffset() {
      if (offsetBuilder_ == null) {
        offset_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        offsetBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public Builder removeOffset(int index) {
      if (offsetBuilder_ == null) {
        ensureOffsetIsMutable();
        offset_.remove(index);
        onChanged();
      } else {
        offsetBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public cz.proto.FileSplitMeta.Offset.Builder getOffsetBuilder(
        int index) {
      return getOffsetFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public cz.proto.FileSplitMeta.OffsetOrBuilder getOffsetOrBuilder(
        int index) {
      if (offsetBuilder_ == null) {
        return offset_.get(index);  } else {
        return offsetBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public java.util.List 
         getOffsetOrBuilderList() {
      if (offsetBuilder_ != null) {
        return offsetBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(offset_);
      }
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public cz.proto.FileSplitMeta.Offset.Builder addOffsetBuilder() {
      return getOffsetFieldBuilder().addBuilder(
          cz.proto.FileSplitMeta.Offset.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public cz.proto.FileSplitMeta.Offset.Builder addOffsetBuilder(
        int index) {
      return getOffsetFieldBuilder().addBuilder(
          index, cz.proto.FileSplitMeta.Offset.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.FileSplitMeta.Offset offset = 4;
     */
    public java.util.List 
         getOffsetBuilderList() {
      return getOffsetFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.FileSplitMeta.Offset, cz.proto.FileSplitMeta.Offset.Builder, cz.proto.FileSplitMeta.OffsetOrBuilder> 
        getOffsetFieldBuilder() {
      if (offsetBuilder_ == null) {
        offsetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            cz.proto.FileSplitMeta.Offset, cz.proto.FileSplitMeta.Offset.Builder, cz.proto.FileSplitMeta.OffsetOrBuilder>(
                offset_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        offset_ = null;
      }
      return offsetBuilder_;
    }
    @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.FileSplitMeta)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy