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

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

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

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

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

            operatorId_ = s;
            break;
          }
          case 26: {
            cz.proto.FileSplitMeta.Builder subBuilder = null;
            if (contentCase_ == 3) {
              subBuilder = ((cz.proto.FileSplitMeta) content_).toBuilder();
            }
            content_ =
                input.readMessage(cz.proto.FileSplitMeta.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((cz.proto.FileSplitMeta) content_);
              content_ = subBuilder.buildPartial();
            }
            contentCase_ = 3;
            break;
          }
          case 34: {
            cz.proto.EmbeddedSplitMeta.Builder subBuilder = null;
            if (contentCase_ == 4) {
              subBuilder = ((cz.proto.EmbeddedSplitMeta) content_).toBuilder();
            }
            content_ =
                input.readMessage(cz.proto.EmbeddedSplitMeta.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((cz.proto.EmbeddedSplitMeta) content_);
              content_ = subBuilder.buildPartial();
            }
            contentCase_ = 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_SplitMeta_descriptor;
  }

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

  private int contentCase_ = 0;
  private java.lang.Object content_;
  public enum ContentCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    FILE(3),
    EMBEDDED(4),
    CONTENT_NOT_SET(0);
    private final int value;
    private ContentCase(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 ContentCase valueOf(int value) {
      return forNumber(value);
    }

    public static ContentCase forNumber(int value) {
      switch (value) {
        case 3: return FILE;
        case 4: return EMBEDDED;
        case 0: return CONTENT_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ContentCase
  getContentCase() {
    return ContentCase.forNumber(
        contentCase_);
  }

  public static final int STAGE_ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object stageId_;
  /**
   * string stage_id = 1;
   * @return The stageId.
   */
  @java.lang.Override
  public java.lang.String getStageId() {
    java.lang.Object ref = stageId_;
    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();
      stageId_ = s;
      return s;
    }
  }
  /**
   * string stage_id = 1;
   * @return The bytes for stageId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStageIdBytes() {
    java.lang.Object ref = stageId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      stageId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OPERATOR_ID_FIELD_NUMBER = 2;
  private volatile java.lang.Object operatorId_;
  /**
   * string operator_id = 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 operator_id = 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 = 3;
  /**
   * .cz.proto.FileSplitMeta file = 3;
   * @return Whether the file field is set.
   */
  @java.lang.Override
  public boolean hasFile() {
    return contentCase_ == 3;
  }
  /**
   * .cz.proto.FileSplitMeta file = 3;
   * @return The file.
   */
  @java.lang.Override
  public cz.proto.FileSplitMeta getFile() {
    if (contentCase_ == 3) {
       return (cz.proto.FileSplitMeta) content_;
    }
    return cz.proto.FileSplitMeta.getDefaultInstance();
  }
  /**
   * .cz.proto.FileSplitMeta file = 3;
   */
  @java.lang.Override
  public cz.proto.FileSplitMetaOrBuilder getFileOrBuilder() {
    if (contentCase_ == 3) {
       return (cz.proto.FileSplitMeta) content_;
    }
    return cz.proto.FileSplitMeta.getDefaultInstance();
  }

  public static final int EMBEDDED_FIELD_NUMBER = 4;
  /**
   * .cz.proto.EmbeddedSplitMeta embedded = 4;
   * @return Whether the embedded field is set.
   */
  @java.lang.Override
  public boolean hasEmbedded() {
    return contentCase_ == 4;
  }
  /**
   * .cz.proto.EmbeddedSplitMeta embedded = 4;
   * @return The embedded.
   */
  @java.lang.Override
  public cz.proto.EmbeddedSplitMeta getEmbedded() {
    if (contentCase_ == 4) {
       return (cz.proto.EmbeddedSplitMeta) content_;
    }
    return cz.proto.EmbeddedSplitMeta.getDefaultInstance();
  }
  /**
   * .cz.proto.EmbeddedSplitMeta embedded = 4;
   */
  @java.lang.Override
  public cz.proto.EmbeddedSplitMetaOrBuilder getEmbeddedOrBuilder() {
    if (contentCase_ == 4) {
       return (cz.proto.EmbeddedSplitMeta) content_;
    }
    return cz.proto.EmbeddedSplitMeta.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stageId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stageId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operatorId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operatorId_);
    }
    if (contentCase_ == 3) {
      output.writeMessage(3, (cz.proto.FileSplitMeta) content_);
    }
    if (contentCase_ == 4) {
      output.writeMessage(4, (cz.proto.EmbeddedSplitMeta) content_);
    }
    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(stageId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stageId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operatorId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operatorId_);
    }
    if (contentCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (cz.proto.FileSplitMeta) content_);
    }
    if (contentCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (cz.proto.EmbeddedSplitMeta) content_);
    }
    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.SplitMeta)) {
      return super.equals(obj);
    }
    cz.proto.SplitMeta other = (cz.proto.SplitMeta) obj;

    if (!getStageId()
        .equals(other.getStageId())) return false;
    if (!getOperatorId()
        .equals(other.getOperatorId())) return false;
    if (!getContentCase().equals(other.getContentCase())) return false;
    switch (contentCase_) {
      case 3:
        if (!getFile()
            .equals(other.getFile())) return false;
        break;
      case 4:
        if (!getEmbedded()
            .equals(other.getEmbedded())) 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) + STAGE_ID_FIELD_NUMBER;
    hash = (53 * hash) + getStageId().hashCode();
    hash = (37 * hash) + OPERATOR_ID_FIELD_NUMBER;
    hash = (53 * hash) + getOperatorId().hashCode();
    switch (contentCase_) {
      case 3:
        hash = (37 * hash) + FILE_FIELD_NUMBER;
        hash = (53 * hash) + getFile().hashCode();
        break;
      case 4:
        hash = (37 * hash) + EMBEDDED_FIELD_NUMBER;
        hash = (53 * hash) + getEmbedded().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using cz.proto.SplitMeta.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();
      stageId_ = "";

      operatorId_ = "";

      contentCase_ = 0;
      content_ = null;
      return this;
    }

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

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

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

    @java.lang.Override
    public cz.proto.SplitMeta buildPartial() {
      cz.proto.SplitMeta result = new cz.proto.SplitMeta(this);
      result.stageId_ = stageId_;
      result.operatorId_ = operatorId_;
      if (contentCase_ == 3) {
        if (fileBuilder_ == null) {
          result.content_ = content_;
        } else {
          result.content_ = fileBuilder_.build();
        }
      }
      if (contentCase_ == 4) {
        if (embeddedBuilder_ == null) {
          result.content_ = content_;
        } else {
          result.content_ = embeddedBuilder_.build();
        }
      }
      result.contentCase_ = contentCase_;
      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.SplitMeta) {
        return mergeFrom((cz.proto.SplitMeta)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.SplitMeta other) {
      if (other == cz.proto.SplitMeta.getDefaultInstance()) return this;
      if (!other.getStageId().isEmpty()) {
        stageId_ = other.stageId_;
        onChanged();
      }
      if (!other.getOperatorId().isEmpty()) {
        operatorId_ = other.operatorId_;
        onChanged();
      }
      switch (other.getContentCase()) {
        case FILE: {
          mergeFile(other.getFile());
          break;
        }
        case EMBEDDED: {
          mergeEmbedded(other.getEmbedded());
          break;
        }
        case CONTENT_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.SplitMeta parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.SplitMeta) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int contentCase_ = 0;
    private java.lang.Object content_;
    public ContentCase
        getContentCase() {
      return ContentCase.forNumber(
          contentCase_);
    }

    public Builder clearContent() {
      contentCase_ = 0;
      content_ = null;
      onChanged();
      return this;
    }


    private java.lang.Object stageId_ = "";
    /**
     * string stage_id = 1;
     * @return The stageId.
     */
    public java.lang.String getStageId() {
      java.lang.Object ref = stageId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        stageId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string stage_id = 1;
     * @return The bytes for stageId.
     */
    public com.google.protobuf.ByteString
        getStageIdBytes() {
      java.lang.Object ref = stageId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        stageId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string stage_id = 1;
     * @param value The stageId to set.
     * @return This builder for chaining.
     */
    public Builder setStageId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      stageId_ = value;
      onChanged();
      return this;
    }
    /**
     * string stage_id = 1;
     * @return This builder for chaining.
     */
    public Builder clearStageId() {
      
      stageId_ = getDefaultInstance().getStageId();
      onChanged();
      return this;
    }
    /**
     * string stage_id = 1;
     * @param value The bytes for stageId to set.
     * @return This builder for chaining.
     */
    public Builder setStageIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      stageId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object operatorId_ = "";
    /**
     * string operator_id = 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 operator_id = 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 operator_id = 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 operator_id = 2;
     * @return This builder for chaining.
     */
    public Builder clearOperatorId() {
      
      operatorId_ = getDefaultInstance().getOperatorId();
      onChanged();
      return this;
    }
    /**
     * string operator_id = 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.FileSplitMeta, cz.proto.FileSplitMeta.Builder, cz.proto.FileSplitMetaOrBuilder> fileBuilder_;
    /**
     * .cz.proto.FileSplitMeta file = 3;
     * @return Whether the file field is set.
     */
    @java.lang.Override
    public boolean hasFile() {
      return contentCase_ == 3;
    }
    /**
     * .cz.proto.FileSplitMeta file = 3;
     * @return The file.
     */
    @java.lang.Override
    public cz.proto.FileSplitMeta getFile() {
      if (fileBuilder_ == null) {
        if (contentCase_ == 3) {
          return (cz.proto.FileSplitMeta) content_;
        }
        return cz.proto.FileSplitMeta.getDefaultInstance();
      } else {
        if (contentCase_ == 3) {
          return fileBuilder_.getMessage();
        }
        return cz.proto.FileSplitMeta.getDefaultInstance();
      }
    }
    /**
     * .cz.proto.FileSplitMeta file = 3;
     */
    public Builder setFile(cz.proto.FileSplitMeta value) {
      if (fileBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        content_ = value;
        onChanged();
      } else {
        fileBuilder_.setMessage(value);
      }
      contentCase_ = 3;
      return this;
    }
    /**
     * .cz.proto.FileSplitMeta file = 3;
     */
    public Builder setFile(
        cz.proto.FileSplitMeta.Builder builderForValue) {
      if (fileBuilder_ == null) {
        content_ = builderForValue.build();
        onChanged();
      } else {
        fileBuilder_.setMessage(builderForValue.build());
      }
      contentCase_ = 3;
      return this;
    }
    /**
     * .cz.proto.FileSplitMeta file = 3;
     */
    public Builder mergeFile(cz.proto.FileSplitMeta value) {
      if (fileBuilder_ == null) {
        if (contentCase_ == 3 &&
            content_ != cz.proto.FileSplitMeta.getDefaultInstance()) {
          content_ = cz.proto.FileSplitMeta.newBuilder((cz.proto.FileSplitMeta) content_)
              .mergeFrom(value).buildPartial();
        } else {
          content_ = value;
        }
        onChanged();
      } else {
        if (contentCase_ == 3) {
          fileBuilder_.mergeFrom(value);
        }
        fileBuilder_.setMessage(value);
      }
      contentCase_ = 3;
      return this;
    }
    /**
     * .cz.proto.FileSplitMeta file = 3;
     */
    public Builder clearFile() {
      if (fileBuilder_ == null) {
        if (contentCase_ == 3) {
          contentCase_ = 0;
          content_ = null;
          onChanged();
        }
      } else {
        if (contentCase_ == 3) {
          contentCase_ = 0;
          content_ = null;
        }
        fileBuilder_.clear();
      }
      return this;
    }
    /**
     * .cz.proto.FileSplitMeta file = 3;
     */
    public cz.proto.FileSplitMeta.Builder getFileBuilder() {
      return getFileFieldBuilder().getBuilder();
    }
    /**
     * .cz.proto.FileSplitMeta file = 3;
     */
    @java.lang.Override
    public cz.proto.FileSplitMetaOrBuilder getFileOrBuilder() {
      if ((contentCase_ == 3) && (fileBuilder_ != null)) {
        return fileBuilder_.getMessageOrBuilder();
      } else {
        if (contentCase_ == 3) {
          return (cz.proto.FileSplitMeta) content_;
        }
        return cz.proto.FileSplitMeta.getDefaultInstance();
      }
    }
    /**
     * .cz.proto.FileSplitMeta file = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.FileSplitMeta, cz.proto.FileSplitMeta.Builder, cz.proto.FileSplitMetaOrBuilder> 
        getFileFieldBuilder() {
      if (fileBuilder_ == null) {
        if (!(contentCase_ == 3)) {
          content_ = cz.proto.FileSplitMeta.getDefaultInstance();
        }
        fileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            cz.proto.FileSplitMeta, cz.proto.FileSplitMeta.Builder, cz.proto.FileSplitMetaOrBuilder>(
                (cz.proto.FileSplitMeta) content_,
                getParentForChildren(),
                isClean());
        content_ = null;
      }
      contentCase_ = 3;
      onChanged();;
      return fileBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.EmbeddedSplitMeta, cz.proto.EmbeddedSplitMeta.Builder, cz.proto.EmbeddedSplitMetaOrBuilder> embeddedBuilder_;
    /**
     * .cz.proto.EmbeddedSplitMeta embedded = 4;
     * @return Whether the embedded field is set.
     */
    @java.lang.Override
    public boolean hasEmbedded() {
      return contentCase_ == 4;
    }
    /**
     * .cz.proto.EmbeddedSplitMeta embedded = 4;
     * @return The embedded.
     */
    @java.lang.Override
    public cz.proto.EmbeddedSplitMeta getEmbedded() {
      if (embeddedBuilder_ == null) {
        if (contentCase_ == 4) {
          return (cz.proto.EmbeddedSplitMeta) content_;
        }
        return cz.proto.EmbeddedSplitMeta.getDefaultInstance();
      } else {
        if (contentCase_ == 4) {
          return embeddedBuilder_.getMessage();
        }
        return cz.proto.EmbeddedSplitMeta.getDefaultInstance();
      }
    }
    /**
     * .cz.proto.EmbeddedSplitMeta embedded = 4;
     */
    public Builder setEmbedded(cz.proto.EmbeddedSplitMeta value) {
      if (embeddedBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        content_ = value;
        onChanged();
      } else {
        embeddedBuilder_.setMessage(value);
      }
      contentCase_ = 4;
      return this;
    }
    /**
     * .cz.proto.EmbeddedSplitMeta embedded = 4;
     */
    public Builder setEmbedded(
        cz.proto.EmbeddedSplitMeta.Builder builderForValue) {
      if (embeddedBuilder_ == null) {
        content_ = builderForValue.build();
        onChanged();
      } else {
        embeddedBuilder_.setMessage(builderForValue.build());
      }
      contentCase_ = 4;
      return this;
    }
    /**
     * .cz.proto.EmbeddedSplitMeta embedded = 4;
     */
    public Builder mergeEmbedded(cz.proto.EmbeddedSplitMeta value) {
      if (embeddedBuilder_ == null) {
        if (contentCase_ == 4 &&
            content_ != cz.proto.EmbeddedSplitMeta.getDefaultInstance()) {
          content_ = cz.proto.EmbeddedSplitMeta.newBuilder((cz.proto.EmbeddedSplitMeta) content_)
              .mergeFrom(value).buildPartial();
        } else {
          content_ = value;
        }
        onChanged();
      } else {
        if (contentCase_ == 4) {
          embeddedBuilder_.mergeFrom(value);
        }
        embeddedBuilder_.setMessage(value);
      }
      contentCase_ = 4;
      return this;
    }
    /**
     * .cz.proto.EmbeddedSplitMeta embedded = 4;
     */
    public Builder clearEmbedded() {
      if (embeddedBuilder_ == null) {
        if (contentCase_ == 4) {
          contentCase_ = 0;
          content_ = null;
          onChanged();
        }
      } else {
        if (contentCase_ == 4) {
          contentCase_ = 0;
          content_ = null;
        }
        embeddedBuilder_.clear();
      }
      return this;
    }
    /**
     * .cz.proto.EmbeddedSplitMeta embedded = 4;
     */
    public cz.proto.EmbeddedSplitMeta.Builder getEmbeddedBuilder() {
      return getEmbeddedFieldBuilder().getBuilder();
    }
    /**
     * .cz.proto.EmbeddedSplitMeta embedded = 4;
     */
    @java.lang.Override
    public cz.proto.EmbeddedSplitMetaOrBuilder getEmbeddedOrBuilder() {
      if ((contentCase_ == 4) && (embeddedBuilder_ != null)) {
        return embeddedBuilder_.getMessageOrBuilder();
      } else {
        if (contentCase_ == 4) {
          return (cz.proto.EmbeddedSplitMeta) content_;
        }
        return cz.proto.EmbeddedSplitMeta.getDefaultInstance();
      }
    }
    /**
     * .cz.proto.EmbeddedSplitMeta embedded = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.EmbeddedSplitMeta, cz.proto.EmbeddedSplitMeta.Builder, cz.proto.EmbeddedSplitMetaOrBuilder> 
        getEmbeddedFieldBuilder() {
      if (embeddedBuilder_ == null) {
        if (!(contentCase_ == 4)) {
          content_ = cz.proto.EmbeddedSplitMeta.getDefaultInstance();
        }
        embeddedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            cz.proto.EmbeddedSplitMeta, cz.proto.EmbeddedSplitMeta.Builder, cz.proto.EmbeddedSplitMetaOrBuilder>(
                (cz.proto.EmbeddedSplitMeta) content_,
                getParentForChildren(),
                isClean());
        content_ = null;
      }
      contentCase_ = 4;
      onChanged();;
      return embeddedBuilder_;
    }
    @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.SplitMeta)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy