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

cz.proto.BucketInfoOuterClass Maven / Gradle / Ivy

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

package cz.proto;

public final class BucketInfoOuterClass {
  private BucketInfoOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface BucketInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cz.proto.BucketInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * uint32 bucket_id = 1;
     * @return The bucketId.
     */
    int getBucketId();

    /**
     * 
     * other bucket meta of file level
     * 
* * repeated uint32 block_ids = 2; * @return A list containing the blockIds. */ java.util.List getBlockIdsList(); /** *
     * other bucket meta of file level
     * 
* * repeated uint32 block_ids = 2; * @return The count of blockIds. */ int getBlockIdsCount(); /** *
     * other bucket meta of file level
     * 
* * repeated uint32 block_ids = 2; * @param index The index of the element to return. * @return The blockIds at the given index. */ int getBlockIds(int index); } /** * Protobuf type {@code cz.proto.BucketInfo} */ public static final class BucketInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cz.proto.BucketInfo) BucketInfoOrBuilder { private static final long serialVersionUID = 0L; // Use BucketInfo.newBuilder() to construct. private BucketInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BucketInfo() { blockIds_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BucketInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BucketInfo( 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: { bucketId_ = input.readUInt32(); break; } case 16: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { blockIds_ = newIntList(); mutable_bitField0_ |= 0x00000001; } blockIds_.addInt(input.readUInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { blockIds_ = newIntList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { blockIds_.addInt(input.readUInt32()); } input.popLimit(limit); 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_ & 0x00000001) != 0)) { blockIds_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cz.proto.BucketInfoOuterClass.internal_static_cz_proto_BucketInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cz.proto.BucketInfoOuterClass.internal_static_cz_proto_BucketInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cz.proto.BucketInfoOuterClass.BucketInfo.class, cz.proto.BucketInfoOuterClass.BucketInfo.Builder.class); } public static final int BUCKET_ID_FIELD_NUMBER = 1; private int bucketId_; /** * uint32 bucket_id = 1; * @return The bucketId. */ @java.lang.Override public int getBucketId() { return bucketId_; } public static final int BLOCK_IDS_FIELD_NUMBER = 2; private com.google.protobuf.Internal.IntList blockIds_; /** *
     * other bucket meta of file level
     * 
* * repeated uint32 block_ids = 2; * @return A list containing the blockIds. */ @java.lang.Override public java.util.List getBlockIdsList() { return blockIds_; } /** *
     * other bucket meta of file level
     * 
* * repeated uint32 block_ids = 2; * @return The count of blockIds. */ public int getBlockIdsCount() { return blockIds_.size(); } /** *
     * other bucket meta of file level
     * 
* * repeated uint32 block_ids = 2; * @param index The index of the element to return. * @return The blockIds at the given index. */ public int getBlockIds(int index) { return blockIds_.getInt(index); } private int blockIdsMemoizedSerializedSize = -1; 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 (bucketId_ != 0) { output.writeUInt32(1, bucketId_); } if (getBlockIdsList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(blockIdsMemoizedSerializedSize); } for (int i = 0; i < blockIds_.size(); i++) { output.writeUInt32NoTag(blockIds_.getInt(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (bucketId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, bucketId_); } { int dataSize = 0; for (int i = 0; i < blockIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(blockIds_.getInt(i)); } size += dataSize; if (!getBlockIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } blockIdsMemoizedSerializedSize = dataSize; } 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.BucketInfoOuterClass.BucketInfo)) { return super.equals(obj); } cz.proto.BucketInfoOuterClass.BucketInfo other = (cz.proto.BucketInfoOuterClass.BucketInfo) obj; if (getBucketId() != other.getBucketId()) return false; if (!getBlockIdsList() .equals(other.getBlockIdsList())) 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) + BUCKET_ID_FIELD_NUMBER; hash = (53 * hash) + getBucketId(); if (getBlockIdsCount() > 0) { hash = (37 * hash) + BLOCK_IDS_FIELD_NUMBER; hash = (53 * hash) + getBlockIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cz.proto.BucketInfoOuterClass.BucketInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.BucketInfoOuterClass.BucketInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.BucketInfoOuterClass.BucketInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.BucketInfoOuterClass.BucketInfo 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.BucketInfoOuterClass.BucketInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.BucketInfoOuterClass.BucketInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.BucketInfoOuterClass.BucketInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cz.proto.BucketInfoOuterClass.BucketInfo 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.BucketInfoOuterClass.BucketInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cz.proto.BucketInfoOuterClass.BucketInfo 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.BucketInfoOuterClass.BucketInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cz.proto.BucketInfoOuterClass.BucketInfo 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.BucketInfoOuterClass.BucketInfo 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.BucketInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cz.proto.BucketInfo) cz.proto.BucketInfoOuterClass.BucketInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cz.proto.BucketInfoOuterClass.internal_static_cz_proto_BucketInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cz.proto.BucketInfoOuterClass.internal_static_cz_proto_BucketInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cz.proto.BucketInfoOuterClass.BucketInfo.class, cz.proto.BucketInfoOuterClass.BucketInfo.Builder.class); } // Construct using cz.proto.BucketInfoOuterClass.BucketInfo.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(); bucketId_ = 0; blockIds_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cz.proto.BucketInfoOuterClass.internal_static_cz_proto_BucketInfo_descriptor; } @java.lang.Override public cz.proto.BucketInfoOuterClass.BucketInfo getDefaultInstanceForType() { return cz.proto.BucketInfoOuterClass.BucketInfo.getDefaultInstance(); } @java.lang.Override public cz.proto.BucketInfoOuterClass.BucketInfo build() { cz.proto.BucketInfoOuterClass.BucketInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cz.proto.BucketInfoOuterClass.BucketInfo buildPartial() { cz.proto.BucketInfoOuterClass.BucketInfo result = new cz.proto.BucketInfoOuterClass.BucketInfo(this); int from_bitField0_ = bitField0_; result.bucketId_ = bucketId_; if (((bitField0_ & 0x00000001) != 0)) { blockIds_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.blockIds_ = blockIds_; 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.BucketInfoOuterClass.BucketInfo) { return mergeFrom((cz.proto.BucketInfoOuterClass.BucketInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cz.proto.BucketInfoOuterClass.BucketInfo other) { if (other == cz.proto.BucketInfoOuterClass.BucketInfo.getDefaultInstance()) return this; if (other.getBucketId() != 0) { setBucketId(other.getBucketId()); } if (!other.blockIds_.isEmpty()) { if (blockIds_.isEmpty()) { blockIds_ = other.blockIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBlockIdsIsMutable(); blockIds_.addAll(other.blockIds_); } 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.BucketInfoOuterClass.BucketInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cz.proto.BucketInfoOuterClass.BucketInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int bucketId_ ; /** * uint32 bucket_id = 1; * @return The bucketId. */ @java.lang.Override public int getBucketId() { return bucketId_; } /** * uint32 bucket_id = 1; * @param value The bucketId to set. * @return This builder for chaining. */ public Builder setBucketId(int value) { bucketId_ = value; onChanged(); return this; } /** * uint32 bucket_id = 1; * @return This builder for chaining. */ public Builder clearBucketId() { bucketId_ = 0; onChanged(); return this; } private com.google.protobuf.Internal.IntList blockIds_ = emptyIntList(); private void ensureBlockIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blockIds_ = mutableCopy(blockIds_); bitField0_ |= 0x00000001; } } /** *
       * other bucket meta of file level
       * 
* * repeated uint32 block_ids = 2; * @return A list containing the blockIds. */ public java.util.List getBlockIdsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(blockIds_) : blockIds_; } /** *
       * other bucket meta of file level
       * 
* * repeated uint32 block_ids = 2; * @return The count of blockIds. */ public int getBlockIdsCount() { return blockIds_.size(); } /** *
       * other bucket meta of file level
       * 
* * repeated uint32 block_ids = 2; * @param index The index of the element to return. * @return The blockIds at the given index. */ public int getBlockIds(int index) { return blockIds_.getInt(index); } /** *
       * other bucket meta of file level
       * 
* * repeated uint32 block_ids = 2; * @param index The index to set the value at. * @param value The blockIds to set. * @return This builder for chaining. */ public Builder setBlockIds( int index, int value) { ensureBlockIdsIsMutable(); blockIds_.setInt(index, value); onChanged(); return this; } /** *
       * other bucket meta of file level
       * 
* * repeated uint32 block_ids = 2; * @param value The blockIds to add. * @return This builder for chaining. */ public Builder addBlockIds(int value) { ensureBlockIdsIsMutable(); blockIds_.addInt(value); onChanged(); return this; } /** *
       * other bucket meta of file level
       * 
* * repeated uint32 block_ids = 2; * @param values The blockIds to add. * @return This builder for chaining. */ public Builder addAllBlockIds( java.lang.Iterable values) { ensureBlockIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, blockIds_); onChanged(); return this; } /** *
       * other bucket meta of file level
       * 
* * repeated uint32 block_ids = 2; * @return This builder for chaining. */ public Builder clearBlockIds() { blockIds_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); 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.BucketInfo) } // @@protoc_insertion_point(class_scope:cz.proto.BucketInfo) private static final cz.proto.BucketInfoOuterClass.BucketInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cz.proto.BucketInfoOuterClass.BucketInfo(); } public static cz.proto.BucketInfoOuterClass.BucketInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BucketInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BucketInfo(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.BucketInfoOuterClass.BucketInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cz_proto_BucketInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cz_proto_BucketInfo_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\021bucket_info.proto\022\010cz.proto\"2\n\nBucketI" + "nfo\022\021\n\tbucket_id\030\001 \001(\r\022\021\n\tblock_ids\030\002 \003(" + "\rB\n\n\010cz.protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_cz_proto_BucketInfo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cz_proto_BucketInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cz_proto_BucketInfo_descriptor, new java.lang.String[] { "BucketId", "BlockIds", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy