public final class

ErrorProto

extends java.lang.Object

 java.lang.Object

↳androidx.health.platform.client.proto.ErrorProto

Gradle dependencies

compile group: 'androidx.health.connect', name: 'connect-client-proto', version: '1.1.0-alpha08'

  • groupId: androidx.health.connect
  • artifactId: connect-client-proto
  • version: 1.1.0-alpha08

Artifact androidx.health.connect:connect-client-proto:1.1.0-alpha08 it located at Google repository (https://maven.google.com/)

Summary

Methods
public static voidregisterAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)

Source

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: error.proto

package androidx.health.platform.client.proto;

public final class ErrorProto {
  private ErrorProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  public interface ErrorStatusOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.health.platform.client.proto.ErrorStatus)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <code>optional int32 code = 1;</code>
     * @return Whether the code field is set.
     */
    boolean hasCode();
    /**
     * <code>optional int32 code = 1;</code>
     * @return The code.
     */
    int getCode();

    /**
     * <code>optional string message = 2;</code>
     * @return Whether the message field is set.
     */
    boolean hasMessage();
    /**
     * <code>optional string message = 2;</code>
     * @return The message.
     */
    java.lang.String getMessage();
    /**
     * <code>optional string message = 2;</code>
     * @return The bytes for message.
     */
    com.google.protobuf.ByteString
        getMessageBytes();

    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    java.util.List<androidx.health.platform.client.proto.PermissionProto.Permission> 
        getPermissionList();
    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    androidx.health.platform.client.proto.PermissionProto.Permission getPermission(int index);
    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    int getPermissionCount();
  }
  /**
   * Protobuf type {@code androidx.health.platform.client.proto.ErrorStatus}
   */
  public  static final class ErrorStatus extends
      com.google.protobuf.GeneratedMessageLite<
          ErrorStatus, ErrorStatus.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.health.platform.client.proto.ErrorStatus)
      ErrorStatusOrBuilder {
    private ErrorStatus() {
      message_ = "";
      permission_ = emptyProtobufList();
    }
    private int bitField0_;
    public static final int CODE_FIELD_NUMBER = 1;
    private int code_;
    /**
     * <code>optional int32 code = 1;</code>
     * @return Whether the code field is set.
     */
    @java.lang.Override
    public boolean hasCode() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional int32 code = 1;</code>
     * @return The code.
     */
    @java.lang.Override
    public int getCode() {
      return code_;
    }
    /**
     * <code>optional int32 code = 1;</code>
     * @param value The code to set.
     */
    private void setCode(int value) {
      bitField0_ |= 0x00000001;
      code_ = value;
    }
    /**
     * <code>optional int32 code = 1;</code>
     */
    private void clearCode() {
      bitField0_ = (bitField0_ & ~0x00000001);
      code_ = 0;
    }

    public static final int MESSAGE_FIELD_NUMBER = 2;
    private java.lang.String message_;
    /**
     * <code>optional string message = 2;</code>
     * @return Whether the message field is set.
     */
    @java.lang.Override
    public boolean hasMessage() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional string message = 2;</code>
     * @return The message.
     */
    @java.lang.Override
    public java.lang.String getMessage() {
      return message_;
    }
    /**
     * <code>optional string message = 2;</code>
     * @return The bytes for message.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getMessageBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(message_);
    }
    /**
     * <code>optional string message = 2;</code>
     * @param value The message to set.
     */
    private void setMessage(
        java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  bitField0_ |= 0x00000002;
      message_ = value;
    }
    /**
     * <code>optional string message = 2;</code>
     */
    private void clearMessage() {
      bitField0_ = (bitField0_ & ~0x00000002);
      message_ = getDefaultInstance().getMessage();
    }
    /**
     * <code>optional string message = 2;</code>
     * @param value The bytes for message to set.
     */
    private void setMessageBytes(
        com.google.protobuf.ByteString value) {
      message_ = value.toStringUtf8();
      bitField0_ |= 0x00000002;
    }

    public static final int PERMISSION_FIELD_NUMBER = 3;
    private com.google.protobuf.Internal.ProtobufList<androidx.health.platform.client.proto.PermissionProto.Permission> permission_;
    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    @java.lang.Override
    public java.util.List<androidx.health.platform.client.proto.PermissionProto.Permission> getPermissionList() {
      return permission_;
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    public java.util.List<? extends androidx.health.platform.client.proto.PermissionProto.PermissionOrBuilder> 
        getPermissionOrBuilderList() {
      return permission_;
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    @java.lang.Override
    public int getPermissionCount() {
      return permission_.size();
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    @java.lang.Override
    public androidx.health.platform.client.proto.PermissionProto.Permission getPermission(int index) {
      return permission_.get(index);
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    public androidx.health.platform.client.proto.PermissionProto.PermissionOrBuilder getPermissionOrBuilder(
        int index) {
      return permission_.get(index);
    }
    private void ensurePermissionIsMutable() {
      com.google.protobuf.Internal.ProtobufList<androidx.health.platform.client.proto.PermissionProto.Permission> tmp = permission_;
      if (!tmp.isModifiable()) {
        permission_ =
            com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
       }
    }

    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    private void setPermission(
        int index, androidx.health.platform.client.proto.PermissionProto.Permission value) {
      value.getClass();
  ensurePermissionIsMutable();
      permission_.set(index, value);
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    private void addPermission(androidx.health.platform.client.proto.PermissionProto.Permission value) {
      value.getClass();
  ensurePermissionIsMutable();
      permission_.add(value);
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    private void addPermission(
        int index, androidx.health.platform.client.proto.PermissionProto.Permission value) {
      value.getClass();
  ensurePermissionIsMutable();
      permission_.add(index, value);
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    private void addAllPermission(
        java.lang.Iterable<? extends androidx.health.platform.client.proto.PermissionProto.Permission> values) {
      ensurePermissionIsMutable();
      com.google.protobuf.AbstractMessageLite.addAll(
          values, permission_);
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    private void clearPermission() {
      permission_ = emptyProtobufList();
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
     */
    private void removePermission(int index) {
      ensurePermissionIsMutable();
      permission_.remove(index);
    }

    public static androidx.health.platform.client.proto.ErrorProto.ErrorStatus parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.health.platform.client.proto.ErrorProto.ErrorStatus parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.health.platform.client.proto.ErrorProto.ErrorStatus parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.health.platform.client.proto.ErrorProto.ErrorStatus parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.health.platform.client.proto.ErrorProto.ErrorStatus parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.health.platform.client.proto.ErrorProto.ErrorStatus parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.health.platform.client.proto.ErrorProto.ErrorStatus parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.health.platform.client.proto.ErrorProto.ErrorStatus parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.health.platform.client.proto.ErrorProto.ErrorStatus parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.health.platform.client.proto.ErrorProto.ErrorStatus parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.health.platform.client.proto.ErrorProto.ErrorStatus parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.health.platform.client.proto.ErrorProto.ErrorStatus parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(androidx.health.platform.client.proto.ErrorProto.ErrorStatus prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * Protobuf type {@code androidx.health.platform.client.proto.ErrorStatus}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.health.platform.client.proto.ErrorProto.ErrorStatus, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.health.platform.client.proto.ErrorStatus)
        androidx.health.platform.client.proto.ErrorProto.ErrorStatusOrBuilder {
      // Construct using androidx.health.platform.client.proto.ErrorProto.ErrorStatus.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <code>optional int32 code = 1;</code>
       * @return Whether the code field is set.
       */
      @java.lang.Override
      public boolean hasCode() {
        return instance.hasCode();
      }
      /**
       * <code>optional int32 code = 1;</code>
       * @return The code.
       */
      @java.lang.Override
      public int getCode() {
        return instance.getCode();
      }
      /**
       * <code>optional int32 code = 1;</code>
       * @param value The code to set.
       * @return This builder for chaining.
       */
      public Builder setCode(int value) {
        copyOnWrite();
        instance.setCode(value);
        return this;
      }
      /**
       * <code>optional int32 code = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearCode() {
        copyOnWrite();
        instance.clearCode();
        return this;
      }

      /**
       * <code>optional string message = 2;</code>
       * @return Whether the message field is set.
       */
      @java.lang.Override
      public boolean hasMessage() {
        return instance.hasMessage();
      }
      /**
       * <code>optional string message = 2;</code>
       * @return The message.
       */
      @java.lang.Override
      public java.lang.String getMessage() {
        return instance.getMessage();
      }
      /**
       * <code>optional string message = 2;</code>
       * @return The bytes for message.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getMessageBytes() {
        return instance.getMessageBytes();
      }
      /**
       * <code>optional string message = 2;</code>
       * @param value The message to set.
       * @return This builder for chaining.
       */
      public Builder setMessage(
          java.lang.String value) {
        copyOnWrite();
        instance.setMessage(value);
        return this;
      }
      /**
       * <code>optional string message = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearMessage() {
        copyOnWrite();
        instance.clearMessage();
        return this;
      }
      /**
       * <code>optional string message = 2;</code>
       * @param value The bytes for message to set.
       * @return This builder for chaining.
       */
      public Builder setMessageBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setMessageBytes(value);
        return this;
      }

      /**
       * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
       */
      @java.lang.Override
      public java.util.List<androidx.health.platform.client.proto.PermissionProto.Permission> getPermissionList() {
        return java.util.Collections.unmodifiableList(
            instance.getPermissionList());
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
       */
      @java.lang.Override
      public int getPermissionCount() {
        return instance.getPermissionCount();
      }/**
       * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
       */
      @java.lang.Override
      public androidx.health.platform.client.proto.PermissionProto.Permission getPermission(int index) {
        return instance.getPermission(index);
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
       */
      public Builder setPermission(
          int index, androidx.health.platform.client.proto.PermissionProto.Permission value) {
        copyOnWrite();
        instance.setPermission(index, value);
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
       */
      public Builder setPermission(
          int index, androidx.health.platform.client.proto.PermissionProto.Permission.Builder builderForValue) {
        copyOnWrite();
        instance.setPermission(index,
            builderForValue.build());
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
       */
      public Builder addPermission(androidx.health.platform.client.proto.PermissionProto.Permission value) {
        copyOnWrite();
        instance.addPermission(value);
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
       */
      public Builder addPermission(
          int index, androidx.health.platform.client.proto.PermissionProto.Permission value) {
        copyOnWrite();
        instance.addPermission(index, value);
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
       */
      public Builder addPermission(
          androidx.health.platform.client.proto.PermissionProto.Permission.Builder builderForValue) {
        copyOnWrite();
        instance.addPermission(builderForValue.build());
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
       */
      public Builder addPermission(
          int index, androidx.health.platform.client.proto.PermissionProto.Permission.Builder builderForValue) {
        copyOnWrite();
        instance.addPermission(index,
            builderForValue.build());
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
       */
      public Builder addAllPermission(
          java.lang.Iterable<? extends androidx.health.platform.client.proto.PermissionProto.Permission> values) {
        copyOnWrite();
        instance.addAllPermission(values);
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
       */
      public Builder clearPermission() {
        copyOnWrite();
        instance.clearPermission();
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.Permission permission = 3;</code>
       */
      public Builder removePermission(int index) {
        copyOnWrite();
        instance.removePermission(index);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.health.platform.client.proto.ErrorStatus)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new androidx.health.platform.client.proto.ErrorProto.ErrorStatus();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "bitField0_",
              "code_",
              "message_",
              "permission_",
              androidx.health.platform.client.proto.PermissionProto.Permission.class,
            };
            java.lang.String info =
                "\u0001\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0001\u0000\u0001\u1004\u0000\u0002" +
                "\u1008\u0001\u0003\u001b";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.health.platform.client.proto.ErrorProto.ErrorStatus> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.health.platform.client.proto.ErrorProto.ErrorStatus.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.health.platform.client.proto.ErrorProto.ErrorStatus>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:androidx.health.platform.client.proto.ErrorStatus)
    private static final androidx.health.platform.client.proto.ErrorProto.ErrorStatus DEFAULT_INSTANCE;
    static {
      ErrorStatus defaultInstance = new ErrorStatus();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        ErrorStatus.class, defaultInstance);
    }

    public static androidx.health.platform.client.proto.ErrorProto.ErrorStatus getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<ErrorStatus> PARSER;

    public static com.google.protobuf.Parser<ErrorStatus> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }


  static {
  }

  // @@protoc_insertion_point(outer_class_scope)
}