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

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

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

package com.cognite.client.dto;

/**
 * 
 *Represents an identifiable data item independent of resource type (asset, event, time series, etc.).
 *The item is identified via externalId (primarily) or id (secondarily).
 *For time series data points there are two extra attributes, inclusiveBegin and exclusiveEnd, that pinpoints the
 *referenced time window.
 * 
* * Protobuf type {@code com.cognite.beam.proto.Item} */ public final class Item extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.cognite.beam.proto.Item) ItemOrBuilder { private static final long serialVersionUID = 0L; // Use Item.newBuilder() to construct. private Item(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Item() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Item(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Item( 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 8: { idType_ = input.readInt64(); idTypeCase_ = 1; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); idTypeCase_ = 2; idType_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); idTypeCase_ = 3; idType_ = s; break; } case 32: { bitField0_ |= 0x00000001; inclusiveBegin_ = input.readInt64(); break; } case 40: { bitField0_ |= 0x00000002; exclusiveEnd_ = 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.ItemOuterClass.internal_static_com_cognite_beam_proto_Item_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.cognite.client.dto.ItemOuterClass.internal_static_com_cognite_beam_proto_Item_fieldAccessorTable .ensureFieldAccessorsInitialized( com.cognite.client.dto.Item.class, com.cognite.client.dto.Item.Builder.class); } private int bitField0_; 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), EXTERNAL_ID(2), LEGACY_NAME(3), 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 2: return EXTERNAL_ID; case 3: return LEGACY_NAME; case 0: return IDTYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public IdTypeCase getIdTypeCase() { return IdTypeCase.forNumber( idTypeCase_); } 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 EXTERNAL_ID_FIELD_NUMBER = 2; /** * string external_id = 2; * @return Whether the externalId field is set. */ public boolean hasExternalId() { return idTypeCase_ == 2; } /** * string external_id = 2; * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = ""; if (idTypeCase_ == 2) { ref = idType_; } 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 (idTypeCase_ == 2) { idType_ = s; } return s; } } /** * string external_id = 2; * @return The bytes for externalId. */ public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = ""; if (idTypeCase_ == 2) { ref = idType_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idTypeCase_ == 2) { idType_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LEGACY_NAME_FIELD_NUMBER = 3; /** * string legacy_name = 3; * @return Whether the legacyName field is set. */ public boolean hasLegacyName() { return idTypeCase_ == 3; } /** * string legacy_name = 3; * @return The legacyName. */ public java.lang.String getLegacyName() { java.lang.Object ref = ""; if (idTypeCase_ == 3) { ref = idType_; } 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 (idTypeCase_ == 3) { idType_ = s; } return s; } } /** * string legacy_name = 3; * @return The bytes for legacyName. */ public com.google.protobuf.ByteString getLegacyNameBytes() { java.lang.Object ref = ""; if (idTypeCase_ == 3) { ref = idType_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idTypeCase_ == 3) { idType_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INCLUSIVE_BEGIN_FIELD_NUMBER = 4; private long inclusiveBegin_; /** *
   * Start of time window for a time series data point.
   * 
* * optional int64 inclusive_begin = 4; * @return Whether the inclusiveBegin field is set. */ @java.lang.Override public boolean hasInclusiveBegin() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Start of time window for a time series data point.
   * 
* * optional int64 inclusive_begin = 4; * @return The inclusiveBegin. */ @java.lang.Override public long getInclusiveBegin() { return inclusiveBegin_; } public static final int EXCLUSIVE_END_FIELD_NUMBER = 5; private long exclusiveEnd_; /** *
   * End of time window for a time series data point.
   * 
* * optional int64 exclusive_end = 5; * @return Whether the exclusiveEnd field is set. */ @java.lang.Override public boolean hasExclusiveEnd() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * End of time window for a time series data point.
   * 
* * optional int64 exclusive_end = 5; * @return The exclusiveEnd. */ @java.lang.Override public long getExclusiveEnd() { return exclusiveEnd_; } 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 (idTypeCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, idType_); } if (idTypeCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, idType_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(4, inclusiveBegin_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(5, exclusiveEnd_); } 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 (idTypeCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, idType_); } if (idTypeCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, idType_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, inclusiveBegin_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, exclusiveEnd_); } 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.Item)) { return super.equals(obj); } com.cognite.client.dto.Item other = (com.cognite.client.dto.Item) obj; if (hasInclusiveBegin() != other.hasInclusiveBegin()) return false; if (hasInclusiveBegin()) { if (getInclusiveBegin() != other.getInclusiveBegin()) return false; } if (hasExclusiveEnd() != other.hasExclusiveEnd()) return false; if (hasExclusiveEnd()) { if (getExclusiveEnd() != other.getExclusiveEnd()) return false; } if (!getIdTypeCase().equals(other.getIdTypeCase())) return false; switch (idTypeCase_) { case 1: if (getId() != other.getId()) return false; break; case 2: if (!getExternalId() .equals(other.getExternalId())) return false; break; case 3: if (!getLegacyName() .equals(other.getLegacyName())) 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(); if (hasInclusiveBegin()) { hash = (37 * hash) + INCLUSIVE_BEGIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInclusiveBegin()); } if (hasExclusiveEnd()) { hash = (37 * hash) + EXCLUSIVE_END_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExclusiveEnd()); } switch (idTypeCase_) { case 1: hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); break; case 2: hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; hash = (53 * hash) + getExternalId().hashCode(); break; case 3: hash = (37 * hash) + LEGACY_NAME_FIELD_NUMBER; hash = (53 * hash) + getLegacyName().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.cognite.client.dto.Item parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.cognite.client.dto.Item 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.Item parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.cognite.client.dto.Item 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.Item parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.cognite.client.dto.Item parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.cognite.client.dto.Item parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.cognite.client.dto.Item 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.Item parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.cognite.client.dto.Item 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.Item parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.cognite.client.dto.Item 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.Item 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; } /** *
   *Represents an identifiable data item independent of resource type (asset, event, time series, etc.).
   *The item is identified via externalId (primarily) or id (secondarily).
   *For time series data points there are two extra attributes, inclusiveBegin and exclusiveEnd, that pinpoints the
   *referenced time window.
   * 
* * Protobuf type {@code com.cognite.beam.proto.Item} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.Item) com.cognite.client.dto.ItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.cognite.client.dto.ItemOuterClass.internal_static_com_cognite_beam_proto_Item_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.cognite.client.dto.ItemOuterClass.internal_static_com_cognite_beam_proto_Item_fieldAccessorTable .ensureFieldAccessorsInitialized( com.cognite.client.dto.Item.class, com.cognite.client.dto.Item.Builder.class); } // Construct using com.cognite.client.dto.Item.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(); inclusiveBegin_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); exclusiveEnd_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); idTypeCase_ = 0; idType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.cognite.client.dto.ItemOuterClass.internal_static_com_cognite_beam_proto_Item_descriptor; } @java.lang.Override public com.cognite.client.dto.Item getDefaultInstanceForType() { return com.cognite.client.dto.Item.getDefaultInstance(); } @java.lang.Override public com.cognite.client.dto.Item build() { com.cognite.client.dto.Item result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.cognite.client.dto.Item buildPartial() { com.cognite.client.dto.Item result = new com.cognite.client.dto.Item(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (idTypeCase_ == 1) { result.idType_ = idType_; } if (idTypeCase_ == 2) { result.idType_ = idType_; } if (idTypeCase_ == 3) { result.idType_ = idType_; } if (((from_bitField0_ & 0x00000001) != 0)) { result.inclusiveBegin_ = inclusiveBegin_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.exclusiveEnd_ = exclusiveEnd_; to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; result.idTypeCase_ = idTypeCase_; 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.Item) { return mergeFrom((com.cognite.client.dto.Item)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.cognite.client.dto.Item other) { if (other == com.cognite.client.dto.Item.getDefaultInstance()) return this; if (other.hasInclusiveBegin()) { setInclusiveBegin(other.getInclusiveBegin()); } if (other.hasExclusiveEnd()) { setExclusiveEnd(other.getExclusiveEnd()); } switch (other.getIdTypeCase()) { case ID: { setId(other.getId()); break; } case EXTERNAL_ID: { idTypeCase_ = 2; idType_ = other.idType_; onChanged(); break; } case LEGACY_NAME: { idTypeCase_ = 3; idType_ = other.idType_; onChanged(); break; } case IDTYPE_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.Item parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.cognite.client.dto.Item) 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 bitField0_; /** * 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; } /** * string external_id = 2; * @return Whether the externalId field is set. */ @java.lang.Override public boolean hasExternalId() { return idTypeCase_ == 2; } /** * string external_id = 2; * @return The externalId. */ @java.lang.Override public java.lang.String getExternalId() { java.lang.Object ref = ""; if (idTypeCase_ == 2) { ref = idType_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idTypeCase_ == 2) { idType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string external_id = 2; * @return The bytes for externalId. */ @java.lang.Override public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = ""; if (idTypeCase_ == 2) { ref = idType_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idTypeCase_ == 2) { idType_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string external_id = 2; * @param value The externalId to set. * @return This builder for chaining. */ public Builder setExternalId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } idTypeCase_ = 2; idType_ = value; onChanged(); return this; } /** * string external_id = 2; * @return This builder for chaining. */ public Builder clearExternalId() { if (idTypeCase_ == 2) { idTypeCase_ = 0; idType_ = null; onChanged(); } return this; } /** * string external_id = 2; * @param value The bytes for externalId to set. * @return This builder for chaining. */ public Builder setExternalIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); idTypeCase_ = 2; idType_ = value; onChanged(); return this; } /** * string legacy_name = 3; * @return Whether the legacyName field is set. */ @java.lang.Override public boolean hasLegacyName() { return idTypeCase_ == 3; } /** * string legacy_name = 3; * @return The legacyName. */ @java.lang.Override public java.lang.String getLegacyName() { java.lang.Object ref = ""; if (idTypeCase_ == 3) { ref = idType_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idTypeCase_ == 3) { idType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string legacy_name = 3; * @return The bytes for legacyName. */ @java.lang.Override public com.google.protobuf.ByteString getLegacyNameBytes() { java.lang.Object ref = ""; if (idTypeCase_ == 3) { ref = idType_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idTypeCase_ == 3) { idType_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string legacy_name = 3; * @param value The legacyName to set. * @return This builder for chaining. */ public Builder setLegacyName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } idTypeCase_ = 3; idType_ = value; onChanged(); return this; } /** * string legacy_name = 3; * @return This builder for chaining. */ public Builder clearLegacyName() { if (idTypeCase_ == 3) { idTypeCase_ = 0; idType_ = null; onChanged(); } return this; } /** * string legacy_name = 3; * @param value The bytes for legacyName to set. * @return This builder for chaining. */ public Builder setLegacyNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); idTypeCase_ = 3; idType_ = value; onChanged(); return this; } private long inclusiveBegin_ ; /** *
     * Start of time window for a time series data point.
     * 
* * optional int64 inclusive_begin = 4; * @return Whether the inclusiveBegin field is set. */ @java.lang.Override public boolean hasInclusiveBegin() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Start of time window for a time series data point.
     * 
* * optional int64 inclusive_begin = 4; * @return The inclusiveBegin. */ @java.lang.Override public long getInclusiveBegin() { return inclusiveBegin_; } /** *
     * Start of time window for a time series data point.
     * 
* * optional int64 inclusive_begin = 4; * @param value The inclusiveBegin to set. * @return This builder for chaining. */ public Builder setInclusiveBegin(long value) { bitField0_ |= 0x00000001; inclusiveBegin_ = value; onChanged(); return this; } /** *
     * Start of time window for a time series data point.
     * 
* * optional int64 inclusive_begin = 4; * @return This builder for chaining. */ public Builder clearInclusiveBegin() { bitField0_ = (bitField0_ & ~0x00000001); inclusiveBegin_ = 0L; onChanged(); return this; } private long exclusiveEnd_ ; /** *
     * End of time window for a time series data point.
     * 
* * optional int64 exclusive_end = 5; * @return Whether the exclusiveEnd field is set. */ @java.lang.Override public boolean hasExclusiveEnd() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * End of time window for a time series data point.
     * 
* * optional int64 exclusive_end = 5; * @return The exclusiveEnd. */ @java.lang.Override public long getExclusiveEnd() { return exclusiveEnd_; } /** *
     * End of time window for a time series data point.
     * 
* * optional int64 exclusive_end = 5; * @param value The exclusiveEnd to set. * @return This builder for chaining. */ public Builder setExclusiveEnd(long value) { bitField0_ |= 0x00000002; exclusiveEnd_ = value; onChanged(); return this; } /** *
     * End of time window for a time series data point.
     * 
* * optional int64 exclusive_end = 5; * @return This builder for chaining. */ public Builder clearExclusiveEnd() { bitField0_ = (bitField0_ & ~0x00000002); exclusiveEnd_ = 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.Item) } // @@protoc_insertion_point(class_scope:com.cognite.beam.proto.Item) private static final com.cognite.client.dto.Item DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.cognite.client.dto.Item(); } public static com.cognite.client.dto.Item getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Item parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Item(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.Item getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy