proto.com.cognite.client.dto.ExtractionPipeline 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: extraction_pipeline.proto
package com.cognite.client.dto;
/**
* Protobuf type {@code com.cognite.beam.proto.ExtractionPipeline}
*/
public final class ExtractionPipeline extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.ExtractionPipeline)
ExtractionPipelineOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExtractionPipeline.newBuilder() to construct.
private ExtractionPipeline(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExtractionPipeline() {
externalId_ = "";
name_ = "";
description_ = "";
rawTables_ = java.util.Collections.emptyList();
schedule_ = "";
contacts_ = java.util.Collections.emptyList();
source_ = "";
documentation_ = "";
lastMessage_ = "";
createdBy_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExtractionPipeline();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExtractionPipeline(
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: {
bitField0_ |= 0x00000001;
id_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
externalId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
name_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
description_ = s;
break;
}
case 40: {
bitField0_ |= 0x00000010;
dataSetId_ = input.readInt64();
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
rawTables_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
rawTables_.add(
input.readMessage(com.cognite.client.dto.ExtractionPipeline.RawTable.parser(), extensionRegistry));
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
schedule_ = s;
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) != 0)) {
contacts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
contacts_.add(
input.readMessage(com.cognite.client.dto.ExtractionPipeline.Contact.parser(), extensionRegistry));
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000100) != 0)) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000100;
}
com.google.protobuf.MapEntry
metadata__ = input.readMessage(
MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
metadata_.getMutableMap().put(
metadata__.getKey(), metadata__.getValue());
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
source_ = s;
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
documentation_ = s;
break;
}
case 96: {
bitField0_ |= 0x00000100;
lastSuccess_ = input.readInt64();
break;
}
case 104: {
bitField0_ |= 0x00000200;
lastFailure_ = input.readInt64();
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
lastMessage_ = s;
break;
}
case 120: {
bitField0_ |= 0x00000800;
lastSeen_ = input.readInt64();
break;
}
case 128: {
bitField0_ |= 0x00001000;
createdTime_ = input.readInt64();
break;
}
case 136: {
bitField0_ |= 0x00002000;
lastUpdatedTime_ = input.readInt64();
break;
}
case 146: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00004000;
createdBy_ = s;
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 {
if (((mutable_bitField0_ & 0x00000020) != 0)) {
rawTables_ = java.util.Collections.unmodifiableList(rawTables_);
}
if (((mutable_bitField0_ & 0x00000080) != 0)) {
contacts_ = java.util.Collections.unmodifiableList(contacts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 9:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.ExtractionPipeline.class, com.cognite.client.dto.ExtractionPipeline.Builder.class);
}
public interface RawTableOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.cognite.beam.proto.ExtractionPipeline.RawTable)
com.google.protobuf.MessageOrBuilder {
/**
* string db_name = 1;
* @return The dbName.
*/
java.lang.String getDbName();
/**
* string db_name = 1;
* @return The bytes for dbName.
*/
com.google.protobuf.ByteString
getDbNameBytes();
/**
* string table_name = 2;
* @return The tableName.
*/
java.lang.String getTableName();
/**
* string table_name = 2;
* @return The bytes for tableName.
*/
com.google.protobuf.ByteString
getTableNameBytes();
}
/**
* Protobuf type {@code com.cognite.beam.proto.ExtractionPipeline.RawTable}
*/
public static final class RawTable extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.ExtractionPipeline.RawTable)
RawTableOrBuilder {
private static final long serialVersionUID = 0L;
// Use RawTable.newBuilder() to construct.
private RawTable(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RawTable() {
dbName_ = "";
tableName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RawTable();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RawTable(
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 10: {
java.lang.String s = input.readStringRequireUtf8();
dbName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
tableName_ = s;
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.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_RawTable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_RawTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.ExtractionPipeline.RawTable.class, com.cognite.client.dto.ExtractionPipeline.RawTable.Builder.class);
}
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;
}
}
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_);
}
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_);
}
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.ExtractionPipeline.RawTable)) {
return super.equals(obj);
}
com.cognite.client.dto.ExtractionPipeline.RawTable other = (com.cognite.client.dto.ExtractionPipeline.RawTable) obj;
if (!getDbName()
.equals(other.getDbName())) return false;
if (!getTableName()
.equals(other.getTableName())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.ExtractionPipeline.RawTable parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ExtractionPipeline.RawTable 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.ExtractionPipeline.RawTable parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ExtractionPipeline.RawTable 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.ExtractionPipeline.RawTable parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ExtractionPipeline.RawTable parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.ExtractionPipeline.RawTable parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ExtractionPipeline.RawTable 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.ExtractionPipeline.RawTable parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ExtractionPipeline.RawTable 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.ExtractionPipeline.RawTable parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ExtractionPipeline.RawTable 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.ExtractionPipeline.RawTable 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.ExtractionPipeline.RawTable}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.ExtractionPipeline.RawTable)
com.cognite.client.dto.ExtractionPipeline.RawTableOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_RawTable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_RawTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.ExtractionPipeline.RawTable.class, com.cognite.client.dto.ExtractionPipeline.RawTable.Builder.class);
}
// Construct using com.cognite.client.dto.ExtractionPipeline.RawTable.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_RawTable_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.ExtractionPipeline.RawTable getDefaultInstanceForType() {
return com.cognite.client.dto.ExtractionPipeline.RawTable.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.ExtractionPipeline.RawTable build() {
com.cognite.client.dto.ExtractionPipeline.RawTable result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.ExtractionPipeline.RawTable buildPartial() {
com.cognite.client.dto.ExtractionPipeline.RawTable result = new com.cognite.client.dto.ExtractionPipeline.RawTable(this);
result.dbName_ = dbName_;
result.tableName_ = tableName_;
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.ExtractionPipeline.RawTable) {
return mergeFrom((com.cognite.client.dto.ExtractionPipeline.RawTable)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.ExtractionPipeline.RawTable other) {
if (other == com.cognite.client.dto.ExtractionPipeline.RawTable.getDefaultInstance()) return this;
if (!other.getDbName().isEmpty()) {
dbName_ = other.dbName_;
onChanged();
}
if (!other.getTableName().isEmpty()) {
tableName_ = other.tableName_;
onChanged();
}
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.ExtractionPipeline.RawTable parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.ExtractionPipeline.RawTable) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
}
@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.ExtractionPipeline.RawTable)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.ExtractionPipeline.RawTable)
private static final com.cognite.client.dto.ExtractionPipeline.RawTable DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.ExtractionPipeline.RawTable();
}
public static com.cognite.client.dto.ExtractionPipeline.RawTable getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RawTable parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RawTable(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.ExtractionPipeline.RawTable getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContactOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.cognite.beam.proto.ExtractionPipeline.Contact)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
* @return Whether the name field is set.
*/
boolean hasName();
/**
* optional string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* optional string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional string email = 2;
* @return Whether the email field is set.
*/
boolean hasEmail();
/**
* optional string email = 2;
* @return The email.
*/
java.lang.String getEmail();
/**
* optional string email = 2;
* @return The bytes for email.
*/
com.google.protobuf.ByteString
getEmailBytes();
/**
* optional string role = 3;
* @return Whether the role field is set.
*/
boolean hasRole();
/**
* optional string role = 3;
* @return The role.
*/
java.lang.String getRole();
/**
* optional string role = 3;
* @return The bytes for role.
*/
com.google.protobuf.ByteString
getRoleBytes();
/**
* bool send_notification = 4;
* @return The sendNotification.
*/
boolean getSendNotification();
}
/**
* Protobuf type {@code com.cognite.beam.proto.ExtractionPipeline.Contact}
*/
public static final class Contact extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.ExtractionPipeline.Contact)
ContactOrBuilder {
private static final long serialVersionUID = 0L;
// Use Contact.newBuilder() to construct.
private Contact(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Contact() {
name_ = "";
email_ = "";
role_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Contact();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Contact(
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();
bitField0_ |= 0x00000001;
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
email_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
role_ = s;
break;
}
case 32: {
sendNotification_ = input.readBool();
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.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_Contact_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_Contact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.ExtractionPipeline.Contact.class, com.cognite.client.dto.ExtractionPipeline.Contact.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* optional string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EMAIL_FIELD_NUMBER = 2;
private volatile java.lang.Object email_;
/**
* optional string email = 2;
* @return Whether the email field is set.
*/
@java.lang.Override
public boolean hasEmail() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string email = 2;
* @return The email.
*/
@java.lang.Override
public java.lang.String getEmail() {
java.lang.Object ref = email_;
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();
email_ = s;
return s;
}
}
/**
* optional string email = 2;
* @return The bytes for email.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEmailBytes() {
java.lang.Object ref = email_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
email_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROLE_FIELD_NUMBER = 3;
private volatile java.lang.Object role_;
/**
* optional string role = 3;
* @return Whether the role field is set.
*/
@java.lang.Override
public boolean hasRole() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string role = 3;
* @return The role.
*/
@java.lang.Override
public java.lang.String getRole() {
java.lang.Object ref = role_;
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();
role_ = s;
return s;
}
}
/**
* optional string role = 3;
* @return The bytes for role.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRoleBytes() {
java.lang.Object ref = role_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
role_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEND_NOTIFICATION_FIELD_NUMBER = 4;
private boolean sendNotification_;
/**
* bool send_notification = 4;
* @return The sendNotification.
*/
@java.lang.Override
public boolean getSendNotification() {
return sendNotification_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, role_);
}
if (sendNotification_ != false) {
output.writeBool(4, sendNotification_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, role_);
}
if (sendNotification_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, sendNotification_);
}
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.ExtractionPipeline.Contact)) {
return super.equals(obj);
}
com.cognite.client.dto.ExtractionPipeline.Contact other = (com.cognite.client.dto.ExtractionPipeline.Contact) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasEmail() != other.hasEmail()) return false;
if (hasEmail()) {
if (!getEmail()
.equals(other.getEmail())) return false;
}
if (hasRole() != other.hasRole()) return false;
if (hasRole()) {
if (!getRole()
.equals(other.getRole())) return false;
}
if (getSendNotification()
!= other.getSendNotification()) 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 (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasEmail()) {
hash = (37 * hash) + EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getEmail().hashCode();
}
if (hasRole()) {
hash = (37 * hash) + ROLE_FIELD_NUMBER;
hash = (53 * hash) + getRole().hashCode();
}
hash = (37 * hash) + SEND_NOTIFICATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSendNotification());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.ExtractionPipeline.Contact parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ExtractionPipeline.Contact 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.ExtractionPipeline.Contact parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ExtractionPipeline.Contact 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.ExtractionPipeline.Contact parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ExtractionPipeline.Contact parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.ExtractionPipeline.Contact parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ExtractionPipeline.Contact 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.ExtractionPipeline.Contact parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ExtractionPipeline.Contact 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.ExtractionPipeline.Contact parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ExtractionPipeline.Contact 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.ExtractionPipeline.Contact 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.ExtractionPipeline.Contact}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.ExtractionPipeline.Contact)
com.cognite.client.dto.ExtractionPipeline.ContactOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_Contact_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_Contact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.ExtractionPipeline.Contact.class, com.cognite.client.dto.ExtractionPipeline.Contact.Builder.class);
}
// Construct using com.cognite.client.dto.ExtractionPipeline.Contact.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();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
email_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
role_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
sendNotification_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_Contact_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.ExtractionPipeline.Contact getDefaultInstanceForType() {
return com.cognite.client.dto.ExtractionPipeline.Contact.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.ExtractionPipeline.Contact build() {
com.cognite.client.dto.ExtractionPipeline.Contact result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.ExtractionPipeline.Contact buildPartial() {
com.cognite.client.dto.ExtractionPipeline.Contact result = new com.cognite.client.dto.ExtractionPipeline.Contact(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.email_ = email_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.role_ = role_;
result.sendNotification_ = sendNotification_;
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.ExtractionPipeline.Contact) {
return mergeFrom((com.cognite.client.dto.ExtractionPipeline.Contact)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.ExtractionPipeline.Contact other) {
if (other == com.cognite.client.dto.ExtractionPipeline.Contact.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasEmail()) {
bitField0_ |= 0x00000002;
email_ = other.email_;
onChanged();
}
if (other.hasRole()) {
bitField0_ |= 0x00000004;
role_ = other.role_;
onChanged();
}
if (other.getSendNotification() != false) {
setSendNotification(other.getSendNotification());
}
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.ExtractionPipeline.Contact parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.ExtractionPipeline.Contact) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object email_ = "";
/**
* optional string email = 2;
* @return Whether the email field is set.
*/
public boolean hasEmail() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string email = 2;
* @return The email.
*/
public java.lang.String getEmail() {
java.lang.Object ref = email_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
email_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string email = 2;
* @return The bytes for email.
*/
public com.google.protobuf.ByteString
getEmailBytes() {
java.lang.Object ref = email_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
email_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string email = 2;
* @param value The email to set.
* @return This builder for chaining.
*/
public Builder setEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
email_ = value;
onChanged();
return this;
}
/**
* optional string email = 2;
* @return This builder for chaining.
*/
public Builder clearEmail() {
bitField0_ = (bitField0_ & ~0x00000002);
email_ = getDefaultInstance().getEmail();
onChanged();
return this;
}
/**
* optional string email = 2;
* @param value The bytes for email to set.
* @return This builder for chaining.
*/
public Builder setEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
email_ = value;
onChanged();
return this;
}
private java.lang.Object role_ = "";
/**
* optional string role = 3;
* @return Whether the role field is set.
*/
public boolean hasRole() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string role = 3;
* @return The role.
*/
public java.lang.String getRole() {
java.lang.Object ref = role_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
role_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string role = 3;
* @return The bytes for role.
*/
public com.google.protobuf.ByteString
getRoleBytes() {
java.lang.Object ref = role_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
role_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string role = 3;
* @param value The role to set.
* @return This builder for chaining.
*/
public Builder setRole(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
role_ = value;
onChanged();
return this;
}
/**
* optional string role = 3;
* @return This builder for chaining.
*/
public Builder clearRole() {
bitField0_ = (bitField0_ & ~0x00000004);
role_ = getDefaultInstance().getRole();
onChanged();
return this;
}
/**
* optional string role = 3;
* @param value The bytes for role to set.
* @return This builder for chaining.
*/
public Builder setRoleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000004;
role_ = value;
onChanged();
return this;
}
private boolean sendNotification_ ;
/**
* bool send_notification = 4;
* @return The sendNotification.
*/
@java.lang.Override
public boolean getSendNotification() {
return sendNotification_;
}
/**
* bool send_notification = 4;
* @param value The sendNotification to set.
* @return This builder for chaining.
*/
public Builder setSendNotification(boolean value) {
sendNotification_ = value;
onChanged();
return this;
}
/**
* bool send_notification = 4;
* @return This builder for chaining.
*/
public Builder clearSendNotification() {
sendNotification_ = false;
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.ExtractionPipeline.Contact)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.ExtractionPipeline.Contact)
private static final com.cognite.client.dto.ExtractionPipeline.Contact DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.ExtractionPipeline.Contact();
}
public static com.cognite.client.dto.ExtractionPipeline.Contact getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Contact parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Contact(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.ExtractionPipeline.Contact getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private long id_;
/**
* optional int64 id = 1;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int EXTERNAL_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object externalId_;
/**
* optional string external_id = 2;
* @return Whether the externalId field is set.
*/
@java.lang.Override
public boolean hasExternalId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string external_id = 2;
* @return The externalId.
*/
@java.lang.Override
public java.lang.String getExternalId() {
java.lang.Object ref = externalId_;
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();
externalId_ = s;
return s;
}
}
/**
* optional string external_id = 2;
* @return The bytes for externalId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExternalIdBytes() {
java.lang.Object ref = externalId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
externalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
* optional string name = 3;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string name = 3;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* optional string name = 3;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object description_;
/**
* optional string description = 4;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string description = 4;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
* optional string description = 4;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_SET_ID_FIELD_NUMBER = 5;
private long dataSetId_;
/**
* optional int64 data_set_id = 5;
* @return Whether the dataSetId field is set.
*/
@java.lang.Override
public boolean hasDataSetId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 data_set_id = 5;
* @return The dataSetId.
*/
@java.lang.Override
public long getDataSetId() {
return dataSetId_;
}
public static final int RAW_TABLES_FIELD_NUMBER = 6;
private java.util.List rawTables_;
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
@java.lang.Override
public java.util.List getRawTablesList() {
return rawTables_;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
@java.lang.Override
public java.util.List extends com.cognite.client.dto.ExtractionPipeline.RawTableOrBuilder>
getRawTablesOrBuilderList() {
return rawTables_;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
@java.lang.Override
public int getRawTablesCount() {
return rawTables_.size();
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
@java.lang.Override
public com.cognite.client.dto.ExtractionPipeline.RawTable getRawTables(int index) {
return rawTables_.get(index);
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
@java.lang.Override
public com.cognite.client.dto.ExtractionPipeline.RawTableOrBuilder getRawTablesOrBuilder(
int index) {
return rawTables_.get(index);
}
public static final int SCHEDULE_FIELD_NUMBER = 7;
private volatile java.lang.Object schedule_;
/**
* optional string schedule = 7;
* @return Whether the schedule field is set.
*/
@java.lang.Override
public boolean hasSchedule() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string schedule = 7;
* @return The schedule.
*/
@java.lang.Override
public java.lang.String getSchedule() {
java.lang.Object ref = schedule_;
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();
schedule_ = s;
return s;
}
}
/**
* optional string schedule = 7;
* @return The bytes for schedule.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScheduleBytes() {
java.lang.Object ref = schedule_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schedule_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTACTS_FIELD_NUMBER = 8;
private java.util.List contacts_;
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
@java.lang.Override
public java.util.List getContactsList() {
return contacts_;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
@java.lang.Override
public java.util.List extends com.cognite.client.dto.ExtractionPipeline.ContactOrBuilder>
getContactsOrBuilderList() {
return contacts_;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
@java.lang.Override
public int getContactsCount() {
return contacts_.size();
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
@java.lang.Override
public com.cognite.client.dto.ExtractionPipeline.Contact getContacts(int index) {
return contacts_.get(index);
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
@java.lang.Override
public com.cognite.client.dto.ExtractionPipeline.ContactOrBuilder getContactsOrBuilder(
int index) {
return contacts_.get(index);
}
public static final int METADATA_FIELD_NUMBER = 9;
private static final class MetadataDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_MetadataEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
* map<string, string> metadata = 9;
*/
@java.lang.Override
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
* map<string, string> metadata = 9;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
* map<string, string> metadata = 9;
*/
@java.lang.Override
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> metadata = 9;
*/
@java.lang.Override
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int SOURCE_FIELD_NUMBER = 10;
private volatile java.lang.Object source_;
/**
* optional string source = 10;
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string source = 10;
* @return The source.
*/
@java.lang.Override
public java.lang.String getSource() {
java.lang.Object ref = source_;
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();
source_ = s;
return s;
}
}
/**
* optional string source = 10;
* @return The bytes for source.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DOCUMENTATION_FIELD_NUMBER = 11;
private volatile java.lang.Object documentation_;
/**
* optional string documentation = 11;
* @return Whether the documentation field is set.
*/
@java.lang.Override
public boolean hasDocumentation() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string documentation = 11;
* @return The documentation.
*/
@java.lang.Override
public java.lang.String getDocumentation() {
java.lang.Object ref = documentation_;
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();
documentation_ = s;
return s;
}
}
/**
* optional string documentation = 11;
* @return The bytes for documentation.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDocumentationBytes() {
java.lang.Object ref = documentation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
documentation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAST_SUCCESS_FIELD_NUMBER = 12;
private long lastSuccess_;
/**
* optional int64 last_success = 12;
* @return Whether the lastSuccess field is set.
*/
@java.lang.Override
public boolean hasLastSuccess() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int64 last_success = 12;
* @return The lastSuccess.
*/
@java.lang.Override
public long getLastSuccess() {
return lastSuccess_;
}
public static final int LAST_FAILURE_FIELD_NUMBER = 13;
private long lastFailure_;
/**
* optional int64 last_failure = 13;
* @return Whether the lastFailure field is set.
*/
@java.lang.Override
public boolean hasLastFailure() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int64 last_failure = 13;
* @return The lastFailure.
*/
@java.lang.Override
public long getLastFailure() {
return lastFailure_;
}
public static final int LAST_MESSAGE_FIELD_NUMBER = 14;
private volatile java.lang.Object lastMessage_;
/**
* optional string last_message = 14;
* @return Whether the lastMessage field is set.
*/
@java.lang.Override
public boolean hasLastMessage() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string last_message = 14;
* @return The lastMessage.
*/
@java.lang.Override
public java.lang.String getLastMessage() {
java.lang.Object ref = lastMessage_;
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();
lastMessage_ = s;
return s;
}
}
/**
* optional string last_message = 14;
* @return The bytes for lastMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLastMessageBytes() {
java.lang.Object ref = lastMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAST_SEEN_FIELD_NUMBER = 15;
private long lastSeen_;
/**
* optional int64 last_seen = 15;
* @return Whether the lastSeen field is set.
*/
@java.lang.Override
public boolean hasLastSeen() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional int64 last_seen = 15;
* @return The lastSeen.
*/
@java.lang.Override
public long getLastSeen() {
return lastSeen_;
}
public static final int CREATED_TIME_FIELD_NUMBER = 16;
private long createdTime_;
/**
* optional int64 created_time = 16;
* @return Whether the createdTime field is set.
*/
@java.lang.Override
public boolean hasCreatedTime() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional int64 created_time = 16;
* @return The createdTime.
*/
@java.lang.Override
public long getCreatedTime() {
return createdTime_;
}
public static final int LAST_UPDATED_TIME_FIELD_NUMBER = 17;
private long lastUpdatedTime_;
/**
* optional int64 last_updated_time = 17;
* @return Whether the lastUpdatedTime field is set.
*/
@java.lang.Override
public boolean hasLastUpdatedTime() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional int64 last_updated_time = 17;
* @return The lastUpdatedTime.
*/
@java.lang.Override
public long getLastUpdatedTime() {
return lastUpdatedTime_;
}
public static final int CREATED_BY_FIELD_NUMBER = 18;
private volatile java.lang.Object createdBy_;
/**
* optional string created_by = 18;
* @return Whether the createdBy field is set.
*/
@java.lang.Override
public boolean hasCreatedBy() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional string created_by = 18;
* @return The createdBy.
*/
@java.lang.Override
public java.lang.String getCreatedBy() {
java.lang.Object ref = createdBy_;
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();
createdBy_ = s;
return s;
}
}
/**
* optional string created_by = 18;
* @return The bytes for createdBy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCreatedByBytes() {
java.lang.Object ref = createdBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
createdBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, externalId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(5, dataSetId_);
}
for (int i = 0; i < rawTables_.size(); i++) {
output.writeMessage(6, rawTables_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, schedule_);
}
for (int i = 0; i < contacts_.size(); i++) {
output.writeMessage(8, contacts_.get(i));
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetadata(),
MetadataDefaultEntryHolder.defaultEntry,
9);
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, source_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, documentation_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt64(12, lastSuccess_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeInt64(13, lastFailure_);
}
if (((bitField0_ & 0x00000400) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, lastMessage_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeInt64(15, lastSeen_);
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeInt64(16, createdTime_);
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeInt64(17, lastUpdatedTime_);
}
if (((bitField0_ & 0x00004000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, createdBy_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, externalId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, dataSetId_);
}
for (int i = 0; i < rawTables_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, rawTables_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, schedule_);
}
for (int i = 0; i < contacts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, contacts_.get(i));
}
for (java.util.Map.Entry entry
: internalGetMetadata().getMap().entrySet()) {
com.google.protobuf.MapEntry
metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, metadata__);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, source_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, documentation_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, lastSuccess_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(13, lastFailure_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, lastMessage_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(15, lastSeen_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(16, createdTime_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(17, lastUpdatedTime_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, createdBy_);
}
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.ExtractionPipeline)) {
return super.equals(obj);
}
com.cognite.client.dto.ExtractionPipeline other = (com.cognite.client.dto.ExtractionPipeline) obj;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) return false;
}
if (hasExternalId() != other.hasExternalId()) return false;
if (hasExternalId()) {
if (!getExternalId()
.equals(other.getExternalId())) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) return false;
}
if (hasDataSetId() != other.hasDataSetId()) return false;
if (hasDataSetId()) {
if (getDataSetId()
!= other.getDataSetId()) return false;
}
if (!getRawTablesList()
.equals(other.getRawTablesList())) return false;
if (hasSchedule() != other.hasSchedule()) return false;
if (hasSchedule()) {
if (!getSchedule()
.equals(other.getSchedule())) return false;
}
if (!getContactsList()
.equals(other.getContactsList())) return false;
if (!internalGetMetadata().equals(
other.internalGetMetadata())) return false;
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource()
.equals(other.getSource())) return false;
}
if (hasDocumentation() != other.hasDocumentation()) return false;
if (hasDocumentation()) {
if (!getDocumentation()
.equals(other.getDocumentation())) return false;
}
if (hasLastSuccess() != other.hasLastSuccess()) return false;
if (hasLastSuccess()) {
if (getLastSuccess()
!= other.getLastSuccess()) return false;
}
if (hasLastFailure() != other.hasLastFailure()) return false;
if (hasLastFailure()) {
if (getLastFailure()
!= other.getLastFailure()) return false;
}
if (hasLastMessage() != other.hasLastMessage()) return false;
if (hasLastMessage()) {
if (!getLastMessage()
.equals(other.getLastMessage())) return false;
}
if (hasLastSeen() != other.hasLastSeen()) return false;
if (hasLastSeen()) {
if (getLastSeen()
!= other.getLastSeen()) return false;
}
if (hasCreatedTime() != other.hasCreatedTime()) return false;
if (hasCreatedTime()) {
if (getCreatedTime()
!= other.getCreatedTime()) return false;
}
if (hasLastUpdatedTime() != other.hasLastUpdatedTime()) return false;
if (hasLastUpdatedTime()) {
if (getLastUpdatedTime()
!= other.getLastUpdatedTime()) return false;
}
if (hasCreatedBy() != other.hasCreatedBy()) return false;
if (hasCreatedBy()) {
if (!getCreatedBy()
.equals(other.getCreatedBy())) 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 (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
}
if (hasExternalId()) {
hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER;
hash = (53 * hash) + getExternalId().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
if (hasDataSetId()) {
hash = (37 * hash) + DATA_SET_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDataSetId());
}
if (getRawTablesCount() > 0) {
hash = (37 * hash) + RAW_TABLES_FIELD_NUMBER;
hash = (53 * hash) + getRawTablesList().hashCode();
}
if (hasSchedule()) {
hash = (37 * hash) + SCHEDULE_FIELD_NUMBER;
hash = (53 * hash) + getSchedule().hashCode();
}
if (getContactsCount() > 0) {
hash = (37 * hash) + CONTACTS_FIELD_NUMBER;
hash = (53 * hash) + getContactsList().hashCode();
}
if (!internalGetMetadata().getMap().isEmpty()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetadata().hashCode();
}
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
if (hasDocumentation()) {
hash = (37 * hash) + DOCUMENTATION_FIELD_NUMBER;
hash = (53 * hash) + getDocumentation().hashCode();
}
if (hasLastSuccess()) {
hash = (37 * hash) + LAST_SUCCESS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastSuccess());
}
if (hasLastFailure()) {
hash = (37 * hash) + LAST_FAILURE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastFailure());
}
if (hasLastMessage()) {
hash = (37 * hash) + LAST_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getLastMessage().hashCode();
}
if (hasLastSeen()) {
hash = (37 * hash) + LAST_SEEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastSeen());
}
if (hasCreatedTime()) {
hash = (37 * hash) + CREATED_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCreatedTime());
}
if (hasLastUpdatedTime()) {
hash = (37 * hash) + LAST_UPDATED_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastUpdatedTime());
}
if (hasCreatedBy()) {
hash = (37 * hash) + CREATED_BY_FIELD_NUMBER;
hash = (53 * hash) + getCreatedBy().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.ExtractionPipeline parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ExtractionPipeline 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.ExtractionPipeline parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ExtractionPipeline 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.ExtractionPipeline parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.ExtractionPipeline parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.ExtractionPipeline parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ExtractionPipeline 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.ExtractionPipeline parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ExtractionPipeline 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.ExtractionPipeline parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.ExtractionPipeline 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.ExtractionPipeline 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.ExtractionPipeline}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.ExtractionPipeline)
com.cognite.client.dto.ExtractionPipelineOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 9:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 9:
return internalGetMutableMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.ExtractionPipeline.class, com.cognite.client.dto.ExtractionPipeline.Builder.class);
}
// Construct using com.cognite.client.dto.ExtractionPipeline.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRawTablesFieldBuilder();
getContactsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
externalId_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
description_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
dataSetId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
if (rawTablesBuilder_ == null) {
rawTables_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
rawTablesBuilder_.clear();
}
schedule_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
if (contactsBuilder_ == null) {
contacts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
contactsBuilder_.clear();
}
internalGetMutableMetadata().clear();
source_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
documentation_ = "";
bitField0_ = (bitField0_ & ~0x00000400);
lastSuccess_ = 0L;
bitField0_ = (bitField0_ & ~0x00000800);
lastFailure_ = 0L;
bitField0_ = (bitField0_ & ~0x00001000);
lastMessage_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
lastSeen_ = 0L;
bitField0_ = (bitField0_ & ~0x00004000);
createdTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00008000);
lastUpdatedTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00010000);
createdBy_ = "";
bitField0_ = (bitField0_ & ~0x00020000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.ExtractionPipelineOuterClass.internal_static_com_cognite_beam_proto_ExtractionPipeline_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.ExtractionPipeline getDefaultInstanceForType() {
return com.cognite.client.dto.ExtractionPipeline.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.ExtractionPipeline build() {
com.cognite.client.dto.ExtractionPipeline result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.ExtractionPipeline buildPartial() {
com.cognite.client.dto.ExtractionPipeline result = new com.cognite.client.dto.ExtractionPipeline(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.externalId_ = externalId_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.description_ = description_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.dataSetId_ = dataSetId_;
to_bitField0_ |= 0x00000010;
}
if (rawTablesBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
rawTables_ = java.util.Collections.unmodifiableList(rawTables_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.rawTables_ = rawTables_;
} else {
result.rawTables_ = rawTablesBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.schedule_ = schedule_;
if (contactsBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
contacts_ = java.util.Collections.unmodifiableList(contacts_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.contacts_ = contacts_;
} else {
result.contacts_ = contactsBuilder_.build();
}
result.metadata_ = internalGetMetadata();
result.metadata_.makeImmutable();
if (((from_bitField0_ & 0x00000200) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.source_ = source_;
if (((from_bitField0_ & 0x00000400) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.documentation_ = documentation_;
if (((from_bitField0_ & 0x00000800) != 0)) {
result.lastSuccess_ = lastSuccess_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.lastFailure_ = lastFailure_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
to_bitField0_ |= 0x00000400;
}
result.lastMessage_ = lastMessage_;
if (((from_bitField0_ & 0x00004000) != 0)) {
result.lastSeen_ = lastSeen_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.createdTime_ = createdTime_;
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.lastUpdatedTime_ = lastUpdatedTime_;
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
to_bitField0_ |= 0x00004000;
}
result.createdBy_ = createdBy_;
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.ExtractionPipeline) {
return mergeFrom((com.cognite.client.dto.ExtractionPipeline)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.ExtractionPipeline other) {
if (other == com.cognite.client.dto.ExtractionPipeline.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasExternalId()) {
bitField0_ |= 0x00000002;
externalId_ = other.externalId_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000004;
name_ = other.name_;
onChanged();
}
if (other.hasDescription()) {
bitField0_ |= 0x00000008;
description_ = other.description_;
onChanged();
}
if (other.hasDataSetId()) {
setDataSetId(other.getDataSetId());
}
if (rawTablesBuilder_ == null) {
if (!other.rawTables_.isEmpty()) {
if (rawTables_.isEmpty()) {
rawTables_ = other.rawTables_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureRawTablesIsMutable();
rawTables_.addAll(other.rawTables_);
}
onChanged();
}
} else {
if (!other.rawTables_.isEmpty()) {
if (rawTablesBuilder_.isEmpty()) {
rawTablesBuilder_.dispose();
rawTablesBuilder_ = null;
rawTables_ = other.rawTables_;
bitField0_ = (bitField0_ & ~0x00000020);
rawTablesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRawTablesFieldBuilder() : null;
} else {
rawTablesBuilder_.addAllMessages(other.rawTables_);
}
}
}
if (other.hasSchedule()) {
bitField0_ |= 0x00000040;
schedule_ = other.schedule_;
onChanged();
}
if (contactsBuilder_ == null) {
if (!other.contacts_.isEmpty()) {
if (contacts_.isEmpty()) {
contacts_ = other.contacts_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureContactsIsMutable();
contacts_.addAll(other.contacts_);
}
onChanged();
}
} else {
if (!other.contacts_.isEmpty()) {
if (contactsBuilder_.isEmpty()) {
contactsBuilder_.dispose();
contactsBuilder_ = null;
contacts_ = other.contacts_;
bitField0_ = (bitField0_ & ~0x00000080);
contactsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContactsFieldBuilder() : null;
} else {
contactsBuilder_.addAllMessages(other.contacts_);
}
}
}
internalGetMutableMetadata().mergeFrom(
other.internalGetMetadata());
if (other.hasSource()) {
bitField0_ |= 0x00000200;
source_ = other.source_;
onChanged();
}
if (other.hasDocumentation()) {
bitField0_ |= 0x00000400;
documentation_ = other.documentation_;
onChanged();
}
if (other.hasLastSuccess()) {
setLastSuccess(other.getLastSuccess());
}
if (other.hasLastFailure()) {
setLastFailure(other.getLastFailure());
}
if (other.hasLastMessage()) {
bitField0_ |= 0x00002000;
lastMessage_ = other.lastMessage_;
onChanged();
}
if (other.hasLastSeen()) {
setLastSeen(other.getLastSeen());
}
if (other.hasCreatedTime()) {
setCreatedTime(other.getCreatedTime());
}
if (other.hasLastUpdatedTime()) {
setLastUpdatedTime(other.getLastUpdatedTime());
}
if (other.hasCreatedBy()) {
bitField0_ |= 0x00020000;
createdBy_ = other.createdBy_;
onChanged();
}
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.ExtractionPipeline parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.ExtractionPipeline) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long id_ ;
/**
* optional int64 id = 1;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
* optional int64 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* optional int64 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object externalId_ = "";
/**
* optional string external_id = 2;
* @return Whether the externalId field is set.
*/
public boolean hasExternalId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string external_id = 2;
* @return The externalId.
*/
public java.lang.String getExternalId() {
java.lang.Object ref = externalId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
externalId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string external_id = 2;
* @return The bytes for externalId.
*/
public com.google.protobuf.ByteString
getExternalIdBytes() {
java.lang.Object ref = externalId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
externalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional 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();
}
bitField0_ |= 0x00000002;
externalId_ = value;
onChanged();
return this;
}
/**
* optional string external_id = 2;
* @return This builder for chaining.
*/
public Builder clearExternalId() {
bitField0_ = (bitField0_ & ~0x00000002);
externalId_ = getDefaultInstance().getExternalId();
onChanged();
return this;
}
/**
* optional 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);
bitField0_ |= 0x00000002;
externalId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* optional string name = 3;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string name = 3;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 3;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 3;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000004);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 3;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* optional string description = 4;
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string description = 4;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string description = 4;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string description = 4;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
description_ = value;
onChanged();
return this;
}
/**
* optional string description = 4;
* @return This builder for chaining.
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000008);
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* optional string description = 4;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000008;
description_ = value;
onChanged();
return this;
}
private long dataSetId_ ;
/**
* optional int64 data_set_id = 5;
* @return Whether the dataSetId field is set.
*/
@java.lang.Override
public boolean hasDataSetId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 data_set_id = 5;
* @return The dataSetId.
*/
@java.lang.Override
public long getDataSetId() {
return dataSetId_;
}
/**
* optional int64 data_set_id = 5;
* @param value The dataSetId to set.
* @return This builder for chaining.
*/
public Builder setDataSetId(long value) {
bitField0_ |= 0x00000010;
dataSetId_ = value;
onChanged();
return this;
}
/**
* optional int64 data_set_id = 5;
* @return This builder for chaining.
*/
public Builder clearDataSetId() {
bitField0_ = (bitField0_ & ~0x00000010);
dataSetId_ = 0L;
onChanged();
return this;
}
private java.util.List rawTables_ =
java.util.Collections.emptyList();
private void ensureRawTablesIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
rawTables_ = new java.util.ArrayList(rawTables_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.ExtractionPipeline.RawTable, com.cognite.client.dto.ExtractionPipeline.RawTable.Builder, com.cognite.client.dto.ExtractionPipeline.RawTableOrBuilder> rawTablesBuilder_;
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public java.util.List getRawTablesList() {
if (rawTablesBuilder_ == null) {
return java.util.Collections.unmodifiableList(rawTables_);
} else {
return rawTablesBuilder_.getMessageList();
}
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public int getRawTablesCount() {
if (rawTablesBuilder_ == null) {
return rawTables_.size();
} else {
return rawTablesBuilder_.getCount();
}
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public com.cognite.client.dto.ExtractionPipeline.RawTable getRawTables(int index) {
if (rawTablesBuilder_ == null) {
return rawTables_.get(index);
} else {
return rawTablesBuilder_.getMessage(index);
}
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public Builder setRawTables(
int index, com.cognite.client.dto.ExtractionPipeline.RawTable value) {
if (rawTablesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRawTablesIsMutable();
rawTables_.set(index, value);
onChanged();
} else {
rawTablesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public Builder setRawTables(
int index, com.cognite.client.dto.ExtractionPipeline.RawTable.Builder builderForValue) {
if (rawTablesBuilder_ == null) {
ensureRawTablesIsMutable();
rawTables_.set(index, builderForValue.build());
onChanged();
} else {
rawTablesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public Builder addRawTables(com.cognite.client.dto.ExtractionPipeline.RawTable value) {
if (rawTablesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRawTablesIsMutable();
rawTables_.add(value);
onChanged();
} else {
rawTablesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public Builder addRawTables(
int index, com.cognite.client.dto.ExtractionPipeline.RawTable value) {
if (rawTablesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRawTablesIsMutable();
rawTables_.add(index, value);
onChanged();
} else {
rawTablesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public Builder addRawTables(
com.cognite.client.dto.ExtractionPipeline.RawTable.Builder builderForValue) {
if (rawTablesBuilder_ == null) {
ensureRawTablesIsMutable();
rawTables_.add(builderForValue.build());
onChanged();
} else {
rawTablesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public Builder addRawTables(
int index, com.cognite.client.dto.ExtractionPipeline.RawTable.Builder builderForValue) {
if (rawTablesBuilder_ == null) {
ensureRawTablesIsMutable();
rawTables_.add(index, builderForValue.build());
onChanged();
} else {
rawTablesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public Builder addAllRawTables(
java.lang.Iterable extends com.cognite.client.dto.ExtractionPipeline.RawTable> values) {
if (rawTablesBuilder_ == null) {
ensureRawTablesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rawTables_);
onChanged();
} else {
rawTablesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public Builder clearRawTables() {
if (rawTablesBuilder_ == null) {
rawTables_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
rawTablesBuilder_.clear();
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public Builder removeRawTables(int index) {
if (rawTablesBuilder_ == null) {
ensureRawTablesIsMutable();
rawTables_.remove(index);
onChanged();
} else {
rawTablesBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public com.cognite.client.dto.ExtractionPipeline.RawTable.Builder getRawTablesBuilder(
int index) {
return getRawTablesFieldBuilder().getBuilder(index);
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public com.cognite.client.dto.ExtractionPipeline.RawTableOrBuilder getRawTablesOrBuilder(
int index) {
if (rawTablesBuilder_ == null) {
return rawTables_.get(index); } else {
return rawTablesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public java.util.List extends com.cognite.client.dto.ExtractionPipeline.RawTableOrBuilder>
getRawTablesOrBuilderList() {
if (rawTablesBuilder_ != null) {
return rawTablesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rawTables_);
}
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public com.cognite.client.dto.ExtractionPipeline.RawTable.Builder addRawTablesBuilder() {
return getRawTablesFieldBuilder().addBuilder(
com.cognite.client.dto.ExtractionPipeline.RawTable.getDefaultInstance());
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public com.cognite.client.dto.ExtractionPipeline.RawTable.Builder addRawTablesBuilder(
int index) {
return getRawTablesFieldBuilder().addBuilder(
index, com.cognite.client.dto.ExtractionPipeline.RawTable.getDefaultInstance());
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.RawTable raw_tables = 6;
*/
public java.util.List
getRawTablesBuilderList() {
return getRawTablesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.ExtractionPipeline.RawTable, com.cognite.client.dto.ExtractionPipeline.RawTable.Builder, com.cognite.client.dto.ExtractionPipeline.RawTableOrBuilder>
getRawTablesFieldBuilder() {
if (rawTablesBuilder_ == null) {
rawTablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.ExtractionPipeline.RawTable, com.cognite.client.dto.ExtractionPipeline.RawTable.Builder, com.cognite.client.dto.ExtractionPipeline.RawTableOrBuilder>(
rawTables_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
rawTables_ = null;
}
return rawTablesBuilder_;
}
private java.lang.Object schedule_ = "";
/**
* optional string schedule = 7;
* @return Whether the schedule field is set.
*/
public boolean hasSchedule() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string schedule = 7;
* @return The schedule.
*/
public java.lang.String getSchedule() {
java.lang.Object ref = schedule_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
schedule_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string schedule = 7;
* @return The bytes for schedule.
*/
public com.google.protobuf.ByteString
getScheduleBytes() {
java.lang.Object ref = schedule_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schedule_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string schedule = 7;
* @param value The schedule to set.
* @return This builder for chaining.
*/
public Builder setSchedule(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
schedule_ = value;
onChanged();
return this;
}
/**
* optional string schedule = 7;
* @return This builder for chaining.
*/
public Builder clearSchedule() {
bitField0_ = (bitField0_ & ~0x00000040);
schedule_ = getDefaultInstance().getSchedule();
onChanged();
return this;
}
/**
* optional string schedule = 7;
* @param value The bytes for schedule to set.
* @return This builder for chaining.
*/
public Builder setScheduleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000040;
schedule_ = value;
onChanged();
return this;
}
private java.util.List contacts_ =
java.util.Collections.emptyList();
private void ensureContactsIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
contacts_ = new java.util.ArrayList(contacts_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.ExtractionPipeline.Contact, com.cognite.client.dto.ExtractionPipeline.Contact.Builder, com.cognite.client.dto.ExtractionPipeline.ContactOrBuilder> contactsBuilder_;
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public java.util.List getContactsList() {
if (contactsBuilder_ == null) {
return java.util.Collections.unmodifiableList(contacts_);
} else {
return contactsBuilder_.getMessageList();
}
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public int getContactsCount() {
if (contactsBuilder_ == null) {
return contacts_.size();
} else {
return contactsBuilder_.getCount();
}
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public com.cognite.client.dto.ExtractionPipeline.Contact getContacts(int index) {
if (contactsBuilder_ == null) {
return contacts_.get(index);
} else {
return contactsBuilder_.getMessage(index);
}
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public Builder setContacts(
int index, com.cognite.client.dto.ExtractionPipeline.Contact value) {
if (contactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContactsIsMutable();
contacts_.set(index, value);
onChanged();
} else {
contactsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public Builder setContacts(
int index, com.cognite.client.dto.ExtractionPipeline.Contact.Builder builderForValue) {
if (contactsBuilder_ == null) {
ensureContactsIsMutable();
contacts_.set(index, builderForValue.build());
onChanged();
} else {
contactsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public Builder addContacts(com.cognite.client.dto.ExtractionPipeline.Contact value) {
if (contactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContactsIsMutable();
contacts_.add(value);
onChanged();
} else {
contactsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public Builder addContacts(
int index, com.cognite.client.dto.ExtractionPipeline.Contact value) {
if (contactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContactsIsMutable();
contacts_.add(index, value);
onChanged();
} else {
contactsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public Builder addContacts(
com.cognite.client.dto.ExtractionPipeline.Contact.Builder builderForValue) {
if (contactsBuilder_ == null) {
ensureContactsIsMutable();
contacts_.add(builderForValue.build());
onChanged();
} else {
contactsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public Builder addContacts(
int index, com.cognite.client.dto.ExtractionPipeline.Contact.Builder builderForValue) {
if (contactsBuilder_ == null) {
ensureContactsIsMutable();
contacts_.add(index, builderForValue.build());
onChanged();
} else {
contactsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public Builder addAllContacts(
java.lang.Iterable extends com.cognite.client.dto.ExtractionPipeline.Contact> values) {
if (contactsBuilder_ == null) {
ensureContactsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contacts_);
onChanged();
} else {
contactsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public Builder clearContacts() {
if (contactsBuilder_ == null) {
contacts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
contactsBuilder_.clear();
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public Builder removeContacts(int index) {
if (contactsBuilder_ == null) {
ensureContactsIsMutable();
contacts_.remove(index);
onChanged();
} else {
contactsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public com.cognite.client.dto.ExtractionPipeline.Contact.Builder getContactsBuilder(
int index) {
return getContactsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public com.cognite.client.dto.ExtractionPipeline.ContactOrBuilder getContactsOrBuilder(
int index) {
if (contactsBuilder_ == null) {
return contacts_.get(index); } else {
return contactsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public java.util.List extends com.cognite.client.dto.ExtractionPipeline.ContactOrBuilder>
getContactsOrBuilderList() {
if (contactsBuilder_ != null) {
return contactsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contacts_);
}
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public com.cognite.client.dto.ExtractionPipeline.Contact.Builder addContactsBuilder() {
return getContactsFieldBuilder().addBuilder(
com.cognite.client.dto.ExtractionPipeline.Contact.getDefaultInstance());
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public com.cognite.client.dto.ExtractionPipeline.Contact.Builder addContactsBuilder(
int index) {
return getContactsFieldBuilder().addBuilder(
index, com.cognite.client.dto.ExtractionPipeline.Contact.getDefaultInstance());
}
/**
* repeated .com.cognite.beam.proto.ExtractionPipeline.Contact contacts = 8;
*/
public java.util.List
getContactsBuilderList() {
return getContactsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.ExtractionPipeline.Contact, com.cognite.client.dto.ExtractionPipeline.Contact.Builder, com.cognite.client.dto.ExtractionPipeline.ContactOrBuilder>
getContactsFieldBuilder() {
if (contactsBuilder_ == null) {
contactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.ExtractionPipeline.Contact, com.cognite.client.dto.ExtractionPipeline.Contact.Builder, com.cognite.client.dto.ExtractionPipeline.ContactOrBuilder>(
contacts_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
contacts_ = null;
}
return contactsBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
private com.google.protobuf.MapField
internalGetMutableMetadata() {
onChanged();;
if (metadata_ == null) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
if (!metadata_.isMutable()) {
metadata_ = metadata_.copy();
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
* map<string, string> metadata = 9;
*/
@java.lang.Override
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
* map<string, string> metadata = 9;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
* map<string, string> metadata = 9;
*/
@java.lang.Override
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> metadata = 9;
*/
@java.lang.Override
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMetadata() {
internalGetMutableMetadata().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> metadata = 9;
*/
public Builder removeMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableMetadata().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMetadata() {
return internalGetMutableMetadata().getMutableMap();
}
/**
* map<string, string> metadata = 9;
*/
public Builder putMetadata(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableMetadata().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, string> metadata = 9;
*/
public Builder putAllMetadata(
java.util.Map values) {
internalGetMutableMetadata().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object source_ = "";
/**
* optional string source = 10;
* @return Whether the source field is set.
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional string source = 10;
* @return The source.
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
source_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string source = 10;
* @return The bytes for source.
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string source = 10;
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
source_ = value;
onChanged();
return this;
}
/**
* optional string source = 10;
* @return This builder for chaining.
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000200);
source_ = getDefaultInstance().getSource();
onChanged();
return this;
}
/**
* optional string source = 10;
* @param value The bytes for source to set.
* @return This builder for chaining.
*/
public Builder setSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000200;
source_ = value;
onChanged();
return this;
}
private java.lang.Object documentation_ = "";
/**
* optional string documentation = 11;
* @return Whether the documentation field is set.
*/
public boolean hasDocumentation() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string documentation = 11;
* @return The documentation.
*/
public java.lang.String getDocumentation() {
java.lang.Object ref = documentation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
documentation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string documentation = 11;
* @return The bytes for documentation.
*/
public com.google.protobuf.ByteString
getDocumentationBytes() {
java.lang.Object ref = documentation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
documentation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string documentation = 11;
* @param value The documentation to set.
* @return This builder for chaining.
*/
public Builder setDocumentation(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
documentation_ = value;
onChanged();
return this;
}
/**
* optional string documentation = 11;
* @return This builder for chaining.
*/
public Builder clearDocumentation() {
bitField0_ = (bitField0_ & ~0x00000400);
documentation_ = getDefaultInstance().getDocumentation();
onChanged();
return this;
}
/**
* optional string documentation = 11;
* @param value The bytes for documentation to set.
* @return This builder for chaining.
*/
public Builder setDocumentationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000400;
documentation_ = value;
onChanged();
return this;
}
private long lastSuccess_ ;
/**
* optional int64 last_success = 12;
* @return Whether the lastSuccess field is set.
*/
@java.lang.Override
public boolean hasLastSuccess() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional int64 last_success = 12;
* @return The lastSuccess.
*/
@java.lang.Override
public long getLastSuccess() {
return lastSuccess_;
}
/**
* optional int64 last_success = 12;
* @param value The lastSuccess to set.
* @return This builder for chaining.
*/
public Builder setLastSuccess(long value) {
bitField0_ |= 0x00000800;
lastSuccess_ = value;
onChanged();
return this;
}
/**
* optional int64 last_success = 12;
* @return This builder for chaining.
*/
public Builder clearLastSuccess() {
bitField0_ = (bitField0_ & ~0x00000800);
lastSuccess_ = 0L;
onChanged();
return this;
}
private long lastFailure_ ;
/**
* optional int64 last_failure = 13;
* @return Whether the lastFailure field is set.
*/
@java.lang.Override
public boolean hasLastFailure() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional int64 last_failure = 13;
* @return The lastFailure.
*/
@java.lang.Override
public long getLastFailure() {
return lastFailure_;
}
/**
* optional int64 last_failure = 13;
* @param value The lastFailure to set.
* @return This builder for chaining.
*/
public Builder setLastFailure(long value) {
bitField0_ |= 0x00001000;
lastFailure_ = value;
onChanged();
return this;
}
/**
* optional int64 last_failure = 13;
* @return This builder for chaining.
*/
public Builder clearLastFailure() {
bitField0_ = (bitField0_ & ~0x00001000);
lastFailure_ = 0L;
onChanged();
return this;
}
private java.lang.Object lastMessage_ = "";
/**
* optional string last_message = 14;
* @return Whether the lastMessage field is set.
*/
public boolean hasLastMessage() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional string last_message = 14;
* @return The lastMessage.
*/
public java.lang.String getLastMessage() {
java.lang.Object ref = lastMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lastMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string last_message = 14;
* @return The bytes for lastMessage.
*/
public com.google.protobuf.ByteString
getLastMessageBytes() {
java.lang.Object ref = lastMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string last_message = 14;
* @param value The lastMessage to set.
* @return This builder for chaining.
*/
public Builder setLastMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
lastMessage_ = value;
onChanged();
return this;
}
/**
* optional string last_message = 14;
* @return This builder for chaining.
*/
public Builder clearLastMessage() {
bitField0_ = (bitField0_ & ~0x00002000);
lastMessage_ = getDefaultInstance().getLastMessage();
onChanged();
return this;
}
/**
* optional string last_message = 14;
* @param value The bytes for lastMessage to set.
* @return This builder for chaining.
*/
public Builder setLastMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00002000;
lastMessage_ = value;
onChanged();
return this;
}
private long lastSeen_ ;
/**
* optional int64 last_seen = 15;
* @return Whether the lastSeen field is set.
*/
@java.lang.Override
public boolean hasLastSeen() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional int64 last_seen = 15;
* @return The lastSeen.
*/
@java.lang.Override
public long getLastSeen() {
return lastSeen_;
}
/**
* optional int64 last_seen = 15;
* @param value The lastSeen to set.
* @return This builder for chaining.
*/
public Builder setLastSeen(long value) {
bitField0_ |= 0x00004000;
lastSeen_ = value;
onChanged();
return this;
}
/**
* optional int64 last_seen = 15;
* @return This builder for chaining.
*/
public Builder clearLastSeen() {
bitField0_ = (bitField0_ & ~0x00004000);
lastSeen_ = 0L;
onChanged();
return this;
}
private long createdTime_ ;
/**
* optional int64 created_time = 16;
* @return Whether the createdTime field is set.
*/
@java.lang.Override
public boolean hasCreatedTime() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional int64 created_time = 16;
* @return The createdTime.
*/
@java.lang.Override
public long getCreatedTime() {
return createdTime_;
}
/**
* optional int64 created_time = 16;
* @param value The createdTime to set.
* @return This builder for chaining.
*/
public Builder setCreatedTime(long value) {
bitField0_ |= 0x00008000;
createdTime_ = value;
onChanged();
return this;
}
/**
* optional int64 created_time = 16;
* @return This builder for chaining.
*/
public Builder clearCreatedTime() {
bitField0_ = (bitField0_ & ~0x00008000);
createdTime_ = 0L;
onChanged();
return this;
}
private long lastUpdatedTime_ ;
/**
* optional int64 last_updated_time = 17;
* @return Whether the lastUpdatedTime field is set.
*/
@java.lang.Override
public boolean hasLastUpdatedTime() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional int64 last_updated_time = 17;
* @return The lastUpdatedTime.
*/
@java.lang.Override
public long getLastUpdatedTime() {
return lastUpdatedTime_;
}
/**
* optional int64 last_updated_time = 17;
* @param value The lastUpdatedTime to set.
* @return This builder for chaining.
*/
public Builder setLastUpdatedTime(long value) {
bitField0_ |= 0x00010000;
lastUpdatedTime_ = value;
onChanged();
return this;
}
/**
* optional int64 last_updated_time = 17;
* @return This builder for chaining.
*/
public Builder clearLastUpdatedTime() {
bitField0_ = (bitField0_ & ~0x00010000);
lastUpdatedTime_ = 0L;
onChanged();
return this;
}
private java.lang.Object createdBy_ = "";
/**
* optional string created_by = 18;
* @return Whether the createdBy field is set.
*/
public boolean hasCreatedBy() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
* optional string created_by = 18;
* @return The createdBy.
*/
public java.lang.String getCreatedBy() {
java.lang.Object ref = createdBy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
createdBy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string created_by = 18;
* @return The bytes for createdBy.
*/
public com.google.protobuf.ByteString
getCreatedByBytes() {
java.lang.Object ref = createdBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
createdBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string created_by = 18;
* @param value The createdBy to set.
* @return This builder for chaining.
*/
public Builder setCreatedBy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00020000;
createdBy_ = value;
onChanged();
return this;
}
/**
* optional string created_by = 18;
* @return This builder for chaining.
*/
public Builder clearCreatedBy() {
bitField0_ = (bitField0_ & ~0x00020000);
createdBy_ = getDefaultInstance().getCreatedBy();
onChanged();
return this;
}
/**
* optional string created_by = 18;
* @param value The bytes for createdBy to set.
* @return This builder for chaining.
*/
public Builder setCreatedByBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00020000;
createdBy_ = value;
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.ExtractionPipeline)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.ExtractionPipeline)
private static final com.cognite.client.dto.ExtractionPipeline DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.ExtractionPipeline();
}
public static com.cognite.client.dto.ExtractionPipeline getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExtractionPipeline parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExtractionPipeline(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.ExtractionPipeline getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy