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

cz.proto.OutputSplit 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.OutputSplit}
 */
public final class OutputSplit extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:cz.proto.OutputSplit)
    OutputSplitOrBuilder {
private static final long serialVersionUID = 0L;
  // Use OutputSplit.newBuilder() to construct.
  private OutputSplit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private OutputSplit() {
    type_ = 0;
    operatorId_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private OutputSplit(
      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: {
            int rawValue = input.readEnum();

            type_ = rawValue;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            operatorId_ = s;
            break;
          }
          case 34: {
            cz.proto.FileOutputSplit.Builder subBuilder = null;
            if (splitCase_ == 4) {
              subBuilder = ((cz.proto.FileOutputSplit) split_).toBuilder();
            }
            split_ =
                input.readMessage(cz.proto.FileOutputSplit.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((cz.proto.FileOutputSplit) split_);
              split_ = subBuilder.buildPartial();
            }
            splitCase_ = 4;
            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_OutputSplit_descriptor;
  }

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

  private int splitCase_ = 0;
  private java.lang.Object split_;
  public enum SplitCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    FILE(4),
    SPLIT_NOT_SET(0);
    private final int value;
    private SplitCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static SplitCase valueOf(int value) {
      return forNumber(value);
    }

    public static SplitCase forNumber(int value) {
      switch (value) {
        case 4: return FILE;
        case 0: return SPLIT_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public SplitCase
  getSplitCase() {
    return SplitCase.forNumber(
        splitCase_);
  }

  public static final int TYPE_FIELD_NUMBER = 1;
  private int type_;
  /**
   * .cz.proto.OutputSplitType.Type type = 1;
   * @return The enum numeric value on the wire for type.
   */
  @java.lang.Override public int getTypeValue() {
    return type_;
  }
  /**
   * .cz.proto.OutputSplitType.Type type = 1;
   * @return The type.
   */
  @java.lang.Override public cz.proto.OutputSplitType.Type getType() {
    @SuppressWarnings("deprecation")
    cz.proto.OutputSplitType.Type result = cz.proto.OutputSplitType.Type.valueOf(type_);
    return result == null ? cz.proto.OutputSplitType.Type.UNRECOGNIZED : result;
  }

  public static final int OPERATORID_FIELD_NUMBER = 2;
  private volatile java.lang.Object operatorId_;
  /**
   * string operatorId = 2;
   * @return The operatorId.
   */
  @java.lang.Override
  public java.lang.String getOperatorId() {
    java.lang.Object ref = operatorId_;
    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();
      operatorId_ = s;
      return s;
    }
  }
  /**
   * string operatorId = 2;
   * @return The bytes for operatorId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOperatorIdBytes() {
    java.lang.Object ref = operatorId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      operatorId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FILE_FIELD_NUMBER = 4;
  /**
   * .cz.proto.FileOutputSplit file = 4;
   * @return Whether the file field is set.
   */
  @java.lang.Override
  public boolean hasFile() {
    return splitCase_ == 4;
  }
  /**
   * .cz.proto.FileOutputSplit file = 4;
   * @return The file.
   */
  @java.lang.Override
  public cz.proto.FileOutputSplit getFile() {
    if (splitCase_ == 4) {
       return (cz.proto.FileOutputSplit) split_;
    }
    return cz.proto.FileOutputSplit.getDefaultInstance();
  }
  /**
   * .cz.proto.FileOutputSplit file = 4;
   */
  @java.lang.Override
  public cz.proto.FileOutputSplitOrBuilder getFileOrBuilder() {
    if (splitCase_ == 4) {
       return (cz.proto.FileOutputSplit) split_;
    }
    return cz.proto.FileOutputSplit.getDefaultInstance();
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (type_ != cz.proto.OutputSplitType.Type.FILE.getNumber()) {
      output.writeEnum(1, type_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operatorId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operatorId_);
    }
    if (splitCase_ == 4) {
      output.writeMessage(4, (cz.proto.FileOutputSplit) split_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (type_ != cz.proto.OutputSplitType.Type.FILE.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(1, type_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operatorId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operatorId_);
    }
    if (splitCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (cz.proto.FileOutputSplit) split_);
    }
    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.OutputSplit)) {
      return super.equals(obj);
    }
    cz.proto.OutputSplit other = (cz.proto.OutputSplit) obj;

    if (type_ != other.type_) return false;
    if (!getOperatorId()
        .equals(other.getOperatorId())) return false;
    if (!getSplitCase().equals(other.getSplitCase())) return false;
    switch (splitCase_) {
      case 4:
        if (!getFile()
            .equals(other.getFile())) return false;
        break;
      case 0:
      default:
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + TYPE_FIELD_NUMBER;
    hash = (53 * hash) + type_;
    hash = (37 * hash) + OPERATORID_FIELD_NUMBER;
    hash = (53 * hash) + getOperatorId().hashCode();
    switch (splitCase_) {
      case 4:
        hash = (37 * hash) + FILE_FIELD_NUMBER;
        hash = (53 * hash) + getFile().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using cz.proto.OutputSplit.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();
      type_ = 0;

      operatorId_ = "";

      splitCase_ = 0;
      split_ = null;
      return this;
    }

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

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

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

    @java.lang.Override
    public cz.proto.OutputSplit buildPartial() {
      cz.proto.OutputSplit result = new cz.proto.OutputSplit(this);
      result.type_ = type_;
      result.operatorId_ = operatorId_;
      if (splitCase_ == 4) {
        if (fileBuilder_ == null) {
          result.split_ = split_;
        } else {
          result.split_ = fileBuilder_.build();
        }
      }
      result.splitCase_ = splitCase_;
      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.OutputSplit) {
        return mergeFrom((cz.proto.OutputSplit)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.OutputSplit other) {
      if (other == cz.proto.OutputSplit.getDefaultInstance()) return this;
      if (other.type_ != 0) {
        setTypeValue(other.getTypeValue());
      }
      if (!other.getOperatorId().isEmpty()) {
        operatorId_ = other.operatorId_;
        onChanged();
      }
      switch (other.getSplitCase()) {
        case FILE: {
          mergeFile(other.getFile());
          break;
        }
        case SPLIT_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      cz.proto.OutputSplit parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.OutputSplit) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int splitCase_ = 0;
    private java.lang.Object split_;
    public SplitCase
        getSplitCase() {
      return SplitCase.forNumber(
          splitCase_);
    }

    public Builder clearSplit() {
      splitCase_ = 0;
      split_ = null;
      onChanged();
      return this;
    }


    private int type_ = 0;
    /**
     * .cz.proto.OutputSplitType.Type type = 1;
     * @return The enum numeric value on the wire for type.
     */
    @java.lang.Override public int getTypeValue() {
      return type_;
    }
    /**
     * .cz.proto.OutputSplitType.Type type = 1;
     * @param value The enum numeric value on the wire for type to set.
     * @return This builder for chaining.
     */
    public Builder setTypeValue(int value) {
      
      type_ = value;
      onChanged();
      return this;
    }
    /**
     * .cz.proto.OutputSplitType.Type type = 1;
     * @return The type.
     */
    @java.lang.Override
    public cz.proto.OutputSplitType.Type getType() {
      @SuppressWarnings("deprecation")
      cz.proto.OutputSplitType.Type result = cz.proto.OutputSplitType.Type.valueOf(type_);
      return result == null ? cz.proto.OutputSplitType.Type.UNRECOGNIZED : result;
    }
    /**
     * .cz.proto.OutputSplitType.Type type = 1;
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(cz.proto.OutputSplitType.Type value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      type_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .cz.proto.OutputSplitType.Type type = 1;
     * @return This builder for chaining.
     */
    public Builder clearType() {
      
      type_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object operatorId_ = "";
    /**
     * string operatorId = 2;
     * @return The operatorId.
     */
    public java.lang.String getOperatorId() {
      java.lang.Object ref = operatorId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        operatorId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string operatorId = 2;
     * @return The bytes for operatorId.
     */
    public com.google.protobuf.ByteString
        getOperatorIdBytes() {
      java.lang.Object ref = operatorId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        operatorId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string operatorId = 2;
     * @param value The operatorId to set.
     * @return This builder for chaining.
     */
    public Builder setOperatorId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      operatorId_ = value;
      onChanged();
      return this;
    }
    /**
     * string operatorId = 2;
     * @return This builder for chaining.
     */
    public Builder clearOperatorId() {
      
      operatorId_ = getDefaultInstance().getOperatorId();
      onChanged();
      return this;
    }
    /**
     * string operatorId = 2;
     * @param value The bytes for operatorId to set.
     * @return This builder for chaining.
     */
    public Builder setOperatorIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      operatorId_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.FileOutputSplit, cz.proto.FileOutputSplit.Builder, cz.proto.FileOutputSplitOrBuilder> fileBuilder_;
    /**
     * .cz.proto.FileOutputSplit file = 4;
     * @return Whether the file field is set.
     */
    @java.lang.Override
    public boolean hasFile() {
      return splitCase_ == 4;
    }
    /**
     * .cz.proto.FileOutputSplit file = 4;
     * @return The file.
     */
    @java.lang.Override
    public cz.proto.FileOutputSplit getFile() {
      if (fileBuilder_ == null) {
        if (splitCase_ == 4) {
          return (cz.proto.FileOutputSplit) split_;
        }
        return cz.proto.FileOutputSplit.getDefaultInstance();
      } else {
        if (splitCase_ == 4) {
          return fileBuilder_.getMessage();
        }
        return cz.proto.FileOutputSplit.getDefaultInstance();
      }
    }
    /**
     * .cz.proto.FileOutputSplit file = 4;
     */
    public Builder setFile(cz.proto.FileOutputSplit value) {
      if (fileBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        split_ = value;
        onChanged();
      } else {
        fileBuilder_.setMessage(value);
      }
      splitCase_ = 4;
      return this;
    }
    /**
     * .cz.proto.FileOutputSplit file = 4;
     */
    public Builder setFile(
        cz.proto.FileOutputSplit.Builder builderForValue) {
      if (fileBuilder_ == null) {
        split_ = builderForValue.build();
        onChanged();
      } else {
        fileBuilder_.setMessage(builderForValue.build());
      }
      splitCase_ = 4;
      return this;
    }
    /**
     * .cz.proto.FileOutputSplit file = 4;
     */
    public Builder mergeFile(cz.proto.FileOutputSplit value) {
      if (fileBuilder_ == null) {
        if (splitCase_ == 4 &&
            split_ != cz.proto.FileOutputSplit.getDefaultInstance()) {
          split_ = cz.proto.FileOutputSplit.newBuilder((cz.proto.FileOutputSplit) split_)
              .mergeFrom(value).buildPartial();
        } else {
          split_ = value;
        }
        onChanged();
      } else {
        if (splitCase_ == 4) {
          fileBuilder_.mergeFrom(value);
        }
        fileBuilder_.setMessage(value);
      }
      splitCase_ = 4;
      return this;
    }
    /**
     * .cz.proto.FileOutputSplit file = 4;
     */
    public Builder clearFile() {
      if (fileBuilder_ == null) {
        if (splitCase_ == 4) {
          splitCase_ = 0;
          split_ = null;
          onChanged();
        }
      } else {
        if (splitCase_ == 4) {
          splitCase_ = 0;
          split_ = null;
        }
        fileBuilder_.clear();
      }
      return this;
    }
    /**
     * .cz.proto.FileOutputSplit file = 4;
     */
    public cz.proto.FileOutputSplit.Builder getFileBuilder() {
      return getFileFieldBuilder().getBuilder();
    }
    /**
     * .cz.proto.FileOutputSplit file = 4;
     */
    @java.lang.Override
    public cz.proto.FileOutputSplitOrBuilder getFileOrBuilder() {
      if ((splitCase_ == 4) && (fileBuilder_ != null)) {
        return fileBuilder_.getMessageOrBuilder();
      } else {
        if (splitCase_ == 4) {
          return (cz.proto.FileOutputSplit) split_;
        }
        return cz.proto.FileOutputSplit.getDefaultInstance();
      }
    }
    /**
     * .cz.proto.FileOutputSplit file = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.FileOutputSplit, cz.proto.FileOutputSplit.Builder, cz.proto.FileOutputSplitOrBuilder> 
        getFileFieldBuilder() {
      if (fileBuilder_ == null) {
        if (!(splitCase_ == 4)) {
          split_ = cz.proto.FileOutputSplit.getDefaultInstance();
        }
        fileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            cz.proto.FileOutputSplit, cz.proto.FileOutputSplit.Builder, cz.proto.FileOutputSplitOrBuilder>(
                (cz.proto.FileOutputSplit) split_,
                getParentForChildren(),
                isClean());
        split_ = null;
      }
      splitCase_ = 4;
      onChanged();;
      return fileBuilder_;
    }
    @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.OutputSplit)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy