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

cz.proto.TableStream Maven / Gradle / Ivy

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

package cz.proto;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private TableStream(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            cz.proto.ObjectIdentifier.Builder subBuilder = null;
            if (provider_ != null) {
              subBuilder = provider_.toBuilder();
            }
            provider_ = input.readMessage(cz.proto.ObjectIdentifier.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(provider_);
              provider_ = subBuilder.buildPartial();
            }

            break;
          }
          case 24: {
            bitField0_ |= 0x00000001;
            atTimestamp_ = input.readInt64();
            break;
          }
          case 32: {

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

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

  private int bitField0_;
  public static final int PROVIDER_FIELD_NUMBER = 1;
  private cz.proto.ObjectIdentifier provider_;
  /**
   * .cz.proto.ObjectIdentifier provider = 1;
   * @return Whether the provider field is set.
   */
  @java.lang.Override
  public boolean hasProvider() {
    return provider_ != null;
  }
  /**
   * .cz.proto.ObjectIdentifier provider = 1;
   * @return The provider.
   */
  @java.lang.Override
  public cz.proto.ObjectIdentifier getProvider() {
    return provider_ == null ? cz.proto.ObjectIdentifier.getDefaultInstance() : provider_;
  }
  /**
   * .cz.proto.ObjectIdentifier provider = 1;
   */
  @java.lang.Override
  public cz.proto.ObjectIdentifierOrBuilder getProviderOrBuilder() {
    return getProvider();
  }

  public static final int AT_TIMESTAMP_FIELD_NUMBER = 3;
  private long atTimestamp_;
  /**
   * optional int64 at_timestamp = 3;
   * @return Whether the atTimestamp field is set.
   */
  @java.lang.Override
  public boolean hasAtTimestamp() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional int64 at_timestamp = 3;
   * @return The atTimestamp.
   */
  @java.lang.Override
  public long getAtTimestamp() {
    return atTimestamp_;
  }

  public static final int OFFSET_FIELD_NUMBER = 4;
  private long offset_;
  /**
   * int64 offset = 4;
   * @return The offset.
   */
  @java.lang.Override
  public long getOffset() {
    return offset_;
  }

  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 (provider_ != null) {
      output.writeMessage(1, getProvider());
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeInt64(3, atTimestamp_);
    }
    if (offset_ != 0L) {
      output.writeInt64(4, offset_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (provider_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getProvider());
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(3, atTimestamp_);
    }
    if (offset_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(4, offset_);
    }
    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.TableStream)) {
      return super.equals(obj);
    }
    cz.proto.TableStream other = (cz.proto.TableStream) obj;

    if (hasProvider() != other.hasProvider()) return false;
    if (hasProvider()) {
      if (!getProvider()
          .equals(other.getProvider())) return false;
    }
    if (hasAtTimestamp() != other.hasAtTimestamp()) return false;
    if (hasAtTimestamp()) {
      if (getAtTimestamp()
          != other.getAtTimestamp()) return false;
    }
    if (getOffset()
        != other.getOffset()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasProvider()) {
      hash = (37 * hash) + PROVIDER_FIELD_NUMBER;
      hash = (53 * hash) + getProvider().hashCode();
    }
    if (hasAtTimestamp()) {
      hash = (37 * hash) + AT_TIMESTAMP_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getAtTimestamp());
    }
    hash = (37 * hash) + OFFSET_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getOffset());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using cz.proto.TableStream.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();
      if (providerBuilder_ == null) {
        provider_ = null;
      } else {
        provider_ = null;
        providerBuilder_ = null;
      }
      atTimestamp_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000001);
      offset_ = 0L;

      return this;
    }

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

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

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

    @java.lang.Override
    public cz.proto.TableStream buildPartial() {
      cz.proto.TableStream result = new cz.proto.TableStream(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (providerBuilder_ == null) {
        result.provider_ = provider_;
      } else {
        result.provider_ = providerBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.atTimestamp_ = atTimestamp_;
        to_bitField0_ |= 0x00000001;
      }
      result.offset_ = offset_;
      result.bitField0_ = to_bitField0_;
      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.TableStream) {
        return mergeFrom((cz.proto.TableStream)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.TableStream other) {
      if (other == cz.proto.TableStream.getDefaultInstance()) return this;
      if (other.hasProvider()) {
        mergeProvider(other.getProvider());
      }
      if (other.hasAtTimestamp()) {
        setAtTimestamp(other.getAtTimestamp());
      }
      if (other.getOffset() != 0L) {
        setOffset(other.getOffset());
      }
      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.TableStream parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.TableStream) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private cz.proto.ObjectIdentifier provider_;
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.ObjectIdentifier, cz.proto.ObjectIdentifier.Builder, cz.proto.ObjectIdentifierOrBuilder> providerBuilder_;
    /**
     * .cz.proto.ObjectIdentifier provider = 1;
     * @return Whether the provider field is set.
     */
    public boolean hasProvider() {
      return providerBuilder_ != null || provider_ != null;
    }
    /**
     * .cz.proto.ObjectIdentifier provider = 1;
     * @return The provider.
     */
    public cz.proto.ObjectIdentifier getProvider() {
      if (providerBuilder_ == null) {
        return provider_ == null ? cz.proto.ObjectIdentifier.getDefaultInstance() : provider_;
      } else {
        return providerBuilder_.getMessage();
      }
    }
    /**
     * .cz.proto.ObjectIdentifier provider = 1;
     */
    public Builder setProvider(cz.proto.ObjectIdentifier value) {
      if (providerBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        provider_ = value;
        onChanged();
      } else {
        providerBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .cz.proto.ObjectIdentifier provider = 1;
     */
    public Builder setProvider(
        cz.proto.ObjectIdentifier.Builder builderForValue) {
      if (providerBuilder_ == null) {
        provider_ = builderForValue.build();
        onChanged();
      } else {
        providerBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .cz.proto.ObjectIdentifier provider = 1;
     */
    public Builder mergeProvider(cz.proto.ObjectIdentifier value) {
      if (providerBuilder_ == null) {
        if (provider_ != null) {
          provider_ =
            cz.proto.ObjectIdentifier.newBuilder(provider_).mergeFrom(value).buildPartial();
        } else {
          provider_ = value;
        }
        onChanged();
      } else {
        providerBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .cz.proto.ObjectIdentifier provider = 1;
     */
    public Builder clearProvider() {
      if (providerBuilder_ == null) {
        provider_ = null;
        onChanged();
      } else {
        provider_ = null;
        providerBuilder_ = null;
      }

      return this;
    }
    /**
     * .cz.proto.ObjectIdentifier provider = 1;
     */
    public cz.proto.ObjectIdentifier.Builder getProviderBuilder() {
      
      onChanged();
      return getProviderFieldBuilder().getBuilder();
    }
    /**
     * .cz.proto.ObjectIdentifier provider = 1;
     */
    public cz.proto.ObjectIdentifierOrBuilder getProviderOrBuilder() {
      if (providerBuilder_ != null) {
        return providerBuilder_.getMessageOrBuilder();
      } else {
        return provider_ == null ?
            cz.proto.ObjectIdentifier.getDefaultInstance() : provider_;
      }
    }
    /**
     * .cz.proto.ObjectIdentifier provider = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.ObjectIdentifier, cz.proto.ObjectIdentifier.Builder, cz.proto.ObjectIdentifierOrBuilder> 
        getProviderFieldBuilder() {
      if (providerBuilder_ == null) {
        providerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            cz.proto.ObjectIdentifier, cz.proto.ObjectIdentifier.Builder, cz.proto.ObjectIdentifierOrBuilder>(
                getProvider(),
                getParentForChildren(),
                isClean());
        provider_ = null;
      }
      return providerBuilder_;
    }

    private long atTimestamp_ ;
    /**
     * optional int64 at_timestamp = 3;
     * @return Whether the atTimestamp field is set.
     */
    @java.lang.Override
    public boolean hasAtTimestamp() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional int64 at_timestamp = 3;
     * @return The atTimestamp.
     */
    @java.lang.Override
    public long getAtTimestamp() {
      return atTimestamp_;
    }
    /**
     * optional int64 at_timestamp = 3;
     * @param value The atTimestamp to set.
     * @return This builder for chaining.
     */
    public Builder setAtTimestamp(long value) {
      bitField0_ |= 0x00000001;
      atTimestamp_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 at_timestamp = 3;
     * @return This builder for chaining.
     */
    public Builder clearAtTimestamp() {
      bitField0_ = (bitField0_ & ~0x00000001);
      atTimestamp_ = 0L;
      onChanged();
      return this;
    }

    private long offset_ ;
    /**
     * int64 offset = 4;
     * @return The offset.
     */
    @java.lang.Override
    public long getOffset() {
      return offset_;
    }
    /**
     * int64 offset = 4;
     * @param value The offset to set.
     * @return This builder for chaining.
     */
    public Builder setOffset(long value) {
      
      offset_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 offset = 4;
     * @return This builder for chaining.
     */
    public Builder clearOffset() {
      
      offset_ = 0L;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:cz.proto.TableStream)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy