cz.proto.ObjectIdentifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: object_identifier.proto
package cz.proto;
/**
* Protobuf type {@code cz.proto.ObjectIdentifier}
*/
public final class ObjectIdentifier extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.ObjectIdentifier)
ObjectIdentifierOrBuilder {
private static final long serialVersionUID = 0L;
// Use ObjectIdentifier.newBuilder() to construct.
private ObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ObjectIdentifier() {
type_ = 0;
accountName_ = "";
instanceName_ = "";
namespace_ = com.google.protobuf.LazyStringArrayList.EMPTY;
namespaceId_ = emptyLongList();
name_ = "";
version_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ObjectIdentifier();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ObjectIdentifier(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 16: {
instanceId_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
namespace_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
namespace_.add(s);
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
instanceName_ = s;
break;
}
case 48: {
bitField0_ |= 0x00000001;
accountId_ = input.readInt64();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
accountName_ = s;
break;
}
case 72: {
id_ = input.readInt64();
break;
}
case 80: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
namespaceId_ = newLongList();
mutable_bitField0_ |= 0x00000010;
}
namespaceId_.addLong(input.readInt64());
break;
}
case 82: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) {
namespaceId_ = newLongList();
mutable_bitField0_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
namespaceId_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
version_ = 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_ & 0x00000008) != 0)) {
namespace_ = namespace_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
namespaceId_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.ObjectIdentifierOuterClass.internal_static_cz_proto_ObjectIdentifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.ObjectIdentifierOuterClass.internal_static_cz_proto_ObjectIdentifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.ObjectIdentifier.class, cz.proto.ObjectIdentifier.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* .cz.proto.ObjectType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .cz.proto.ObjectType type = 1;
* @return The type.
*/
@java.lang.Override public cz.proto.ObjectType getType() {
@SuppressWarnings("deprecation")
cz.proto.ObjectType result = cz.proto.ObjectType.valueOf(type_);
return result == null ? cz.proto.ObjectType.UNRECOGNIZED : result;
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 6;
private long accountId_;
/**
*
* account identifier
*
*
* optional int64 account_id = 6;
* @return Whether the accountId field is set.
*/
@java.lang.Override
public boolean hasAccountId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* account identifier
*
*
* optional int64 account_id = 6;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
public static final int ACCOUNT_NAME_FIELD_NUMBER = 7;
private volatile java.lang.Object accountName_;
/**
* optional string account_name = 7;
* @return Whether the accountName field is set.
*/
@java.lang.Override
public boolean hasAccountName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string account_name = 7;
* @return The accountName.
*/
@java.lang.Override
public java.lang.String getAccountName() {
java.lang.Object ref = accountName_;
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();
accountName_ = s;
return s;
}
}
/**
* optional string account_name = 7;
* @return The bytes for accountName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccountNameBytes() {
java.lang.Object ref = accountName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accountName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INSTANCE_ID_FIELD_NUMBER = 2;
private long instanceId_;
/**
*
* instance identifier
*
*
* int64 instance_id = 2;
* @return The instanceId.
*/
@java.lang.Override
public long getInstanceId() {
return instanceId_;
}
public static final int INSTANCE_NAME_FIELD_NUMBER = 5;
private volatile java.lang.Object instanceName_;
/**
* optional string instance_name = 5;
* @return Whether the instanceName field is set.
*/
@java.lang.Override
public boolean hasInstanceName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string instance_name = 5;
* @return The instanceName.
*/
@java.lang.Override
public java.lang.String getInstanceName() {
java.lang.Object ref = instanceName_;
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();
instanceName_ = s;
return s;
}
}
/**
* optional string instance_name = 5;
* @return The bytes for instanceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceNameBytes() {
java.lang.Object ref = instanceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAMESPACE_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList namespace_;
/**
*
* namespace identifier
*
*
* repeated string namespace = 3;
* @return A list containing the namespace.
*/
public com.google.protobuf.ProtocolStringList
getNamespaceList() {
return namespace_;
}
/**
*
* namespace identifier
*
*
* repeated string namespace = 3;
* @return The count of namespace.
*/
public int getNamespaceCount() {
return namespace_.size();
}
/**
*
* namespace identifier
*
*
* repeated string namespace = 3;
* @param index The index of the element to return.
* @return The namespace at the given index.
*/
public java.lang.String getNamespace(int index) {
return namespace_.get(index);
}
/**
*
* namespace identifier
*
*
* repeated string namespace = 3;
* @param index The index of the value to return.
* @return The bytes of the namespace at the given index.
*/
public com.google.protobuf.ByteString
getNamespaceBytes(int index) {
return namespace_.getByteString(index);
}
public static final int NAMESPACE_ID_FIELD_NUMBER = 10;
private com.google.protobuf.Internal.LongList namespaceId_;
/**
* repeated int64 namespace_id = 10;
* @return A list containing the namespaceId.
*/
@java.lang.Override
public java.util.List
getNamespaceIdList() {
return namespaceId_;
}
/**
* repeated int64 namespace_id = 10;
* @return The count of namespaceId.
*/
public int getNamespaceIdCount() {
return namespaceId_.size();
}
/**
* repeated int64 namespace_id = 10;
* @param index The index of the element to return.
* @return The namespaceId at the given index.
*/
public long getNamespaceId(int index) {
return namespaceId_.getLong(index);
}
private int namespaceIdMemoizedSerializedSize = -1;
public static final int NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object name_;
/**
*
* object identifier
*
*
* string name = 4;
* @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;
}
}
/**
*
* object identifier
*
*
* string name = 4;
* @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 ID_FIELD_NUMBER = 9;
private long id_;
/**
* int64 id = 9;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int VERSION_FIELD_NUMBER = 11;
private volatile java.lang.Object version_;
/**
* string version = 11;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
* string version = 11;
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (type_ != cz.proto.ObjectType.UNKNOWN.getNumber()) {
output.writeEnum(1, type_);
}
if (instanceId_ != 0L) {
output.writeInt64(2, instanceId_);
}
for (int i = 0; i < namespace_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, namespace_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, instanceName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(6, accountId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, accountName_);
}
if (id_ != 0L) {
output.writeInt64(9, id_);
}
if (getNamespaceIdList().size() > 0) {
output.writeUInt32NoTag(82);
output.writeUInt32NoTag(namespaceIdMemoizedSerializedSize);
}
for (int i = 0; i < namespaceId_.size(); i++) {
output.writeInt64NoTag(namespaceId_.getLong(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, version_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != cz.proto.ObjectType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (instanceId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, instanceId_);
}
{
int dataSize = 0;
for (int i = 0; i < namespace_.size(); i++) {
dataSize += computeStringSizeNoTag(namespace_.getRaw(i));
}
size += dataSize;
size += 1 * getNamespaceList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, instanceName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, accountId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, accountName_);
}
if (id_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, id_);
}
{
int dataSize = 0;
for (int i = 0; i < namespaceId_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(namespaceId_.getLong(i));
}
size += dataSize;
if (!getNamespaceIdList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
namespaceIdMemoizedSerializedSize = dataSize;
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, version_);
}
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 cz.proto.ObjectIdentifier)) {
return super.equals(obj);
}
cz.proto.ObjectIdentifier other = (cz.proto.ObjectIdentifier) obj;
if (type_ != other.type_) return false;
if (hasAccountId() != other.hasAccountId()) return false;
if (hasAccountId()) {
if (getAccountId()
!= other.getAccountId()) return false;
}
if (hasAccountName() != other.hasAccountName()) return false;
if (hasAccountName()) {
if (!getAccountName()
.equals(other.getAccountName())) return false;
}
if (getInstanceId()
!= other.getInstanceId()) return false;
if (hasInstanceName() != other.hasInstanceName()) return false;
if (hasInstanceName()) {
if (!getInstanceName()
.equals(other.getInstanceName())) return false;
}
if (!getNamespaceList()
.equals(other.getNamespaceList())) return false;
if (!getNamespaceIdList()
.equals(other.getNamespaceIdList())) return false;
if (!getName()
.equals(other.getName())) return false;
if (getId()
!= other.getId()) return false;
if (!getVersion()
.equals(other.getVersion())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (hasAccountId()) {
hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAccountId());
}
if (hasAccountName()) {
hash = (37 * hash) + ACCOUNT_NAME_FIELD_NUMBER;
hash = (53 * hash) + getAccountName().hashCode();
}
hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInstanceId());
if (hasInstanceName()) {
hash = (37 * hash) + INSTANCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getInstanceName().hashCode();
}
if (getNamespaceCount() > 0) {
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespaceList().hashCode();
}
if (getNamespaceIdCount() > 0) {
hash = (37 * hash) + NAMESPACE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNamespaceIdList().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.ObjectIdentifier parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.ObjectIdentifier parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.ObjectIdentifier parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.ObjectIdentifier parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.ObjectIdentifier parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.ObjectIdentifier parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.ObjectIdentifier parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.ObjectIdentifier 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 cz.proto.ObjectIdentifier parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.ObjectIdentifier 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 cz.proto.ObjectIdentifier parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.ObjectIdentifier 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(cz.proto.ObjectIdentifier 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 cz.proto.ObjectIdentifier}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.ObjectIdentifier)
cz.proto.ObjectIdentifierOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.ObjectIdentifierOuterClass.internal_static_cz_proto_ObjectIdentifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.ObjectIdentifierOuterClass.internal_static_cz_proto_ObjectIdentifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.ObjectIdentifier.class, cz.proto.ObjectIdentifier.Builder.class);
}
// Construct using cz.proto.ObjectIdentifier.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();
type_ = 0;
accountId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
accountName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
instanceId_ = 0L;
instanceName_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
namespace_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
namespaceId_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000010);
name_ = "";
id_ = 0L;
version_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.ObjectIdentifierOuterClass.internal_static_cz_proto_ObjectIdentifier_descriptor;
}
@java.lang.Override
public cz.proto.ObjectIdentifier getDefaultInstanceForType() {
return cz.proto.ObjectIdentifier.getDefaultInstance();
}
@java.lang.Override
public cz.proto.ObjectIdentifier build() {
cz.proto.ObjectIdentifier result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.ObjectIdentifier buildPartial() {
cz.proto.ObjectIdentifier result = new cz.proto.ObjectIdentifier(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.type_ = type_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.accountId_ = accountId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.accountName_ = accountName_;
result.instanceId_ = instanceId_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.instanceName_ = instanceName_;
if (((bitField0_ & 0x00000008) != 0)) {
namespace_ = namespace_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.namespace_ = namespace_;
if (((bitField0_ & 0x00000010) != 0)) {
namespaceId_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.namespaceId_ = namespaceId_;
result.name_ = name_;
result.id_ = id_;
result.version_ = version_;
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 cz.proto.ObjectIdentifier) {
return mergeFrom((cz.proto.ObjectIdentifier)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.ObjectIdentifier other) {
if (other == cz.proto.ObjectIdentifier.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.hasAccountId()) {
setAccountId(other.getAccountId());
}
if (other.hasAccountName()) {
bitField0_ |= 0x00000002;
accountName_ = other.accountName_;
onChanged();
}
if (other.getInstanceId() != 0L) {
setInstanceId(other.getInstanceId());
}
if (other.hasInstanceName()) {
bitField0_ |= 0x00000004;
instanceName_ = other.instanceName_;
onChanged();
}
if (!other.namespace_.isEmpty()) {
if (namespace_.isEmpty()) {
namespace_ = other.namespace_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureNamespaceIsMutable();
namespace_.addAll(other.namespace_);
}
onChanged();
}
if (!other.namespaceId_.isEmpty()) {
if (namespaceId_.isEmpty()) {
namespaceId_ = other.namespaceId_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureNamespaceIdIsMutable();
namespaceId_.addAll(other.namespaceId_);
}
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getId() != 0L) {
setId(other.getId());
}
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
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 {
cz.proto.ObjectIdentifier parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.ObjectIdentifier) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int type_ = 0;
/**
* .cz.proto.ObjectType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .cz.proto.ObjectType type = 1;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .cz.proto.ObjectType type = 1;
* @return The type.
*/
@java.lang.Override
public cz.proto.ObjectType getType() {
@SuppressWarnings("deprecation")
cz.proto.ObjectType result = cz.proto.ObjectType.valueOf(type_);
return result == null ? cz.proto.ObjectType.UNRECOGNIZED : result;
}
/**
* .cz.proto.ObjectType type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(cz.proto.ObjectType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .cz.proto.ObjectType type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private long accountId_ ;
/**
*
* account identifier
*
*
* optional int64 account_id = 6;
* @return Whether the accountId field is set.
*/
@java.lang.Override
public boolean hasAccountId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* account identifier
*
*
* optional int64 account_id = 6;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
/**
*
* account identifier
*
*
* optional int64 account_id = 6;
* @param value The accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountId(long value) {
bitField0_ |= 0x00000001;
accountId_ = value;
onChanged();
return this;
}
/**
*
* account identifier
*
*
* optional int64 account_id = 6;
* @return This builder for chaining.
*/
public Builder clearAccountId() {
bitField0_ = (bitField0_ & ~0x00000001);
accountId_ = 0L;
onChanged();
return this;
}
private java.lang.Object accountName_ = "";
/**
* optional string account_name = 7;
* @return Whether the accountName field is set.
*/
public boolean hasAccountName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string account_name = 7;
* @return The accountName.
*/
public java.lang.String getAccountName() {
java.lang.Object ref = accountName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
accountName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string account_name = 7;
* @return The bytes for accountName.
*/
public com.google.protobuf.ByteString
getAccountNameBytes() {
java.lang.Object ref = accountName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accountName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string account_name = 7;
* @param value The accountName to set.
* @return This builder for chaining.
*/
public Builder setAccountName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
accountName_ = value;
onChanged();
return this;
}
/**
* optional string account_name = 7;
* @return This builder for chaining.
*/
public Builder clearAccountName() {
bitField0_ = (bitField0_ & ~0x00000002);
accountName_ = getDefaultInstance().getAccountName();
onChanged();
return this;
}
/**
* optional string account_name = 7;
* @param value The bytes for accountName to set.
* @return This builder for chaining.
*/
public Builder setAccountNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
accountName_ = value;
onChanged();
return this;
}
private long instanceId_ ;
/**
*
* instance identifier
*
*
* int64 instance_id = 2;
* @return The instanceId.
*/
@java.lang.Override
public long getInstanceId() {
return instanceId_;
}
/**
*
* instance identifier
*
*
* int64 instance_id = 2;
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(long value) {
instanceId_ = value;
onChanged();
return this;
}
/**
*
* instance identifier
*
*
* int64 instance_id = 2;
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = 0L;
onChanged();
return this;
}
private java.lang.Object instanceName_ = "";
/**
* optional string instance_name = 5;
* @return Whether the instanceName field is set.
*/
public boolean hasInstanceName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string instance_name = 5;
* @return The instanceName.
*/
public java.lang.String getInstanceName() {
java.lang.Object ref = instanceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string instance_name = 5;
* @return The bytes for instanceName.
*/
public com.google.protobuf.ByteString
getInstanceNameBytes() {
java.lang.Object ref = instanceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string instance_name = 5;
* @param value The instanceName to set.
* @return This builder for chaining.
*/
public Builder setInstanceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
instanceName_ = value;
onChanged();
return this;
}
/**
* optional string instance_name = 5;
* @return This builder for chaining.
*/
public Builder clearInstanceName() {
bitField0_ = (bitField0_ & ~0x00000004);
instanceName_ = getDefaultInstance().getInstanceName();
onChanged();
return this;
}
/**
* optional string instance_name = 5;
* @param value The bytes for instanceName to set.
* @return This builder for chaining.
*/
public Builder setInstanceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000004;
instanceName_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList namespace_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureNamespaceIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
namespace_ = new com.google.protobuf.LazyStringArrayList(namespace_);
bitField0_ |= 0x00000008;
}
}
/**
*
* namespace identifier
*
*
* repeated string namespace = 3;
* @return A list containing the namespace.
*/
public com.google.protobuf.ProtocolStringList
getNamespaceList() {
return namespace_.getUnmodifiableView();
}
/**
*
* namespace identifier
*
*
* repeated string namespace = 3;
* @return The count of namespace.
*/
public int getNamespaceCount() {
return namespace_.size();
}
/**
*
* namespace identifier
*
*
* repeated string namespace = 3;
* @param index The index of the element to return.
* @return The namespace at the given index.
*/
public java.lang.String getNamespace(int index) {
return namespace_.get(index);
}
/**
*
* namespace identifier
*
*
* repeated string namespace = 3;
* @param index The index of the value to return.
* @return The bytes of the namespace at the given index.
*/
public com.google.protobuf.ByteString
getNamespaceBytes(int index) {
return namespace_.getByteString(index);
}
/**
*
* namespace identifier
*
*
* repeated string namespace = 3;
* @param index The index to set the value at.
* @param value The namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespace(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNamespaceIsMutable();
namespace_.set(index, value);
onChanged();
return this;
}
/**
*
* namespace identifier
*
*
* repeated string namespace = 3;
* @param value The namespace to add.
* @return This builder for chaining.
*/
public Builder addNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNamespaceIsMutable();
namespace_.add(value);
onChanged();
return this;
}
/**
*
* namespace identifier
*
*
* repeated string namespace = 3;
* @param values The namespace to add.
* @return This builder for chaining.
*/
public Builder addAllNamespace(
java.lang.Iterable values) {
ensureNamespaceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, namespace_);
onChanged();
return this;
}
/**
*
* namespace identifier
*
*
* repeated string namespace = 3;
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* namespace identifier
*
*
* repeated string namespace = 3;
* @param value The bytes of the namespace to add.
* @return This builder for chaining.
*/
public Builder addNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureNamespaceIsMutable();
namespace_.add(value);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList namespaceId_ = emptyLongList();
private void ensureNamespaceIdIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
namespaceId_ = mutableCopy(namespaceId_);
bitField0_ |= 0x00000010;
}
}
/**
* repeated int64 namespace_id = 10;
* @return A list containing the namespaceId.
*/
public java.util.List
getNamespaceIdList() {
return ((bitField0_ & 0x00000010) != 0) ?
java.util.Collections.unmodifiableList(namespaceId_) : namespaceId_;
}
/**
* repeated int64 namespace_id = 10;
* @return The count of namespaceId.
*/
public int getNamespaceIdCount() {
return namespaceId_.size();
}
/**
* repeated int64 namespace_id = 10;
* @param index The index of the element to return.
* @return The namespaceId at the given index.
*/
public long getNamespaceId(int index) {
return namespaceId_.getLong(index);
}
/**
* repeated int64 namespace_id = 10;
* @param index The index to set the value at.
* @param value The namespaceId to set.
* @return This builder for chaining.
*/
public Builder setNamespaceId(
int index, long value) {
ensureNamespaceIdIsMutable();
namespaceId_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated int64 namespace_id = 10;
* @param value The namespaceId to add.
* @return This builder for chaining.
*/
public Builder addNamespaceId(long value) {
ensureNamespaceIdIsMutable();
namespaceId_.addLong(value);
onChanged();
return this;
}
/**
* repeated int64 namespace_id = 10;
* @param values The namespaceId to add.
* @return This builder for chaining.
*/
public Builder addAllNamespaceId(
java.lang.Iterable extends java.lang.Long> values) {
ensureNamespaceIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, namespaceId_);
onChanged();
return this;
}
/**
* repeated int64 namespace_id = 10;
* @return This builder for chaining.
*/
public Builder clearNamespaceId() {
namespaceId_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* object identifier
*
*
* string name = 4;
* @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;
}
}
/**
*
* object identifier
*
*
* string name = 4;
* @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;
}
}
/**
*
* object identifier
*
*
* string name = 4;
* @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;
onChanged();
return this;
}
/**
*
* object identifier
*
*
* string name = 4;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* object identifier
*
*
* string name = 4;
* @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);
name_ = value;
onChanged();
return this;
}
private long id_ ;
/**
* int64 id = 9;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
* int64 id = 9;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
onChanged();
return this;
}
/**
* int64 id = 9;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
* string version = 11;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string version = 11;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string version = 11;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
* string version = 11;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* string version = 11;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = 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:cz.proto.ObjectIdentifier)
}
// @@protoc_insertion_point(class_scope:cz.proto.ObjectIdentifier)
private static final cz.proto.ObjectIdentifier DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.ObjectIdentifier();
}
public static cz.proto.ObjectIdentifier getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ObjectIdentifier parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ObjectIdentifier(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 cz.proto.ObjectIdentifier getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy