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

proto.com.cognite.client.dto.ThreeDFileBinary Maven / Gradle / Ivy

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

package com.cognite.client.dto;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ThreeDFileBinary(
      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: {
            idType_ = input.readInt64();
            idTypeCase_ = 1;
            break;
          }
          case 26: {
            binaryType_ = input.readBytes();
            binaryTypeCase_ = 3;
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();
            binaryTypeCase_ = 4;
            binaryType_ = s;
            break;
          }
          case 40: {

            contentLength_ = input.readInt64();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDFileBinary_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDFileBinary_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.cognite.client.dto.ThreeDFileBinary.class, com.cognite.client.dto.ThreeDFileBinary.Builder.class);
  }

  private int idTypeCase_ = 0;
  private java.lang.Object idType_;
  public enum IdTypeCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    ID(1),
    IDTYPE_NOT_SET(0);
    private final int value;
    private IdTypeCase(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 IdTypeCase valueOf(int value) {
      return forNumber(value);
    }

    public static IdTypeCase forNumber(int value) {
      switch (value) {
        case 1: return ID;
        case 0: return IDTYPE_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public IdTypeCase
  getIdTypeCase() {
    return IdTypeCase.forNumber(
        idTypeCase_);
  }

  private int binaryTypeCase_ = 0;
  private java.lang.Object binaryType_;
  public enum BinaryTypeCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    BINARY(3),
    BINARY_URI(4),
    BINARYTYPE_NOT_SET(0);
    private final int value;
    private BinaryTypeCase(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 BinaryTypeCase valueOf(int value) {
      return forNumber(value);
    }

    public static BinaryTypeCase forNumber(int value) {
      switch (value) {
        case 3: return BINARY;
        case 4: return BINARY_URI;
        case 0: return BINARYTYPE_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public BinaryTypeCase
  getBinaryTypeCase() {
    return BinaryTypeCase.forNumber(
        binaryTypeCase_);
  }

  public static final int ID_FIELD_NUMBER = 1;
  /**
   * int64 id = 1;
   * @return Whether the id field is set.
   */
  @java.lang.Override
  public boolean hasId() {
    return idTypeCase_ == 1;
  }
  /**
   * int64 id = 1;
   * @return The id.
   */
  @java.lang.Override
  public long getId() {
    if (idTypeCase_ == 1) {
      return (java.lang.Long) idType_;
    }
    return 0L;
  }

  public static final int BINARY_FIELD_NUMBER = 3;
  /**
   * bytes binary = 3;
   * @return Whether the binary field is set.
   */
  @java.lang.Override
  public boolean hasBinary() {
    return binaryTypeCase_ == 3;
  }
  /**
   * bytes binary = 3;
   * @return The binary.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getBinary() {
    if (binaryTypeCase_ == 3) {
      return (com.google.protobuf.ByteString) binaryType_;
    }
    return com.google.protobuf.ByteString.EMPTY;
  }

  public static final int BINARY_URI_FIELD_NUMBER = 4;
  /**
   * string binary_uri = 4;
   * @return Whether the binaryUri field is set.
   */
  public boolean hasBinaryUri() {
    return binaryTypeCase_ == 4;
  }
  /**
   * string binary_uri = 4;
   * @return The binaryUri.
   */
  public java.lang.String getBinaryUri() {
    java.lang.Object ref = "";
    if (binaryTypeCase_ == 4) {
      ref = binaryType_;
    }
    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();
      if (binaryTypeCase_ == 4) {
        binaryType_ = s;
      }
      return s;
    }
  }
  /**
   * string binary_uri = 4;
   * @return The bytes for binaryUri.
   */
  public com.google.protobuf.ByteString
      getBinaryUriBytes() {
    java.lang.Object ref = "";
    if (binaryTypeCase_ == 4) {
      ref = binaryType_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      if (binaryTypeCase_ == 4) {
        binaryType_ = b;
      }
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CONTENT_LENGTH_FIELD_NUMBER = 5;
  private long contentLength_;
  /**
   * int64 content_length = 5;
   * @return The contentLength.
   */
  @java.lang.Override
  public long getContentLength() {
    return contentLength_;
  }

  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 (idTypeCase_ == 1) {
      output.writeInt64(
          1, (long)((java.lang.Long) idType_));
    }
    if (binaryTypeCase_ == 3) {
      output.writeBytes(
          3, (com.google.protobuf.ByteString) binaryType_);
    }
    if (binaryTypeCase_ == 4) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, binaryType_);
    }
    if (contentLength_ != 0L) {
      output.writeInt64(5, contentLength_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (idTypeCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(
            1, (long)((java.lang.Long) idType_));
    }
    if (binaryTypeCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(
            3, (com.google.protobuf.ByteString) binaryType_);
    }
    if (binaryTypeCase_ == 4) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, binaryType_);
    }
    if (contentLength_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(5, contentLength_);
    }
    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 com.cognite.client.dto.ThreeDFileBinary)) {
      return super.equals(obj);
    }
    com.cognite.client.dto.ThreeDFileBinary other = (com.cognite.client.dto.ThreeDFileBinary) obj;

    if (getContentLength()
        != other.getContentLength()) return false;
    if (!getIdTypeCase().equals(other.getIdTypeCase())) return false;
    switch (idTypeCase_) {
      case 1:
        if (getId()
            != other.getId()) return false;
        break;
      case 0:
      default:
    }
    if (!getBinaryTypeCase().equals(other.getBinaryTypeCase())) return false;
    switch (binaryTypeCase_) {
      case 3:
        if (!getBinary()
            .equals(other.getBinary())) return false;
        break;
      case 4:
        if (!getBinaryUri()
            .equals(other.getBinaryUri())) 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) + CONTENT_LENGTH_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getContentLength());
    switch (idTypeCase_) {
      case 1:
        hash = (37 * hash) + ID_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getId());
        break;
      case 0:
      default:
    }
    switch (binaryTypeCase_) {
      case 3:
        hash = (37 * hash) + BINARY_FIELD_NUMBER;
        hash = (53 * hash) + getBinary().hashCode();
        break;
      case 4:
        hash = (37 * hash) + BINARY_URI_FIELD_NUMBER;
        hash = (53 * hash) + getBinaryUri().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDFileBinary_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.cognite.client.dto.ThreeDFileBinary.class, com.cognite.client.dto.ThreeDFileBinary.Builder.class);
    }

    // Construct using com.cognite.client.dto.ThreeDFileBinary.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();
      contentLength_ = 0L;

      idTypeCase_ = 0;
      idType_ = null;
      binaryTypeCase_ = 0;
      binaryType_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.cognite.client.dto.ThreeDModelOuterClass.internal_static_com_cognite_beam_proto_ThreeDFileBinary_descriptor;
    }

    @java.lang.Override
    public com.cognite.client.dto.ThreeDFileBinary getDefaultInstanceForType() {
      return com.cognite.client.dto.ThreeDFileBinary.getDefaultInstance();
    }

    @java.lang.Override
    public com.cognite.client.dto.ThreeDFileBinary build() {
      com.cognite.client.dto.ThreeDFileBinary result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.cognite.client.dto.ThreeDFileBinary buildPartial() {
      com.cognite.client.dto.ThreeDFileBinary result = new com.cognite.client.dto.ThreeDFileBinary(this);
      if (idTypeCase_ == 1) {
        result.idType_ = idType_;
      }
      if (binaryTypeCase_ == 3) {
        result.binaryType_ = binaryType_;
      }
      if (binaryTypeCase_ == 4) {
        result.binaryType_ = binaryType_;
      }
      result.contentLength_ = contentLength_;
      result.idTypeCase_ = idTypeCase_;
      result.binaryTypeCase_ = binaryTypeCase_;
      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 com.cognite.client.dto.ThreeDFileBinary) {
        return mergeFrom((com.cognite.client.dto.ThreeDFileBinary)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.cognite.client.dto.ThreeDFileBinary other) {
      if (other == com.cognite.client.dto.ThreeDFileBinary.getDefaultInstance()) return this;
      if (other.getContentLength() != 0L) {
        setContentLength(other.getContentLength());
      }
      switch (other.getIdTypeCase()) {
        case ID: {
          setId(other.getId());
          break;
        }
        case IDTYPE_NOT_SET: {
          break;
        }
      }
      switch (other.getBinaryTypeCase()) {
        case BINARY: {
          setBinary(other.getBinary());
          break;
        }
        case BINARY_URI: {
          binaryTypeCase_ = 4;
          binaryType_ = other.binaryType_;
          onChanged();
          break;
        }
        case BINARYTYPE_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 {
      com.cognite.client.dto.ThreeDFileBinary parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.cognite.client.dto.ThreeDFileBinary) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int idTypeCase_ = 0;
    private java.lang.Object idType_;
    public IdTypeCase
        getIdTypeCase() {
      return IdTypeCase.forNumber(
          idTypeCase_);
    }

    public Builder clearIdType() {
      idTypeCase_ = 0;
      idType_ = null;
      onChanged();
      return this;
    }

    private int binaryTypeCase_ = 0;
    private java.lang.Object binaryType_;
    public BinaryTypeCase
        getBinaryTypeCase() {
      return BinaryTypeCase.forNumber(
          binaryTypeCase_);
    }

    public Builder clearBinaryType() {
      binaryTypeCase_ = 0;
      binaryType_ = null;
      onChanged();
      return this;
    }


    /**
     * int64 id = 1;
     * @return Whether the id field is set.
     */
    public boolean hasId() {
      return idTypeCase_ == 1;
    }
    /**
     * int64 id = 1;
     * @return The id.
     */
    public long getId() {
      if (idTypeCase_ == 1) {
        return (java.lang.Long) idType_;
      }
      return 0L;
    }
    /**
     * int64 id = 1;
     * @param value The id to set.
     * @return This builder for chaining.
     */
    public Builder setId(long value) {
      idTypeCase_ = 1;
      idType_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 id = 1;
     * @return This builder for chaining.
     */
    public Builder clearId() {
      if (idTypeCase_ == 1) {
        idTypeCase_ = 0;
        idType_ = null;
        onChanged();
      }
      return this;
    }

    /**
     * bytes binary = 3;
     * @return Whether the binary field is set.
     */
    public boolean hasBinary() {
      return binaryTypeCase_ == 3;
    }
    /**
     * bytes binary = 3;
     * @return The binary.
     */
    public com.google.protobuf.ByteString getBinary() {
      if (binaryTypeCase_ == 3) {
        return (com.google.protobuf.ByteString) binaryType_;
      }
      return com.google.protobuf.ByteString.EMPTY;
    }
    /**
     * bytes binary = 3;
     * @param value The binary to set.
     * @return This builder for chaining.
     */
    public Builder setBinary(com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  binaryTypeCase_ = 3;
      binaryType_ = value;
      onChanged();
      return this;
    }
    /**
     * bytes binary = 3;
     * @return This builder for chaining.
     */
    public Builder clearBinary() {
      if (binaryTypeCase_ == 3) {
        binaryTypeCase_ = 0;
        binaryType_ = null;
        onChanged();
      }
      return this;
    }

    /**
     * string binary_uri = 4;
     * @return Whether the binaryUri field is set.
     */
    @java.lang.Override
    public boolean hasBinaryUri() {
      return binaryTypeCase_ == 4;
    }
    /**
     * string binary_uri = 4;
     * @return The binaryUri.
     */
    @java.lang.Override
    public java.lang.String getBinaryUri() {
      java.lang.Object ref = "";
      if (binaryTypeCase_ == 4) {
        ref = binaryType_;
      }
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (binaryTypeCase_ == 4) {
          binaryType_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string binary_uri = 4;
     * @return The bytes for binaryUri.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getBinaryUriBytes() {
      java.lang.Object ref = "";
      if (binaryTypeCase_ == 4) {
        ref = binaryType_;
      }
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        if (binaryTypeCase_ == 4) {
          binaryType_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string binary_uri = 4;
     * @param value The binaryUri to set.
     * @return This builder for chaining.
     */
    public Builder setBinaryUri(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  binaryTypeCase_ = 4;
      binaryType_ = value;
      onChanged();
      return this;
    }
    /**
     * string binary_uri = 4;
     * @return This builder for chaining.
     */
    public Builder clearBinaryUri() {
      if (binaryTypeCase_ == 4) {
        binaryTypeCase_ = 0;
        binaryType_ = null;
        onChanged();
      }
      return this;
    }
    /**
     * string binary_uri = 4;
     * @param value The bytes for binaryUri to set.
     * @return This builder for chaining.
     */
    public Builder setBinaryUriBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      binaryTypeCase_ = 4;
      binaryType_ = value;
      onChanged();
      return this;
    }

    private long contentLength_ ;
    /**
     * int64 content_length = 5;
     * @return The contentLength.
     */
    @java.lang.Override
    public long getContentLength() {
      return contentLength_;
    }
    /**
     * int64 content_length = 5;
     * @param value The contentLength to set.
     * @return This builder for chaining.
     */
    public Builder setContentLength(long value) {
      
      contentLength_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 content_length = 5;
     * @return This builder for chaining.
     */
    public Builder clearContentLength() {
      
      contentLength_ = 0L;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.cognite.beam.proto.ThreeDFileBinary)
  }

  // @@protoc_insertion_point(class_scope:com.cognite.beam.proto.ThreeDFileBinary)
  private static final com.cognite.client.dto.ThreeDFileBinary DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.cognite.client.dto.ThreeDFileBinary();
  }

  public static com.cognite.client.dto.ThreeDFileBinary getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy