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

org.hbase.async.generated.ClusterIdPB Maven / Gradle / Ivy

Go to download

An alternative HBase client library for applications requiring fully asynchronous, non-blocking and thread-safe HBase connectivity.

There is a newer version: 1.8.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ClusterId.proto

package org.hbase.async.generated;

public final class ClusterIdPB {
  private ClusterIdPB() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  public interface ClusterIdOrBuilder
      extends com.google.protobuf.MessageLiteOrBuilder {

    // required string cluster_id = 1;
    /**
     * required string cluster_id = 1;
     *
     * 
     * This is the cluster id, a uuid as a String
     * 
*/ boolean hasClusterId(); /** * required string cluster_id = 1; * *
     * This is the cluster id, a uuid as a String
     * 
*/ java.lang.String getClusterId(); /** * required string cluster_id = 1; * *
     * This is the cluster id, a uuid as a String
     * 
*/ com.google.protobuf.ByteString getClusterIdBytes(); } /** * Protobuf type {@code ClusterId} * *
   **
   * Content of the '/hbase/hbaseid', cluster id, znode.
   * Also cluster of the ${HBASE_ROOTDIR}/hbase.id file.
   * 
*/ public static final class ClusterId extends com.google.protobuf.GeneratedMessageLite implements ClusterIdOrBuilder { // Use ClusterId.newBuilder() to construct. private ClusterId(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private ClusterId(boolean noInit) {} private static final ClusterId defaultInstance; public static ClusterId getDefaultInstance() { return defaultInstance; } public ClusterId getDefaultInstanceForType() { return defaultInstance; } private ClusterId( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; clusterId_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ClusterId parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClusterId(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string cluster_id = 1; public static final int CLUSTER_ID_FIELD_NUMBER = 1; private java.lang.Object clusterId_; /** * required string cluster_id = 1; * *
     * This is the cluster id, a uuid as a String
     * 
*/ public boolean hasClusterId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string cluster_id = 1; * *
     * This is the cluster id, a uuid as a String
     * 
*/ public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; 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(); if (bs.isValidUtf8()) { clusterId_ = s; } return s; } } /** * required string cluster_id = 1; * *
     * This is the cluster id, a uuid as a String
     * 
*/ public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { clusterId_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasClusterId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getClusterIdBytes()); } } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getClusterIdBytes()); } memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.hbase.async.generated.ClusterIdPB.ClusterId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hbase.async.generated.ClusterIdPB.ClusterId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hbase.async.generated.ClusterIdPB.ClusterId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hbase.async.generated.ClusterIdPB.ClusterId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hbase.async.generated.ClusterIdPB.ClusterId parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.hbase.async.generated.ClusterIdPB.ClusterId parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.hbase.async.generated.ClusterIdPB.ClusterId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.hbase.async.generated.ClusterIdPB.ClusterId parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.hbase.async.generated.ClusterIdPB.ClusterId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.hbase.async.generated.ClusterIdPB.ClusterId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.hbase.async.generated.ClusterIdPB.ClusterId prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code ClusterId} * *
     **
     * Content of the '/hbase/hbaseid', cluster id, znode.
     * Also cluster of the ${HBASE_ROOTDIR}/hbase.id file.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.hbase.async.generated.ClusterIdPB.ClusterId, Builder> implements org.hbase.async.generated.ClusterIdPB.ClusterIdOrBuilder { // Construct using org.hbase.async.generated.ClusterIdPB.ClusterId.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); clusterId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public org.hbase.async.generated.ClusterIdPB.ClusterId getDefaultInstanceForType() { return org.hbase.async.generated.ClusterIdPB.ClusterId.getDefaultInstance(); } public org.hbase.async.generated.ClusterIdPB.ClusterId build() { org.hbase.async.generated.ClusterIdPB.ClusterId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hbase.async.generated.ClusterIdPB.ClusterId buildPartial() { org.hbase.async.generated.ClusterIdPB.ClusterId result = new org.hbase.async.generated.ClusterIdPB.ClusterId(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.clusterId_ = clusterId_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(org.hbase.async.generated.ClusterIdPB.ClusterId other) { if (other == org.hbase.async.generated.ClusterIdPB.ClusterId.getDefaultInstance()) return this; if (other.hasClusterId()) { bitField0_ |= 0x00000001; clusterId_ = other.clusterId_; } return this; } public final boolean isInitialized() { if (!hasClusterId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hbase.async.generated.ClusterIdPB.ClusterId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hbase.async.generated.ClusterIdPB.ClusterId) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string cluster_id = 1; private java.lang.Object clusterId_ = ""; /** * required string cluster_id = 1; * *
       * This is the cluster id, a uuid as a String
       * 
*/ public boolean hasClusterId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string cluster_id = 1; * *
       * This is the cluster id, a uuid as a String
       * 
*/ public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); clusterId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string cluster_id = 1; * *
       * This is the cluster id, a uuid as a String
       * 
*/ public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string cluster_id = 1; * *
       * This is the cluster id, a uuid as a String
       * 
*/ public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; clusterId_ = value; return this; } /** * required string cluster_id = 1; * *
       * This is the cluster id, a uuid as a String
       * 
*/ public Builder clearClusterId() { bitField0_ = (bitField0_ & ~0x00000001); clusterId_ = getDefaultInstance().getClusterId(); return this; } /** * required string cluster_id = 1; * *
       * This is the cluster id, a uuid as a String
       * 
*/ public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; clusterId_ = value; return this; } // @@protoc_insertion_point(builder_scope:ClusterId) } static { defaultInstance = new ClusterId(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ClusterId) } static { } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy