All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.polypheny.prism.ProtoEntry Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: org/polypheny/prism/value.proto

package org.polypheny.prism;

/**
 * 
 *
 *Defines a key-value pair using ProtoValues for both key and value.
 * 
* * Protobuf type {@code org.polypheny.prism.ProtoEntry} */ public final class ProtoEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:org.polypheny.prism.ProtoEntry) ProtoEntryOrBuilder { private static final long serialVersionUID = 0L; // Use ProtoEntry.newBuilder() to construct. private ProtoEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProtoEntry() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProtoEntry(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.polypheny.prism.ProtoValueProto.internal_static_org_polypheny_prism_ProtoEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.polypheny.prism.ProtoValueProto.internal_static_org_polypheny_prism_ProtoEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( org.polypheny.prism.ProtoEntry.class, org.polypheny.prism.ProtoEntry.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private org.polypheny.prism.ProtoValue key_; /** *
   * The key of the entry.
   * 
* * .org.polypheny.prism.ProtoValue key = 1; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return key_ != null; } /** *
   * The key of the entry.
   * 
* * .org.polypheny.prism.ProtoValue key = 1; * @return The key. */ @java.lang.Override public org.polypheny.prism.ProtoValue getKey() { return key_ == null ? org.polypheny.prism.ProtoValue.getDefaultInstance() : key_; } /** *
   * The key of the entry.
   * 
* * .org.polypheny.prism.ProtoValue key = 1; */ @java.lang.Override public org.polypheny.prism.ProtoValueOrBuilder getKeyOrBuilder() { return key_ == null ? org.polypheny.prism.ProtoValue.getDefaultInstance() : key_; } public static final int VALUE_FIELD_NUMBER = 2; private org.polypheny.prism.ProtoValue value_; /** *
   * The value of the entry.
   * 
* * .org.polypheny.prism.ProtoValue value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return value_ != null; } /** *
   * The value of the entry.
   * 
* * .org.polypheny.prism.ProtoValue value = 2; * @return The value. */ @java.lang.Override public org.polypheny.prism.ProtoValue getValue() { return value_ == null ? org.polypheny.prism.ProtoValue.getDefaultInstance() : value_; } /** *
   * The value of the entry.
   * 
* * .org.polypheny.prism.ProtoValue value = 2; */ @java.lang.Override public org.polypheny.prism.ProtoValueOrBuilder getValueOrBuilder() { return value_ == null ? org.polypheny.prism.ProtoValue.getDefaultInstance() : value_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (key_ != null) { output.writeMessage(1, getKey()); } if (value_ != null) { output.writeMessage(2, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (key_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getKey()); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } 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 org.polypheny.prism.ProtoEntry)) { return super.equals(obj); } org.polypheny.prism.ProtoEntry other = (org.polypheny.prism.ProtoEntry) obj; if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) 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(); if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.polypheny.prism.ProtoEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ProtoEntry parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ProtoEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ProtoEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ProtoEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ProtoEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ProtoEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.polypheny.prism.ProtoEntry 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 org.polypheny.prism.ProtoEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.polypheny.prism.ProtoEntry 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 org.polypheny.prism.ProtoEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.polypheny.prism.ProtoEntry 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(org.polypheny.prism.ProtoEntry 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; } /** *
   *
   *Defines a key-value pair using ProtoValues for both key and value.
   * 
* * Protobuf type {@code org.polypheny.prism.ProtoEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:org.polypheny.prism.ProtoEntry) org.polypheny.prism.ProtoEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.polypheny.prism.ProtoValueProto.internal_static_org_polypheny_prism_ProtoEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.polypheny.prism.ProtoValueProto.internal_static_org_polypheny_prism_ProtoEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( org.polypheny.prism.ProtoEntry.class, org.polypheny.prism.ProtoEntry.Builder.class); } // Construct using org.polypheny.prism.ProtoEntry.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.polypheny.prism.ProtoValueProto.internal_static_org_polypheny_prism_ProtoEntry_descriptor; } @java.lang.Override public org.polypheny.prism.ProtoEntry getDefaultInstanceForType() { return org.polypheny.prism.ProtoEntry.getDefaultInstance(); } @java.lang.Override public org.polypheny.prism.ProtoEntry build() { org.polypheny.prism.ProtoEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.polypheny.prism.ProtoEntry buildPartial() { org.polypheny.prism.ProtoEntry result = new org.polypheny.prism.ProtoEntry(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.polypheny.prism.ProtoEntry result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); } } @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 org.polypheny.prism.ProtoEntry) { return mergeFrom((org.polypheny.prism.ProtoEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.polypheny.prism.ProtoEntry other) { if (other == org.polypheny.prism.ProtoEntry.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { 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: { input.readMessage( getKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.polypheny.prism.ProtoValue key_; private com.google.protobuf.SingleFieldBuilderV3< org.polypheny.prism.ProtoValue, org.polypheny.prism.ProtoValue.Builder, org.polypheny.prism.ProtoValueOrBuilder> keyBuilder_; /** *
     * The key of the entry.
     * 
* * .org.polypheny.prism.ProtoValue key = 1; * @return Whether the key field is set. */ public boolean hasKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The key of the entry.
     * 
* * .org.polypheny.prism.ProtoValue key = 1; * @return The key. */ public org.polypheny.prism.ProtoValue getKey() { if (keyBuilder_ == null) { return key_ == null ? org.polypheny.prism.ProtoValue.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
     * The key of the entry.
     * 
* * .org.polypheny.prism.ProtoValue key = 1; */ public Builder setKey(org.polypheny.prism.ProtoValue value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; } else { keyBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The key of the entry.
     * 
* * .org.polypheny.prism.ProtoValue key = 1; */ public Builder setKey( org.polypheny.prism.ProtoValue.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); } else { keyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The key of the entry.
     * 
* * .org.polypheny.prism.ProtoValue key = 1; */ public Builder mergeKey(org.polypheny.prism.ProtoValue value) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && key_ != null && key_ != org.polypheny.prism.ProtoValue.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; } } else { keyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The key of the entry.
     * 
* * .org.polypheny.prism.ProtoValue key = 1; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } onChanged(); return this; } /** *
     * The key of the entry.
     * 
* * .org.polypheny.prism.ProtoValue key = 1; */ public org.polypheny.prism.ProtoValue.Builder getKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
     * The key of the entry.
     * 
* * .org.polypheny.prism.ProtoValue key = 1; */ public org.polypheny.prism.ProtoValueOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? org.polypheny.prism.ProtoValue.getDefaultInstance() : key_; } } /** *
     * The key of the entry.
     * 
* * .org.polypheny.prism.ProtoValue key = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.polypheny.prism.ProtoValue, org.polypheny.prism.ProtoValue.Builder, org.polypheny.prism.ProtoValueOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.polypheny.prism.ProtoValue, org.polypheny.prism.ProtoValue.Builder, org.polypheny.prism.ProtoValueOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private org.polypheny.prism.ProtoValue value_; private com.google.protobuf.SingleFieldBuilderV3< org.polypheny.prism.ProtoValue, org.polypheny.prism.ProtoValue.Builder, org.polypheny.prism.ProtoValueOrBuilder> valueBuilder_; /** *
     * The value of the entry.
     * 
* * .org.polypheny.prism.ProtoValue value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The value of the entry.
     * 
* * .org.polypheny.prism.ProtoValue value = 2; * @return The value. */ public org.polypheny.prism.ProtoValue getValue() { if (valueBuilder_ == null) { return value_ == null ? org.polypheny.prism.ProtoValue.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** *
     * The value of the entry.
     * 
* * .org.polypheny.prism.ProtoValue value = 2; */ public Builder setValue(org.polypheny.prism.ProtoValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The value of the entry.
     * 
* * .org.polypheny.prism.ProtoValue value = 2; */ public Builder setValue( org.polypheny.prism.ProtoValue.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The value of the entry.
     * 
* * .org.polypheny.prism.ProtoValue value = 2; */ public Builder mergeValue(org.polypheny.prism.ProtoValue value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != org.polypheny.prism.ProtoValue.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The value of the entry.
     * 
* * .org.polypheny.prism.ProtoValue value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** *
     * The value of the entry.
     * 
* * .org.polypheny.prism.ProtoValue value = 2; */ public org.polypheny.prism.ProtoValue.Builder getValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } /** *
     * The value of the entry.
     * 
* * .org.polypheny.prism.ProtoValue value = 2; */ public org.polypheny.prism.ProtoValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? org.polypheny.prism.ProtoValue.getDefaultInstance() : value_; } } /** *
     * The value of the entry.
     * 
* * .org.polypheny.prism.ProtoValue value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.polypheny.prism.ProtoValue, org.polypheny.prism.ProtoValue.Builder, org.polypheny.prism.ProtoValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.polypheny.prism.ProtoValue, org.polypheny.prism.ProtoValue.Builder, org.polypheny.prism.ProtoValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @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:org.polypheny.prism.ProtoEntry) } // @@protoc_insertion_point(class_scope:org.polypheny.prism.ProtoEntry) private static final org.polypheny.prism.ProtoEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.polypheny.prism.ProtoEntry(); } public static org.polypheny.prism.ProtoEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProtoEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.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.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.polypheny.prism.ProtoEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy