com.dimajix.flowman.kernel.proto.ResourceIdentifier Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common.proto
package com.dimajix.flowman.kernel.proto;
/**
* Protobuf type {@code com.dimajix.flowman.kernel.ResourceIdentifier}
*/
public final class ResourceIdentifier extends
com.dimajix.shaded.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.dimajix.flowman.kernel.ResourceIdentifier)
ResourceIdentifierOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResourceIdentifier.newBuilder() to construct.
private ResourceIdentifier(com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResourceIdentifier() {
category_ = "";
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResourceIdentifier();
}
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.CommonProto.internal_static_com_dimajix_flowman_kernel_ResourceIdentifier_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.dimajix.shaded.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetPartition();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.CommonProto.internal_static_com_dimajix_flowman_kernel_ResourceIdentifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.ResourceIdentifier.class, com.dimajix.flowman.kernel.proto.ResourceIdentifier.Builder.class);
}
public static final int CATEGORY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object category_ = "";
/**
* string category = 1;
* @return The category.
*/
@java.lang.Override
public java.lang.String getCategory() {
java.lang.Object ref = category_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
category_ = s;
return s;
}
}
/**
* string category = 1;
* @return The bytes for category.
*/
@java.lang.Override
public com.dimajix.shaded.protobuf.ByteString
getCategoryBytes() {
java.lang.Object ref = category_;
if (ref instanceof java.lang.String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
category_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* 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.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.dimajix.shaded.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
public static final int PARTITION_FIELD_NUMBER = 3;
private static final class PartitionDefaultEntryHolder {
static final com.dimajix.shaded.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.dimajix.shaded.protobuf.MapEntry
.newDefaultInstance(
com.dimajix.flowman.kernel.proto.CommonProto.internal_static_com_dimajix_flowman_kernel_ResourceIdentifier_PartitionEntry_descriptor,
com.dimajix.shaded.protobuf.WireFormat.FieldType.STRING,
"",
com.dimajix.shaded.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.dimajix.shaded.protobuf.MapField<
java.lang.String, java.lang.String> partition_;
private com.dimajix.shaded.protobuf.MapField
internalGetPartition() {
if (partition_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PartitionDefaultEntryHolder.defaultEntry);
}
return partition_;
}
public int getPartitionCount() {
return internalGetPartition().getMap().size();
}
/**
* map<string, string> partition = 3;
*/
@java.lang.Override
public boolean containsPartition(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetPartition().getMap().containsKey(key);
}
/**
* Use {@link #getPartitionMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getPartition() {
return getPartitionMap();
}
/**
* map<string, string> partition = 3;
*/
@java.lang.Override
public java.util.Map getPartitionMap() {
return internalGetPartition().getMap();
}
/**
* map<string, string> partition = 3;
*/
@java.lang.Override
public /* nullable */
java.lang.String getPartitionOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetPartition().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> partition = 3;
*/
@java.lang.Override
public java.lang.String getPartitionOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetPartition().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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.dimajix.shaded.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(category_)) {
com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 1, category_);
}
if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
com.dimajix.shaded.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetPartition(),
PartitionDefaultEntryHolder.defaultEntry,
3);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(category_)) {
size += com.dimajix.shaded.protobuf.GeneratedMessageV3.computeStringSize(1, category_);
}
if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.dimajix.shaded.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
for (java.util.Map.Entry entry
: internalGetPartition().getMap().entrySet()) {
com.dimajix.shaded.protobuf.MapEntry
partition__ = PartitionDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(3, partition__);
}
size += getUnknownFields().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.dimajix.flowman.kernel.proto.ResourceIdentifier)) {
return super.equals(obj);
}
com.dimajix.flowman.kernel.proto.ResourceIdentifier other = (com.dimajix.flowman.kernel.proto.ResourceIdentifier) obj;
if (!getCategory()
.equals(other.getCategory())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!internalGetPartition().equals(
other.internalGetPartition())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CATEGORY_FIELD_NUMBER;
hash = (53 * hash) + getCategory().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (!internalGetPartition().getMap().isEmpty()) {
hash = (37 * hash) + PARTITION_FIELD_NUMBER;
hash = (53 * hash) + internalGetPartition().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.dimajix.flowman.kernel.proto.ResourceIdentifier parseFrom(
java.nio.ByteBuffer data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.ResourceIdentifier parseFrom(
java.nio.ByteBuffer data,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.ResourceIdentifier parseFrom(
com.dimajix.shaded.protobuf.ByteString data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.ResourceIdentifier parseFrom(
com.dimajix.shaded.protobuf.ByteString data,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.ResourceIdentifier parseFrom(byte[] data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.ResourceIdentifier parseFrom(
byte[] data,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.ResourceIdentifier parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.ResourceIdentifier parseFrom(
java.io.InputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.ResourceIdentifier parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.ResourceIdentifier parseDelimitedFrom(
java.io.InputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.ResourceIdentifier parseFrom(
com.dimajix.shaded.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.ResourceIdentifier parseFrom(
com.dimajix.shaded.protobuf.CodedInputStream input,
com.dimajix.shaded.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.dimajix.flowman.kernel.proto.ResourceIdentifier 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.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.dimajix.flowman.kernel.ResourceIdentifier}
*/
public static final class Builder extends
com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.dimajix.flowman.kernel.ResourceIdentifier)
com.dimajix.flowman.kernel.proto.ResourceIdentifierOrBuilder {
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.CommonProto.internal_static_com_dimajix_flowman_kernel_ResourceIdentifier_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.dimajix.shaded.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetPartition();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.dimajix.shaded.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 3:
return internalGetMutablePartition();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.CommonProto.internal_static_com_dimajix_flowman_kernel_ResourceIdentifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.ResourceIdentifier.class, com.dimajix.flowman.kernel.proto.ResourceIdentifier.Builder.class);
}
// Construct using com.dimajix.flowman.kernel.proto.ResourceIdentifier.newBuilder()
private Builder() {
}
private Builder(
com.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
category_ = "";
name_ = "";
internalGetMutablePartition().clear();
return this;
}
@java.lang.Override
public com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.dimajix.flowman.kernel.proto.CommonProto.internal_static_com_dimajix_flowman_kernel_ResourceIdentifier_descriptor;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.ResourceIdentifier getDefaultInstanceForType() {
return com.dimajix.flowman.kernel.proto.ResourceIdentifier.getDefaultInstance();
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.ResourceIdentifier build() {
com.dimajix.flowman.kernel.proto.ResourceIdentifier result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.ResourceIdentifier buildPartial() {
com.dimajix.flowman.kernel.proto.ResourceIdentifier result = new com.dimajix.flowman.kernel.proto.ResourceIdentifier(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.dimajix.flowman.kernel.proto.ResourceIdentifier result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.category_ = category_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.partition_ = internalGetPartition();
result.partition_.makeImmutable();
}
}
@java.lang.Override
public Builder mergeFrom(com.dimajix.shaded.protobuf.Message other) {
if (other instanceof com.dimajix.flowman.kernel.proto.ResourceIdentifier) {
return mergeFrom((com.dimajix.flowman.kernel.proto.ResourceIdentifier)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.dimajix.flowman.kernel.proto.ResourceIdentifier other) {
if (other == com.dimajix.flowman.kernel.proto.ResourceIdentifier.getDefaultInstance()) return this;
if (!other.getCategory().isEmpty()) {
category_ = other.category_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
internalGetMutablePartition().mergeFrom(
other.internalGetPartition());
bitField0_ |= 0x00000004;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.dimajix.shaded.protobuf.CodedInputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
category_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
com.dimajix.shaded.protobuf.MapEntry
partition__ = input.readMessage(
PartitionDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutablePartition().getMutableMap().put(
partition__.getKey(), partition__.getValue());
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.dimajix.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object category_ = "";
/**
* string category = 1;
* @return The category.
*/
public java.lang.String getCategory() {
java.lang.Object ref = category_;
if (!(ref instanceof java.lang.String)) {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
category_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string category = 1;
* @return The bytes for category.
*/
public com.dimajix.shaded.protobuf.ByteString
getCategoryBytes() {
java.lang.Object ref = category_;
if (ref instanceof String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
category_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
/**
* string category = 1;
* @param value The category to set.
* @return This builder for chaining.
*/
public Builder setCategory(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
category_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string category = 1;
* @return This builder for chaining.
*/
public Builder clearCategory() {
category_ = getDefaultInstance().getCategory();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string category = 1;
* @param value The bytes for category to set.
* @return This builder for chaining.
*/
public Builder setCategoryBytes(
com.dimajix.shaded.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
category_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
public com.dimajix.shaded.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
/**
* 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(); }
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.dimajix.shaded.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.dimajix.shaded.protobuf.MapField<
java.lang.String, java.lang.String> partition_;
private com.dimajix.shaded.protobuf.MapField
internalGetPartition() {
if (partition_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PartitionDefaultEntryHolder.defaultEntry);
}
return partition_;
}
private com.dimajix.shaded.protobuf.MapField
internalGetMutablePartition() {
if (partition_ == null) {
partition_ = com.dimajix.shaded.protobuf.MapField.newMapField(
PartitionDefaultEntryHolder.defaultEntry);
}
if (!partition_.isMutable()) {
partition_ = partition_.copy();
}
bitField0_ |= 0x00000004;
onChanged();
return partition_;
}
public int getPartitionCount() {
return internalGetPartition().getMap().size();
}
/**
* map<string, string> partition = 3;
*/
@java.lang.Override
public boolean containsPartition(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetPartition().getMap().containsKey(key);
}
/**
* Use {@link #getPartitionMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getPartition() {
return getPartitionMap();
}
/**
* map<string, string> partition = 3;
*/
@java.lang.Override
public java.util.Map getPartitionMap() {
return internalGetPartition().getMap();
}
/**
* map<string, string> partition = 3;
*/
@java.lang.Override
public /* nullable */
java.lang.String getPartitionOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetPartition().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> partition = 3;
*/
@java.lang.Override
public java.lang.String getPartitionOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetPartition().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearPartition() {
bitField0_ = (bitField0_ & ~0x00000004);
internalGetMutablePartition().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> partition = 3;
*/
public Builder removePartition(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutablePartition().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutablePartition() {
bitField0_ |= 0x00000004;
return internalGetMutablePartition().getMutableMap();
}
/**
* map<string, string> partition = 3;
*/
public Builder putPartition(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutablePartition().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000004;
return this;
}
/**
* map<string, string> partition = 3;
*/
public Builder putAllPartition(
java.util.Map values) {
internalGetMutablePartition().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000004;
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.dimajix.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.dimajix.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.dimajix.flowman.kernel.ResourceIdentifier)
}
// @@protoc_insertion_point(class_scope:com.dimajix.flowman.kernel.ResourceIdentifier)
private static final com.dimajix.flowman.kernel.proto.ResourceIdentifier DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.dimajix.flowman.kernel.proto.ResourceIdentifier();
}
public static com.dimajix.flowman.kernel.proto.ResourceIdentifier getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.dimajix.shaded.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResourceIdentifier parsePartialFrom(
com.dimajix.shaded.protobuf.CodedInputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.dimajix.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.dimajix.shaded.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.dimajix.shaded.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.dimajix.shaded.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.ResourceIdentifier getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy