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

com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: workspace.proto

package com.dimajix.flowman.kernel.proto.workspace;

/**
 * Protobuf type {@code com.dimajix.flowman.kernel.workspace.UploadFilesRequest}
 */
public final class UploadFilesRequest extends
    com.dimajix.shaded.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.dimajix.flowman.kernel.workspace.UploadFilesRequest)
    UploadFilesRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use UploadFilesRequest.newBuilder() to construct.
  private UploadFilesRequest(com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private UploadFilesRequest() {
    workspaceId_ = "";
    fileName_ = "";
    fileType_ = 0;
    fileContent_ = com.dimajix.shaded.protobuf.ByteString.EMPTY;
  }

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

  public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.dimajix.flowman.kernel.proto.workspace.WorkspaceProto.internal_static_com_dimajix_flowman_kernel_workspace_UploadFilesRequest_descriptor;
  }

  @java.lang.Override
  protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.dimajix.flowman.kernel.proto.workspace.WorkspaceProto.internal_static_com_dimajix_flowman_kernel_workspace_UploadFilesRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest.class, com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest.Builder.class);
  }

  private int bitField0_;
  public static final int WORKSPACEID_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object workspaceId_ = "";
  /**
   * string workspaceId = 1;
   * @return The workspaceId.
   */
  @java.lang.Override
  public java.lang.String getWorkspaceId() {
    java.lang.Object ref = workspaceId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.dimajix.shaded.protobuf.ByteString bs = 
          (com.dimajix.shaded.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      workspaceId_ = s;
      return s;
    }
  }
  /**
   * string workspaceId = 1;
   * @return The bytes for workspaceId.
   */
  @java.lang.Override
  public com.dimajix.shaded.protobuf.ByteString
      getWorkspaceIdBytes() {
    java.lang.Object ref = workspaceId_;
    if (ref instanceof java.lang.String) {
      com.dimajix.shaded.protobuf.ByteString b = 
          com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      workspaceId_ = b;
      return b;
    } else {
      return (com.dimajix.shaded.protobuf.ByteString) ref;
    }
  }

  public static final int FILENAME_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private volatile java.lang.Object fileName_ = "";
  /**
   * string fileName = 2;
   * @return The fileName.
   */
  @java.lang.Override
  public java.lang.String getFileName() {
    java.lang.Object ref = fileName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.dimajix.shaded.protobuf.ByteString bs = 
          (com.dimajix.shaded.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      fileName_ = s;
      return s;
    }
  }
  /**
   * string fileName = 2;
   * @return The bytes for fileName.
   */
  @java.lang.Override
  public com.dimajix.shaded.protobuf.ByteString
      getFileNameBytes() {
    java.lang.Object ref = fileName_;
    if (ref instanceof java.lang.String) {
      com.dimajix.shaded.protobuf.ByteString b = 
          com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      fileName_ = b;
      return b;
    } else {
      return (com.dimajix.shaded.protobuf.ByteString) ref;
    }
  }

  public static final int FILETYPE_FIELD_NUMBER = 3;
  private int fileType_ = 0;
  /**
   * .com.dimajix.flowman.kernel.FileType fileType = 3;
   * @return The enum numeric value on the wire for fileType.
   */
  @java.lang.Override public int getFileTypeValue() {
    return fileType_;
  }
  /**
   * .com.dimajix.flowman.kernel.FileType fileType = 3;
   * @return The fileType.
   */
  @java.lang.Override public com.dimajix.flowman.kernel.proto.FileType getFileType() {
    com.dimajix.flowman.kernel.proto.FileType result = com.dimajix.flowman.kernel.proto.FileType.forNumber(fileType_);
    return result == null ? com.dimajix.flowman.kernel.proto.FileType.UNRECOGNIZED : result;
  }

  public static final int FILECONTENT_FIELD_NUMBER = 4;
  private com.dimajix.shaded.protobuf.ByteString fileContent_ = com.dimajix.shaded.protobuf.ByteString.EMPTY;
  /**
   * optional bytes fileContent = 4;
   * @return Whether the fileContent field is set.
   */
  @java.lang.Override
  public boolean hasFileContent() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional bytes fileContent = 4;
   * @return The fileContent.
   */
  @java.lang.Override
  public com.dimajix.shaded.protobuf.ByteString getFileContent() {
    return fileContent_;
  }

  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.dimajix.shaded.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(workspaceId_)) {
      com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 1, workspaceId_);
    }
    if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) {
      com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 2, fileName_);
    }
    if (fileType_ != com.dimajix.flowman.kernel.proto.FileType.FILE.getNumber()) {
      output.writeEnum(3, fileType_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeBytes(4, fileContent_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(workspaceId_)) {
      size += com.dimajix.shaded.protobuf.GeneratedMessageV3.computeStringSize(1, workspaceId_);
    }
    if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) {
      size += com.dimajix.shaded.protobuf.GeneratedMessageV3.computeStringSize(2, fileName_);
    }
    if (fileType_ != com.dimajix.flowman.kernel.proto.FileType.FILE.getNumber()) {
      size += com.dimajix.shaded.protobuf.CodedOutputStream
        .computeEnumSize(3, fileType_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.dimajix.shaded.protobuf.CodedOutputStream
        .computeBytesSize(4, fileContent_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest)) {
      return super.equals(obj);
    }
    com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest other = (com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest) obj;

    if (!getWorkspaceId()
        .equals(other.getWorkspaceId())) return false;
    if (!getFileName()
        .equals(other.getFileName())) return false;
    if (fileType_ != other.fileType_) return false;
    if (hasFileContent() != other.hasFileContent()) return false;
    if (hasFileContent()) {
      if (!getFileContent()
          .equals(other.getFileContent())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) 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) + WORKSPACEID_FIELD_NUMBER;
    hash = (53 * hash) + getWorkspaceId().hashCode();
    hash = (37 * hash) + FILENAME_FIELD_NUMBER;
    hash = (53 * hash) + getFileName().hashCode();
    hash = (37 * hash) + FILETYPE_FIELD_NUMBER;
    hash = (53 * hash) + fileType_;
    if (hasFileContent()) {
      hash = (37 * hash) + FILECONTENT_FIELD_NUMBER;
      hash = (53 * hash) + getFileContent().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest parseFrom(
      java.nio.ByteBuffer data,
      com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest parseFrom(
      com.dimajix.shaded.protobuf.ByteString data)
      throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest parseFrom(
      com.dimajix.shaded.protobuf.ByteString data,
      com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest parseFrom(byte[] data)
      throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest parseFrom(
      byte[] data,
      com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest parseFrom(
      java.io.InputStream input,
      com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest parseDelimitedFrom(
      java.io.InputStream input,
      com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest parseFrom(
      com.dimajix.shaded.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest parseFrom(
      com.dimajix.shaded.protobuf.CodedInputStream input,
      com.dimajix.shaded.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(com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest 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.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code com.dimajix.flowman.kernel.workspace.UploadFilesRequest}
   */
  public static final class Builder extends
      com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:com.dimajix.flowman.kernel.workspace.UploadFilesRequest)
      com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequestOrBuilder {
    public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.dimajix.flowman.kernel.proto.workspace.WorkspaceProto.internal_static_com_dimajix_flowman_kernel_workspace_UploadFilesRequest_descriptor;
    }

    @java.lang.Override
    protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.dimajix.flowman.kernel.proto.workspace.WorkspaceProto.internal_static_com_dimajix_flowman_kernel_workspace_UploadFilesRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest.class, com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest.Builder.class);
    }

    // Construct using com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest.newBuilder()
    private Builder() {

    }

    private Builder(
        com.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      workspaceId_ = "";
      fileName_ = "";
      fileType_ = 0;
      fileContent_ = com.dimajix.shaded.protobuf.ByteString.EMPTY;
      return this;
    }

    @java.lang.Override
    public com.dimajix.shaded.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.dimajix.flowman.kernel.proto.workspace.WorkspaceProto.internal_static_com_dimajix_flowman_kernel_workspace_UploadFilesRequest_descriptor;
    }

    @java.lang.Override
    public com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest getDefaultInstanceForType() {
      return com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest.getDefaultInstance();
    }

    @java.lang.Override
    public com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest build() {
      com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest buildPartial() {
      com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest result = new com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.workspaceId_ = workspaceId_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.fileName_ = fileName_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.fileType_ = fileType_;
      }
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.fileContent_ = fileContent_;
        to_bitField0_ |= 0x00000001;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @java.lang.Override
    public Builder mergeFrom(com.dimajix.shaded.protobuf.Message other) {
      if (other instanceof com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest) {
        return mergeFrom((com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest other) {
      if (other == com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest.getDefaultInstance()) return this;
      if (!other.getWorkspaceId().isEmpty()) {
        workspaceId_ = other.workspaceId_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getFileName().isEmpty()) {
        fileName_ = other.fileName_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (other.fileType_ != 0) {
        setFileTypeValue(other.getFileTypeValue());
      }
      if (other.hasFileContent()) {
        setFileContent(other.getFileContent());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.dimajix.shaded.protobuf.CodedInputStream input,
        com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              workspaceId_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              fileName_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 24: {
              fileType_ = input.readEnum();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            case 34: {
              fileContent_ = input.readBytes();
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.dimajix.shaded.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private java.lang.Object workspaceId_ = "";
    /**
     * string workspaceId = 1;
     * @return The workspaceId.
     */
    public java.lang.String getWorkspaceId() {
      java.lang.Object ref = workspaceId_;
      if (!(ref instanceof java.lang.String)) {
        com.dimajix.shaded.protobuf.ByteString bs =
            (com.dimajix.shaded.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        workspaceId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string workspaceId = 1;
     * @return The bytes for workspaceId.
     */
    public com.dimajix.shaded.protobuf.ByteString
        getWorkspaceIdBytes() {
      java.lang.Object ref = workspaceId_;
      if (ref instanceof String) {
        com.dimajix.shaded.protobuf.ByteString b = 
            com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        workspaceId_ = b;
        return b;
      } else {
        return (com.dimajix.shaded.protobuf.ByteString) ref;
      }
    }
    /**
     * string workspaceId = 1;
     * @param value The workspaceId to set.
     * @return This builder for chaining.
     */
    public Builder setWorkspaceId(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      workspaceId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * string workspaceId = 1;
     * @return This builder for chaining.
     */
    public Builder clearWorkspaceId() {
      workspaceId_ = getDefaultInstance().getWorkspaceId();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * string workspaceId = 1;
     * @param value The bytes for workspaceId to set.
     * @return This builder for chaining.
     */
    public Builder setWorkspaceIdBytes(
        com.dimajix.shaded.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      workspaceId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object fileName_ = "";
    /**
     * string fileName = 2;
     * @return The fileName.
     */
    public java.lang.String getFileName() {
      java.lang.Object ref = fileName_;
      if (!(ref instanceof java.lang.String)) {
        com.dimajix.shaded.protobuf.ByteString bs =
            (com.dimajix.shaded.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fileName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string fileName = 2;
     * @return The bytes for fileName.
     */
    public com.dimajix.shaded.protobuf.ByteString
        getFileNameBytes() {
      java.lang.Object ref = fileName_;
      if (ref instanceof String) {
        com.dimajix.shaded.protobuf.ByteString b = 
            com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fileName_ = b;
        return b;
      } else {
        return (com.dimajix.shaded.protobuf.ByteString) ref;
      }
    }
    /**
     * string fileName = 2;
     * @param value The fileName to set.
     * @return This builder for chaining.
     */
    public Builder setFileName(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      fileName_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * string fileName = 2;
     * @return This builder for chaining.
     */
    public Builder clearFileName() {
      fileName_ = getDefaultInstance().getFileName();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * string fileName = 2;
     * @param value The bytes for fileName to set.
     * @return This builder for chaining.
     */
    public Builder setFileNameBytes(
        com.dimajix.shaded.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      fileName_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private int fileType_ = 0;
    /**
     * .com.dimajix.flowman.kernel.FileType fileType = 3;
     * @return The enum numeric value on the wire for fileType.
     */
    @java.lang.Override public int getFileTypeValue() {
      return fileType_;
    }
    /**
     * .com.dimajix.flowman.kernel.FileType fileType = 3;
     * @param value The enum numeric value on the wire for fileType to set.
     * @return This builder for chaining.
     */
    public Builder setFileTypeValue(int value) {
      fileType_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * .com.dimajix.flowman.kernel.FileType fileType = 3;
     * @return The fileType.
     */
    @java.lang.Override
    public com.dimajix.flowman.kernel.proto.FileType getFileType() {
      com.dimajix.flowman.kernel.proto.FileType result = com.dimajix.flowman.kernel.proto.FileType.forNumber(fileType_);
      return result == null ? com.dimajix.flowman.kernel.proto.FileType.UNRECOGNIZED : result;
    }
    /**
     * .com.dimajix.flowman.kernel.FileType fileType = 3;
     * @param value The fileType to set.
     * @return This builder for chaining.
     */
    public Builder setFileType(com.dimajix.flowman.kernel.proto.FileType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000004;
      fileType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .com.dimajix.flowman.kernel.FileType fileType = 3;
     * @return This builder for chaining.
     */
    public Builder clearFileType() {
      bitField0_ = (bitField0_ & ~0x00000004);
      fileType_ = 0;
      onChanged();
      return this;
    }

    private com.dimajix.shaded.protobuf.ByteString fileContent_ = com.dimajix.shaded.protobuf.ByteString.EMPTY;
    /**
     * optional bytes fileContent = 4;
     * @return Whether the fileContent field is set.
     */
    @java.lang.Override
    public boolean hasFileContent() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional bytes fileContent = 4;
     * @return The fileContent.
     */
    @java.lang.Override
    public com.dimajix.shaded.protobuf.ByteString getFileContent() {
      return fileContent_;
    }
    /**
     * optional bytes fileContent = 4;
     * @param value The fileContent to set.
     * @return This builder for chaining.
     */
    public Builder setFileContent(com.dimajix.shaded.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      fileContent_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * optional bytes fileContent = 4;
     * @return This builder for chaining.
     */
    public Builder clearFileContent() {
      bitField0_ = (bitField0_ & ~0x00000008);
      fileContent_ = getDefaultInstance().getFileContent();
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.dimajix.shaded.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.dimajix.shaded.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:com.dimajix.flowman.kernel.workspace.UploadFilesRequest)
  }

  // @@protoc_insertion_point(class_scope:com.dimajix.flowman.kernel.workspace.UploadFilesRequest)
  private static final com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest();
  }

  public static com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.dimajix.shaded.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public UploadFilesRequest parsePartialFrom(
        com.dimajix.shaded.protobuf.CodedInputStream input,
        com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.dimajix.shaded.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.dimajix.shaded.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

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

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

  @java.lang.Override
  public com.dimajix.flowman.kernel.proto.workspace.UploadFilesRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy