proto.com.cognite.client.dto.RawRow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdf-sdk-java Show documentation
Show all versions of cdf-sdk-java Show documentation
Java SDK for reading and writing from/to CDF resources.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: raw_row.proto
package com.cognite.client.dto;
/**
* Protobuf type {@code com.cognite.beam.proto.RawRow}
*/
public final class RawRow extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.RawRow)
RawRowOrBuilder {
private static final long serialVersionUID = 0L;
// Use RawRow.newBuilder() to construct.
private RawRow(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RawRow() {
dbName_ = "";
tableName_ = "";
key_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RawRow();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RawRow(
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: {
java.lang.String s = input.readStringRequireUtf8();
dbName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
tableName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 32: {
bitField0_ |= 0x00000001;
lastUpdatedTime_ = input.readInt64();
break;
}
case 42: {
com.google.protobuf.Struct.Builder subBuilder = null;
if (columns_ != null) {
subBuilder = columns_.toBuilder();
}
columns_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(columns_);
columns_ = subBuilder.buildPartial();
}
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.RawRowOuterClass.internal_static_com_cognite_beam_proto_RawRow_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.RawRowOuterClass.internal_static_com_cognite_beam_proto_RawRow_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.RawRow.class, com.cognite.client.dto.RawRow.Builder.class);
}
private int bitField0_;
public static final int DB_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object dbName_;
/**
* string db_name = 1;
* @return The dbName.
*/
@java.lang.Override
public java.lang.String getDbName() {
java.lang.Object ref = dbName_;
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();
dbName_ = s;
return s;
}
}
/**
* string db_name = 1;
* @return The bytes for dbName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDbNameBytes() {
java.lang.Object ref = dbName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dbName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TABLE_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object tableName_;
/**
* string table_name = 2;
* @return The tableName.
*/
@java.lang.Override
public java.lang.String getTableName() {
java.lang.Object ref = tableName_;
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();
tableName_ = s;
return s;
}
}
/**
* string table_name = 2;
* @return The bytes for tableName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTableNameBytes() {
java.lang.Object ref = tableName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tableName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 3;
private volatile java.lang.Object key_;
/**
* string key = 3;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
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();
key_ = s;
return s;
}
}
/**
* string key = 3;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAST_UPDATED_TIME_FIELD_NUMBER = 4;
private long lastUpdatedTime_;
/**
* optional int64 last_updated_time = 4;
* @return Whether the lastUpdatedTime field is set.
*/
@java.lang.Override
public boolean hasLastUpdatedTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 last_updated_time = 4;
* @return The lastUpdatedTime.
*/
@java.lang.Override
public long getLastUpdatedTime() {
return lastUpdatedTime_;
}
public static final int COLUMNS_FIELD_NUMBER = 5;
private com.google.protobuf.Struct columns_;
/**
* .google.protobuf.Struct columns = 5;
* @return Whether the columns field is set.
*/
@java.lang.Override
public boolean hasColumns() {
return columns_ != null;
}
/**
* .google.protobuf.Struct columns = 5;
* @return The columns.
*/
@java.lang.Override
public com.google.protobuf.Struct getColumns() {
return columns_ == null ? com.google.protobuf.Struct.getDefaultInstance() : columns_;
}
/**
* .google.protobuf.Struct columns = 5;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getColumnsOrBuilder() {
return getColumns();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dbName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tableName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, key_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(4, lastUpdatedTime_);
}
if (columns_ != null) {
output.writeMessage(5, getColumns());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dbName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tableName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, key_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, lastUpdatedTime_);
}
if (columns_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getColumns());
}
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.RawRow)) {
return super.equals(obj);
}
com.cognite.client.dto.RawRow other = (com.cognite.client.dto.RawRow) obj;
if (!getDbName()
.equals(other.getDbName())) return false;
if (!getTableName()
.equals(other.getTableName())) return false;
if (!getKey()
.equals(other.getKey())) return false;
if (hasLastUpdatedTime() != other.hasLastUpdatedTime()) return false;
if (hasLastUpdatedTime()) {
if (getLastUpdatedTime()
!= other.getLastUpdatedTime()) return false;
}
if (hasColumns() != other.hasColumns()) return false;
if (hasColumns()) {
if (!getColumns()
.equals(other.getColumns())) 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();
hash = (37 * hash) + DB_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDbName().hashCode();
hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTableName().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
if (hasLastUpdatedTime()) {
hash = (37 * hash) + LAST_UPDATED_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastUpdatedTime());
}
if (hasColumns()) {
hash = (37 * hash) + COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getColumns().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.RawRow parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.RawRow 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.RawRow parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.RawRow 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.RawRow parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.RawRow parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.RawRow parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.RawRow 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.RawRow parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.RawRow 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.RawRow parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.RawRow 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.RawRow 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.RawRow}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.RawRow)
com.cognite.client.dto.RawRowOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.RawRowOuterClass.internal_static_com_cognite_beam_proto_RawRow_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.RawRowOuterClass.internal_static_com_cognite_beam_proto_RawRow_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.RawRow.class, com.cognite.client.dto.RawRow.Builder.class);
}
// Construct using com.cognite.client.dto.RawRow.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();
dbName_ = "";
tableName_ = "";
key_ = "";
lastUpdatedTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
if (columnsBuilder_ == null) {
columns_ = null;
} else {
columns_ = null;
columnsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.RawRowOuterClass.internal_static_com_cognite_beam_proto_RawRow_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.RawRow getDefaultInstanceForType() {
return com.cognite.client.dto.RawRow.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.RawRow build() {
com.cognite.client.dto.RawRow result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.RawRow buildPartial() {
com.cognite.client.dto.RawRow result = new com.cognite.client.dto.RawRow(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.dbName_ = dbName_;
result.tableName_ = tableName_;
result.key_ = key_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.lastUpdatedTime_ = lastUpdatedTime_;
to_bitField0_ |= 0x00000001;
}
if (columnsBuilder_ == null) {
result.columns_ = columns_;
} else {
result.columns_ = columnsBuilder_.build();
}
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 com.cognite.client.dto.RawRow) {
return mergeFrom((com.cognite.client.dto.RawRow)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.RawRow other) {
if (other == com.cognite.client.dto.RawRow.getDefaultInstance()) return this;
if (!other.getDbName().isEmpty()) {
dbName_ = other.dbName_;
onChanged();
}
if (!other.getTableName().isEmpty()) {
tableName_ = other.tableName_;
onChanged();
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (other.hasLastUpdatedTime()) {
setLastUpdatedTime(other.getLastUpdatedTime());
}
if (other.hasColumns()) {
mergeColumns(other.getColumns());
}
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.RawRow parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.RawRow) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object dbName_ = "";
/**
* string db_name = 1;
* @return The dbName.
*/
public java.lang.String getDbName() {
java.lang.Object ref = dbName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dbName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string db_name = 1;
* @return The bytes for dbName.
*/
public com.google.protobuf.ByteString
getDbNameBytes() {
java.lang.Object ref = dbName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dbName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string db_name = 1;
* @param value The dbName to set.
* @return This builder for chaining.
*/
public Builder setDbName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dbName_ = value;
onChanged();
return this;
}
/**
* string db_name = 1;
* @return This builder for chaining.
*/
public Builder clearDbName() {
dbName_ = getDefaultInstance().getDbName();
onChanged();
return this;
}
/**
* string db_name = 1;
* @param value The bytes for dbName to set.
* @return This builder for chaining.
*/
public Builder setDbNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dbName_ = value;
onChanged();
return this;
}
private java.lang.Object tableName_ = "";
/**
* string table_name = 2;
* @return The tableName.
*/
public java.lang.String getTableName() {
java.lang.Object ref = tableName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tableName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string table_name = 2;
* @return The bytes for tableName.
*/
public com.google.protobuf.ByteString
getTableNameBytes() {
java.lang.Object ref = tableName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tableName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string table_name = 2;
* @param value The tableName to set.
* @return This builder for chaining.
*/
public Builder setTableName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tableName_ = value;
onChanged();
return this;
}
/**
* string table_name = 2;
* @return This builder for chaining.
*/
public Builder clearTableName() {
tableName_ = getDefaultInstance().getTableName();
onChanged();
return this;
}
/**
* string table_name = 2;
* @param value The bytes for tableName to set.
* @return This builder for chaining.
*/
public Builder setTableNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tableName_ = value;
onChanged();
return this;
}
private java.lang.Object key_ = "";
/**
* string key = 3;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 3;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 3;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* string key = 3;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* string key = 3;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
key_ = value;
onChanged();
return this;
}
private long lastUpdatedTime_ ;
/**
* optional int64 last_updated_time = 4;
* @return Whether the lastUpdatedTime field is set.
*/
@java.lang.Override
public boolean hasLastUpdatedTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 last_updated_time = 4;
* @return The lastUpdatedTime.
*/
@java.lang.Override
public long getLastUpdatedTime() {
return lastUpdatedTime_;
}
/**
* optional int64 last_updated_time = 4;
* @param value The lastUpdatedTime to set.
* @return This builder for chaining.
*/
public Builder setLastUpdatedTime(long value) {
bitField0_ |= 0x00000001;
lastUpdatedTime_ = value;
onChanged();
return this;
}
/**
* optional int64 last_updated_time = 4;
* @return This builder for chaining.
*/
public Builder clearLastUpdatedTime() {
bitField0_ = (bitField0_ & ~0x00000001);
lastUpdatedTime_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Struct columns_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> columnsBuilder_;
/**
* .google.protobuf.Struct columns = 5;
* @return Whether the columns field is set.
*/
public boolean hasColumns() {
return columnsBuilder_ != null || columns_ != null;
}
/**
* .google.protobuf.Struct columns = 5;
* @return The columns.
*/
public com.google.protobuf.Struct getColumns() {
if (columnsBuilder_ == null) {
return columns_ == null ? com.google.protobuf.Struct.getDefaultInstance() : columns_;
} else {
return columnsBuilder_.getMessage();
}
}
/**
* .google.protobuf.Struct columns = 5;
*/
public Builder setColumns(com.google.protobuf.Struct value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
columns_ = value;
onChanged();
} else {
columnsBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Struct columns = 5;
*/
public Builder setColumns(
com.google.protobuf.Struct.Builder builderForValue) {
if (columnsBuilder_ == null) {
columns_ = builderForValue.build();
onChanged();
} else {
columnsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Struct columns = 5;
*/
public Builder mergeColumns(com.google.protobuf.Struct value) {
if (columnsBuilder_ == null) {
if (columns_ != null) {
columns_ =
com.google.protobuf.Struct.newBuilder(columns_).mergeFrom(value).buildPartial();
} else {
columns_ = value;
}
onChanged();
} else {
columnsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Struct columns = 5;
*/
public Builder clearColumns() {
if (columnsBuilder_ == null) {
columns_ = null;
onChanged();
} else {
columns_ = null;
columnsBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Struct columns = 5;
*/
public com.google.protobuf.Struct.Builder getColumnsBuilder() {
onChanged();
return getColumnsFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Struct columns = 5;
*/
public com.google.protobuf.StructOrBuilder getColumnsOrBuilder() {
if (columnsBuilder_ != null) {
return columnsBuilder_.getMessageOrBuilder();
} else {
return columns_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : columns_;
}
}
/**
* .google.protobuf.Struct columns = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getColumnsFieldBuilder() {
if (columnsBuilder_ == null) {
columnsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getColumns(),
getParentForChildren(),
isClean());
columns_ = null;
}
return columnsBuilder_;
}
@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.RawRow)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.RawRow)
private static final com.cognite.client.dto.RawRow DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.RawRow();
}
public static com.cognite.client.dto.RawRow getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RawRow parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RawRow(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.RawRow getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy