public final class

WebSugar

extends java.lang.Object

 java.lang.Object

↳androidx.test.espresso.web.proto.sugar.WebSugar

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: espresso/remote/java/androidx/test/espresso/web/proto/sugar/web_sugar.proto

package androidx.test.espresso.web.proto.sugar;

public final class WebSugar {
  private WebSugar() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  public interface ExceptionPropagatorProtoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.test.remote.web.sugar.ExceptionPropagatorProto)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <code>string id = 1;</code>
     * @return The id.
     */
    java.lang.String getId();
    /**
     * <code>string id = 1;</code>
     * @return The bytes for id.
     */
    com.google.protobuf.ByteString
        getIdBytes();

    /**
     * <code>bytes error = 2;</code>
     * @return The error.
     */
    com.google.protobuf.ByteString getError();
  }
  /**
   * Protobuf type {@code google.test.remote.web.sugar.ExceptionPropagatorProto}
   */
  public  static final class ExceptionPropagatorProto extends
      com.google.protobuf.GeneratedMessageLite<
          ExceptionPropagatorProto, ExceptionPropagatorProto.Builder> implements
      // @@protoc_insertion_point(message_implements:google.test.remote.web.sugar.ExceptionPropagatorProto)
      ExceptionPropagatorProtoOrBuilder {
    private ExceptionPropagatorProto() {
      id_ = "";
      error_ = com.google.protobuf.ByteString.EMPTY;
    }
    public static final int ID_FIELD_NUMBER = 1;
    private java.lang.String id_;
    /**
     * <code>string id = 1;</code>
     * @return The id.
     */
    @java.lang.Override
    public java.lang.String getId() {
      return id_;
    }
    /**
     * <code>string id = 1;</code>
     * @return The bytes for id.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getIdBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(id_);
    }
    /**
     * <code>string id = 1;</code>
     * @param value The id to set.
     */
    private void setId(
        java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  
      id_ = value;
    }
    /**
     * <code>string id = 1;</code>
     */
    private void clearId() {
      
      id_ = getDefaultInstance().getId();
    }
    /**
     * <code>string id = 1;</code>
     * @param value The bytes for id to set.
     */
    private void setIdBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      id_ = value.toStringUtf8();
      
    }

    public static final int ERROR_FIELD_NUMBER = 2;
    private com.google.protobuf.ByteString error_;
    /**
     * <code>bytes error = 2;</code>
     * @return The error.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getError() {
      return error_;
    }
    /**
     * <code>bytes error = 2;</code>
     * @param value The error to set.
     */
    private void setError(com.google.protobuf.ByteString value) {
      java.lang.Class<?> valueClass = value.getClass();
  
      error_ = value;
    }
    /**
     * <code>bytes error = 2;</code>
     */
    private void clearError() {
      
      error_ = getDefaultInstance().getError();
    }

    public static androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto 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.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto 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.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto 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.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto 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.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto 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.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * Protobuf type {@code google.test.remote.web.sugar.ExceptionPropagatorProto}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto, Builder> implements
        // @@protoc_insertion_point(builder_implements:google.test.remote.web.sugar.ExceptionPropagatorProto)
        androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProtoOrBuilder {
      // Construct using androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <code>string id = 1;</code>
       * @return The id.
       */
      @java.lang.Override
      public java.lang.String getId() {
        return instance.getId();
      }
      /**
       * <code>string id = 1;</code>
       * @return The bytes for id.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getIdBytes() {
        return instance.getIdBytes();
      }
      /**
       * <code>string id = 1;</code>
       * @param value The id to set.
       * @return This builder for chaining.
       */
      public Builder setId(
          java.lang.String value) {
        copyOnWrite();
        instance.setId(value);
        return this;
      }
      /**
       * <code>string id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearId() {
        copyOnWrite();
        instance.clearId();
        return this;
      }
      /**
       * <code>string id = 1;</code>
       * @param value The bytes for id to set.
       * @return This builder for chaining.
       */
      public Builder setIdBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setIdBytes(value);
        return this;
      }

      /**
       * <code>bytes error = 2;</code>
       * @return The error.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getError() {
        return instance.getError();
      }
      /**
       * <code>bytes error = 2;</code>
       * @param value The error to set.
       * @return This builder for chaining.
       */
      public Builder setError(com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setError(value);
        return this;
      }
      /**
       * <code>bytes error = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearError() {
        copyOnWrite();
        instance.clearError();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:google.test.remote.web.sugar.ExceptionPropagatorProto)
    }
    @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.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "id_",
              "error_",
            };
            java.lang.String info =
                "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\n" +
                "";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto>(
                        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:google.test.remote.web.sugar.ExceptionPropagatorProto)
    private static final androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto DEFAULT_INSTANCE;
    static {
      ExceptionPropagatorProto defaultInstance = new ExceptionPropagatorProto();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        ExceptionPropagatorProto.class, defaultInstance);
    }

    public static androidx.test.espresso.web.proto.sugar.WebSugar.ExceptionPropagatorProto getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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


  static {
  }

  // @@protoc_insertion_point(outer_class_scope)
}