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

it.anyplace.sync.bep.protos.BlockExchageProtos Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: src/main/resources/blockExchageProtos.proto

package it.anyplace.sync.bep.protos;

public final class BlockExchageProtos {
  private BlockExchageProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  /**
   * Protobuf enum {@code it.anyplace.sync.bep.protos.MessageType}
   */
  public enum MessageType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * CLUSTER_CONFIG = 0;
     */
    CLUSTER_CONFIG(0, 0),
    /**
     * INDEX = 1;
     */
    INDEX(1, 1),
    /**
     * INDEX_UPDATE = 2;
     */
    INDEX_UPDATE(2, 2),
    /**
     * REQUEST = 3;
     */
    REQUEST(3, 3),
    /**
     * RESPONSE = 4;
     */
    RESPONSE(4, 4),
    /**
     * DOWNLOAD_PROGRESS = 5;
     */
    DOWNLOAD_PROGRESS(5, 5),
    /**
     * PING = 6;
     */
    PING(6, 6),
    /**
     * CLOSE = 7;
     */
    CLOSE(7, 7),
    ;

    /**
     * CLUSTER_CONFIG = 0;
     */
    public static final int CLUSTER_CONFIG_VALUE = 0;
    /**
     * INDEX = 1;
     */
    public static final int INDEX_VALUE = 1;
    /**
     * INDEX_UPDATE = 2;
     */
    public static final int INDEX_UPDATE_VALUE = 2;
    /**
     * REQUEST = 3;
     */
    public static final int REQUEST_VALUE = 3;
    /**
     * RESPONSE = 4;
     */
    public static final int RESPONSE_VALUE = 4;
    /**
     * DOWNLOAD_PROGRESS = 5;
     */
    public static final int DOWNLOAD_PROGRESS_VALUE = 5;
    /**
     * PING = 6;
     */
    public static final int PING_VALUE = 6;
    /**
     * CLOSE = 7;
     */
    public static final int CLOSE_VALUE = 7;


    public final int getNumber() { return value; }

    public static MessageType valueOf(int value) {
      switch (value) {
        case 0: return CLUSTER_CONFIG;
        case 1: return INDEX;
        case 2: return INDEX_UPDATE;
        case 3: return REQUEST;
        case 4: return RESPONSE;
        case 5: return DOWNLOAD_PROGRESS;
        case 6: return PING;
        case 7: return CLOSE;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static com.google.protobuf.Internal.EnumLiteMap
        internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public MessageType findValueByNumber(int number) {
              return MessageType.valueOf(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(index);
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return it.anyplace.sync.bep.protos.BlockExchageProtos.getDescriptor().getEnumTypes().get(0);
    }

    private static final MessageType[] VALUES = values();

    public static MessageType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int index;
    private final int value;

    private MessageType(int index, int value) {
      this.index = index;
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:it.anyplace.sync.bep.protos.MessageType)
  }

  /**
   * Protobuf enum {@code it.anyplace.sync.bep.protos.MessageCompression}
   */
  public enum MessageCompression
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * NONE = 0;
     */
    NONE(0, 0),
    /**
     * LZ4 = 1;
     */
    LZ4(1, 1),
    ;

    /**
     * NONE = 0;
     */
    public static final int NONE_VALUE = 0;
    /**
     * LZ4 = 1;
     */
    public static final int LZ4_VALUE = 1;


    public final int getNumber() { return value; }

    public static MessageCompression valueOf(int value) {
      switch (value) {
        case 0: return NONE;
        case 1: return LZ4;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static com.google.protobuf.Internal.EnumLiteMap
        internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public MessageCompression findValueByNumber(int number) {
              return MessageCompression.valueOf(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(index);
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return it.anyplace.sync.bep.protos.BlockExchageProtos.getDescriptor().getEnumTypes().get(1);
    }

    private static final MessageCompression[] VALUES = values();

    public static MessageCompression valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int index;
    private final int value;

    private MessageCompression(int index, int value) {
      this.index = index;
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:it.anyplace.sync.bep.protos.MessageCompression)
  }

  /**
   * Protobuf enum {@code it.anyplace.sync.bep.protos.Compression}
   */
  public enum Compression
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * METADATA = 0;
     */
    METADATA(0, 0),
    /**
     * NEVER = 1;
     */
    NEVER(1, 1),
    /**
     * ALWAYS = 2;
     */
    ALWAYS(2, 2),
    ;

    /**
     * METADATA = 0;
     */
    public static final int METADATA_VALUE = 0;
    /**
     * NEVER = 1;
     */
    public static final int NEVER_VALUE = 1;
    /**
     * ALWAYS = 2;
     */
    public static final int ALWAYS_VALUE = 2;


    public final int getNumber() { return value; }

    public static Compression valueOf(int value) {
      switch (value) {
        case 0: return METADATA;
        case 1: return NEVER;
        case 2: return ALWAYS;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static com.google.protobuf.Internal.EnumLiteMap
        internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public Compression findValueByNumber(int number) {
              return Compression.valueOf(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(index);
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return it.anyplace.sync.bep.protos.BlockExchageProtos.getDescriptor().getEnumTypes().get(2);
    }

    private static final Compression[] VALUES = values();

    public static Compression valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int index;
    private final int value;

    private Compression(int index, int value) {
      this.index = index;
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:it.anyplace.sync.bep.protos.Compression)
  }

  /**
   * Protobuf enum {@code it.anyplace.sync.bep.protos.FileInfoType}
   */
  public enum FileInfoType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * FILE = 0;
     */
    FILE(0, 0),
    /**
     * DIRECTORY = 1;
     */
    DIRECTORY(1, 1),
    /**
     * SYMLINK_FILE = 2;
     */
    SYMLINK_FILE(2, 2),
    /**
     * SYMLINK_DIRECTORY = 3;
     */
    SYMLINK_DIRECTORY(3, 3),
    /**
     * SYMLINK_UNKNOWN = 4;
     */
    SYMLINK_UNKNOWN(4, 4),
    ;

    /**
     * FILE = 0;
     */
    public static final int FILE_VALUE = 0;
    /**
     * DIRECTORY = 1;
     */
    public static final int DIRECTORY_VALUE = 1;
    /**
     * SYMLINK_FILE = 2;
     */
    public static final int SYMLINK_FILE_VALUE = 2;
    /**
     * SYMLINK_DIRECTORY = 3;
     */
    public static final int SYMLINK_DIRECTORY_VALUE = 3;
    /**
     * SYMLINK_UNKNOWN = 4;
     */
    public static final int SYMLINK_UNKNOWN_VALUE = 4;


    public final int getNumber() { return value; }

    public static FileInfoType valueOf(int value) {
      switch (value) {
        case 0: return FILE;
        case 1: return DIRECTORY;
        case 2: return SYMLINK_FILE;
        case 3: return SYMLINK_DIRECTORY;
        case 4: return SYMLINK_UNKNOWN;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static com.google.protobuf.Internal.EnumLiteMap
        internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public FileInfoType findValueByNumber(int number) {
              return FileInfoType.valueOf(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(index);
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return it.anyplace.sync.bep.protos.BlockExchageProtos.getDescriptor().getEnumTypes().get(3);
    }

    private static final FileInfoType[] VALUES = values();

    public static FileInfoType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int index;
    private final int value;

    private FileInfoType(int index, int value) {
      this.index = index;
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:it.anyplace.sync.bep.protos.FileInfoType)
  }

  /**
   * Protobuf enum {@code it.anyplace.sync.bep.protos.ErrorCode}
   */
  public enum ErrorCode
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * NO_ERROR = 0;
     */
    NO_ERROR(0, 0),
    /**
     * GENERIC = 1;
     */
    GENERIC(1, 1),
    /**
     * NO_SUCH_FILE = 2;
     */
    NO_SUCH_FILE(2, 2),
    /**
     * INVALID_FILE = 3;
     */
    INVALID_FILE(3, 3),
    ;

    /**
     * NO_ERROR = 0;
     */
    public static final int NO_ERROR_VALUE = 0;
    /**
     * GENERIC = 1;
     */
    public static final int GENERIC_VALUE = 1;
    /**
     * NO_SUCH_FILE = 2;
     */
    public static final int NO_SUCH_FILE_VALUE = 2;
    /**
     * INVALID_FILE = 3;
     */
    public static final int INVALID_FILE_VALUE = 3;


    public final int getNumber() { return value; }

    public static ErrorCode valueOf(int value) {
      switch (value) {
        case 0: return NO_ERROR;
        case 1: return GENERIC;
        case 2: return NO_SUCH_FILE;
        case 3: return INVALID_FILE;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static com.google.protobuf.Internal.EnumLiteMap
        internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public ErrorCode findValueByNumber(int number) {
              return ErrorCode.valueOf(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(index);
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return it.anyplace.sync.bep.protos.BlockExchageProtos.getDescriptor().getEnumTypes().get(4);
    }

    private static final ErrorCode[] VALUES = values();

    public static ErrorCode valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int index;
    private final int value;

    private ErrorCode(int index, int value) {
      this.index = index;
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:it.anyplace.sync.bep.protos.ErrorCode)
  }

  /**
   * Protobuf enum {@code it.anyplace.sync.bep.protos.FileDownloadProgressUpdateType}
   */
  public enum FileDownloadProgressUpdateType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * APPEND = 0;
     */
    APPEND(0, 0),
    /**
     * FORGET = 1;
     */
    FORGET(1, 1),
    ;

    /**
     * APPEND = 0;
     */
    public static final int APPEND_VALUE = 0;
    /**
     * FORGET = 1;
     */
    public static final int FORGET_VALUE = 1;


    public final int getNumber() { return value; }

    public static FileDownloadProgressUpdateType valueOf(int value) {
      switch (value) {
        case 0: return APPEND;
        case 1: return FORGET;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static com.google.protobuf.Internal.EnumLiteMap
        internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public FileDownloadProgressUpdateType findValueByNumber(int number) {
              return FileDownloadProgressUpdateType.valueOf(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(index);
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return it.anyplace.sync.bep.protos.BlockExchageProtos.getDescriptor().getEnumTypes().get(5);
    }

    private static final FileDownloadProgressUpdateType[] VALUES = values();

    public static FileDownloadProgressUpdateType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int index;
    private final int value;

    private FileDownloadProgressUpdateType(int index, int value) {
      this.index = index;
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:it.anyplace.sync.bep.protos.FileDownloadProgressUpdateType)
  }

  public interface HelloOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional string device_name = 1;
    /**
     * optional string device_name = 1;
     */
    boolean hasDeviceName();
    /**
     * optional string device_name = 1;
     */
    java.lang.String getDeviceName();
    /**
     * optional string device_name = 1;
     */
    com.google.protobuf.ByteString
        getDeviceNameBytes();

    // optional string client_name = 2;
    /**
     * optional string client_name = 2;
     */
    boolean hasClientName();
    /**
     * optional string client_name = 2;
     */
    java.lang.String getClientName();
    /**
     * optional string client_name = 2;
     */
    com.google.protobuf.ByteString
        getClientNameBytes();

    // optional string client_version = 3;
    /**
     * optional string client_version = 3;
     */
    boolean hasClientVersion();
    /**
     * optional string client_version = 3;
     */
    java.lang.String getClientVersion();
    /**
     * optional string client_version = 3;
     */
    com.google.protobuf.ByteString
        getClientVersionBytes();
  }
  /**
   * Protobuf type {@code it.anyplace.sync.bep.protos.Hello}
   */
  public static final class Hello extends
      com.google.protobuf.GeneratedMessage
      implements HelloOrBuilder {
    // Use Hello.newBuilder() to construct.
    private Hello(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Hello(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Hello defaultInstance;
    public static Hello getDefaultInstance() {
      return defaultInstance;
    }

    public Hello getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Hello(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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 10: {
              bitField0_ |= 0x00000001;
              deviceName_ = input.readBytes();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              clientName_ = input.readBytes();
              break;
            }
            case 26: {
              bitField0_ |= 0x00000004;
              clientVersion_ = 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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Hello_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Hello_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              it.anyplace.sync.bep.protos.BlockExchageProtos.Hello.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Hello.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public Hello parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Hello(input, extensionRegistry);
      }
    };

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    private int bitField0_;
    // optional string device_name = 1;
    public static final int DEVICE_NAME_FIELD_NUMBER = 1;
    private java.lang.Object deviceName_;
    /**
     * optional string device_name = 1;
     */
    public boolean hasDeviceName() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string device_name = 1;
     */
    public java.lang.String getDeviceName() {
      java.lang.Object ref = deviceName_;
      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()) {
          deviceName_ = s;
        }
        return s;
      }
    }
    /**
     * optional string device_name = 1;
     */
    public com.google.protobuf.ByteString
        getDeviceNameBytes() {
      java.lang.Object ref = deviceName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deviceName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string client_name = 2;
    public static final int CLIENT_NAME_FIELD_NUMBER = 2;
    private java.lang.Object clientName_;
    /**
     * optional string client_name = 2;
     */
    public boolean hasClientName() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional string client_name = 2;
     */
    public java.lang.String getClientName() {
      java.lang.Object ref = clientName_;
      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()) {
          clientName_ = s;
        }
        return s;
      }
    }
    /**
     * optional string client_name = 2;
     */
    public com.google.protobuf.ByteString
        getClientNameBytes() {
      java.lang.Object ref = clientName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clientName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string client_version = 3;
    public static final int CLIENT_VERSION_FIELD_NUMBER = 3;
    private java.lang.Object clientVersion_;
    /**
     * optional string client_version = 3;
     */
    public boolean hasClientVersion() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional string client_version = 3;
     */
    public java.lang.String getClientVersion() {
      java.lang.Object ref = clientVersion_;
      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()) {
          clientVersion_ = s;
        }
        return s;
      }
    }
    /**
     * optional string client_version = 3;
     */
    public com.google.protobuf.ByteString
        getClientVersionBytes() {
      java.lang.Object ref = clientVersion_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clientVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      deviceName_ = "";
      clientName_ = "";
      clientVersion_ = "";
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getDeviceNameBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getClientNameBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(3, getClientVersionBytes());
      }
      getUnknownFields().writeTo(output);
    }

    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, getDeviceNameBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getClientNameBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, getClientVersionBytes());
      }
      size += getUnknownFields().getSerializedSize();
      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 it.anyplace.sync.bep.protos.BlockExchageProtos.Hello parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static it.anyplace.sync.bep.protos.BlockExchageProtos.Hello parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static it.anyplace.sync.bep.protos.BlockExchageProtos.Hello parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static it.anyplace.sync.bep.protos.BlockExchageProtos.Hello parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static it.anyplace.sync.bep.protos.BlockExchageProtos.Hello parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static it.anyplace.sync.bep.protos.BlockExchageProtos.Hello parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static it.anyplace.sync.bep.protos.BlockExchageProtos.Hello parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static it.anyplace.sync.bep.protos.BlockExchageProtos.Hello parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static it.anyplace.sync.bep.protos.BlockExchageProtos.Hello parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static it.anyplace.sync.bep.protos.BlockExchageProtos.Hello 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(it.anyplace.sync.bep.protos.BlockExchageProtos.Hello prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code it.anyplace.sync.bep.protos.Hello}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements it.anyplace.sync.bep.protos.BlockExchageProtos.HelloOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Hello_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Hello_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                it.anyplace.sync.bep.protos.BlockExchageProtos.Hello.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Hello.Builder.class);
      }

      // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.Hello.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        deviceName_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        clientName_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        clientVersion_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Hello_descriptor;
      }

      public it.anyplace.sync.bep.protos.BlockExchageProtos.Hello getDefaultInstanceForType() {
        return it.anyplace.sync.bep.protos.BlockExchageProtos.Hello.getDefaultInstance();
      }

      public it.anyplace.sync.bep.protos.BlockExchageProtos.Hello build() {
        it.anyplace.sync.bep.protos.BlockExchageProtos.Hello result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public it.anyplace.sync.bep.protos.BlockExchageProtos.Hello buildPartial() {
        it.anyplace.sync.bep.protos.BlockExchageProtos.Hello result = new it.anyplace.sync.bep.protos.BlockExchageProtos.Hello(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.deviceName_ = deviceName_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.clientName_ = clientName_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.clientVersion_ = clientVersion_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.Hello) {
          return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.Hello)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.Hello other) {
        if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.Hello.getDefaultInstance()) return this;
        if (other.hasDeviceName()) {
          bitField0_ |= 0x00000001;
          deviceName_ = other.deviceName_;
          onChanged();
        }
        if (other.hasClientName()) {
          bitField0_ |= 0x00000002;
          clientName_ = other.clientName_;
          onChanged();
        }
        if (other.hasClientVersion()) {
          bitField0_ |= 0x00000004;
          clientVersion_ = other.clientVersion_;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        it.anyplace.sync.bep.protos.BlockExchageProtos.Hello parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.Hello) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional string device_name = 1;
      private java.lang.Object deviceName_ = "";
      /**
       * optional string device_name = 1;
       */
      public boolean hasDeviceName() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional string device_name = 1;
       */
      public java.lang.String getDeviceName() {
        java.lang.Object ref = deviceName_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          deviceName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string device_name = 1;
       */
      public com.google.protobuf.ByteString
          getDeviceNameBytes() {
        java.lang.Object ref = deviceName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          deviceName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string device_name = 1;
       */
      public Builder setDeviceName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        deviceName_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string device_name = 1;
       */
      public Builder clearDeviceName() {
        bitField0_ = (bitField0_ & ~0x00000001);
        deviceName_ = getDefaultInstance().getDeviceName();
        onChanged();
        return this;
      }
      /**
       * optional string device_name = 1;
       */
      public Builder setDeviceNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        deviceName_ = value;
        onChanged();
        return this;
      }

      // optional string client_name = 2;
      private java.lang.Object clientName_ = "";
      /**
       * optional string client_name = 2;
       */
      public boolean hasClientName() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional string client_name = 2;
       */
      public java.lang.String getClientName() {
        java.lang.Object ref = clientName_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          clientName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string client_name = 2;
       */
      public com.google.protobuf.ByteString
          getClientNameBytes() {
        java.lang.Object ref = clientName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          clientName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string client_name = 2;
       */
      public Builder setClientName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        clientName_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string client_name = 2;
       */
      public Builder clearClientName() {
        bitField0_ = (bitField0_ & ~0x00000002);
        clientName_ = getDefaultInstance().getClientName();
        onChanged();
        return this;
      }
      /**
       * optional string client_name = 2;
       */
      public Builder setClientNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        clientName_ = value;
        onChanged();
        return this;
      }

      // optional string client_version = 3;
      private java.lang.Object clientVersion_ = "";
      /**
       * optional string client_version = 3;
       */
      public boolean hasClientVersion() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional string client_version = 3;
       */
      public java.lang.String getClientVersion() {
        java.lang.Object ref = clientVersion_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          clientVersion_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string client_version = 3;
       */
      public com.google.protobuf.ByteString
          getClientVersionBytes() {
        java.lang.Object ref = clientVersion_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          clientVersion_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string client_version = 3;
       */
      public Builder setClientVersion(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        clientVersion_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string client_version = 3;
       */
      public Builder clearClientVersion() {
        bitField0_ = (bitField0_ & ~0x00000004);
        clientVersion_ = getDefaultInstance().getClientVersion();
        onChanged();
        return this;
      }
      /**
       * optional string client_version = 3;
       */
      public Builder setClientVersionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        clientVersion_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.Hello)
    }

    static {
      defaultInstance = new Hello(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.Hello)
  }

  public interface HeaderOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional .it.anyplace.sync.bep.protos.MessageType type = 1;
    /**
     * optional .it.anyplace.sync.bep.protos.MessageType type = 1;
     */
    boolean hasType();
    /**
     * optional .it.anyplace.sync.bep.protos.MessageType type = 1;
     */
    it.anyplace.sync.bep.protos.BlockExchageProtos.MessageType getType();

    // optional .it.anyplace.sync.bep.protos.MessageCompression compression = 2;
    /**
     * optional .it.anyplace.sync.bep.protos.MessageCompression compression = 2;
     */
    boolean hasCompression();
    /**
     * optional .it.anyplace.sync.bep.protos.MessageCompression compression = 2;
     */
    it.anyplace.sync.bep.protos.BlockExchageProtos.MessageCompression getCompression();
  }
  /**
   * Protobuf type {@code it.anyplace.sync.bep.protos.Header}
   */
  public static final class Header extends
      com.google.protobuf.GeneratedMessage
      implements HeaderOrBuilder {
    // Use Header.newBuilder() to construct.
    private Header(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Header(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Header defaultInstance;
    public static Header getDefaultInstance() {
      return defaultInstance;
    }

    public Header getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Header(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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: {
              int rawValue = input.readEnum();
              it.anyplace.sync.bep.protos.BlockExchageProtos.MessageType value = it.anyplace.sync.bep.protos.BlockExchageProtos.MessageType.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(1, rawValue);
              } else {
                bitField0_ |= 0x00000001;
                type_ = value;
              }
              break;
            }
            case 16: {
              int rawValue = input.readEnum();
              it.anyplace.sync.bep.protos.BlockExchageProtos.MessageCompression value = it.anyplace.sync.bep.protos.BlockExchageProtos.MessageCompression.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(2, rawValue);
              } else {
                bitField0_ |= 0x00000002;
                compression_ = value;
              }
              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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Header_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Header_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              it.anyplace.sync.bep.protos.BlockExchageProtos.Header.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Header.Builder.class);
    }

    public static com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { public Header parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Header(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser
getParserForType() { return PARSER; } private int bitField0_; // optional .it.anyplace.sync.bep.protos.MessageType type = 1; public static final int TYPE_FIELD_NUMBER = 1; private it.anyplace.sync.bep.protos.BlockExchageProtos.MessageType type_; /** * optional .it.anyplace.sync.bep.protos.MessageType type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .it.anyplace.sync.bep.protos.MessageType type = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.MessageType getType() { return type_; } // optional .it.anyplace.sync.bep.protos.MessageCompression compression = 2; public static final int COMPRESSION_FIELD_NUMBER = 2; private it.anyplace.sync.bep.protos.BlockExchageProtos.MessageCompression compression_; /** * optional .it.anyplace.sync.bep.protos.MessageCompression compression = 2; */ public boolean hasCompression() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .it.anyplace.sync.bep.protos.MessageCompression compression = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.MessageCompression getCompression() { return compression_; } private void initFields() { type_ = it.anyplace.sync.bep.protos.BlockExchageProtos.MessageType.CLUSTER_CONFIG; compression_ = it.anyplace.sync.bep.protos.BlockExchageProtos.MessageCompression.NONE; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, compression_.getNumber()); } getUnknownFields().writeTo(output); } 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 .computeEnumSize(1, type_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, compression_.getNumber()); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Header parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Header parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Header parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Header parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Header parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Header parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Header parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Header parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Header 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(it.anyplace.sync.bep.protos.BlockExchageProtos.Header prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Header} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.HeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Header_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Header.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Header.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = it.anyplace.sync.bep.protos.BlockExchageProtos.MessageType.CLUSTER_CONFIG; bitField0_ = (bitField0_ & ~0x00000001); compression_ = it.anyplace.sync.bep.protos.BlockExchageProtos.MessageCompression.NONE; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Header_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Header getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.Header.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.Header build() { it.anyplace.sync.bep.protos.BlockExchageProtos.Header result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Header buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.Header result = new it.anyplace.sync.bep.protos.BlockExchageProtos.Header(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.compression_ = compression_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.Header) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.Header)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.Header other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.Header.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasCompression()) { setCompression(other.getCompression()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.Header parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.Header) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .it.anyplace.sync.bep.protos.MessageType type = 1; private it.anyplace.sync.bep.protos.BlockExchageProtos.MessageType type_ = it.anyplace.sync.bep.protos.BlockExchageProtos.MessageType.CLUSTER_CONFIG; /** * optional .it.anyplace.sync.bep.protos.MessageType type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .it.anyplace.sync.bep.protos.MessageType type = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.MessageType getType() { return type_; } /** * optional .it.anyplace.sync.bep.protos.MessageType type = 1; */ public Builder setType(it.anyplace.sync.bep.protos.BlockExchageProtos.MessageType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * optional .it.anyplace.sync.bep.protos.MessageType type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = it.anyplace.sync.bep.protos.BlockExchageProtos.MessageType.CLUSTER_CONFIG; onChanged(); return this; } // optional .it.anyplace.sync.bep.protos.MessageCompression compression = 2; private it.anyplace.sync.bep.protos.BlockExchageProtos.MessageCompression compression_ = it.anyplace.sync.bep.protos.BlockExchageProtos.MessageCompression.NONE; /** * optional .it.anyplace.sync.bep.protos.MessageCompression compression = 2; */ public boolean hasCompression() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .it.anyplace.sync.bep.protos.MessageCompression compression = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.MessageCompression getCompression() { return compression_; } /** * optional .it.anyplace.sync.bep.protos.MessageCompression compression = 2; */ public Builder setCompression(it.anyplace.sync.bep.protos.BlockExchageProtos.MessageCompression value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; compression_ = value; onChanged(); return this; } /** * optional .it.anyplace.sync.bep.protos.MessageCompression compression = 2; */ public Builder clearCompression() { bitField0_ = (bitField0_ & ~0x00000002); compression_ = it.anyplace.sync.bep.protos.BlockExchageProtos.MessageCompression.NONE; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.Header) } static { defaultInstance = new Header(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.Header) } public interface ClusterConfigOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .it.anyplace.sync.bep.protos.Folder folders = 1; /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ java.util.List getFoldersList(); /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ it.anyplace.sync.bep.protos.BlockExchageProtos.Folder getFolders(int index); /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ int getFoldersCount(); /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ java.util.List getFoldersOrBuilderList(); /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ it.anyplace.sync.bep.protos.BlockExchageProtos.FolderOrBuilder getFoldersOrBuilder( int index); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.ClusterConfig} */ public static final class ClusterConfig extends com.google.protobuf.GeneratedMessage implements ClusterConfigOrBuilder { // Use ClusterConfig.newBuilder() to construct. private ClusterConfig(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ClusterConfig(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ClusterConfig defaultInstance; public static ClusterConfig getDefaultInstance() { return defaultInstance; } public ClusterConfig getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClusterConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { folders_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } folders_.add(input.readMessage(it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.PARSER, extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { folders_ = java.util.Collections.unmodifiableList(folders_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_ClusterConfig_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_ClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig.class, it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ClusterConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClusterConfig(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .it.anyplace.sync.bep.protos.Folder folders = 1; public static final int FOLDERS_FIELD_NUMBER = 1; private java.util.List folders_; /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public java.util.List getFoldersList() { return folders_; } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public java.util.List getFoldersOrBuilderList() { return folders_; } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public int getFoldersCount() { return folders_.size(); } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Folder getFolders(int index) { return folders_.get(index); } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FolderOrBuilder getFoldersOrBuilder( int index) { return folders_.get(index); } private void initFields() { folders_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < folders_.size(); i++) { output.writeMessage(1, folders_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < folders_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, folders_.get(i)); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig 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(it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.ClusterConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_ClusterConfig_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_ClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig.class, it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFoldersFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (foldersBuilder_ == null) { folders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { foldersBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_ClusterConfig_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig build() { it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig result = new it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig(this); int from_bitField0_ = bitField0_; if (foldersBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { folders_ = java.util.Collections.unmodifiableList(folders_); bitField0_ = (bitField0_ & ~0x00000001); } result.folders_ = folders_; } else { result.folders_ = foldersBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig.getDefaultInstance()) return this; if (foldersBuilder_ == null) { if (!other.folders_.isEmpty()) { if (folders_.isEmpty()) { folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFoldersIsMutable(); folders_.addAll(other.folders_); } onChanged(); } } else { if (!other.folders_.isEmpty()) { if (foldersBuilder_.isEmpty()) { foldersBuilder_.dispose(); foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000001); foldersBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFoldersFieldBuilder() : null; } else { foldersBuilder_.addAllMessages(other.folders_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.ClusterConfig) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .it.anyplace.sync.bep.protos.Folder folders = 1; private java.util.List folders_ = java.util.Collections.emptyList(); private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Folder, it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.FolderOrBuilder> foldersBuilder_; /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public java.util.List getFoldersList() { if (foldersBuilder_ == null) { return java.util.Collections.unmodifiableList(folders_); } else { return foldersBuilder_.getMessageList(); } } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public int getFoldersCount() { if (foldersBuilder_ == null) { return folders_.size(); } else { return foldersBuilder_.getCount(); } } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Folder getFolders(int index) { if (foldersBuilder_ == null) { return folders_.get(index); } else { return foldersBuilder_.getMessage(index); } } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public Builder setFolders( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFoldersIsMutable(); folders_.set(index, value); onChanged(); } else { foldersBuilder_.setMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public Builder setFolders( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.set(index, builderForValue.build()); onChanged(); } else { foldersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public Builder addFolders(it.anyplace.sync.bep.protos.BlockExchageProtos.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFoldersIsMutable(); folders_.add(value); onChanged(); } else { foldersBuilder_.addMessage(value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public Builder addFolders( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFoldersIsMutable(); folders_.add(index, value); onChanged(); } else { foldersBuilder_.addMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public Builder addFolders( it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.add(builderForValue.build()); onChanged(); } else { foldersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public Builder addFolders( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.add(index, builderForValue.build()); onChanged(); } else { foldersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public Builder addAllFolders( java.lang.Iterable values) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); super.addAll(values, folders_); onChanged(); } else { foldersBuilder_.addAllMessages(values); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public Builder clearFolders() { if (foldersBuilder_ == null) { folders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { foldersBuilder_.clear(); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public Builder removeFolders(int index) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.remove(index); onChanged(); } else { foldersBuilder_.remove(index); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.Builder getFoldersBuilder( int index) { return getFoldersFieldBuilder().getBuilder(index); } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FolderOrBuilder getFoldersOrBuilder( int index) { if (foldersBuilder_ == null) { return folders_.get(index); } else { return foldersBuilder_.getMessageOrBuilder(index); } } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public java.util.List getFoldersOrBuilderList() { if (foldersBuilder_ != null) { return foldersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(folders_); } } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.Builder addFoldersBuilder() { return getFoldersFieldBuilder().addBuilder( it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.Builder addFoldersBuilder( int index) { return getFoldersFieldBuilder().addBuilder( index, it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.Folder folders = 1; */ public java.util.List getFoldersBuilderList() { return getFoldersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Folder, it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.FolderOrBuilder> getFoldersFieldBuilder() { if (foldersBuilder_ == null) { foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Folder, it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.FolderOrBuilder>( folders_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); folders_ = null; } return foldersBuilder_; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.ClusterConfig) } static { defaultInstance = new ClusterConfig(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.ClusterConfig) } public interface FolderOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string id = 1; /** * optional string id = 1; */ boolean hasId(); /** * optional string id = 1; */ java.lang.String getId(); /** * optional string id = 1; */ com.google.protobuf.ByteString getIdBytes(); // optional string label = 2; /** * optional string label = 2; */ boolean hasLabel(); /** * optional string label = 2; */ java.lang.String getLabel(); /** * optional string label = 2; */ com.google.protobuf.ByteString getLabelBytes(); // optional bool read_only = 3; /** * optional bool read_only = 3; */ boolean hasReadOnly(); /** * optional bool read_only = 3; */ boolean getReadOnly(); // optional bool ignore_permissions = 4; /** * optional bool ignore_permissions = 4; */ boolean hasIgnorePermissions(); /** * optional bool ignore_permissions = 4; */ boolean getIgnorePermissions(); // optional bool ignore_delete = 5; /** * optional bool ignore_delete = 5; */ boolean hasIgnoreDelete(); /** * optional bool ignore_delete = 5; */ boolean getIgnoreDelete(); // optional bool disable_temp_indexes = 6; /** * optional bool disable_temp_indexes = 6; */ boolean hasDisableTempIndexes(); /** * optional bool disable_temp_indexes = 6; */ boolean getDisableTempIndexes(); // repeated .it.anyplace.sync.bep.protos.Device devices = 16; /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ java.util.List getDevicesList(); /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ it.anyplace.sync.bep.protos.BlockExchageProtos.Device getDevices(int index); /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ int getDevicesCount(); /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ java.util.List getDevicesOrBuilderList(); /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ it.anyplace.sync.bep.protos.BlockExchageProtos.DeviceOrBuilder getDevicesOrBuilder( int index); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Folder} */ public static final class Folder extends com.google.protobuf.GeneratedMessage implements FolderOrBuilder { // Use Folder.newBuilder() to construct. private Folder(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Folder(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Folder defaultInstance; public static Folder getDefaultInstance() { return defaultInstance; } public Folder getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Folder( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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 10: { bitField0_ |= 0x00000001; id_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; label_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; readOnly_ = input.readBool(); break; } case 32: { bitField0_ |= 0x00000008; ignorePermissions_ = input.readBool(); break; } case 40: { bitField0_ |= 0x00000010; ignoreDelete_ = input.readBool(); break; } case 48: { bitField0_ |= 0x00000020; disableTempIndexes_ = input.readBool(); break; } case 130: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { devices_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } devices_.add(input.readMessage(it.anyplace.sync.bep.protos.BlockExchageProtos.Device.PARSER, extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { devices_ = java.util.Collections.unmodifiableList(devices_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Folder_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Folder_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Folder parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Folder(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string id = 1; public static final int ID_FIELD_NUMBER = 1; private java.lang.Object id_; /** * optional string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } } /** * optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string label = 2; public static final int LABEL_FIELD_NUMBER = 2; private java.lang.Object label_; /** * optional string label = 2; */ public boolean hasLabel() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string label = 2; */ public java.lang.String getLabel() { java.lang.Object ref = label_; 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()) { label_ = s; } return s; } } /** * optional string label = 2; */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool read_only = 3; public static final int READ_ONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * optional bool read_only = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool read_only = 3; */ public boolean getReadOnly() { return readOnly_; } // optional bool ignore_permissions = 4; public static final int IGNORE_PERMISSIONS_FIELD_NUMBER = 4; private boolean ignorePermissions_; /** * optional bool ignore_permissions = 4; */ public boolean hasIgnorePermissions() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bool ignore_permissions = 4; */ public boolean getIgnorePermissions() { return ignorePermissions_; } // optional bool ignore_delete = 5; public static final int IGNORE_DELETE_FIELD_NUMBER = 5; private boolean ignoreDelete_; /** * optional bool ignore_delete = 5; */ public boolean hasIgnoreDelete() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bool ignore_delete = 5; */ public boolean getIgnoreDelete() { return ignoreDelete_; } // optional bool disable_temp_indexes = 6; public static final int DISABLE_TEMP_INDEXES_FIELD_NUMBER = 6; private boolean disableTempIndexes_; /** * optional bool disable_temp_indexes = 6; */ public boolean hasDisableTempIndexes() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bool disable_temp_indexes = 6; */ public boolean getDisableTempIndexes() { return disableTempIndexes_; } // repeated .it.anyplace.sync.bep.protos.Device devices = 16; public static final int DEVICES_FIELD_NUMBER = 16; private java.util.List devices_; /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public java.util.List getDevicesList() { return devices_; } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public java.util.List getDevicesOrBuilderList() { return devices_; } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public int getDevicesCount() { return devices_.size(); } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Device getDevices(int index) { return devices_.get(index); } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.DeviceOrBuilder getDevicesOrBuilder( int index) { return devices_.get(index); } private void initFields() { id_ = ""; label_ = ""; readOnly_ = false; ignorePermissions_ = false; ignoreDelete_ = false; disableTempIndexes_ = false; devices_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getLabelBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, ignorePermissions_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, ignoreDelete_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(6, disableTempIndexes_); } for (int i = 0; i < devices_.size(); i++) { output.writeMessage(16, devices_.get(i)); } getUnknownFields().writeTo(output); } 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, getIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getLabelBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, ignorePermissions_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, ignoreDelete_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, disableTempIndexes_); } for (int i = 0; i < devices_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, devices_.get(i)); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.Folder parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Folder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Folder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Folder parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Folder parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Folder parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Folder parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Folder parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Folder parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Folder 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(it.anyplace.sync.bep.protos.BlockExchageProtos.Folder prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Folder} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.FolderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Folder_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Folder_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getDevicesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); label_ = ""; bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000004); ignorePermissions_ = false; bitField0_ = (bitField0_ & ~0x00000008); ignoreDelete_ = false; bitField0_ = (bitField0_ & ~0x00000010); disableTempIndexes_ = false; bitField0_ = (bitField0_ & ~0x00000020); if (devicesBuilder_ == null) { devices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { devicesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Folder_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Folder getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.Folder build() { it.anyplace.sync.bep.protos.BlockExchageProtos.Folder result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Folder buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.Folder result = new it.anyplace.sync.bep.protos.BlockExchageProtos.Folder(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.label_ = label_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.readOnly_ = readOnly_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.ignorePermissions_ = ignorePermissions_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.ignoreDelete_ = ignoreDelete_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.disableTempIndexes_ = disableTempIndexes_; if (devicesBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { devices_ = java.util.Collections.unmodifiableList(devices_); bitField0_ = (bitField0_ & ~0x00000040); } result.devices_ = devices_; } else { result.devices_ = devicesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.Folder) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.Folder)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.Folder other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.Folder.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasLabel()) { bitField0_ |= 0x00000002; label_ = other.label_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasIgnorePermissions()) { setIgnorePermissions(other.getIgnorePermissions()); } if (other.hasIgnoreDelete()) { setIgnoreDelete(other.getIgnoreDelete()); } if (other.hasDisableTempIndexes()) { setDisableTempIndexes(other.getDisableTempIndexes()); } if (devicesBuilder_ == null) { if (!other.devices_.isEmpty()) { if (devices_.isEmpty()) { devices_ = other.devices_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureDevicesIsMutable(); devices_.addAll(other.devices_); } onChanged(); } } else { if (!other.devices_.isEmpty()) { if (devicesBuilder_.isEmpty()) { devicesBuilder_.dispose(); devicesBuilder_ = null; devices_ = other.devices_; bitField0_ = (bitField0_ & ~0x00000040); devicesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDevicesFieldBuilder() : null; } else { devicesBuilder_.addAllMessages(other.devices_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.Folder parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.Folder) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string id = 1; private java.lang.Object id_ = ""; /** * optional string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string id = 1; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * optional string id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * optional string id = 1; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } // optional string label = 2; private java.lang.Object label_ = ""; /** * optional string label = 2; */ public boolean hasLabel() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string label = 2; */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); label_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string label = 2; */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string label = 2; */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; label_ = value; onChanged(); return this; } /** * optional string label = 2; */ public Builder clearLabel() { bitField0_ = (bitField0_ & ~0x00000002); label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * optional string label = 2; */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; label_ = value; onChanged(); return this; } // optional bool read_only = 3; private boolean readOnly_ ; /** * optional bool read_only = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool read_only = 3; */ public boolean getReadOnly() { return readOnly_; } /** * optional bool read_only = 3; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000004; readOnly_ = value; onChanged(); return this; } /** * optional bool read_only = 3; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; onChanged(); return this; } // optional bool ignore_permissions = 4; private boolean ignorePermissions_ ; /** * optional bool ignore_permissions = 4; */ public boolean hasIgnorePermissions() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bool ignore_permissions = 4; */ public boolean getIgnorePermissions() { return ignorePermissions_; } /** * optional bool ignore_permissions = 4; */ public Builder setIgnorePermissions(boolean value) { bitField0_ |= 0x00000008; ignorePermissions_ = value; onChanged(); return this; } /** * optional bool ignore_permissions = 4; */ public Builder clearIgnorePermissions() { bitField0_ = (bitField0_ & ~0x00000008); ignorePermissions_ = false; onChanged(); return this; } // optional bool ignore_delete = 5; private boolean ignoreDelete_ ; /** * optional bool ignore_delete = 5; */ public boolean hasIgnoreDelete() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bool ignore_delete = 5; */ public boolean getIgnoreDelete() { return ignoreDelete_; } /** * optional bool ignore_delete = 5; */ public Builder setIgnoreDelete(boolean value) { bitField0_ |= 0x00000010; ignoreDelete_ = value; onChanged(); return this; } /** * optional bool ignore_delete = 5; */ public Builder clearIgnoreDelete() { bitField0_ = (bitField0_ & ~0x00000010); ignoreDelete_ = false; onChanged(); return this; } // optional bool disable_temp_indexes = 6; private boolean disableTempIndexes_ ; /** * optional bool disable_temp_indexes = 6; */ public boolean hasDisableTempIndexes() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bool disable_temp_indexes = 6; */ public boolean getDisableTempIndexes() { return disableTempIndexes_; } /** * optional bool disable_temp_indexes = 6; */ public Builder setDisableTempIndexes(boolean value) { bitField0_ |= 0x00000020; disableTempIndexes_ = value; onChanged(); return this; } /** * optional bool disable_temp_indexes = 6; */ public Builder clearDisableTempIndexes() { bitField0_ = (bitField0_ & ~0x00000020); disableTempIndexes_ = false; onChanged(); return this; } // repeated .it.anyplace.sync.bep.protos.Device devices = 16; private java.util.List devices_ = java.util.Collections.emptyList(); private void ensureDevicesIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { devices_ = new java.util.ArrayList(devices_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Device, it.anyplace.sync.bep.protos.BlockExchageProtos.Device.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.DeviceOrBuilder> devicesBuilder_; /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public java.util.List getDevicesList() { if (devicesBuilder_ == null) { return java.util.Collections.unmodifiableList(devices_); } else { return devicesBuilder_.getMessageList(); } } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public int getDevicesCount() { if (devicesBuilder_ == null) { return devices_.size(); } else { return devicesBuilder_.getCount(); } } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Device getDevices(int index) { if (devicesBuilder_ == null) { return devices_.get(index); } else { return devicesBuilder_.getMessage(index); } } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public Builder setDevices( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.Device value) { if (devicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDevicesIsMutable(); devices_.set(index, value); onChanged(); } else { devicesBuilder_.setMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public Builder setDevices( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.Device.Builder builderForValue) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.set(index, builderForValue.build()); onChanged(); } else { devicesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public Builder addDevices(it.anyplace.sync.bep.protos.BlockExchageProtos.Device value) { if (devicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDevicesIsMutable(); devices_.add(value); onChanged(); } else { devicesBuilder_.addMessage(value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public Builder addDevices( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.Device value) { if (devicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDevicesIsMutable(); devices_.add(index, value); onChanged(); } else { devicesBuilder_.addMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public Builder addDevices( it.anyplace.sync.bep.protos.BlockExchageProtos.Device.Builder builderForValue) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.add(builderForValue.build()); onChanged(); } else { devicesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public Builder addDevices( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.Device.Builder builderForValue) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.add(index, builderForValue.build()); onChanged(); } else { devicesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public Builder addAllDevices( java.lang.Iterable values) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); super.addAll(values, devices_); onChanged(); } else { devicesBuilder_.addAllMessages(values); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public Builder clearDevices() { if (devicesBuilder_ == null) { devices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { devicesBuilder_.clear(); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public Builder removeDevices(int index) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.remove(index); onChanged(); } else { devicesBuilder_.remove(index); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Device.Builder getDevicesBuilder( int index) { return getDevicesFieldBuilder().getBuilder(index); } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.DeviceOrBuilder getDevicesOrBuilder( int index) { if (devicesBuilder_ == null) { return devices_.get(index); } else { return devicesBuilder_.getMessageOrBuilder(index); } } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public java.util.List getDevicesOrBuilderList() { if (devicesBuilder_ != null) { return devicesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(devices_); } } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Device.Builder addDevicesBuilder() { return getDevicesFieldBuilder().addBuilder( it.anyplace.sync.bep.protos.BlockExchageProtos.Device.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Device.Builder addDevicesBuilder( int index) { return getDevicesFieldBuilder().addBuilder( index, it.anyplace.sync.bep.protos.BlockExchageProtos.Device.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.Device devices = 16; */ public java.util.List getDevicesBuilderList() { return getDevicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Device, it.anyplace.sync.bep.protos.BlockExchageProtos.Device.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.DeviceOrBuilder> getDevicesFieldBuilder() { if (devicesBuilder_ == null) { devicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Device, it.anyplace.sync.bep.protos.BlockExchageProtos.Device.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.DeviceOrBuilder>( devices_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); devices_ = null; } return devicesBuilder_; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.Folder) } static { defaultInstance = new Folder(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.Folder) } public interface DeviceOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional bytes id = 1; /** * optional bytes id = 1; */ boolean hasId(); /** * optional bytes id = 1; */ com.google.protobuf.ByteString getId(); // optional string name = 2; /** * optional string name = 2; */ boolean hasName(); /** * optional string name = 2; */ java.lang.String getName(); /** * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); // repeated string addresses = 3; /** * repeated string addresses = 3; */ java.util.List getAddressesList(); /** * repeated string addresses = 3; */ int getAddressesCount(); /** * repeated string addresses = 3; */ java.lang.String getAddresses(int index); /** * repeated string addresses = 3; */ com.google.protobuf.ByteString getAddressesBytes(int index); // optional .it.anyplace.sync.bep.protos.Compression compression = 4; /** * optional .it.anyplace.sync.bep.protos.Compression compression = 4; */ boolean hasCompression(); /** * optional .it.anyplace.sync.bep.protos.Compression compression = 4; */ it.anyplace.sync.bep.protos.BlockExchageProtos.Compression getCompression(); // optional string cert_name = 5; /** * optional string cert_name = 5; */ boolean hasCertName(); /** * optional string cert_name = 5; */ java.lang.String getCertName(); /** * optional string cert_name = 5; */ com.google.protobuf.ByteString getCertNameBytes(); // optional int64 max_sequence = 6; /** * optional int64 max_sequence = 6; */ boolean hasMaxSequence(); /** * optional int64 max_sequence = 6; */ long getMaxSequence(); // optional bool introducer = 7; /** * optional bool introducer = 7; */ boolean hasIntroducer(); /** * optional bool introducer = 7; */ boolean getIntroducer(); // optional uint64 index_id = 8; /** * optional uint64 index_id = 8; */ boolean hasIndexId(); /** * optional uint64 index_id = 8; */ long getIndexId(); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Device} */ public static final class Device extends com.google.protobuf.GeneratedMessage implements DeviceOrBuilder { // Use Device.newBuilder() to construct. private Device(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Device(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Device defaultInstance; public static Device getDefaultInstance() { return defaultInstance; } public Device getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Device( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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 10: { bitField0_ |= 0x00000001; id_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; name_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { addresses_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } addresses_.add(input.readBytes()); break; } case 32: { int rawValue = input.readEnum(); it.anyplace.sync.bep.protos.BlockExchageProtos.Compression value = it.anyplace.sync.bep.protos.BlockExchageProtos.Compression.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000004; compression_ = value; } break; } case 42: { bitField0_ |= 0x00000008; certName_ = input.readBytes(); break; } case 48: { bitField0_ |= 0x00000010; maxSequence_ = input.readInt64(); break; } case 56: { bitField0_ |= 0x00000020; introducer_ = input.readBool(); break; } case 64: { bitField0_ |= 0x00000040; indexId_ = input.readUInt64(); 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 { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { addresses_ = new com.google.protobuf.UnmodifiableLazyStringList(addresses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Device_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Device_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Device.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Device.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Device parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Device(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional bytes id = 1; public static final int ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString id_; /** * optional bytes id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes id = 1; */ public com.google.protobuf.ByteString getId() { return id_; } // optional string name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ 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(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 2; */ 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; } } // repeated string addresses = 3; public static final int ADDRESSES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList addresses_; /** * repeated string addresses = 3; */ public java.util.List getAddressesList() { return addresses_; } /** * repeated string addresses = 3; */ public int getAddressesCount() { return addresses_.size(); } /** * repeated string addresses = 3; */ public java.lang.String getAddresses(int index) { return addresses_.get(index); } /** * repeated string addresses = 3; */ public com.google.protobuf.ByteString getAddressesBytes(int index) { return addresses_.getByteString(index); } // optional .it.anyplace.sync.bep.protos.Compression compression = 4; public static final int COMPRESSION_FIELD_NUMBER = 4; private it.anyplace.sync.bep.protos.BlockExchageProtos.Compression compression_; /** * optional .it.anyplace.sync.bep.protos.Compression compression = 4; */ public boolean hasCompression() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .it.anyplace.sync.bep.protos.Compression compression = 4; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Compression getCompression() { return compression_; } // optional string cert_name = 5; public static final int CERT_NAME_FIELD_NUMBER = 5; private java.lang.Object certName_; /** * optional string cert_name = 5; */ public boolean hasCertName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string cert_name = 5; */ public java.lang.String getCertName() { java.lang.Object ref = certName_; 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()) { certName_ = s; } return s; } } /** * optional string cert_name = 5; */ public com.google.protobuf.ByteString getCertNameBytes() { java.lang.Object ref = certName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); certName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 max_sequence = 6; public static final int MAX_SEQUENCE_FIELD_NUMBER = 6; private long maxSequence_; /** * optional int64 max_sequence = 6; */ public boolean hasMaxSequence() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 max_sequence = 6; */ public long getMaxSequence() { return maxSequence_; } // optional bool introducer = 7; public static final int INTRODUCER_FIELD_NUMBER = 7; private boolean introducer_; /** * optional bool introducer = 7; */ public boolean hasIntroducer() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bool introducer = 7; */ public boolean getIntroducer() { return introducer_; } // optional uint64 index_id = 8; public static final int INDEX_ID_FIELD_NUMBER = 8; private long indexId_; /** * optional uint64 index_id = 8; */ public boolean hasIndexId() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint64 index_id = 8; */ public long getIndexId() { return indexId_; } private void initFields() { id_ = com.google.protobuf.ByteString.EMPTY; name_ = ""; addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; compression_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Compression.METADATA; certName_ = ""; maxSequence_ = 0L; introducer_ = false; indexId_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameBytes()); } for (int i = 0; i < addresses_.size(); i++) { output.writeBytes(3, addresses_.getByteString(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(4, compression_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(5, getCertNameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(6, maxSequence_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(7, introducer_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt64(8, indexId_); } getUnknownFields().writeTo(output); } 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, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNameBytes()); } { int dataSize = 0; for (int i = 0; i < addresses_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(addresses_.getByteString(i)); } size += dataSize; size += 1 * getAddressesList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, compression_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getCertNameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, maxSequence_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, introducer_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, indexId_); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.Device parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Device parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Device parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Device parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Device parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Device parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Device parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Device parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Device parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Device 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(it.anyplace.sync.bep.protos.BlockExchageProtos.Device prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Device} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.DeviceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Device_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Device_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Device.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Device.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.Device.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); id_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); compression_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Compression.METADATA; bitField0_ = (bitField0_ & ~0x00000008); certName_ = ""; bitField0_ = (bitField0_ & ~0x00000010); maxSequence_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); introducer_ = false; bitField0_ = (bitField0_ & ~0x00000040); indexId_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Device_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Device getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.Device.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.Device build() { it.anyplace.sync.bep.protos.BlockExchageProtos.Device result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Device buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.Device result = new it.anyplace.sync.bep.protos.BlockExchageProtos.Device(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((bitField0_ & 0x00000004) == 0x00000004)) { addresses_ = new com.google.protobuf.UnmodifiableLazyStringList( addresses_); bitField0_ = (bitField0_ & ~0x00000004); } result.addresses_ = addresses_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.compression_ = compression_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.certName_ = certName_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.maxSequence_ = maxSequence_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } result.introducer_ = introducer_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.indexId_ = indexId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.Device) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.Device)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.Device other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.Device.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (!other.addresses_.isEmpty()) { if (addresses_.isEmpty()) { addresses_ = other.addresses_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAddressesIsMutable(); addresses_.addAll(other.addresses_); } onChanged(); } if (other.hasCompression()) { setCompression(other.getCompression()); } if (other.hasCertName()) { bitField0_ |= 0x00000010; certName_ = other.certName_; onChanged(); } if (other.hasMaxSequence()) { setMaxSequence(other.getMaxSequence()); } if (other.hasIntroducer()) { setIntroducer(other.getIntroducer()); } if (other.hasIndexId()) { setIndexId(other.getIndexId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.Device parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.Device) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional bytes id = 1; private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes id = 1; */ public com.google.protobuf.ByteString getId() { return id_; } /** * optional bytes id = 1; */ public Builder setId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * optional bytes id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } // optional string name = 2; private java.lang.Object name_ = ""; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; */ 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; } } /** * optional string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } // repeated string addresses = 3; private com.google.protobuf.LazyStringList addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAddressesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { addresses_ = new com.google.protobuf.LazyStringArrayList(addresses_); bitField0_ |= 0x00000004; } } /** * repeated string addresses = 3; */ public java.util.List getAddressesList() { return java.util.Collections.unmodifiableList(addresses_); } /** * repeated string addresses = 3; */ public int getAddressesCount() { return addresses_.size(); } /** * repeated string addresses = 3; */ public java.lang.String getAddresses(int index) { return addresses_.get(index); } /** * repeated string addresses = 3; */ public com.google.protobuf.ByteString getAddressesBytes(int index) { return addresses_.getByteString(index); } /** * repeated string addresses = 3; */ public Builder setAddresses( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.set(index, value); onChanged(); return this; } /** * repeated string addresses = 3; */ public Builder addAddresses( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.add(value); onChanged(); return this; } /** * repeated string addresses = 3; */ public Builder addAllAddresses( java.lang.Iterable values) { ensureAddressesIsMutable(); super.addAll(values, addresses_); onChanged(); return this; } /** * repeated string addresses = 3; */ public Builder clearAddresses() { addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * repeated string addresses = 3; */ public Builder addAddressesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.add(value); onChanged(); return this; } // optional .it.anyplace.sync.bep.protos.Compression compression = 4; private it.anyplace.sync.bep.protos.BlockExchageProtos.Compression compression_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Compression.METADATA; /** * optional .it.anyplace.sync.bep.protos.Compression compression = 4; */ public boolean hasCompression() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .it.anyplace.sync.bep.protos.Compression compression = 4; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Compression getCompression() { return compression_; } /** * optional .it.anyplace.sync.bep.protos.Compression compression = 4; */ public Builder setCompression(it.anyplace.sync.bep.protos.BlockExchageProtos.Compression value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; compression_ = value; onChanged(); return this; } /** * optional .it.anyplace.sync.bep.protos.Compression compression = 4; */ public Builder clearCompression() { bitField0_ = (bitField0_ & ~0x00000008); compression_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Compression.METADATA; onChanged(); return this; } // optional string cert_name = 5; private java.lang.Object certName_ = ""; /** * optional string cert_name = 5; */ public boolean hasCertName() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string cert_name = 5; */ public java.lang.String getCertName() { java.lang.Object ref = certName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); certName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string cert_name = 5; */ public com.google.protobuf.ByteString getCertNameBytes() { java.lang.Object ref = certName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); certName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string cert_name = 5; */ public Builder setCertName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; certName_ = value; onChanged(); return this; } /** * optional string cert_name = 5; */ public Builder clearCertName() { bitField0_ = (bitField0_ & ~0x00000010); certName_ = getDefaultInstance().getCertName(); onChanged(); return this; } /** * optional string cert_name = 5; */ public Builder setCertNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; certName_ = value; onChanged(); return this; } // optional int64 max_sequence = 6; private long maxSequence_ ; /** * optional int64 max_sequence = 6; */ public boolean hasMaxSequence() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int64 max_sequence = 6; */ public long getMaxSequence() { return maxSequence_; } /** * optional int64 max_sequence = 6; */ public Builder setMaxSequence(long value) { bitField0_ |= 0x00000020; maxSequence_ = value; onChanged(); return this; } /** * optional int64 max_sequence = 6; */ public Builder clearMaxSequence() { bitField0_ = (bitField0_ & ~0x00000020); maxSequence_ = 0L; onChanged(); return this; } // optional bool introducer = 7; private boolean introducer_ ; /** * optional bool introducer = 7; */ public boolean hasIntroducer() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool introducer = 7; */ public boolean getIntroducer() { return introducer_; } /** * optional bool introducer = 7; */ public Builder setIntroducer(boolean value) { bitField0_ |= 0x00000040; introducer_ = value; onChanged(); return this; } /** * optional bool introducer = 7; */ public Builder clearIntroducer() { bitField0_ = (bitField0_ & ~0x00000040); introducer_ = false; onChanged(); return this; } // optional uint64 index_id = 8; private long indexId_ ; /** * optional uint64 index_id = 8; */ public boolean hasIndexId() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint64 index_id = 8; */ public long getIndexId() { return indexId_; } /** * optional uint64 index_id = 8; */ public Builder setIndexId(long value) { bitField0_ |= 0x00000080; indexId_ = value; onChanged(); return this; } /** * optional uint64 index_id = 8; */ public Builder clearIndexId() { bitField0_ = (bitField0_ & ~0x00000080); indexId_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.Device) } static { defaultInstance = new Device(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.Device) } public interface IndexOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string folder = 1; /** * optional string folder = 1; */ boolean hasFolder(); /** * optional string folder = 1; */ java.lang.String getFolder(); /** * optional string folder = 1; */ com.google.protobuf.ByteString getFolderBytes(); // repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ java.util.List getFilesList(); /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo getFiles(int index); /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ int getFilesCount(); /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ java.util.List getFilesOrBuilderList(); /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoOrBuilder getFilesOrBuilder( int index); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Index} */ public static final class Index extends com.google.protobuf.GeneratedMessage implements IndexOrBuilder { // Use Index.newBuilder() to construct. private Index(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Index(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Index defaultInstance; public static Index getDefaultInstance() { return defaultInstance; } public Index getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Index( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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 10: { bitField0_ |= 0x00000001; folder_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { files_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } files_.add(input.readMessage(it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.PARSER, extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { files_ = java.util.Collections.unmodifiableList(files_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Index_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Index_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Index.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Index.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Index parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Index(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string folder = 1; public static final int FOLDER_FIELD_NUMBER = 1; private java.lang.Object folder_; /** * optional string folder = 1; */ public boolean hasFolder() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string folder = 1; */ public java.lang.String getFolder() { java.lang.Object ref = folder_; 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()) { folder_ = s; } return s; } } /** * optional string folder = 1; */ public com.google.protobuf.ByteString getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; public static final int FILES_FIELD_NUMBER = 2; private java.util.List files_; /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public java.util.List getFilesList() { return files_; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public java.util.List getFilesOrBuilderList() { return files_; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public int getFilesCount() { return files_.size(); } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo getFiles(int index) { return files_.get(index); } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoOrBuilder getFilesOrBuilder( int index) { return files_.get(index); } private void initFields() { folder_ = ""; files_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getFolderBytes()); } for (int i = 0; i < files_.size(); i++) { output.writeMessage(2, files_.get(i)); } getUnknownFields().writeTo(output); } 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, getFolderBytes()); } for (int i = 0; i < files_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, files_.get(i)); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.Index parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Index parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Index parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Index parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Index parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Index parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Index parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Index parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Index parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Index 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(it.anyplace.sync.bep.protos.BlockExchageProtos.Index prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Index} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.IndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Index_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Index_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Index.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Index.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.Index.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFilesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); folder_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (filesBuilder_ == null) { files_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { filesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Index_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Index getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.Index.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.Index build() { it.anyplace.sync.bep.protos.BlockExchageProtos.Index result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Index buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.Index result = new it.anyplace.sync.bep.protos.BlockExchageProtos.Index(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.folder_ = folder_; if (filesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { files_ = java.util.Collections.unmodifiableList(files_); bitField0_ = (bitField0_ & ~0x00000002); } result.files_ = files_; } else { result.files_ = filesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.Index) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.Index)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.Index other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.Index.getDefaultInstance()) return this; if (other.hasFolder()) { bitField0_ |= 0x00000001; folder_ = other.folder_; onChanged(); } if (filesBuilder_ == null) { if (!other.files_.isEmpty()) { if (files_.isEmpty()) { files_ = other.files_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFilesIsMutable(); files_.addAll(other.files_); } onChanged(); } } else { if (!other.files_.isEmpty()) { if (filesBuilder_.isEmpty()) { filesBuilder_.dispose(); filesBuilder_ = null; files_ = other.files_; bitField0_ = (bitField0_ & ~0x00000002); filesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFilesFieldBuilder() : null; } else { filesBuilder_.addAllMessages(other.files_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.Index parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.Index) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string folder = 1; private java.lang.Object folder_ = ""; /** * optional string folder = 1; */ public boolean hasFolder() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string folder = 1; */ public java.lang.String getFolder() { java.lang.Object ref = folder_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); folder_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string folder = 1; */ public com.google.protobuf.ByteString getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string folder = 1; */ public Builder setFolder( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; folder_ = value; onChanged(); return this; } /** * optional string folder = 1; */ public Builder clearFolder() { bitField0_ = (bitField0_ & ~0x00000001); folder_ = getDefaultInstance().getFolder(); onChanged(); return this; } /** * optional string folder = 1; */ public Builder setFolderBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; folder_ = value; onChanged(); return this; } // repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; private java.util.List files_ = java.util.Collections.emptyList(); private void ensureFilesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { files_ = new java.util.ArrayList(files_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoOrBuilder> filesBuilder_; /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public java.util.List getFilesList() { if (filesBuilder_ == null) { return java.util.Collections.unmodifiableList(files_); } else { return filesBuilder_.getMessageList(); } } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public int getFilesCount() { if (filesBuilder_ == null) { return files_.size(); } else { return filesBuilder_.getCount(); } } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo getFiles(int index) { if (filesBuilder_ == null) { return files_.get(index); } else { return filesBuilder_.getMessage(index); } } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder setFiles( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.set(index, value); onChanged(); } else { filesBuilder_.setMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder setFiles( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.set(index, builderForValue.build()); onChanged(); } else { filesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder addFiles(it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.add(value); onChanged(); } else { filesBuilder_.addMessage(value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder addFiles( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.add(index, value); onChanged(); } else { filesBuilder_.addMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder addFiles( it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.add(builderForValue.build()); onChanged(); } else { filesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder addFiles( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.add(index, builderForValue.build()); onChanged(); } else { filesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder addAllFiles( java.lang.Iterable values) { if (filesBuilder_ == null) { ensureFilesIsMutable(); super.addAll(values, files_); onChanged(); } else { filesBuilder_.addAllMessages(values); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder clearFiles() { if (filesBuilder_ == null) { files_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { filesBuilder_.clear(); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder removeFiles(int index) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.remove(index); onChanged(); } else { filesBuilder_.remove(index); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder getFilesBuilder( int index) { return getFilesFieldBuilder().getBuilder(index); } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoOrBuilder getFilesOrBuilder( int index) { if (filesBuilder_ == null) { return files_.get(index); } else { return filesBuilder_.getMessageOrBuilder(index); } } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public java.util.List getFilesOrBuilderList() { if (filesBuilder_ != null) { return filesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(files_); } } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder addFilesBuilder() { return getFilesFieldBuilder().addBuilder( it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder addFilesBuilder( int index) { return getFilesFieldBuilder().addBuilder( index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public java.util.List getFilesBuilderList() { return getFilesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoOrBuilder> getFilesFieldBuilder() { if (filesBuilder_ == null) { filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoOrBuilder>( files_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); files_ = null; } return filesBuilder_; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.Index) } static { defaultInstance = new Index(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.Index) } public interface IndexUpdateOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string folder = 1; /** * optional string folder = 1; */ boolean hasFolder(); /** * optional string folder = 1; */ java.lang.String getFolder(); /** * optional string folder = 1; */ com.google.protobuf.ByteString getFolderBytes(); // repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ java.util.List getFilesList(); /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo getFiles(int index); /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ int getFilesCount(); /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ java.util.List getFilesOrBuilderList(); /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoOrBuilder getFilesOrBuilder( int index); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.IndexUpdate} */ public static final class IndexUpdate extends com.google.protobuf.GeneratedMessage implements IndexUpdateOrBuilder { // Use IndexUpdate.newBuilder() to construct. private IndexUpdate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private IndexUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final IndexUpdate defaultInstance; public static IndexUpdate getDefaultInstance() { return defaultInstance; } public IndexUpdate getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IndexUpdate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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 10: { bitField0_ |= 0x00000001; folder_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { files_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } files_.add(input.readMessage(it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.PARSER, extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { files_ = java.util.Collections.unmodifiableList(files_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_IndexUpdate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_IndexUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate.class, it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IndexUpdate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IndexUpdate(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string folder = 1; public static final int FOLDER_FIELD_NUMBER = 1; private java.lang.Object folder_; /** * optional string folder = 1; */ public boolean hasFolder() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string folder = 1; */ public java.lang.String getFolder() { java.lang.Object ref = folder_; 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()) { folder_ = s; } return s; } } /** * optional string folder = 1; */ public com.google.protobuf.ByteString getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; public static final int FILES_FIELD_NUMBER = 2; private java.util.List files_; /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public java.util.List getFilesList() { return files_; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public java.util.List getFilesOrBuilderList() { return files_; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public int getFilesCount() { return files_.size(); } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo getFiles(int index) { return files_.get(index); } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoOrBuilder getFilesOrBuilder( int index) { return files_.get(index); } private void initFields() { folder_ = ""; files_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getFolderBytes()); } for (int i = 0; i < files_.size(); i++) { output.writeMessage(2, files_.get(i)); } getUnknownFields().writeTo(output); } 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, getFolderBytes()); } for (int i = 0; i < files_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, files_.get(i)); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate 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(it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.IndexUpdate} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_IndexUpdate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_IndexUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate.class, it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFilesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); folder_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (filesBuilder_ == null) { files_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { filesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_IndexUpdate_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate build() { it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate result = new it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.folder_ = folder_; if (filesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { files_ = java.util.Collections.unmodifiableList(files_); bitField0_ = (bitField0_ & ~0x00000002); } result.files_ = files_; } else { result.files_ = filesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate.getDefaultInstance()) return this; if (other.hasFolder()) { bitField0_ |= 0x00000001; folder_ = other.folder_; onChanged(); } if (filesBuilder_ == null) { if (!other.files_.isEmpty()) { if (files_.isEmpty()) { files_ = other.files_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFilesIsMutable(); files_.addAll(other.files_); } onChanged(); } } else { if (!other.files_.isEmpty()) { if (filesBuilder_.isEmpty()) { filesBuilder_.dispose(); filesBuilder_ = null; files_ = other.files_; bitField0_ = (bitField0_ & ~0x00000002); filesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFilesFieldBuilder() : null; } else { filesBuilder_.addAllMessages(other.files_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.IndexUpdate) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string folder = 1; private java.lang.Object folder_ = ""; /** * optional string folder = 1; */ public boolean hasFolder() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string folder = 1; */ public java.lang.String getFolder() { java.lang.Object ref = folder_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); folder_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string folder = 1; */ public com.google.protobuf.ByteString getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string folder = 1; */ public Builder setFolder( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; folder_ = value; onChanged(); return this; } /** * optional string folder = 1; */ public Builder clearFolder() { bitField0_ = (bitField0_ & ~0x00000001); folder_ = getDefaultInstance().getFolder(); onChanged(); return this; } /** * optional string folder = 1; */ public Builder setFolderBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; folder_ = value; onChanged(); return this; } // repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; private java.util.List files_ = java.util.Collections.emptyList(); private void ensureFilesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { files_ = new java.util.ArrayList(files_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoOrBuilder> filesBuilder_; /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public java.util.List getFilesList() { if (filesBuilder_ == null) { return java.util.Collections.unmodifiableList(files_); } else { return filesBuilder_.getMessageList(); } } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public int getFilesCount() { if (filesBuilder_ == null) { return files_.size(); } else { return filesBuilder_.getCount(); } } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo getFiles(int index) { if (filesBuilder_ == null) { return files_.get(index); } else { return filesBuilder_.getMessage(index); } } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder setFiles( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.set(index, value); onChanged(); } else { filesBuilder_.setMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder setFiles( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.set(index, builderForValue.build()); onChanged(); } else { filesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder addFiles(it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.add(value); onChanged(); } else { filesBuilder_.addMessage(value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder addFiles( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.add(index, value); onChanged(); } else { filesBuilder_.addMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder addFiles( it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.add(builderForValue.build()); onChanged(); } else { filesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder addFiles( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.add(index, builderForValue.build()); onChanged(); } else { filesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder addAllFiles( java.lang.Iterable values) { if (filesBuilder_ == null) { ensureFilesIsMutable(); super.addAll(values, files_); onChanged(); } else { filesBuilder_.addAllMessages(values); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder clearFiles() { if (filesBuilder_ == null) { files_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { filesBuilder_.clear(); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public Builder removeFiles(int index) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.remove(index); onChanged(); } else { filesBuilder_.remove(index); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder getFilesBuilder( int index) { return getFilesFieldBuilder().getBuilder(index); } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoOrBuilder getFilesOrBuilder( int index) { if (filesBuilder_ == null) { return files_.get(index); } else { return filesBuilder_.getMessageOrBuilder(index); } } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public java.util.List getFilesOrBuilderList() { if (filesBuilder_ != null) { return filesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(files_); } } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder addFilesBuilder() { return getFilesFieldBuilder().addBuilder( it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder addFilesBuilder( int index) { return getFilesFieldBuilder().addBuilder( index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.FileInfo files = 2; */ public java.util.List getFilesBuilderList() { return getFilesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoOrBuilder> getFilesFieldBuilder() { if (filesBuilder_ == null) { filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoOrBuilder>( files_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); files_ = null; } return filesBuilder_; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.IndexUpdate) } static { defaultInstance = new IndexUpdate(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.IndexUpdate) } public interface FileInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string name = 1; /** * optional string name = 1; */ boolean hasName(); /** * optional string name = 1; */ java.lang.String getName(); /** * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); // optional .it.anyplace.sync.bep.protos.FileInfoType type = 2; /** * optional .it.anyplace.sync.bep.protos.FileInfoType type = 2; */ boolean hasType(); /** * optional .it.anyplace.sync.bep.protos.FileInfoType type = 2; */ it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoType getType(); // optional int64 size = 3; /** * optional int64 size = 3; */ boolean hasSize(); /** * optional int64 size = 3; */ long getSize(); // optional uint32 permissions = 4; /** * optional uint32 permissions = 4; */ boolean hasPermissions(); /** * optional uint32 permissions = 4; */ int getPermissions(); // optional int64 modified_s = 5; /** * optional int64 modified_s = 5; */ boolean hasModifiedS(); /** * optional int64 modified_s = 5; */ long getModifiedS(); // optional int32 modified_ns = 11; /** * optional int32 modified_ns = 11; */ boolean hasModifiedNs(); /** * optional int32 modified_ns = 11; */ int getModifiedNs(); // optional bool deleted = 6; /** * optional bool deleted = 6; */ boolean hasDeleted(); /** * optional bool deleted = 6; */ boolean getDeleted(); // optional bool invalid = 7; /** * optional bool invalid = 7; */ boolean hasInvalid(); /** * optional bool invalid = 7; */ boolean getInvalid(); // optional bool no_permissions = 8; /** * optional bool no_permissions = 8; */ boolean hasNoPermissions(); /** * optional bool no_permissions = 8; */ boolean getNoPermissions(); // optional .it.anyplace.sync.bep.protos.Vector version = 9; /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ boolean hasVersion(); /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ it.anyplace.sync.bep.protos.BlockExchageProtos.Vector getVersion(); /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ it.anyplace.sync.bep.protos.BlockExchageProtos.VectorOrBuilder getVersionOrBuilder(); // optional int64 sequence = 10; /** * optional int64 sequence = 10; */ boolean hasSequence(); /** * optional int64 sequence = 10; */ long getSequence(); // repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ java.util.List getBlocksList(); /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo getBlocks(int index); /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ int getBlocksCount(); /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ java.util.List getBlocksOrBuilderList(); /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfoOrBuilder getBlocksOrBuilder( int index); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.FileInfo} */ public static final class FileInfo extends com.google.protobuf.GeneratedMessage implements FileInfoOrBuilder { // Use FileInfo.newBuilder() to construct. private FileInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FileInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FileInfo defaultInstance; public static FileInfo getDefaultInstance() { return defaultInstance; } public FileInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FileInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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 10: { bitField0_ |= 0x00000001; name_ = input.readBytes(); break; } case 16: { int rawValue = input.readEnum(); it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoType value = it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; type_ = value; } break; } case 24: { bitField0_ |= 0x00000004; size_ = input.readInt64(); break; } case 32: { bitField0_ |= 0x00000008; permissions_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000010; modifiedS_ = input.readInt64(); break; } case 48: { bitField0_ |= 0x00000040; deleted_ = input.readBool(); break; } case 56: { bitField0_ |= 0x00000080; invalid_ = input.readBool(); break; } case 64: { bitField0_ |= 0x00000100; noPermissions_ = input.readBool(); break; } case 74: { it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder subBuilder = null; if (((bitField0_ & 0x00000200) == 0x00000200)) { subBuilder = version_.toBuilder(); } version_ = input.readMessage(it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(version_); version_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 80: { bitField0_ |= 0x00000400; sequence_ = input.readInt64(); break; } case 88: { bitField0_ |= 0x00000020; modifiedNs_ = input.readInt32(); break; } case 130: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { blocks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } blocks_.add(input.readMessage(it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.PARSER, extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_FileInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_FileInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.class, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FileInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FileInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string name = 1; */ 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(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 1; */ 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; } } // optional .it.anyplace.sync.bep.protos.FileInfoType type = 2; public static final int TYPE_FIELD_NUMBER = 2; private it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoType type_; /** * optional .it.anyplace.sync.bep.protos.FileInfoType type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .it.anyplace.sync.bep.protos.FileInfoType type = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoType getType() { return type_; } // optional int64 size = 3; public static final int SIZE_FIELD_NUMBER = 3; private long size_; /** * optional int64 size = 3; */ public boolean hasSize() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 size = 3; */ public long getSize() { return size_; } // optional uint32 permissions = 4; public static final int PERMISSIONS_FIELD_NUMBER = 4; private int permissions_; /** * optional uint32 permissions = 4; */ public boolean hasPermissions() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint32 permissions = 4; */ public int getPermissions() { return permissions_; } // optional int64 modified_s = 5; public static final int MODIFIED_S_FIELD_NUMBER = 5; private long modifiedS_; /** * optional int64 modified_s = 5; */ public boolean hasModifiedS() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 modified_s = 5; */ public long getModifiedS() { return modifiedS_; } // optional int32 modified_ns = 11; public static final int MODIFIED_NS_FIELD_NUMBER = 11; private int modifiedNs_; /** * optional int32 modified_ns = 11; */ public boolean hasModifiedNs() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 modified_ns = 11; */ public int getModifiedNs() { return modifiedNs_; } // optional bool deleted = 6; public static final int DELETED_FIELD_NUMBER = 6; private boolean deleted_; /** * optional bool deleted = 6; */ public boolean hasDeleted() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool deleted = 6; */ public boolean getDeleted() { return deleted_; } // optional bool invalid = 7; public static final int INVALID_FIELD_NUMBER = 7; private boolean invalid_; /** * optional bool invalid = 7; */ public boolean hasInvalid() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional bool invalid = 7; */ public boolean getInvalid() { return invalid_; } // optional bool no_permissions = 8; public static final int NO_PERMISSIONS_FIELD_NUMBER = 8; private boolean noPermissions_; /** * optional bool no_permissions = 8; */ public boolean hasNoPermissions() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bool no_permissions = 8; */ public boolean getNoPermissions() { return noPermissions_; } // optional .it.anyplace.sync.bep.protos.Vector version = 9; public static final int VERSION_FIELD_NUMBER = 9; private it.anyplace.sync.bep.protos.BlockExchageProtos.Vector version_; /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ public boolean hasVersion() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Vector getVersion() { return version_; } /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.VectorOrBuilder getVersionOrBuilder() { return version_; } // optional int64 sequence = 10; public static final int SEQUENCE_FIELD_NUMBER = 10; private long sequence_; /** * optional int64 sequence = 10; */ public boolean hasSequence() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int64 sequence = 10; */ public long getSequence() { return sequence_; } // repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; public static final int BLOCKS_FIELD_NUMBER = 16; private java.util.List blocks_; /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public java.util.List getBlocksList() { return blocks_; } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public java.util.List getBlocksOrBuilderList() { return blocks_; } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public int getBlocksCount() { return blocks_.size(); } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo getBlocks(int index) { return blocks_.get(index); } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfoOrBuilder getBlocksOrBuilder( int index) { return blocks_.get(index); } private void initFields() { name_ = ""; type_ = it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoType.FILE; size_ = 0L; permissions_ = 0; modifiedS_ = 0L; modifiedNs_ = 0; deleted_ = false; invalid_ = false; noPermissions_ = false; version_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.getDefaultInstance(); sequence_ = 0L; blocks_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, size_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, permissions_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, modifiedS_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(6, deleted_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(7, invalid_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBool(8, noPermissions_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(9, version_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt64(10, sequence_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(11, modifiedNs_); } for (int i = 0; i < blocks_.size(); i++) { output.writeMessage(16, blocks_.get(i)); } getUnknownFields().writeTo(output); } 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, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, size_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, permissions_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, modifiedS_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, deleted_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, invalid_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, noPermissions_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, version_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, sequence_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, modifiedNs_); } for (int i = 0; i < blocks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, blocks_.get(i)); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo 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(it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.FileInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_FileInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_FileInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.class, it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getVersionFieldBuilder(); getBlocksFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); type_ = it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoType.FILE; bitField0_ = (bitField0_ & ~0x00000002); size_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); permissions_ = 0; bitField0_ = (bitField0_ & ~0x00000008); modifiedS_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); modifiedNs_ = 0; bitField0_ = (bitField0_ & ~0x00000020); deleted_ = false; bitField0_ = (bitField0_ & ~0x00000040); invalid_ = false; bitField0_ = (bitField0_ & ~0x00000080); noPermissions_ = false; bitField0_ = (bitField0_ & ~0x00000100); if (versionBuilder_ == null) { version_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.getDefaultInstance(); } else { versionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); sequence_ = 0L; bitField0_ = (bitField0_ & ~0x00000400); if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); } else { blocksBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_FileInfo_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo build() { it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo result = new it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.size_ = size_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.permissions_ = permissions_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.modifiedS_ = modifiedS_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.modifiedNs_ = modifiedNs_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.deleted_ = deleted_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.invalid_ = invalid_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.noPermissions_ = noPermissions_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } if (versionBuilder_ == null) { result.version_ = version_; } else { result.version_ = versionBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.sequence_ = sequence_; if (blocksBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); bitField0_ = (bitField0_ & ~0x00000800); } result.blocks_ = blocks_; } else { result.blocks_ = blocksBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasSize()) { setSize(other.getSize()); } if (other.hasPermissions()) { setPermissions(other.getPermissions()); } if (other.hasModifiedS()) { setModifiedS(other.getModifiedS()); } if (other.hasModifiedNs()) { setModifiedNs(other.getModifiedNs()); } if (other.hasDeleted()) { setDeleted(other.getDeleted()); } if (other.hasInvalid()) { setInvalid(other.getInvalid()); } if (other.hasNoPermissions()) { setNoPermissions(other.getNoPermissions()); } if (other.hasVersion()) { mergeVersion(other.getVersion()); } if (other.hasSequence()) { setSequence(other.getSequence()); } if (blocksBuilder_ == null) { if (!other.blocks_.isEmpty()) { if (blocks_.isEmpty()) { blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureBlocksIsMutable(); blocks_.addAll(other.blocks_); } onChanged(); } } else { if (!other.blocks_.isEmpty()) { if (blocksBuilder_.isEmpty()) { blocksBuilder_.dispose(); blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000800); blocksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBlocksFieldBuilder() : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string name = 1; private java.lang.Object name_ = ""; /** * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 1; */ 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; } } /** * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } // optional .it.anyplace.sync.bep.protos.FileInfoType type = 2; private it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoType type_ = it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoType.FILE; /** * optional .it.anyplace.sync.bep.protos.FileInfoType type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .it.anyplace.sync.bep.protos.FileInfoType type = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoType getType() { return type_; } /** * optional .it.anyplace.sync.bep.protos.FileInfoType type = 2; */ public Builder setType(it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * optional .it.anyplace.sync.bep.protos.FileInfoType type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = it.anyplace.sync.bep.protos.BlockExchageProtos.FileInfoType.FILE; onChanged(); return this; } // optional int64 size = 3; private long size_ ; /** * optional int64 size = 3; */ public boolean hasSize() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 size = 3; */ public long getSize() { return size_; } /** * optional int64 size = 3; */ public Builder setSize(long value) { bitField0_ |= 0x00000004; size_ = value; onChanged(); return this; } /** * optional int64 size = 3; */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000004); size_ = 0L; onChanged(); return this; } // optional uint32 permissions = 4; private int permissions_ ; /** * optional uint32 permissions = 4; */ public boolean hasPermissions() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint32 permissions = 4; */ public int getPermissions() { return permissions_; } /** * optional uint32 permissions = 4; */ public Builder setPermissions(int value) { bitField0_ |= 0x00000008; permissions_ = value; onChanged(); return this; } /** * optional uint32 permissions = 4; */ public Builder clearPermissions() { bitField0_ = (bitField0_ & ~0x00000008); permissions_ = 0; onChanged(); return this; } // optional int64 modified_s = 5; private long modifiedS_ ; /** * optional int64 modified_s = 5; */ public boolean hasModifiedS() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 modified_s = 5; */ public long getModifiedS() { return modifiedS_; } /** * optional int64 modified_s = 5; */ public Builder setModifiedS(long value) { bitField0_ |= 0x00000010; modifiedS_ = value; onChanged(); return this; } /** * optional int64 modified_s = 5; */ public Builder clearModifiedS() { bitField0_ = (bitField0_ & ~0x00000010); modifiedS_ = 0L; onChanged(); return this; } // optional int32 modified_ns = 11; private int modifiedNs_ ; /** * optional int32 modified_ns = 11; */ public boolean hasModifiedNs() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 modified_ns = 11; */ public int getModifiedNs() { return modifiedNs_; } /** * optional int32 modified_ns = 11; */ public Builder setModifiedNs(int value) { bitField0_ |= 0x00000020; modifiedNs_ = value; onChanged(); return this; } /** * optional int32 modified_ns = 11; */ public Builder clearModifiedNs() { bitField0_ = (bitField0_ & ~0x00000020); modifiedNs_ = 0; onChanged(); return this; } // optional bool deleted = 6; private boolean deleted_ ; /** * optional bool deleted = 6; */ public boolean hasDeleted() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool deleted = 6; */ public boolean getDeleted() { return deleted_; } /** * optional bool deleted = 6; */ public Builder setDeleted(boolean value) { bitField0_ |= 0x00000040; deleted_ = value; onChanged(); return this; } /** * optional bool deleted = 6; */ public Builder clearDeleted() { bitField0_ = (bitField0_ & ~0x00000040); deleted_ = false; onChanged(); return this; } // optional bool invalid = 7; private boolean invalid_ ; /** * optional bool invalid = 7; */ public boolean hasInvalid() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional bool invalid = 7; */ public boolean getInvalid() { return invalid_; } /** * optional bool invalid = 7; */ public Builder setInvalid(boolean value) { bitField0_ |= 0x00000080; invalid_ = value; onChanged(); return this; } /** * optional bool invalid = 7; */ public Builder clearInvalid() { bitField0_ = (bitField0_ & ~0x00000080); invalid_ = false; onChanged(); return this; } // optional bool no_permissions = 8; private boolean noPermissions_ ; /** * optional bool no_permissions = 8; */ public boolean hasNoPermissions() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bool no_permissions = 8; */ public boolean getNoPermissions() { return noPermissions_; } /** * optional bool no_permissions = 8; */ public Builder setNoPermissions(boolean value) { bitField0_ |= 0x00000100; noPermissions_ = value; onChanged(); return this; } /** * optional bool no_permissions = 8; */ public Builder clearNoPermissions() { bitField0_ = (bitField0_ & ~0x00000100); noPermissions_ = false; onChanged(); return this; } // optional .it.anyplace.sync.bep.protos.Vector version = 9; private it.anyplace.sync.bep.protos.BlockExchageProtos.Vector version_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Vector, it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.VectorOrBuilder> versionBuilder_; /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ public boolean hasVersion() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Vector getVersion() { if (versionBuilder_ == null) { return version_; } else { return versionBuilder_.getMessage(); } } /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ public Builder setVersion(it.anyplace.sync.bep.protos.BlockExchageProtos.Vector value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); } else { versionBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ public Builder setVersion( it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); } else { versionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ public Builder mergeVersion(it.anyplace.sync.bep.protos.BlockExchageProtos.Vector value) { if (versionBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && version_ != it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.getDefaultInstance()) { version_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } onChanged(); } else { versionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ public Builder clearVersion() { if (versionBuilder_ == null) { version_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.getDefaultInstance(); onChanged(); } else { versionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder getVersionBuilder() { bitField0_ |= 0x00000200; onChanged(); return getVersionFieldBuilder().getBuilder(); } /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.VectorOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { return version_; } } /** * optional .it.anyplace.sync.bep.protos.Vector version = 9; */ private com.google.protobuf.SingleFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Vector, it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.VectorOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { versionBuilder_ = new com.google.protobuf.SingleFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Vector, it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.VectorOrBuilder>( version_, getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } // optional int64 sequence = 10; private long sequence_ ; /** * optional int64 sequence = 10; */ public boolean hasSequence() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int64 sequence = 10; */ public long getSequence() { return sequence_; } /** * optional int64 sequence = 10; */ public Builder setSequence(long value) { bitField0_ |= 0x00000400; sequence_ = value; onChanged(); return this; } /** * optional int64 sequence = 10; */ public Builder clearSequence() { bitField0_ = (bitField0_ & ~0x00000400); sequence_ = 0L; onChanged(); return this; } // repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; private java.util.List blocks_ = java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo, it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfoOrBuilder> blocksBuilder_; /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public java.util.List getBlocksList() { if (blocksBuilder_ == null) { return java.util.Collections.unmodifiableList(blocks_); } else { return blocksBuilder_.getMessageList(); } } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public int getBlocksCount() { if (blocksBuilder_ == null) { return blocks_.size(); } else { return blocksBuilder_.getCount(); } } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo getBlocks(int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessage(index); } } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public Builder setBlocks( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.set(index, value); onChanged(); } else { blocksBuilder_.setMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public Builder setBlocks( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.set(index, builderForValue.build()); onChanged(); } else { blocksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public Builder addBlocks(it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.add(value); onChanged(); } else { blocksBuilder_.addMessage(value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public Builder addBlocks( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.add(index, value); onChanged(); } else { blocksBuilder_.addMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public Builder addBlocks( it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); onChanged(); } else { blocksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public Builder addBlocks( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(index, builderForValue.build()); onChanged(); } else { blocksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); super.addAll(values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); } return this; } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public Builder clearBlocks() { if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { blocksBuilder_.clear(); } return this; } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public Builder removeBlocks(int index) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.remove(index); onChanged(); } else { blocksBuilder_.remove(index); } return this; } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.Builder getBlocksBuilder( int index) { return getBlocksFieldBuilder().getBuilder(index); } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfoOrBuilder getBlocksOrBuilder( int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public java.util.List getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(blocks_); } } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.Builder addBlocksBuilder() { return getBlocksFieldBuilder().addBuilder( it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.Builder addBlocksBuilder( int index) { return getBlocksFieldBuilder().addBuilder( index, it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.BlockInfo Blocks = 16; */ public java.util.List getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo, it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfoOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo, it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfoOrBuilder>( blocks_, ((bitField0_ & 0x00000800) == 0x00000800), getParentForChildren(), isClean()); blocks_ = null; } return blocksBuilder_; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.FileInfo) } static { defaultInstance = new FileInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.FileInfo) } public interface BlockInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 offset = 1; /** * optional int64 offset = 1; */ boolean hasOffset(); /** * optional int64 offset = 1; */ long getOffset(); // optional int32 size = 2; /** * optional int32 size = 2; */ boolean hasSize(); /** * optional int32 size = 2; */ int getSize(); // optional bytes hash = 3; /** * optional bytes hash = 3; */ boolean hasHash(); /** * optional bytes hash = 3; */ com.google.protobuf.ByteString getHash(); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.BlockInfo} */ public static final class BlockInfo extends com.google.protobuf.GeneratedMessage implements BlockInfoOrBuilder { // Use BlockInfo.newBuilder() to construct. private BlockInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private BlockInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final BlockInfo defaultInstance; public static BlockInfo getDefaultInstance() { return defaultInstance; } public BlockInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; offset_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; size_ = input.readInt32(); break; } case 26: { bitField0_ |= 0x00000004; hash_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_BlockInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_BlockInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.class, it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BlockInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int64 offset = 1; public static final int OFFSET_FIELD_NUMBER = 1; private long offset_; /** * optional int64 offset = 1; */ public boolean hasOffset() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 offset = 1; */ public long getOffset() { return offset_; } // optional int32 size = 2; public static final int SIZE_FIELD_NUMBER = 2; private int size_; /** * optional int32 size = 2; */ public boolean hasSize() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 size = 2; */ public int getSize() { return size_; } // optional bytes hash = 3; public static final int HASH_FIELD_NUMBER = 3; private com.google.protobuf.ByteString hash_; /** * optional bytes hash = 3; */ public boolean hasHash() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes hash = 3; */ public com.google.protobuf.ByteString getHash() { return hash_; } private void initFields() { offset_ = 0L; size_ = 0; hash_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, offset_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, size_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, hash_); } getUnknownFields().writeTo(output); } 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 .computeInt64Size(1, offset_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, size_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, hash_); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo 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(it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.BlockInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_BlockInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_BlockInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.class, it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); offset_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); size_ = 0; bitField0_ = (bitField0_ & ~0x00000002); hash_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_BlockInfo_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo build() { it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo result = new it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.offset_ = offset_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.size_ = size_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.hash_ = hash_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo.getDefaultInstance()) return this; if (other.hasOffset()) { setOffset(other.getOffset()); } if (other.hasSize()) { setSize(other.getSize()); } if (other.hasHash()) { setHash(other.getHash()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.BlockInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 offset = 1; private long offset_ ; /** * optional int64 offset = 1; */ public boolean hasOffset() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 offset = 1; */ public long getOffset() { return offset_; } /** * optional int64 offset = 1; */ public Builder setOffset(long value) { bitField0_ |= 0x00000001; offset_ = value; onChanged(); return this; } /** * optional int64 offset = 1; */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000001); offset_ = 0L; onChanged(); return this; } // optional int32 size = 2; private int size_ ; /** * optional int32 size = 2; */ public boolean hasSize() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 size = 2; */ public int getSize() { return size_; } /** * optional int32 size = 2; */ public Builder setSize(int value) { bitField0_ |= 0x00000002; size_ = value; onChanged(); return this; } /** * optional int32 size = 2; */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000002); size_ = 0; onChanged(); return this; } // optional bytes hash = 3; private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes hash = 3; */ public boolean hasHash() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes hash = 3; */ public com.google.protobuf.ByteString getHash() { return hash_; } /** * optional bytes hash = 3; */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; hash_ = value; onChanged(); return this; } /** * optional bytes hash = 3; */ public Builder clearHash() { bitField0_ = (bitField0_ & ~0x00000004); hash_ = getDefaultInstance().getHash(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.BlockInfo) } static { defaultInstance = new BlockInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.BlockInfo) } public interface VectorOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .it.anyplace.sync.bep.protos.Counter counters = 1; /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ java.util.List getCountersList(); /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ it.anyplace.sync.bep.protos.BlockExchageProtos.Counter getCounters(int index); /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ int getCountersCount(); /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ java.util.List getCountersOrBuilderList(); /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ it.anyplace.sync.bep.protos.BlockExchageProtos.CounterOrBuilder getCountersOrBuilder( int index); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Vector} */ public static final class Vector extends com.google.protobuf.GeneratedMessage implements VectorOrBuilder { // Use Vector.newBuilder() to construct. private Vector(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Vector(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Vector defaultInstance; public static Vector getDefaultInstance() { return defaultInstance; } public Vector getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Vector( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { counters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } counters_.add(input.readMessage(it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.PARSER, extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { counters_ = java.util.Collections.unmodifiableList(counters_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Vector_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Vector_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Vector parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Vector(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .it.anyplace.sync.bep.protos.Counter counters = 1; public static final int COUNTERS_FIELD_NUMBER = 1; private java.util.List counters_; /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public java.util.List getCountersList() { return counters_; } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public java.util.List getCountersOrBuilderList() { return counters_; } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public int getCountersCount() { return counters_.size(); } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Counter getCounters(int index) { return counters_.get(index); } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.CounterOrBuilder getCountersOrBuilder( int index) { return counters_.get(index); } private void initFields() { counters_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < counters_.size(); i++) { output.writeMessage(1, counters_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < counters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, counters_.get(i)); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.Vector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Vector parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Vector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Vector parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Vector parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Vector parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Vector parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Vector parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Vector parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Vector 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(it.anyplace.sync.bep.protos.BlockExchageProtos.Vector prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Vector} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.VectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Vector_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Vector_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getCountersFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (countersBuilder_ == null) { counters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { countersBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Vector_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Vector getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.Vector build() { it.anyplace.sync.bep.protos.BlockExchageProtos.Vector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Vector buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.Vector result = new it.anyplace.sync.bep.protos.BlockExchageProtos.Vector(this); int from_bitField0_ = bitField0_; if (countersBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { counters_ = java.util.Collections.unmodifiableList(counters_); bitField0_ = (bitField0_ & ~0x00000001); } result.counters_ = counters_; } else { result.counters_ = countersBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.Vector) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.Vector)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.Vector other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.getDefaultInstance()) return this; if (countersBuilder_ == null) { if (!other.counters_.isEmpty()) { if (counters_.isEmpty()) { counters_ = other.counters_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCountersIsMutable(); counters_.addAll(other.counters_); } onChanged(); } } else { if (!other.counters_.isEmpty()) { if (countersBuilder_.isEmpty()) { countersBuilder_.dispose(); countersBuilder_ = null; counters_ = other.counters_; bitField0_ = (bitField0_ & ~0x00000001); countersBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCountersFieldBuilder() : null; } else { countersBuilder_.addAllMessages(other.counters_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.Vector parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.Vector) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .it.anyplace.sync.bep.protos.Counter counters = 1; private java.util.List counters_ = java.util.Collections.emptyList(); private void ensureCountersIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { counters_ = new java.util.ArrayList(counters_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Counter, it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.CounterOrBuilder> countersBuilder_; /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public java.util.List getCountersList() { if (countersBuilder_ == null) { return java.util.Collections.unmodifiableList(counters_); } else { return countersBuilder_.getMessageList(); } } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public int getCountersCount() { if (countersBuilder_ == null) { return counters_.size(); } else { return countersBuilder_.getCount(); } } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Counter getCounters(int index) { if (countersBuilder_ == null) { return counters_.get(index); } else { return countersBuilder_.getMessage(index); } } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public Builder setCounters( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.Counter value) { if (countersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCountersIsMutable(); counters_.set(index, value); onChanged(); } else { countersBuilder_.setMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public Builder setCounters( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.Builder builderForValue) { if (countersBuilder_ == null) { ensureCountersIsMutable(); counters_.set(index, builderForValue.build()); onChanged(); } else { countersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public Builder addCounters(it.anyplace.sync.bep.protos.BlockExchageProtos.Counter value) { if (countersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCountersIsMutable(); counters_.add(value); onChanged(); } else { countersBuilder_.addMessage(value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public Builder addCounters( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.Counter value) { if (countersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCountersIsMutable(); counters_.add(index, value); onChanged(); } else { countersBuilder_.addMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public Builder addCounters( it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.Builder builderForValue) { if (countersBuilder_ == null) { ensureCountersIsMutable(); counters_.add(builderForValue.build()); onChanged(); } else { countersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public Builder addCounters( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.Builder builderForValue) { if (countersBuilder_ == null) { ensureCountersIsMutable(); counters_.add(index, builderForValue.build()); onChanged(); } else { countersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public Builder addAllCounters( java.lang.Iterable values) { if (countersBuilder_ == null) { ensureCountersIsMutable(); super.addAll(values, counters_); onChanged(); } else { countersBuilder_.addAllMessages(values); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public Builder clearCounters() { if (countersBuilder_ == null) { counters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { countersBuilder_.clear(); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public Builder removeCounters(int index) { if (countersBuilder_ == null) { ensureCountersIsMutable(); counters_.remove(index); onChanged(); } else { countersBuilder_.remove(index); } return this; } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.Builder getCountersBuilder( int index) { return getCountersFieldBuilder().getBuilder(index); } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.CounterOrBuilder getCountersOrBuilder( int index) { if (countersBuilder_ == null) { return counters_.get(index); } else { return countersBuilder_.getMessageOrBuilder(index); } } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public java.util.List getCountersOrBuilderList() { if (countersBuilder_ != null) { return countersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(counters_); } } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.Builder addCountersBuilder() { return getCountersFieldBuilder().addBuilder( it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.Builder addCountersBuilder( int index) { return getCountersFieldBuilder().addBuilder( index, it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.Counter counters = 1; */ public java.util.List getCountersBuilderList() { return getCountersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Counter, it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.CounterOrBuilder> getCountersFieldBuilder() { if (countersBuilder_ == null) { countersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Counter, it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.CounterOrBuilder>( counters_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); counters_ = null; } return countersBuilder_; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.Vector) } static { defaultInstance = new Vector(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.Vector) } public interface CounterOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional uint64 id = 1; /** * optional uint64 id = 1; */ boolean hasId(); /** * optional uint64 id = 1; */ long getId(); // optional uint64 value = 2; /** * optional uint64 value = 2; */ boolean hasValue(); /** * optional uint64 value = 2; */ long getValue(); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Counter} */ public static final class Counter extends com.google.protobuf.GeneratedMessage implements CounterOrBuilder { // Use Counter.newBuilder() to construct. private Counter(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Counter(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Counter defaultInstance; public static Counter getDefaultInstance() { return defaultInstance; } public Counter getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Counter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; id_ = input.readUInt64(); break; } case 16: { bitField0_ |= 0x00000002; value_ = input.readUInt64(); 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Counter_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Counter_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Counter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Counter(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional uint64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * optional uint64 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint64 id = 1; */ public long getId() { return id_; } // optional uint64 value = 2; public static final int VALUE_FIELD_NUMBER = 2; private long value_; /** * optional uint64 value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint64 value = 2; */ public long getValue() { return value_; } private void initFields() { id_ = 0L; value_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt64(2, value_); } getUnknownFields().writeTo(output); } 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 .computeUInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, value_); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.Counter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Counter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Counter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Counter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Counter parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Counter parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Counter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Counter parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Counter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Counter 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(it.anyplace.sync.bep.protos.BlockExchageProtos.Counter prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Counter} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.CounterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Counter_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Counter_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); value_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Counter_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Counter getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.Counter build() { it.anyplace.sync.bep.protos.BlockExchageProtos.Counter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Counter buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.Counter result = new it.anyplace.sync.bep.protos.BlockExchageProtos.Counter(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.Counter) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.Counter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.Counter other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.Counter.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.Counter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.Counter) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional uint64 id = 1; private long id_ ; /** * optional uint64 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint64 id = 1; */ public long getId() { return id_; } /** * optional uint64 id = 1; */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * optional uint64 id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // optional uint64 value = 2; private long value_ ; /** * optional uint64 value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint64 value = 2; */ public long getValue() { return value_; } /** * optional uint64 value = 2; */ public Builder setValue(long value) { bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * optional uint64 value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.Counter) } static { defaultInstance = new Counter(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.Counter) } public interface RequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int32 id = 1; /** * optional int32 id = 1; */ boolean hasId(); /** * optional int32 id = 1; */ int getId(); // optional string folder = 2; /** * optional string folder = 2; */ boolean hasFolder(); /** * optional string folder = 2; */ java.lang.String getFolder(); /** * optional string folder = 2; */ com.google.protobuf.ByteString getFolderBytes(); // optional string name = 3; /** * optional string name = 3; */ boolean hasName(); /** * optional string name = 3; */ java.lang.String getName(); /** * optional string name = 3; */ com.google.protobuf.ByteString getNameBytes(); // optional int64 offset = 4; /** * optional int64 offset = 4; */ boolean hasOffset(); /** * optional int64 offset = 4; */ long getOffset(); // optional int32 size = 5; /** * optional int32 size = 5; */ boolean hasSize(); /** * optional int32 size = 5; */ int getSize(); // optional bytes hash = 6; /** * optional bytes hash = 6; */ boolean hasHash(); /** * optional bytes hash = 6; */ com.google.protobuf.ByteString getHash(); // optional bool from_temporary = 7; /** * optional bool from_temporary = 7; */ boolean hasFromTemporary(); /** * optional bool from_temporary = 7; */ boolean getFromTemporary(); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessage implements RequestOrBuilder { // Use Request.newBuilder() to construct. private Request(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Request(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Request defaultInstance; public static Request getDefaultInstance() { return defaultInstance; } public Request getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Request( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; id_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; folder_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; name_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; offset_ = input.readInt64(); break; } case 40: { bitField0_ |= 0x00000010; size_ = input.readInt32(); break; } case 50: { bitField0_ |= 0x00000020; hash_ = input.readBytes(); break; } case 56: { bitField0_ |= 0x00000040; fromTemporary_ = input.readBool(); 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Request_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Request.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Request.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Request parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Request(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int32 id = 1; public static final int ID_FIELD_NUMBER = 1; private int id_; /** * optional int32 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 id = 1; */ public int getId() { return id_; } // optional string folder = 2; public static final int FOLDER_FIELD_NUMBER = 2; private java.lang.Object folder_; /** * optional string folder = 2; */ public boolean hasFolder() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string folder = 2; */ public java.lang.String getFolder() { java.lang.Object ref = folder_; 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()) { folder_ = s; } return s; } } /** * optional string folder = 2; */ public com.google.protobuf.ByteString getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string name = 3; public static final int NAME_FIELD_NUMBER = 3; private java.lang.Object name_; /** * optional string name = 3; */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string name = 3; */ 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(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 3; */ 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; } } // optional int64 offset = 4; public static final int OFFSET_FIELD_NUMBER = 4; private long offset_; /** * optional int64 offset = 4; */ public boolean hasOffset() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 offset = 4; */ public long getOffset() { return offset_; } // optional int32 size = 5; public static final int SIZE_FIELD_NUMBER = 5; private int size_; /** * optional int32 size = 5; */ public boolean hasSize() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 size = 5; */ public int getSize() { return size_; } // optional bytes hash = 6; public static final int HASH_FIELD_NUMBER = 6; private com.google.protobuf.ByteString hash_; /** * optional bytes hash = 6; */ public boolean hasHash() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes hash = 6; */ public com.google.protobuf.ByteString getHash() { return hash_; } // optional bool from_temporary = 7; public static final int FROM_TEMPORARY_FIELD_NUMBER = 7; private boolean fromTemporary_; /** * optional bool from_temporary = 7; */ public boolean hasFromTemporary() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool from_temporary = 7; */ public boolean getFromTemporary() { return fromTemporary_; } private void initFields() { id_ = 0; folder_ = ""; name_ = ""; offset_ = 0L; size_ = 0; hash_ = com.google.protobuf.ByteString.EMPTY; fromTemporary_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getFolderBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, offset_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, size_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, hash_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(7, fromTemporary_); } getUnknownFields().writeTo(output); } 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 .computeInt32Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getFolderBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, offset_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, size_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, hash_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, fromTemporary_); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Request parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Request parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Request parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Request 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(it.anyplace.sync.bep.protos.BlockExchageProtos.Request prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Request_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Request.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Request.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.Request.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); id_ = 0; bitField0_ = (bitField0_ & ~0x00000001); folder_ = ""; bitField0_ = (bitField0_ & ~0x00000002); name_ = ""; bitField0_ = (bitField0_ & ~0x00000004); offset_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); size_ = 0; bitField0_ = (bitField0_ & ~0x00000010); hash_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); fromTemporary_ = false; bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Request_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Request getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.Request.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.Request build() { it.anyplace.sync.bep.protos.BlockExchageProtos.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Request buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.Request result = new it.anyplace.sync.bep.protos.BlockExchageProtos.Request(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.folder_ = folder_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.name_ = name_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.offset_ = offset_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.size_ = size_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.hash_ = hash_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.fromTemporary_ = fromTemporary_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.Request) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.Request other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.Request.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasFolder()) { bitField0_ |= 0x00000002; folder_ = other.folder_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000004; name_ = other.name_; onChanged(); } if (other.hasOffset()) { setOffset(other.getOffset()); } if (other.hasSize()) { setSize(other.getSize()); } if (other.hasHash()) { setHash(other.getHash()); } if (other.hasFromTemporary()) { setFromTemporary(other.getFromTemporary()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.Request) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 id = 1; private int id_ ; /** * optional int32 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 id = 1; */ public int getId() { return id_; } /** * optional int32 id = 1; */ public Builder setId(int value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * optional int32 id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0; onChanged(); return this; } // optional string folder = 2; private java.lang.Object folder_ = ""; /** * optional string folder = 2; */ public boolean hasFolder() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string folder = 2; */ public java.lang.String getFolder() { java.lang.Object ref = folder_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); folder_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string folder = 2; */ public com.google.protobuf.ByteString getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string folder = 2; */ public Builder setFolder( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; folder_ = value; onChanged(); return this; } /** * optional string folder = 2; */ public Builder clearFolder() { bitField0_ = (bitField0_ & ~0x00000002); folder_ = getDefaultInstance().getFolder(); onChanged(); return this; } /** * optional string folder = 2; */ public Builder setFolderBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; folder_ = value; onChanged(); return this; } // optional string name = 3; private java.lang.Object name_ = ""; /** * optional string name = 3; */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string name = 3; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 3; */ 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; } } /** * optional string name = 3; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } /** * optional string name = 3; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000004); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 3; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } // optional int64 offset = 4; private long offset_ ; /** * optional int64 offset = 4; */ public boolean hasOffset() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 offset = 4; */ public long getOffset() { return offset_; } /** * optional int64 offset = 4; */ public Builder setOffset(long value) { bitField0_ |= 0x00000008; offset_ = value; onChanged(); return this; } /** * optional int64 offset = 4; */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000008); offset_ = 0L; onChanged(); return this; } // optional int32 size = 5; private int size_ ; /** * optional int32 size = 5; */ public boolean hasSize() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 size = 5; */ public int getSize() { return size_; } /** * optional int32 size = 5; */ public Builder setSize(int value) { bitField0_ |= 0x00000010; size_ = value; onChanged(); return this; } /** * optional int32 size = 5; */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000010); size_ = 0; onChanged(); return this; } // optional bytes hash = 6; private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes hash = 6; */ public boolean hasHash() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes hash = 6; */ public com.google.protobuf.ByteString getHash() { return hash_; } /** * optional bytes hash = 6; */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; hash_ = value; onChanged(); return this; } /** * optional bytes hash = 6; */ public Builder clearHash() { bitField0_ = (bitField0_ & ~0x00000020); hash_ = getDefaultInstance().getHash(); onChanged(); return this; } // optional bool from_temporary = 7; private boolean fromTemporary_ ; /** * optional bool from_temporary = 7; */ public boolean hasFromTemporary() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool from_temporary = 7; */ public boolean getFromTemporary() { return fromTemporary_; } /** * optional bool from_temporary = 7; */ public Builder setFromTemporary(boolean value) { bitField0_ |= 0x00000040; fromTemporary_ = value; onChanged(); return this; } /** * optional bool from_temporary = 7; */ public Builder clearFromTemporary() { bitField0_ = (bitField0_ & ~0x00000040); fromTemporary_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.Request) } static { defaultInstance = new Request(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.Request) } public interface ResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int32 id = 1; /** * optional int32 id = 1; */ boolean hasId(); /** * optional int32 id = 1; */ int getId(); // optional bytes data = 2; /** * optional bytes data = 2; */ boolean hasData(); /** * optional bytes data = 2; */ com.google.protobuf.ByteString getData(); // optional .it.anyplace.sync.bep.protos.ErrorCode code = 3; /** * optional .it.anyplace.sync.bep.protos.ErrorCode code = 3; */ boolean hasCode(); /** * optional .it.anyplace.sync.bep.protos.ErrorCode code = 3; */ it.anyplace.sync.bep.protos.BlockExchageProtos.ErrorCode getCode(); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessage implements ResponseOrBuilder { // Use Response.newBuilder() to construct. private Response(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Response(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Response defaultInstance; public static Response getDefaultInstance() { return defaultInstance; } public Response getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Response( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; id_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; data_ = input.readBytes(); break; } case 24: { int rawValue = input.readEnum(); it.anyplace.sync.bep.protos.BlockExchageProtos.ErrorCode value = it.anyplace.sync.bep.protos.BlockExchageProtos.ErrorCode.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; code_ = value; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Response_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Response.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Response.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Response parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Response(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int32 id = 1; public static final int ID_FIELD_NUMBER = 1; private int id_; /** * optional int32 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 id = 1; */ public int getId() { return id_; } // optional bytes data = 2; public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** * optional bytes data = 2; */ public boolean hasData() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } // optional .it.anyplace.sync.bep.protos.ErrorCode code = 3; public static final int CODE_FIELD_NUMBER = 3; private it.anyplace.sync.bep.protos.BlockExchageProtos.ErrorCode code_; /** * optional .it.anyplace.sync.bep.protos.ErrorCode code = 3; */ public boolean hasCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .it.anyplace.sync.bep.protos.ErrorCode code = 3; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.ErrorCode getCode() { return code_; } private void initFields() { id_ = 0; data_ = com.google.protobuf.ByteString.EMPTY; code_ = it.anyplace.sync.bep.protos.BlockExchageProtos.ErrorCode.NO_ERROR; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, data_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, code_.getNumber()); } getUnknownFields().writeTo(output); } 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 .computeInt32Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, data_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, code_.getNumber()); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Response parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Response parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Response parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Response 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(it.anyplace.sync.bep.protos.BlockExchageProtos.Response prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Response_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Response.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Response.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.Response.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); id_ = 0; bitField0_ = (bitField0_ & ~0x00000001); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); code_ = it.anyplace.sync.bep.protos.BlockExchageProtos.ErrorCode.NO_ERROR; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Response_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Response getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.Response.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.Response build() { it.anyplace.sync.bep.protos.BlockExchageProtos.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Response buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.Response result = new it.anyplace.sync.bep.protos.BlockExchageProtos.Response(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.data_ = data_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.code_ = code_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.Response) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.Response other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.Response.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasData()) { setData(other.getData()); } if (other.hasCode()) { setCode(other.getCode()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.Response) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 id = 1; private int id_ ; /** * optional int32 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 id = 1; */ public int getId() { return id_; } /** * optional int32 id = 1; */ public Builder setId(int value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * optional int32 id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0; onChanged(); return this; } // optional bytes data = 2; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes data = 2; */ public boolean hasData() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } /** * optional bytes data = 2; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; data_ = value; onChanged(); return this; } /** * optional bytes data = 2; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000002); data_ = getDefaultInstance().getData(); onChanged(); return this; } // optional .it.anyplace.sync.bep.protos.ErrorCode code = 3; private it.anyplace.sync.bep.protos.BlockExchageProtos.ErrorCode code_ = it.anyplace.sync.bep.protos.BlockExchageProtos.ErrorCode.NO_ERROR; /** * optional .it.anyplace.sync.bep.protos.ErrorCode code = 3; */ public boolean hasCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .it.anyplace.sync.bep.protos.ErrorCode code = 3; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.ErrorCode getCode() { return code_; } /** * optional .it.anyplace.sync.bep.protos.ErrorCode code = 3; */ public Builder setCode(it.anyplace.sync.bep.protos.BlockExchageProtos.ErrorCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; code_ = value; onChanged(); return this; } /** * optional .it.anyplace.sync.bep.protos.ErrorCode code = 3; */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000004); code_ = it.anyplace.sync.bep.protos.BlockExchageProtos.ErrorCode.NO_ERROR; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.Response) } static { defaultInstance = new Response(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.Response) } public interface DownloadProgressOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string folder = 1; /** * optional string folder = 1; */ boolean hasFolder(); /** * optional string folder = 1; */ java.lang.String getFolder(); /** * optional string folder = 1; */ com.google.protobuf.ByteString getFolderBytes(); // repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ java.util.List getUpdatesList(); /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate getUpdates(int index); /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ int getUpdatesCount(); /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ java.util.List getUpdatesOrBuilderList(); /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateOrBuilder getUpdatesOrBuilder( int index); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.DownloadProgress} */ public static final class DownloadProgress extends com.google.protobuf.GeneratedMessage implements DownloadProgressOrBuilder { // Use DownloadProgress.newBuilder() to construct. private DownloadProgress(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DownloadProgress(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DownloadProgress defaultInstance; public static DownloadProgress getDefaultInstance() { return defaultInstance; } public DownloadProgress getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DownloadProgress( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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 10: { bitField0_ |= 0x00000001; folder_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { updates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } updates_.add(input.readMessage(it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.PARSER, extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { updates_ = java.util.Collections.unmodifiableList(updates_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_DownloadProgress_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_DownloadProgress_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress.class, it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DownloadProgress parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DownloadProgress(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string folder = 1; public static final int FOLDER_FIELD_NUMBER = 1; private java.lang.Object folder_; /** * optional string folder = 1; */ public boolean hasFolder() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string folder = 1; */ public java.lang.String getFolder() { java.lang.Object ref = folder_; 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()) { folder_ = s; } return s; } } /** * optional string folder = 1; */ public com.google.protobuf.ByteString getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; public static final int UPDATES_FIELD_NUMBER = 2; private java.util.List updates_; /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public java.util.List getUpdatesList() { return updates_; } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public java.util.List getUpdatesOrBuilderList() { return updates_; } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public int getUpdatesCount() { return updates_.size(); } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate getUpdates(int index) { return updates_.get(index); } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateOrBuilder getUpdatesOrBuilder( int index) { return updates_.get(index); } private void initFields() { folder_ = ""; updates_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getFolderBytes()); } for (int i = 0; i < updates_.size(); i++) { output.writeMessage(2, updates_.get(i)); } getUnknownFields().writeTo(output); } 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, getFolderBytes()); } for (int i = 0; i < updates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, updates_.get(i)); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress 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(it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.DownloadProgress} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_DownloadProgress_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_DownloadProgress_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress.class, it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getUpdatesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); folder_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (updatesBuilder_ == null) { updates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { updatesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_DownloadProgress_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress build() { it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress result = new it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.folder_ = folder_; if (updatesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { updates_ = java.util.Collections.unmodifiableList(updates_); bitField0_ = (bitField0_ & ~0x00000002); } result.updates_ = updates_; } else { result.updates_ = updatesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress.getDefaultInstance()) return this; if (other.hasFolder()) { bitField0_ |= 0x00000001; folder_ = other.folder_; onChanged(); } if (updatesBuilder_ == null) { if (!other.updates_.isEmpty()) { if (updates_.isEmpty()) { updates_ = other.updates_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUpdatesIsMutable(); updates_.addAll(other.updates_); } onChanged(); } } else { if (!other.updates_.isEmpty()) { if (updatesBuilder_.isEmpty()) { updatesBuilder_.dispose(); updatesBuilder_ = null; updates_ = other.updates_; bitField0_ = (bitField0_ & ~0x00000002); updatesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getUpdatesFieldBuilder() : null; } else { updatesBuilder_.addAllMessages(other.updates_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.DownloadProgress) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string folder = 1; private java.lang.Object folder_ = ""; /** * optional string folder = 1; */ public boolean hasFolder() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string folder = 1; */ public java.lang.String getFolder() { java.lang.Object ref = folder_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); folder_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string folder = 1; */ public com.google.protobuf.ByteString getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string folder = 1; */ public Builder setFolder( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; folder_ = value; onChanged(); return this; } /** * optional string folder = 1; */ public Builder clearFolder() { bitField0_ = (bitField0_ & ~0x00000001); folder_ = getDefaultInstance().getFolder(); onChanged(); return this; } /** * optional string folder = 1; */ public Builder setFolderBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; folder_ = value; onChanged(); return this; } // repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; private java.util.List updates_ = java.util.Collections.emptyList(); private void ensureUpdatesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { updates_ = new java.util.ArrayList(updates_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate, it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateOrBuilder> updatesBuilder_; /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public java.util.List getUpdatesList() { if (updatesBuilder_ == null) { return java.util.Collections.unmodifiableList(updates_); } else { return updatesBuilder_.getMessageList(); } } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public int getUpdatesCount() { if (updatesBuilder_ == null) { return updates_.size(); } else { return updatesBuilder_.getCount(); } } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate getUpdates(int index) { if (updatesBuilder_ == null) { return updates_.get(index); } else { return updatesBuilder_.getMessage(index); } } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public Builder setUpdates( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpdatesIsMutable(); updates_.set(index, value); onChanged(); } else { updatesBuilder_.setMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public Builder setUpdates( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.Builder builderForValue) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.set(index, builderForValue.build()); onChanged(); } else { updatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public Builder addUpdates(it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpdatesIsMutable(); updates_.add(value); onChanged(); } else { updatesBuilder_.addMessage(value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public Builder addUpdates( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpdatesIsMutable(); updates_.add(index, value); onChanged(); } else { updatesBuilder_.addMessage(index, value); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public Builder addUpdates( it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.Builder builderForValue) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.add(builderForValue.build()); onChanged(); } else { updatesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public Builder addUpdates( int index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.Builder builderForValue) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.add(index, builderForValue.build()); onChanged(); } else { updatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public Builder addAllUpdates( java.lang.Iterable values) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); super.addAll(values, updates_); onChanged(); } else { updatesBuilder_.addAllMessages(values); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public Builder clearUpdates() { if (updatesBuilder_ == null) { updates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { updatesBuilder_.clear(); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public Builder removeUpdates(int index) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.remove(index); onChanged(); } else { updatesBuilder_.remove(index); } return this; } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.Builder getUpdatesBuilder( int index) { return getUpdatesFieldBuilder().getBuilder(index); } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateOrBuilder getUpdatesOrBuilder( int index) { if (updatesBuilder_ == null) { return updates_.get(index); } else { return updatesBuilder_.getMessageOrBuilder(index); } } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public java.util.List getUpdatesOrBuilderList() { if (updatesBuilder_ != null) { return updatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(updates_); } } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.Builder addUpdatesBuilder() { return getUpdatesFieldBuilder().addBuilder( it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.Builder addUpdatesBuilder( int index) { return getUpdatesFieldBuilder().addBuilder( index, it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.getDefaultInstance()); } /** * repeated .it.anyplace.sync.bep.protos.FileDownloadProgressUpdate updates = 2; */ public java.util.List getUpdatesBuilderList() { return getUpdatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate, it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateOrBuilder> getUpdatesFieldBuilder() { if (updatesBuilder_ == null) { updatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate, it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateOrBuilder>( updates_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); updates_ = null; } return updatesBuilder_; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.DownloadProgress) } static { defaultInstance = new DownloadProgress(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.DownloadProgress) } public interface FileDownloadProgressUpdateOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .it.anyplace.sync.bep.protos.FileDownloadProgressUpdateType update_type = 1; /** * optional .it.anyplace.sync.bep.protos.FileDownloadProgressUpdateType update_type = 1; */ boolean hasUpdateType(); /** * optional .it.anyplace.sync.bep.protos.FileDownloadProgressUpdateType update_type = 1; */ it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateType getUpdateType(); // optional string name = 2; /** * optional string name = 2; */ boolean hasName(); /** * optional string name = 2; */ java.lang.String getName(); /** * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); // optional .it.anyplace.sync.bep.protos.Vector version = 3; /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ boolean hasVersion(); /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ it.anyplace.sync.bep.protos.BlockExchageProtos.Vector getVersion(); /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ it.anyplace.sync.bep.protos.BlockExchageProtos.VectorOrBuilder getVersionOrBuilder(); // repeated int32 block_indexes = 4; /** * repeated int32 block_indexes = 4; */ java.util.List getBlockIndexesList(); /** * repeated int32 block_indexes = 4; */ int getBlockIndexesCount(); /** * repeated int32 block_indexes = 4; */ int getBlockIndexes(int index); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.FileDownloadProgressUpdate} */ public static final class FileDownloadProgressUpdate extends com.google.protobuf.GeneratedMessage implements FileDownloadProgressUpdateOrBuilder { // Use FileDownloadProgressUpdate.newBuilder() to construct. private FileDownloadProgressUpdate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FileDownloadProgressUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FileDownloadProgressUpdate defaultInstance; public static FileDownloadProgressUpdate getDefaultInstance() { return defaultInstance; } public FileDownloadProgressUpdate getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FileDownloadProgressUpdate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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: { int rawValue = input.readEnum(); it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateType value = it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; updateType_ = value; } break; } case 18: { bitField0_ |= 0x00000002; name_ = input.readBytes(); break; } case 26: { it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = version_.toBuilder(); } version_ = input.readMessage(it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(version_); version_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { blockIndexes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } blockIndexes_.add(input.readInt32()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { blockIndexes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { blockIndexes_.add(input.readInt32()); } input.popLimit(limit); 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 { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { blockIndexes_ = java.util.Collections.unmodifiableList(blockIndexes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_FileDownloadProgressUpdate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_FileDownloadProgressUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.class, it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FileDownloadProgressUpdate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FileDownloadProgressUpdate(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional .it.anyplace.sync.bep.protos.FileDownloadProgressUpdateType update_type = 1; public static final int UPDATE_TYPE_FIELD_NUMBER = 1; private it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateType updateType_; /** * optional .it.anyplace.sync.bep.protos.FileDownloadProgressUpdateType update_type = 1; */ public boolean hasUpdateType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .it.anyplace.sync.bep.protos.FileDownloadProgressUpdateType update_type = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateType getUpdateType() { return updateType_; } // optional string name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ 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(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 2; */ 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; } } // optional .it.anyplace.sync.bep.protos.Vector version = 3; public static final int VERSION_FIELD_NUMBER = 3; private it.anyplace.sync.bep.protos.BlockExchageProtos.Vector version_; /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ public boolean hasVersion() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Vector getVersion() { return version_; } /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.VectorOrBuilder getVersionOrBuilder() { return version_; } // repeated int32 block_indexes = 4; public static final int BLOCK_INDEXES_FIELD_NUMBER = 4; private java.util.List blockIndexes_; /** * repeated int32 block_indexes = 4; */ public java.util.List getBlockIndexesList() { return blockIndexes_; } /** * repeated int32 block_indexes = 4; */ public int getBlockIndexesCount() { return blockIndexes_.size(); } /** * repeated int32 block_indexes = 4; */ public int getBlockIndexes(int index) { return blockIndexes_.get(index); } private void initFields() { updateType_ = it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateType.APPEND; name_ = ""; version_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.getDefaultInstance(); blockIndexes_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, updateType_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, version_); } for (int i = 0; i < blockIndexes_.size(); i++) { output.writeInt32(4, blockIndexes_.get(i)); } getUnknownFields().writeTo(output); } 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 .computeEnumSize(1, updateType_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, version_); } { int dataSize = 0; for (int i = 0; i < blockIndexes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(blockIndexes_.get(i)); } size += dataSize; size += 1 * getBlockIndexesList().size(); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate 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(it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.FileDownloadProgressUpdate} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_FileDownloadProgressUpdate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_FileDownloadProgressUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.class, it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getVersionFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); updateType_ = it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateType.APPEND; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (versionBuilder_ == null) { version_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.getDefaultInstance(); } else { versionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); blockIndexes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_FileDownloadProgressUpdate_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate build() { it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate result = new it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.updateType_ = updateType_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (versionBuilder_ == null) { result.version_ = version_; } else { result.version_ = versionBuilder_.build(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { blockIndexes_ = java.util.Collections.unmodifiableList(blockIndexes_); bitField0_ = (bitField0_ & ~0x00000008); } result.blockIndexes_ = blockIndexes_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate.getDefaultInstance()) return this; if (other.hasUpdateType()) { setUpdateType(other.getUpdateType()); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasVersion()) { mergeVersion(other.getVersion()); } if (!other.blockIndexes_.isEmpty()) { if (blockIndexes_.isEmpty()) { blockIndexes_ = other.blockIndexes_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureBlockIndexesIsMutable(); blockIndexes_.addAll(other.blockIndexes_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdate) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .it.anyplace.sync.bep.protos.FileDownloadProgressUpdateType update_type = 1; private it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateType updateType_ = it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateType.APPEND; /** * optional .it.anyplace.sync.bep.protos.FileDownloadProgressUpdateType update_type = 1; */ public boolean hasUpdateType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .it.anyplace.sync.bep.protos.FileDownloadProgressUpdateType update_type = 1; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateType getUpdateType() { return updateType_; } /** * optional .it.anyplace.sync.bep.protos.FileDownloadProgressUpdateType update_type = 1; */ public Builder setUpdateType(it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; updateType_ = value; onChanged(); return this; } /** * optional .it.anyplace.sync.bep.protos.FileDownloadProgressUpdateType update_type = 1; */ public Builder clearUpdateType() { bitField0_ = (bitField0_ & ~0x00000001); updateType_ = it.anyplace.sync.bep.protos.BlockExchageProtos.FileDownloadProgressUpdateType.APPEND; onChanged(); return this; } // optional string name = 2; private java.lang.Object name_ = ""; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; */ 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; } } /** * optional string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } // optional .it.anyplace.sync.bep.protos.Vector version = 3; private it.anyplace.sync.bep.protos.BlockExchageProtos.Vector version_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Vector, it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.VectorOrBuilder> versionBuilder_; /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ public boolean hasVersion() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Vector getVersion() { if (versionBuilder_ == null) { return version_; } else { return versionBuilder_.getMessage(); } } /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ public Builder setVersion(it.anyplace.sync.bep.protos.BlockExchageProtos.Vector value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); } else { versionBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ public Builder setVersion( it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); } else { versionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ public Builder mergeVersion(it.anyplace.sync.bep.protos.BlockExchageProtos.Vector value) { if (versionBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && version_ != it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.getDefaultInstance()) { version_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } onChanged(); } else { versionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ public Builder clearVersion() { if (versionBuilder_ == null) { version_ = it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.getDefaultInstance(); onChanged(); } else { versionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder getVersionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getVersionFieldBuilder().getBuilder(); } /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ public it.anyplace.sync.bep.protos.BlockExchageProtos.VectorOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { return version_; } } /** * optional .it.anyplace.sync.bep.protos.Vector version = 3; */ private com.google.protobuf.SingleFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Vector, it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.VectorOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { versionBuilder_ = new com.google.protobuf.SingleFieldBuilder< it.anyplace.sync.bep.protos.BlockExchageProtos.Vector, it.anyplace.sync.bep.protos.BlockExchageProtos.Vector.Builder, it.anyplace.sync.bep.protos.BlockExchageProtos.VectorOrBuilder>( version_, getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } // repeated int32 block_indexes = 4; private java.util.List blockIndexes_ = java.util.Collections.emptyList(); private void ensureBlockIndexesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { blockIndexes_ = new java.util.ArrayList(blockIndexes_); bitField0_ |= 0x00000008; } } /** * repeated int32 block_indexes = 4; */ public java.util.List getBlockIndexesList() { return java.util.Collections.unmodifiableList(blockIndexes_); } /** * repeated int32 block_indexes = 4; */ public int getBlockIndexesCount() { return blockIndexes_.size(); } /** * repeated int32 block_indexes = 4; */ public int getBlockIndexes(int index) { return blockIndexes_.get(index); } /** * repeated int32 block_indexes = 4; */ public Builder setBlockIndexes( int index, int value) { ensureBlockIndexesIsMutable(); blockIndexes_.set(index, value); onChanged(); return this; } /** * repeated int32 block_indexes = 4; */ public Builder addBlockIndexes(int value) { ensureBlockIndexesIsMutable(); blockIndexes_.add(value); onChanged(); return this; } /** * repeated int32 block_indexes = 4; */ public Builder addAllBlockIndexes( java.lang.Iterable values) { ensureBlockIndexesIsMutable(); super.addAll(values, blockIndexes_); onChanged(); return this; } /** * repeated int32 block_indexes = 4; */ public Builder clearBlockIndexes() { blockIndexes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.FileDownloadProgressUpdate) } static { defaultInstance = new FileDownloadProgressUpdate(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.FileDownloadProgressUpdate) } public interface PingOrBuilder extends com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Ping} */ public static final class Ping extends com.google.protobuf.GeneratedMessage implements PingOrBuilder { // Use Ping.newBuilder() to construct. private Ping(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Ping(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Ping defaultInstance; public static Ping getDefaultInstance() { return defaultInstance; } public Ping getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Ping( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; } } } } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Ping_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Ping_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Ping.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Ping.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Ping parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Ping(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.Ping parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Ping parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Ping parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Ping parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Ping parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Ping parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Ping parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Ping parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Ping parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Ping 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(it.anyplace.sync.bep.protos.BlockExchageProtos.Ping prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Ping} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.PingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Ping_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Ping_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Ping.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Ping.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.Ping.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Ping_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Ping getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.Ping.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.Ping build() { it.anyplace.sync.bep.protos.BlockExchageProtos.Ping result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Ping buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.Ping result = new it.anyplace.sync.bep.protos.BlockExchageProtos.Ping(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.Ping) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.Ping)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.Ping other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.Ping.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.Ping parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.Ping) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.Ping) } static { defaultInstance = new Ping(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.Ping) } public interface CloseOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string reason = 1; /** * optional string reason = 1; */ boolean hasReason(); /** * optional string reason = 1; */ java.lang.String getReason(); /** * optional string reason = 1; */ com.google.protobuf.ByteString getReasonBytes(); } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Close} */ public static final class Close extends com.google.protobuf.GeneratedMessage implements CloseOrBuilder { // Use Close.newBuilder() to construct. private Close(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Close(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Close defaultInstance; public static Close getDefaultInstance() { return defaultInstance; } public Close getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Close( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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 10: { bitField0_ |= 0x00000001; reason_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Close_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Close_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Close.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Close.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Close parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Close(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string reason = 1; public static final int REASON_FIELD_NUMBER = 1; private java.lang.Object reason_; /** * optional string reason = 1; */ public boolean hasReason() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string reason = 1; */ public java.lang.String getReason() { java.lang.Object ref = reason_; 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()) { reason_ = s; } return s; } } /** * optional string reason = 1; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { reason_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getReasonBytes()); } getUnknownFields().writeTo(output); } 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, getReasonBytes()); } size += getUnknownFields().getSerializedSize(); 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 it.anyplace.sync.bep.protos.BlockExchageProtos.Close parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Close parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Close parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Close parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Close parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Close parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Close parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Close parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Close parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static it.anyplace.sync.bep.protos.BlockExchageProtos.Close 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(it.anyplace.sync.bep.protos.BlockExchageProtos.Close prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code it.anyplace.sync.bep.protos.Close} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements it.anyplace.sync.bep.protos.BlockExchageProtos.CloseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Close_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Close_fieldAccessorTable .ensureFieldAccessorsInitialized( it.anyplace.sync.bep.protos.BlockExchageProtos.Close.class, it.anyplace.sync.bep.protos.BlockExchageProtos.Close.Builder.class); } // Construct using it.anyplace.sync.bep.protos.BlockExchageProtos.Close.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.internal_static_it_anyplace_sync_bep_protos_Close_descriptor; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Close getDefaultInstanceForType() { return it.anyplace.sync.bep.protos.BlockExchageProtos.Close.getDefaultInstance(); } public it.anyplace.sync.bep.protos.BlockExchageProtos.Close build() { it.anyplace.sync.bep.protos.BlockExchageProtos.Close result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public it.anyplace.sync.bep.protos.BlockExchageProtos.Close buildPartial() { it.anyplace.sync.bep.protos.BlockExchageProtos.Close result = new it.anyplace.sync.bep.protos.BlockExchageProtos.Close(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.reason_ = reason_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof it.anyplace.sync.bep.protos.BlockExchageProtos.Close) { return mergeFrom((it.anyplace.sync.bep.protos.BlockExchageProtos.Close)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(it.anyplace.sync.bep.protos.BlockExchageProtos.Close other) { if (other == it.anyplace.sync.bep.protos.BlockExchageProtos.Close.getDefaultInstance()) return this; if (other.hasReason()) { bitField0_ |= 0x00000001; reason_ = other.reason_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { it.anyplace.sync.bep.protos.BlockExchageProtos.Close parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (it.anyplace.sync.bep.protos.BlockExchageProtos.Close) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string reason = 1; private java.lang.Object reason_ = ""; /** * optional string reason = 1; */ public boolean hasReason() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string reason = 1; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); reason_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string reason = 1; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string reason = 1; */ public Builder setReason( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; reason_ = value; onChanged(); return this; } /** * optional string reason = 1; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000001); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * optional string reason = 1; */ public Builder setReasonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; reason_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:it.anyplace.sync.bep.protos.Close) } static { defaultInstance = new Close(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:it.anyplace.sync.bep.protos.Close) } private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_Hello_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_Hello_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_Header_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_Header_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_ClusterConfig_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_ClusterConfig_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_Folder_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_Folder_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_Device_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_Device_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_Index_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_Index_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_IndexUpdate_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_IndexUpdate_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_FileInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_FileInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_BlockInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_BlockInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_Vector_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_Vector_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_Counter_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_Counter_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_Request_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_Request_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_Response_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_Response_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_DownloadProgress_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_DownloadProgress_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_FileDownloadProgressUpdate_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_FileDownloadProgressUpdate_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_Ping_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_Ping_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_it_anyplace_sync_bep_protos_Close_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_it_anyplace_sync_bep_protos_Close_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+src/main/resources/blockExchageProtos." + "proto\022\033it.anyplace.sync.bep.protos\"I\n\005He" + "llo\022\023\n\013device_name\030\001 \001(\t\022\023\n\013client_name\030" + "\002 \001(\t\022\026\n\016client_version\030\003 \001(\t\"\206\001\n\006Header" + "\0226\n\004type\030\001 \001(\0162(.it.anyplace.sync.bep.pr" + "otos.MessageType\022D\n\013compression\030\002 \001(\0162/." + "it.anyplace.sync.bep.protos.MessageCompr" + "ession\"E\n\rClusterConfig\0224\n\007folders\030\001 \003(\013" + "2#.it.anyplace.sync.bep.protos.Folder\"\275\001" + "\n\006Folder\022\n\n\002id\030\001 \001(\t\022\r\n\005label\030\002 \001(\t\022\021\n\tr", "ead_only\030\003 \001(\010\022\032\n\022ignore_permissions\030\004 \001" + "(\010\022\025\n\rignore_delete\030\005 \001(\010\022\034\n\024disable_tem" + "p_indexes\030\006 \001(\010\0224\n\007devices\030\020 \003(\0132#.it.an" + "yplace.sync.bep.protos.Device\"\303\001\n\006Device" + "\022\n\n\002id\030\001 \001(\014\022\014\n\004name\030\002 \001(\t\022\021\n\taddresses\030" + "\003 \003(\t\022=\n\013compression\030\004 \001(\0162(.it.anyplace" + ".sync.bep.protos.Compression\022\021\n\tcert_nam" + "e\030\005 \001(\t\022\024\n\014max_sequence\030\006 \001(\003\022\022\n\nintrodu" + "cer\030\007 \001(\010\022\020\n\010index_id\030\010 \001(\004\"M\n\005Index\022\016\n\006" + "folder\030\001 \001(\t\0224\n\005files\030\002 \003(\0132%.it.anyplac", "e.sync.bep.protos.FileInfo\"S\n\013IndexUpdat" + "e\022\016\n\006folder\030\001 \001(\t\0224\n\005files\030\002 \003(\0132%.it.an" + "yplace.sync.bep.protos.FileInfo\"\327\002\n\010File" + "Info\022\014\n\004name\030\001 \001(\t\0227\n\004type\030\002 \001(\0162).it.an" + "yplace.sync.bep.protos.FileInfoType\022\014\n\004s" + "ize\030\003 \001(\003\022\023\n\013permissions\030\004 \001(\r\022\022\n\nmodifi" + "ed_s\030\005 \001(\003\022\023\n\013modified_ns\030\013 \001(\005\022\017\n\007delet" + "ed\030\006 \001(\010\022\017\n\007invalid\030\007 \001(\010\022\026\n\016no_permissi" + "ons\030\010 \001(\010\0224\n\007version\030\t \001(\0132#.it.anyplace" + ".sync.bep.protos.Vector\022\020\n\010sequence\030\n \001(", "\003\0226\n\006Blocks\030\020 \003(\0132&.it.anyplace.sync.bep" + ".protos.BlockInfo\"7\n\tBlockInfo\022\016\n\006offset" + "\030\001 \001(\003\022\014\n\004size\030\002 \001(\005\022\014\n\004hash\030\003 \001(\014\"@\n\006Ve" + "ctor\0226\n\010counters\030\001 \003(\0132$.it.anyplace.syn" + "c.bep.protos.Counter\"$\n\007Counter\022\n\n\002id\030\001 " + "\001(\004\022\r\n\005value\030\002 \001(\004\"w\n\007Request\022\n\n\002id\030\001 \001(" + "\005\022\016\n\006folder\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\016\n\006offse" + "t\030\004 \001(\003\022\014\n\004size\030\005 \001(\005\022\014\n\004hash\030\006 \001(\014\022\026\n\016f" + "rom_temporary\030\007 \001(\010\"Z\n\010Response\022\n\n\002id\030\001 " + "\001(\005\022\014\n\004data\030\002 \001(\014\0224\n\004code\030\003 \001(\0162&.it.any", "place.sync.bep.protos.ErrorCode\"l\n\020Downl" + "oadProgress\022\016\n\006folder\030\001 \001(\t\022H\n\007updates\030\002" + " \003(\01327.it.anyplace.sync.bep.protos.FileD" + "ownloadProgressUpdate\"\311\001\n\032FileDownloadPr" + "ogressUpdate\022P\n\013update_type\030\001 \001(\0162;.it.a" + "nyplace.sync.bep.protos.FileDownloadProg" + "ressUpdateType\022\014\n\004name\030\002 \001(\t\0224\n\007version\030" + "\003 \001(\0132#.it.anyplace.sync.bep.protos.Vect" + "or\022\025\n\rblock_indexes\030\004 \003(\005\"\006\n\004Ping\"\027\n\005Clo" + "se\022\016\n\006reason\030\001 \001(\t*\205\001\n\013MessageType\022\022\n\016CL", "USTER_CONFIG\020\000\022\t\n\005INDEX\020\001\022\020\n\014INDEX_UPDAT" + "E\020\002\022\013\n\007REQUEST\020\003\022\014\n\010RESPONSE\020\004\022\025\n\021DOWNLO" + "AD_PROGRESS\020\005\022\010\n\004PING\020\006\022\t\n\005CLOSE\020\007*\'\n\022Me" + "ssageCompression\022\010\n\004NONE\020\000\022\007\n\003LZ4\020\001*2\n\013C" + "ompression\022\014\n\010METADATA\020\000\022\t\n\005NEVER\020\001\022\n\n\006A" + "LWAYS\020\002*e\n\014FileInfoType\022\010\n\004FILE\020\000\022\r\n\tDIR" + "ECTORY\020\001\022\020\n\014SYMLINK_FILE\020\002\022\025\n\021SYMLINK_DI" + "RECTORY\020\003\022\023\n\017SYMLINK_UNKNOWN\020\004*J\n\tErrorC" + "ode\022\014\n\010NO_ERROR\020\000\022\013\n\007GENERIC\020\001\022\020\n\014NO_SUC" + "H_FILE\020\002\022\020\n\014INVALID_FILE\020\003*8\n\036FileDownlo", "adProgressUpdateType\022\n\n\006APPEND\020\000\022\n\n\006FORG" + "ET\020\001" }; 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; internal_static_it_anyplace_sync_bep_protos_Hello_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_it_anyplace_sync_bep_protos_Hello_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_Hello_descriptor, new java.lang.String[] { "DeviceName", "ClientName", "ClientVersion", }); internal_static_it_anyplace_sync_bep_protos_Header_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_it_anyplace_sync_bep_protos_Header_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_Header_descriptor, new java.lang.String[] { "Type", "Compression", }); internal_static_it_anyplace_sync_bep_protos_ClusterConfig_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_it_anyplace_sync_bep_protos_ClusterConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_ClusterConfig_descriptor, new java.lang.String[] { "Folders", }); internal_static_it_anyplace_sync_bep_protos_Folder_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_it_anyplace_sync_bep_protos_Folder_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_Folder_descriptor, new java.lang.String[] { "Id", "Label", "ReadOnly", "IgnorePermissions", "IgnoreDelete", "DisableTempIndexes", "Devices", }); internal_static_it_anyplace_sync_bep_protos_Device_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_it_anyplace_sync_bep_protos_Device_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_Device_descriptor, new java.lang.String[] { "Id", "Name", "Addresses", "Compression", "CertName", "MaxSequence", "Introducer", "IndexId", }); internal_static_it_anyplace_sync_bep_protos_Index_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_it_anyplace_sync_bep_protos_Index_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_Index_descriptor, new java.lang.String[] { "Folder", "Files", }); internal_static_it_anyplace_sync_bep_protos_IndexUpdate_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_it_anyplace_sync_bep_protos_IndexUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_IndexUpdate_descriptor, new java.lang.String[] { "Folder", "Files", }); internal_static_it_anyplace_sync_bep_protos_FileInfo_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_it_anyplace_sync_bep_protos_FileInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_FileInfo_descriptor, new java.lang.String[] { "Name", "Type", "Size", "Permissions", "ModifiedS", "ModifiedNs", "Deleted", "Invalid", "NoPermissions", "Version", "Sequence", "Blocks", }); internal_static_it_anyplace_sync_bep_protos_BlockInfo_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_it_anyplace_sync_bep_protos_BlockInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_BlockInfo_descriptor, new java.lang.String[] { "Offset", "Size", "Hash", }); internal_static_it_anyplace_sync_bep_protos_Vector_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_it_anyplace_sync_bep_protos_Vector_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_Vector_descriptor, new java.lang.String[] { "Counters", }); internal_static_it_anyplace_sync_bep_protos_Counter_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_it_anyplace_sync_bep_protos_Counter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_Counter_descriptor, new java.lang.String[] { "Id", "Value", }); internal_static_it_anyplace_sync_bep_protos_Request_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_it_anyplace_sync_bep_protos_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_Request_descriptor, new java.lang.String[] { "Id", "Folder", "Name", "Offset", "Size", "Hash", "FromTemporary", }); internal_static_it_anyplace_sync_bep_protos_Response_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_it_anyplace_sync_bep_protos_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_Response_descriptor, new java.lang.String[] { "Id", "Data", "Code", }); internal_static_it_anyplace_sync_bep_protos_DownloadProgress_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_it_anyplace_sync_bep_protos_DownloadProgress_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_DownloadProgress_descriptor, new java.lang.String[] { "Folder", "Updates", }); internal_static_it_anyplace_sync_bep_protos_FileDownloadProgressUpdate_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_it_anyplace_sync_bep_protos_FileDownloadProgressUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_FileDownloadProgressUpdate_descriptor, new java.lang.String[] { "UpdateType", "Name", "Version", "BlockIndexes", }); internal_static_it_anyplace_sync_bep_protos_Ping_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_it_anyplace_sync_bep_protos_Ping_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_Ping_descriptor, new java.lang.String[] { }); internal_static_it_anyplace_sync_bep_protos_Close_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_it_anyplace_sync_bep_protos_Close_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_it_anyplace_sync_bep_protos_Close_descriptor, new java.lang.String[] { "Reason", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy