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

com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid Maven / Gradle / Ivy

Go to download

A high performance and easy to use library for Code Mobility and RPC on the Java platform.

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: component_uuid.proto

package com.googlecode.mobilityrpc.protocol.protobuf;

public final class ComponentUuid {
  private ComponentUuid() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface UUIDOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.googlecode.mobilityrpc.protocol.protobuf.UUID)
      com.google.protobuf.MessageOrBuilder {

    /**
     * required sint64 least_significant_bits = 1;
     */
    boolean hasLeastSignificantBits();
    /**
     * required sint64 least_significant_bits = 1;
     */
    long getLeastSignificantBits();

    /**
     * required sint64 most_significant_bits = 2;
     */
    boolean hasMostSignificantBits();
    /**
     * required sint64 most_significant_bits = 2;
     */
    long getMostSignificantBits();
  }
  /**
   * Protobuf type {@code com.googlecode.mobilityrpc.protocol.protobuf.UUID}
   *
   * 
   * A 128-bit id, transferred as two 64-bit longs
   * 
*/ public static final class UUID extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.googlecode.mobilityrpc.protocol.protobuf.UUID) UUIDOrBuilder { // Use UUID.newBuilder() to construct. private UUID(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UUID() { leastSignificantBits_ = 0L; mostSignificantBits_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UUID( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; leastSignificantBits_ = input.readSInt64(); break; } case 16: { bitField0_ |= 0x00000002; mostSignificantBits_ = input.readSInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_UUID_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_UUID_fieldAccessorTable .ensureFieldAccessorsInitialized( com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.class, com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.Builder.class); } private int bitField0_; public static final int LEAST_SIGNIFICANT_BITS_FIELD_NUMBER = 1; private long leastSignificantBits_; /** * required sint64 least_significant_bits = 1; */ public boolean hasLeastSignificantBits() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint64 least_significant_bits = 1; */ public long getLeastSignificantBits() { return leastSignificantBits_; } public static final int MOST_SIGNIFICANT_BITS_FIELD_NUMBER = 2; private long mostSignificantBits_; /** * required sint64 most_significant_bits = 2; */ public boolean hasMostSignificantBits() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint64 most_significant_bits = 2; */ public long getMostSignificantBits() { return mostSignificantBits_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasLeastSignificantBits()) { memoizedIsInitialized = 0; return false; } if (!hasMostSignificantBits()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeSInt64(1, leastSignificantBits_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt64(2, mostSignificantBits_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(1, leastSignificantBits_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(2, mostSignificantBits_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.googlecode.mobilityrpc.protocol.protobuf.UUID} * *
     * A 128-bit id, transferred as two 64-bit longs
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:com.googlecode.mobilityrpc.protocol.protobuf.UUID) com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_UUID_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_UUID_fieldAccessorTable .ensureFieldAccessorsInitialized( com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.class, com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.Builder.class); } // Construct using com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); leastSignificantBits_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); mostSignificantBits_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_UUID_descriptor; } public com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID getDefaultInstanceForType() { return com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.getDefaultInstance(); } public com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID build() { com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID buildPartial() { com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID result = new com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.leastSignificantBits_ = leastSignificantBits_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.mostSignificantBits_ = mostSignificantBits_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID) { return mergeFrom((com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID other) { if (other == com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.getDefaultInstance()) return this; if (other.hasLeastSignificantBits()) { setLeastSignificantBits(other.getLeastSignificantBits()); } if (other.hasMostSignificantBits()) { setMostSignificantBits(other.getMostSignificantBits()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasLeastSignificantBits()) { return false; } if (!hasMostSignificantBits()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long leastSignificantBits_ ; /** * required sint64 least_significant_bits = 1; */ public boolean hasLeastSignificantBits() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint64 least_significant_bits = 1; */ public long getLeastSignificantBits() { return leastSignificantBits_; } /** * required sint64 least_significant_bits = 1; */ public Builder setLeastSignificantBits(long value) { bitField0_ |= 0x00000001; leastSignificantBits_ = value; onChanged(); return this; } /** * required sint64 least_significant_bits = 1; */ public Builder clearLeastSignificantBits() { bitField0_ = (bitField0_ & ~0x00000001); leastSignificantBits_ = 0L; onChanged(); return this; } private long mostSignificantBits_ ; /** * required sint64 most_significant_bits = 2; */ public boolean hasMostSignificantBits() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint64 most_significant_bits = 2; */ public long getMostSignificantBits() { return mostSignificantBits_; } /** * required sint64 most_significant_bits = 2; */ public Builder setMostSignificantBits(long value) { bitField0_ |= 0x00000002; mostSignificantBits_ = value; onChanged(); return this; } /** * required sint64 most_significant_bits = 2; */ public Builder clearMostSignificantBits() { bitField0_ = (bitField0_ & ~0x00000002); mostSignificantBits_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.googlecode.mobilityrpc.protocol.protobuf.UUID) } // @@protoc_insertion_point(class_scope:com.googlecode.mobilityrpc.protocol.protobuf.UUID) private static final com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID(); } public static com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UUID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new UUID(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static com.google.protobuf.Descriptors.Descriptor internal_static_com_googlecode_mobilityrpc_protocol_protobuf_UUID_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_googlecode_mobilityrpc_protocol_protobuf_UUID_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\024component_uuid.proto\022,com.googlecode.m" + "obilityrpc.protocol.protobuf\"E\n\004UUID\022\036\n\026" + "least_significant_bits\030\001 \002(\022\022\035\n\025most_sig" + "nificant_bits\030\002 \002(\022" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_com_googlecode_mobilityrpc_protocol_protobuf_UUID_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_googlecode_mobilityrpc_protocol_protobuf_UUID_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_googlecode_mobilityrpc_protocol_protobuf_UUID_descriptor, new java.lang.String[] { "LeastSignificantBits", "MostSignificantBits", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy