proto.com.cognite.client.dto.FileMetadata 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: file.proto
package com.cognite.client.dto;
/**
* Protobuf type {@code com.cognite.beam.proto.FileMetadata}
*/
public final class FileMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.FileMetadata)
FileMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileMetadata.newBuilder() to construct.
private FileMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileMetadata() {
externalId_ = "";
name_ = "";
directory_ = "";
source_ = "";
mimeType_ = "";
assetIds_ = emptyLongList();
securityCategories_ = emptyLongList();
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FileMetadata(
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;
externalId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
directory_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
source_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
mimeType_ = s;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000020;
}
com.google.protobuf.MapEntry
metadata__ = input.readMessage(
MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
metadata_.getMutableMap().put(
metadata__.getKey(), metadata__.getValue());
break;
}
case 56: {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
assetIds_ = newLongList();
mutable_bitField0_ |= 0x00000040;
}
assetIds_.addLong(input.readInt64());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) != 0) && input.getBytesUntilLimit() > 0) {
assetIds_ = newLongList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
assetIds_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 64: {
bitField0_ |= 0x00000020;
id_ = input.readInt64();
break;
}
case 72: {
uploaded_ = input.readBool();
break;
}
case 80: {
bitField0_ |= 0x00000040;
uploadedTime_ = input.readInt64();
break;
}
case 88: {
bitField0_ |= 0x00000080;
createdTime_ = input.readInt64();
break;
}
case 96: {
bitField0_ |= 0x00000100;
lastUpdatedTime_ = input.readInt64();
break;
}
case 104: {
bitField0_ |= 0x00000200;
sourceCreatedTime_ = input.readInt64();
break;
}
case 112: {
bitField0_ |= 0x00000400;
sourceModifiedTime_ = input.readInt64();
break;
}
case 120: {
bitField0_ |= 0x00000800;
dataSetId_ = input.readInt64();
break;
}
case 128: {
if (!((mutable_bitField0_ & 0x00004000) != 0)) {
securityCategories_ = newLongList();
mutable_bitField0_ |= 0x00004000;
}
securityCategories_.addLong(input.readInt64());
break;
}
case 130: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00004000) != 0) && input.getBytesUntilLimit() > 0) {
securityCategories_ = newLongList();
mutable_bitField0_ |= 0x00004000;
}
while (input.getBytesUntilLimit() > 0) {
securityCategories_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 138: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00008000) != 0)) {
labels_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00008000;
}
labels_.add(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_ & 0x00000040) != 0)) {
assetIds_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00004000) != 0)) {
securityCategories_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00008000) != 0)) {
labels_ = labels_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.File.internal_static_com_cognite_beam_proto_FileMetadata_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
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.File.internal_static_com_cognite_beam_proto_FileMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.FileMetadata.class, com.cognite.client.dto.FileMetadata.Builder.class);
}
private int bitField0_;
public static final int EXTERNAL_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object externalId_;
/**
* optional string external_id = 1;
* @return Whether the externalId field is set.
*/
@java.lang.Override
public boolean hasExternalId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string external_id = 1;
* @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 = 1;
* @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 = 2;
private volatile java.lang.Object name_;
/**
* optional string name = 2;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string name = 2;
* @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 = 2;
* @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 DIRECTORY_FIELD_NUMBER = 3;
private volatile java.lang.Object directory_;
/**
* optional string directory = 3;
* @return Whether the directory field is set.
*/
@java.lang.Override
public boolean hasDirectory() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string directory = 3;
* @return The directory.
*/
@java.lang.Override
public java.lang.String getDirectory() {
java.lang.Object ref = directory_;
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();
directory_ = s;
return s;
}
}
/**
* optional string directory = 3;
* @return The bytes for directory.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDirectoryBytes() {
java.lang.Object ref = directory_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
directory_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_FIELD_NUMBER = 4;
private volatile java.lang.Object source_;
/**
* optional string source = 4;
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string source = 4;
* @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 = 4;
* @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 MIME_TYPE_FIELD_NUMBER = 5;
private volatile java.lang.Object mimeType_;
/**
* optional string mime_type = 5;
* @return Whether the mimeType field is set.
*/
@java.lang.Override
public boolean hasMimeType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string mime_type = 5;
* @return The mimeType.
*/
@java.lang.Override
public java.lang.String getMimeType() {
java.lang.Object ref = mimeType_;
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();
mimeType_ = s;
return s;
}
}
/**
* optional string mime_type = 5;
* @return The bytes for mimeType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMimeTypeBytes() {
java.lang.Object ref = mimeType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mimeType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METADATA_FIELD_NUMBER = 6;
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.File.internal_static_com_cognite_beam_proto_FileMetadata_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 = 6;
*/
@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 = 6;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
* map<string, string> metadata = 6;
*/
@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 = 6;
*/
@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 ASSET_IDS_FIELD_NUMBER = 7;
private com.google.protobuf.Internal.LongList assetIds_;
/**
* repeated int64 asset_ids = 7;
* @return A list containing the assetIds.
*/
@java.lang.Override
public java.util.List
getAssetIdsList() {
return assetIds_;
}
/**
* repeated int64 asset_ids = 7;
* @return The count of assetIds.
*/
public int getAssetIdsCount() {
return assetIds_.size();
}
/**
* repeated int64 asset_ids = 7;
* @param index The index of the element to return.
* @return The assetIds at the given index.
*/
public long getAssetIds(int index) {
return assetIds_.getLong(index);
}
private int assetIdsMemoizedSerializedSize = -1;
public static final int ID_FIELD_NUMBER = 8;
private long id_;
/**
* optional int64 id = 8;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 id = 8;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int UPLOADED_FIELD_NUMBER = 9;
private boolean uploaded_;
/**
* bool uploaded = 9;
* @return The uploaded.
*/
@java.lang.Override
public boolean getUploaded() {
return uploaded_;
}
public static final int UPLOADED_TIME_FIELD_NUMBER = 10;
private long uploadedTime_;
/**
* optional int64 uploaded_time = 10;
* @return Whether the uploadedTime field is set.
*/
@java.lang.Override
public boolean hasUploadedTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 uploaded_time = 10;
* @return The uploadedTime.
*/
@java.lang.Override
public long getUploadedTime() {
return uploadedTime_;
}
public static final int CREATED_TIME_FIELD_NUMBER = 11;
private long createdTime_;
/**
* optional int64 created_time = 11;
* @return Whether the createdTime field is set.
*/
@java.lang.Override
public boolean hasCreatedTime() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int64 created_time = 11;
* @return The createdTime.
*/
@java.lang.Override
public long getCreatedTime() {
return createdTime_;
}
public static final int LAST_UPDATED_TIME_FIELD_NUMBER = 12;
private long lastUpdatedTime_;
/**
* optional int64 last_updated_time = 12;
* @return Whether the lastUpdatedTime field is set.
*/
@java.lang.Override
public boolean hasLastUpdatedTime() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int64 last_updated_time = 12;
* @return The lastUpdatedTime.
*/
@java.lang.Override
public long getLastUpdatedTime() {
return lastUpdatedTime_;
}
public static final int SOURCE_CREATED_TIME_FIELD_NUMBER = 13;
private long sourceCreatedTime_;
/**
* optional int64 source_created_time = 13;
* @return Whether the sourceCreatedTime field is set.
*/
@java.lang.Override
public boolean hasSourceCreatedTime() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int64 source_created_time = 13;
* @return The sourceCreatedTime.
*/
@java.lang.Override
public long getSourceCreatedTime() {
return sourceCreatedTime_;
}
public static final int SOURCE_MODIFIED_TIME_FIELD_NUMBER = 14;
private long sourceModifiedTime_;
/**
* optional int64 source_modified_time = 14;
* @return Whether the sourceModifiedTime field is set.
*/
@java.lang.Override
public boolean hasSourceModifiedTime() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional int64 source_modified_time = 14;
* @return The sourceModifiedTime.
*/
@java.lang.Override
public long getSourceModifiedTime() {
return sourceModifiedTime_;
}
public static final int DATA_SET_ID_FIELD_NUMBER = 15;
private long dataSetId_;
/**
* optional int64 data_set_id = 15;
* @return Whether the dataSetId field is set.
*/
@java.lang.Override
public boolean hasDataSetId() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional int64 data_set_id = 15;
* @return The dataSetId.
*/
@java.lang.Override
public long getDataSetId() {
return dataSetId_;
}
public static final int SECURITY_CATEGORIES_FIELD_NUMBER = 16;
private com.google.protobuf.Internal.LongList securityCategories_;
/**
* repeated int64 security_categories = 16;
* @return A list containing the securityCategories.
*/
@java.lang.Override
public java.util.List
getSecurityCategoriesList() {
return securityCategories_;
}
/**
* repeated int64 security_categories = 16;
* @return The count of securityCategories.
*/
public int getSecurityCategoriesCount() {
return securityCategories_.size();
}
/**
* repeated int64 security_categories = 16;
* @param index The index of the element to return.
* @return The securityCategories at the given index.
*/
public long getSecurityCategories(int index) {
return securityCategories_.getLong(index);
}
private int securityCategoriesMemoizedSerializedSize = -1;
public static final int LABELS_FIELD_NUMBER = 17;
private com.google.protobuf.LazyStringList labels_;
/**
* repeated string labels = 17;
* @return A list containing the labels.
*/
public com.google.protobuf.ProtocolStringList
getLabelsList() {
return labels_;
}
/**
* repeated string labels = 17;
* @return The count of labels.
*/
public int getLabelsCount() {
return labels_.size();
}
/**
* repeated string labels = 17;
* @param index The index of the element to return.
* @return The labels at the given index.
*/
public java.lang.String getLabels(int index) {
return labels_.get(index);
}
/**
* repeated string labels = 17;
* @param index The index of the value to return.
* @return The bytes of the labels at the given index.
*/
public com.google.protobuf.ByteString
getLabelsBytes(int index) {
return labels_.getByteString(index);
}
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 {
getSerializedSize();
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, externalId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, directory_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, source_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, mimeType_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetadata(),
MetadataDefaultEntryHolder.defaultEntry,
6);
if (getAssetIdsList().size() > 0) {
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(assetIdsMemoizedSerializedSize);
}
for (int i = 0; i < assetIds_.size(); i++) {
output.writeInt64NoTag(assetIds_.getLong(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(8, id_);
}
if (uploaded_ != false) {
output.writeBool(9, uploaded_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(10, uploadedTime_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt64(11, createdTime_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt64(12, lastUpdatedTime_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeInt64(13, sourceCreatedTime_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeInt64(14, sourceModifiedTime_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeInt64(15, dataSetId_);
}
if (getSecurityCategoriesList().size() > 0) {
output.writeUInt32NoTag(130);
output.writeUInt32NoTag(securityCategoriesMemoizedSerializedSize);
}
for (int i = 0; i < securityCategories_.size(); i++) {
output.writeInt64NoTag(securityCategories_.getLong(i));
}
for (int i = 0; i < labels_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, labels_.getRaw(i));
}
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, externalId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, directory_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, source_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, mimeType_);
}
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(6, metadata__);
}
{
int dataSize = 0;
for (int i = 0; i < assetIds_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(assetIds_.getLong(i));
}
size += dataSize;
if (!getAssetIdsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
assetIdsMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, id_);
}
if (uploaded_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, uploaded_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, uploadedTime_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, createdTime_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, lastUpdatedTime_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(13, sourceCreatedTime_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(14, sourceModifiedTime_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(15, dataSetId_);
}
{
int dataSize = 0;
for (int i = 0; i < securityCategories_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(securityCategories_.getLong(i));
}
size += dataSize;
if (!getSecurityCategoriesList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
securityCategoriesMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < labels_.size(); i++) {
dataSize += computeStringSizeNoTag(labels_.getRaw(i));
}
size += dataSize;
size += 2 * getLabelsList().size();
}
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.FileMetadata)) {
return super.equals(obj);
}
com.cognite.client.dto.FileMetadata other = (com.cognite.client.dto.FileMetadata) obj;
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 (hasDirectory() != other.hasDirectory()) return false;
if (hasDirectory()) {
if (!getDirectory()
.equals(other.getDirectory())) return false;
}
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource()
.equals(other.getSource())) return false;
}
if (hasMimeType() != other.hasMimeType()) return false;
if (hasMimeType()) {
if (!getMimeType()
.equals(other.getMimeType())) return false;
}
if (!internalGetMetadata().equals(
other.internalGetMetadata())) return false;
if (!getAssetIdsList()
.equals(other.getAssetIdsList())) return false;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) return false;
}
if (getUploaded()
!= other.getUploaded()) return false;
if (hasUploadedTime() != other.hasUploadedTime()) return false;
if (hasUploadedTime()) {
if (getUploadedTime()
!= other.getUploadedTime()) 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 (hasSourceCreatedTime() != other.hasSourceCreatedTime()) return false;
if (hasSourceCreatedTime()) {
if (getSourceCreatedTime()
!= other.getSourceCreatedTime()) return false;
}
if (hasSourceModifiedTime() != other.hasSourceModifiedTime()) return false;
if (hasSourceModifiedTime()) {
if (getSourceModifiedTime()
!= other.getSourceModifiedTime()) return false;
}
if (hasDataSetId() != other.hasDataSetId()) return false;
if (hasDataSetId()) {
if (getDataSetId()
!= other.getDataSetId()) return false;
}
if (!getSecurityCategoriesList()
.equals(other.getSecurityCategoriesList())) return false;
if (!getLabelsList()
.equals(other.getLabelsList())) 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 (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 (hasDirectory()) {
hash = (37 * hash) + DIRECTORY_FIELD_NUMBER;
hash = (53 * hash) + getDirectory().hashCode();
}
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
if (hasMimeType()) {
hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getMimeType().hashCode();
}
if (!internalGetMetadata().getMap().isEmpty()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetadata().hashCode();
}
if (getAssetIdsCount() > 0) {
hash = (37 * hash) + ASSET_IDS_FIELD_NUMBER;
hash = (53 * hash) + getAssetIdsList().hashCode();
}
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
}
hash = (37 * hash) + UPLOADED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUploaded());
if (hasUploadedTime()) {
hash = (37 * hash) + UPLOADED_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUploadedTime());
}
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 (hasSourceCreatedTime()) {
hash = (37 * hash) + SOURCE_CREATED_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSourceCreatedTime());
}
if (hasSourceModifiedTime()) {
hash = (37 * hash) + SOURCE_MODIFIED_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSourceModifiedTime());
}
if (hasDataSetId()) {
hash = (37 * hash) + DATA_SET_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDataSetId());
}
if (getSecurityCategoriesCount() > 0) {
hash = (37 * hash) + SECURITY_CATEGORIES_FIELD_NUMBER;
hash = (53 * hash) + getSecurityCategoriesList().hashCode();
}
if (getLabelsCount() > 0) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + getLabelsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.FileMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.FileMetadata 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.FileMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.FileMetadata 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.FileMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.FileMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.FileMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.FileMetadata 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.FileMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.FileMetadata 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.FileMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.FileMetadata 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.FileMetadata 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.FileMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.FileMetadata)
com.cognite.client.dto.FileMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.File.internal_static_com_cognite_beam_proto_FileMetadata_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
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.File.internal_static_com_cognite_beam_proto_FileMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.FileMetadata.class, com.cognite.client.dto.FileMetadata.Builder.class);
}
// Construct using com.cognite.client.dto.FileMetadata.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();
externalId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
directory_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
source_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
mimeType_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
internalGetMutableMetadata().clear();
assetIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000040);
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
uploaded_ = false;
uploadedTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
createdTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000200);
lastUpdatedTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000400);
sourceCreatedTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000800);
sourceModifiedTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00001000);
dataSetId_ = 0L;
bitField0_ = (bitField0_ & ~0x00002000);
securityCategories_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00004000);
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00008000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.File.internal_static_com_cognite_beam_proto_FileMetadata_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.FileMetadata getDefaultInstanceForType() {
return com.cognite.client.dto.FileMetadata.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.FileMetadata build() {
com.cognite.client.dto.FileMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.FileMetadata buildPartial() {
com.cognite.client.dto.FileMetadata result = new com.cognite.client.dto.FileMetadata(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.externalId_ = externalId_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.directory_ = directory_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.source_ = source_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.mimeType_ = mimeType_;
result.metadata_ = internalGetMetadata();
result.metadata_.makeImmutable();
if (((bitField0_ & 0x00000040) != 0)) {
assetIds_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.assetIds_ = assetIds_;
if (((from_bitField0_ & 0x00000080) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000020;
}
result.uploaded_ = uploaded_;
if (((from_bitField0_ & 0x00000100) != 0)) {
result.uploadedTime_ = uploadedTime_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.createdTime_ = createdTime_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.lastUpdatedTime_ = lastUpdatedTime_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.sourceCreatedTime_ = sourceCreatedTime_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.sourceModifiedTime_ = sourceModifiedTime_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.dataSetId_ = dataSetId_;
to_bitField0_ |= 0x00000800;
}
if (((bitField0_ & 0x00004000) != 0)) {
securityCategories_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00004000);
}
result.securityCategories_ = securityCategories_;
if (((bitField0_ & 0x00008000) != 0)) {
labels_ = labels_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00008000);
}
result.labels_ = labels_;
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.FileMetadata) {
return mergeFrom((com.cognite.client.dto.FileMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.FileMetadata other) {
if (other == com.cognite.client.dto.FileMetadata.getDefaultInstance()) return this;
if (other.hasExternalId()) {
bitField0_ |= 0x00000001;
externalId_ = other.externalId_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.hasDirectory()) {
bitField0_ |= 0x00000004;
directory_ = other.directory_;
onChanged();
}
if (other.hasSource()) {
bitField0_ |= 0x00000008;
source_ = other.source_;
onChanged();
}
if (other.hasMimeType()) {
bitField0_ |= 0x00000010;
mimeType_ = other.mimeType_;
onChanged();
}
internalGetMutableMetadata().mergeFrom(
other.internalGetMetadata());
if (!other.assetIds_.isEmpty()) {
if (assetIds_.isEmpty()) {
assetIds_ = other.assetIds_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureAssetIdsIsMutable();
assetIds_.addAll(other.assetIds_);
}
onChanged();
}
if (other.hasId()) {
setId(other.getId());
}
if (other.getUploaded() != false) {
setUploaded(other.getUploaded());
}
if (other.hasUploadedTime()) {
setUploadedTime(other.getUploadedTime());
}
if (other.hasCreatedTime()) {
setCreatedTime(other.getCreatedTime());
}
if (other.hasLastUpdatedTime()) {
setLastUpdatedTime(other.getLastUpdatedTime());
}
if (other.hasSourceCreatedTime()) {
setSourceCreatedTime(other.getSourceCreatedTime());
}
if (other.hasSourceModifiedTime()) {
setSourceModifiedTime(other.getSourceModifiedTime());
}
if (other.hasDataSetId()) {
setDataSetId(other.getDataSetId());
}
if (!other.securityCategories_.isEmpty()) {
if (securityCategories_.isEmpty()) {
securityCategories_ = other.securityCategories_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureSecurityCategoriesIsMutable();
securityCategories_.addAll(other.securityCategories_);
}
onChanged();
}
if (!other.labels_.isEmpty()) {
if (labels_.isEmpty()) {
labels_ = other.labels_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensureLabelsIsMutable();
labels_.addAll(other.labels_);
}
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.FileMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.FileMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object externalId_ = "";
/**
* optional string external_id = 1;
* @return Whether the externalId field is set.
*/
public boolean hasExternalId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string external_id = 1;
* @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 = 1;
* @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 = 1;
* @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_ |= 0x00000001;
externalId_ = value;
onChanged();
return this;
}
/**
* optional string external_id = 1;
* @return This builder for chaining.
*/
public Builder clearExternalId() {
bitField0_ = (bitField0_ & ~0x00000001);
externalId_ = getDefaultInstance().getExternalId();
onChanged();
return this;
}
/**
* optional string external_id = 1;
* @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_ |= 0x00000001;
externalId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* optional string name = 2;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string name = 2;
* @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 = 2;
* @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 = 2;
* @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_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 2;
* @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_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
private java.lang.Object directory_ = "";
/**
* optional string directory = 3;
* @return Whether the directory field is set.
*/
public boolean hasDirectory() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string directory = 3;
* @return The directory.
*/
public java.lang.String getDirectory() {
java.lang.Object ref = directory_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
directory_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string directory = 3;
* @return The bytes for directory.
*/
public com.google.protobuf.ByteString
getDirectoryBytes() {
java.lang.Object ref = directory_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
directory_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string directory = 3;
* @param value The directory to set.
* @return This builder for chaining.
*/
public Builder setDirectory(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
directory_ = value;
onChanged();
return this;
}
/**
* optional string directory = 3;
* @return This builder for chaining.
*/
public Builder clearDirectory() {
bitField0_ = (bitField0_ & ~0x00000004);
directory_ = getDefaultInstance().getDirectory();
onChanged();
return this;
}
/**
* optional string directory = 3;
* @param value The bytes for directory to set.
* @return This builder for chaining.
*/
public Builder setDirectoryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000004;
directory_ = value;
onChanged();
return this;
}
private java.lang.Object source_ = "";
/**
* optional string source = 4;
* @return Whether the source field is set.
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string source = 4;
* @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 = 4;
* @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 = 4;
* @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_ |= 0x00000008;
source_ = value;
onChanged();
return this;
}
/**
* optional string source = 4;
* @return This builder for chaining.
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000008);
source_ = getDefaultInstance().getSource();
onChanged();
return this;
}
/**
* optional string source = 4;
* @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_ |= 0x00000008;
source_ = value;
onChanged();
return this;
}
private java.lang.Object mimeType_ = "";
/**
* optional string mime_type = 5;
* @return Whether the mimeType field is set.
*/
public boolean hasMimeType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string mime_type = 5;
* @return The mimeType.
*/
public java.lang.String getMimeType() {
java.lang.Object ref = mimeType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mimeType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string mime_type = 5;
* @return The bytes for mimeType.
*/
public com.google.protobuf.ByteString
getMimeTypeBytes() {
java.lang.Object ref = mimeType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mimeType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string mime_type = 5;
* @param value The mimeType to set.
* @return This builder for chaining.
*/
public Builder setMimeType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
mimeType_ = value;
onChanged();
return this;
}
/**
* optional string mime_type = 5;
* @return This builder for chaining.
*/
public Builder clearMimeType() {
bitField0_ = (bitField0_ & ~0x00000010);
mimeType_ = getDefaultInstance().getMimeType();
onChanged();
return this;
}
/**
* optional string mime_type = 5;
* @param value The bytes for mimeType to set.
* @return This builder for chaining.
*/
public Builder setMimeTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000010;
mimeType_ = value;
onChanged();
return this;
}
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 = 6;
*/
@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 = 6;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
* map<string, string> metadata = 6;
*/
@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 = 6;
*/
@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 = 6;
*/
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 = 6;
*/
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 = 6;
*/
public Builder putAllMetadata(
java.util.Map values) {
internalGetMutableMetadata().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.Internal.LongList assetIds_ = emptyLongList();
private void ensureAssetIdsIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
assetIds_ = mutableCopy(assetIds_);
bitField0_ |= 0x00000040;
}
}
/**
* repeated int64 asset_ids = 7;
* @return A list containing the assetIds.
*/
public java.util.List
getAssetIdsList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(assetIds_) : assetIds_;
}
/**
* repeated int64 asset_ids = 7;
* @return The count of assetIds.
*/
public int getAssetIdsCount() {
return assetIds_.size();
}
/**
* repeated int64 asset_ids = 7;
* @param index The index of the element to return.
* @return The assetIds at the given index.
*/
public long getAssetIds(int index) {
return assetIds_.getLong(index);
}
/**
* repeated int64 asset_ids = 7;
* @param index The index to set the value at.
* @param value The assetIds to set.
* @return This builder for chaining.
*/
public Builder setAssetIds(
int index, long value) {
ensureAssetIdsIsMutable();
assetIds_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated int64 asset_ids = 7;
* @param value The assetIds to add.
* @return This builder for chaining.
*/
public Builder addAssetIds(long value) {
ensureAssetIdsIsMutable();
assetIds_.addLong(value);
onChanged();
return this;
}
/**
* repeated int64 asset_ids = 7;
* @param values The assetIds to add.
* @return This builder for chaining.
*/
public Builder addAllAssetIds(
java.lang.Iterable extends java.lang.Long> values) {
ensureAssetIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, assetIds_);
onChanged();
return this;
}
/**
* repeated int64 asset_ids = 7;
* @return This builder for chaining.
*/
public Builder clearAssetIds() {
assetIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
private long id_ ;
/**
* optional int64 id = 8;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int64 id = 8;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
* optional int64 id = 8;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
bitField0_ |= 0x00000080;
id_ = value;
onChanged();
return this;
}
/**
* optional int64 id = 8;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000080);
id_ = 0L;
onChanged();
return this;
}
private boolean uploaded_ ;
/**
* bool uploaded = 9;
* @return The uploaded.
*/
@java.lang.Override
public boolean getUploaded() {
return uploaded_;
}
/**
* bool uploaded = 9;
* @param value The uploaded to set.
* @return This builder for chaining.
*/
public Builder setUploaded(boolean value) {
uploaded_ = value;
onChanged();
return this;
}
/**
* bool uploaded = 9;
* @return This builder for chaining.
*/
public Builder clearUploaded() {
uploaded_ = false;
onChanged();
return this;
}
private long uploadedTime_ ;
/**
* optional int64 uploaded_time = 10;
* @return Whether the uploadedTime field is set.
*/
@java.lang.Override
public boolean hasUploadedTime() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int64 uploaded_time = 10;
* @return The uploadedTime.
*/
@java.lang.Override
public long getUploadedTime() {
return uploadedTime_;
}
/**
* optional int64 uploaded_time = 10;
* @param value The uploadedTime to set.
* @return This builder for chaining.
*/
public Builder setUploadedTime(long value) {
bitField0_ |= 0x00000100;
uploadedTime_ = value;
onChanged();
return this;
}
/**
* optional int64 uploaded_time = 10;
* @return This builder for chaining.
*/
public Builder clearUploadedTime() {
bitField0_ = (bitField0_ & ~0x00000100);
uploadedTime_ = 0L;
onChanged();
return this;
}
private long createdTime_ ;
/**
* optional int64 created_time = 11;
* @return Whether the createdTime field is set.
*/
@java.lang.Override
public boolean hasCreatedTime() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int64 created_time = 11;
* @return The createdTime.
*/
@java.lang.Override
public long getCreatedTime() {
return createdTime_;
}
/**
* optional int64 created_time = 11;
* @param value The createdTime to set.
* @return This builder for chaining.
*/
public Builder setCreatedTime(long value) {
bitField0_ |= 0x00000200;
createdTime_ = value;
onChanged();
return this;
}
/**
* optional int64 created_time = 11;
* @return This builder for chaining.
*/
public Builder clearCreatedTime() {
bitField0_ = (bitField0_ & ~0x00000200);
createdTime_ = 0L;
onChanged();
return this;
}
private long lastUpdatedTime_ ;
/**
* optional int64 last_updated_time = 12;
* @return Whether the lastUpdatedTime field is set.
*/
@java.lang.Override
public boolean hasLastUpdatedTime() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional int64 last_updated_time = 12;
* @return The lastUpdatedTime.
*/
@java.lang.Override
public long getLastUpdatedTime() {
return lastUpdatedTime_;
}
/**
* optional int64 last_updated_time = 12;
* @param value The lastUpdatedTime to set.
* @return This builder for chaining.
*/
public Builder setLastUpdatedTime(long value) {
bitField0_ |= 0x00000400;
lastUpdatedTime_ = value;
onChanged();
return this;
}
/**
* optional int64 last_updated_time = 12;
* @return This builder for chaining.
*/
public Builder clearLastUpdatedTime() {
bitField0_ = (bitField0_ & ~0x00000400);
lastUpdatedTime_ = 0L;
onChanged();
return this;
}
private long sourceCreatedTime_ ;
/**
* optional int64 source_created_time = 13;
* @return Whether the sourceCreatedTime field is set.
*/
@java.lang.Override
public boolean hasSourceCreatedTime() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional int64 source_created_time = 13;
* @return The sourceCreatedTime.
*/
@java.lang.Override
public long getSourceCreatedTime() {
return sourceCreatedTime_;
}
/**
* optional int64 source_created_time = 13;
* @param value The sourceCreatedTime to set.
* @return This builder for chaining.
*/
public Builder setSourceCreatedTime(long value) {
bitField0_ |= 0x00000800;
sourceCreatedTime_ = value;
onChanged();
return this;
}
/**
* optional int64 source_created_time = 13;
* @return This builder for chaining.
*/
public Builder clearSourceCreatedTime() {
bitField0_ = (bitField0_ & ~0x00000800);
sourceCreatedTime_ = 0L;
onChanged();
return this;
}
private long sourceModifiedTime_ ;
/**
* optional int64 source_modified_time = 14;
* @return Whether the sourceModifiedTime field is set.
*/
@java.lang.Override
public boolean hasSourceModifiedTime() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional int64 source_modified_time = 14;
* @return The sourceModifiedTime.
*/
@java.lang.Override
public long getSourceModifiedTime() {
return sourceModifiedTime_;
}
/**
* optional int64 source_modified_time = 14;
* @param value The sourceModifiedTime to set.
* @return This builder for chaining.
*/
public Builder setSourceModifiedTime(long value) {
bitField0_ |= 0x00001000;
sourceModifiedTime_ = value;
onChanged();
return this;
}
/**
* optional int64 source_modified_time = 14;
* @return This builder for chaining.
*/
public Builder clearSourceModifiedTime() {
bitField0_ = (bitField0_ & ~0x00001000);
sourceModifiedTime_ = 0L;
onChanged();
return this;
}
private long dataSetId_ ;
/**
* optional int64 data_set_id = 15;
* @return Whether the dataSetId field is set.
*/
@java.lang.Override
public boolean hasDataSetId() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional int64 data_set_id = 15;
* @return The dataSetId.
*/
@java.lang.Override
public long getDataSetId() {
return dataSetId_;
}
/**
* optional int64 data_set_id = 15;
* @param value The dataSetId to set.
* @return This builder for chaining.
*/
public Builder setDataSetId(long value) {
bitField0_ |= 0x00002000;
dataSetId_ = value;
onChanged();
return this;
}
/**
* optional int64 data_set_id = 15;
* @return This builder for chaining.
*/
public Builder clearDataSetId() {
bitField0_ = (bitField0_ & ~0x00002000);
dataSetId_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList securityCategories_ = emptyLongList();
private void ensureSecurityCategoriesIsMutable() {
if (!((bitField0_ & 0x00004000) != 0)) {
securityCategories_ = mutableCopy(securityCategories_);
bitField0_ |= 0x00004000;
}
}
/**
* repeated int64 security_categories = 16;
* @return A list containing the securityCategories.
*/
public java.util.List
getSecurityCategoriesList() {
return ((bitField0_ & 0x00004000) != 0) ?
java.util.Collections.unmodifiableList(securityCategories_) : securityCategories_;
}
/**
* repeated int64 security_categories = 16;
* @return The count of securityCategories.
*/
public int getSecurityCategoriesCount() {
return securityCategories_.size();
}
/**
* repeated int64 security_categories = 16;
* @param index The index of the element to return.
* @return The securityCategories at the given index.
*/
public long getSecurityCategories(int index) {
return securityCategories_.getLong(index);
}
/**
* repeated int64 security_categories = 16;
* @param index The index to set the value at.
* @param value The securityCategories to set.
* @return This builder for chaining.
*/
public Builder setSecurityCategories(
int index, long value) {
ensureSecurityCategoriesIsMutable();
securityCategories_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated int64 security_categories = 16;
* @param value The securityCategories to add.
* @return This builder for chaining.
*/
public Builder addSecurityCategories(long value) {
ensureSecurityCategoriesIsMutable();
securityCategories_.addLong(value);
onChanged();
return this;
}
/**
* repeated int64 security_categories = 16;
* @param values The securityCategories to add.
* @return This builder for chaining.
*/
public Builder addAllSecurityCategories(
java.lang.Iterable extends java.lang.Long> values) {
ensureSecurityCategoriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, securityCategories_);
onChanged();
return this;
}
/**
* repeated int64 security_categories = 16;
* @return This builder for chaining.
*/
public Builder clearSecurityCategories() {
securityCategories_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureLabelsIsMutable() {
if (!((bitField0_ & 0x00008000) != 0)) {
labels_ = new com.google.protobuf.LazyStringArrayList(labels_);
bitField0_ |= 0x00008000;
}
}
/**
* repeated string labels = 17;
* @return A list containing the labels.
*/
public com.google.protobuf.ProtocolStringList
getLabelsList() {
return labels_.getUnmodifiableView();
}
/**
* repeated string labels = 17;
* @return The count of labels.
*/
public int getLabelsCount() {
return labels_.size();
}
/**
* repeated string labels = 17;
* @param index The index of the element to return.
* @return The labels at the given index.
*/
public java.lang.String getLabels(int index) {
return labels_.get(index);
}
/**
* repeated string labels = 17;
* @param index The index of the value to return.
* @return The bytes of the labels at the given index.
*/
public com.google.protobuf.ByteString
getLabelsBytes(int index) {
return labels_.getByteString(index);
}
/**
* repeated string labels = 17;
* @param index The index to set the value at.
* @param value The labels to set.
* @return This builder for chaining.
*/
public Builder setLabels(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.set(index, value);
onChanged();
return this;
}
/**
* repeated string labels = 17;
* @param value The labels to add.
* @return This builder for chaining.
*/
public Builder addLabels(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.add(value);
onChanged();
return this;
}
/**
* repeated string labels = 17;
* @param values The labels to add.
* @return This builder for chaining.
*/
public Builder addAllLabels(
java.lang.Iterable values) {
ensureLabelsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, labels_);
onChanged();
return this;
}
/**
* repeated string labels = 17;
* @return This builder for chaining.
*/
public Builder clearLabels() {
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
/**
* repeated string labels = 17;
* @param value The bytes of the labels to add.
* @return This builder for chaining.
*/
public Builder addLabelsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureLabelsIsMutable();
labels_.add(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.FileMetadata)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.FileMetadata)
private static final com.cognite.client.dto.FileMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.FileMetadata();
}
public static com.cognite.client.dto.FileMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FileMetadata(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.FileMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy