public final class

PrivacySandboxToolsProtocol

extends java.lang.Object

 java.lang.Object

↳androidx.privacysandbox.tools.core.proto.PrivacySandboxToolsProtocol

Gradle dependencies

compile group: 'androidx.privacysandbox.tools', name: 'tools-core', version: '1.0.0-alpha09'

  • groupId: androidx.privacysandbox.tools
  • artifactId: tools-core
  • version: 1.0.0-alpha09

Artifact androidx.privacysandbox.tools:tools-core:1.0.0-alpha09 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: androidx/privacysandbox/tools/core/privacy_sandbox_tools_protocol.proto

package androidx.privacysandbox.tools.core.proto;

public final class PrivacySandboxToolsProtocol {
  private PrivacySandboxToolsProtocol() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  public interface ToolMetadataOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.privacysandbox.tools.core.ToolMetadata)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <code>int32 code_generation_version = 1;</code>
     * @return The codeGenerationVersion.
     */
    int getCodeGenerationVersion();
  }
  /**
   * <pre>
   * Metadata about Privacy Sandbox Tools.
   *
   * This message is stored in every SDK API descriptor so consumers can tweak code generation
   * according to what's expected by the compiled SDK.
   * </pre>
   *
   * Protobuf type {@code androidx.privacysandbox.tools.core.ToolMetadata}
   */
  public  static final class ToolMetadata extends
      com.google.protobuf.GeneratedMessageLite<
          ToolMetadata, ToolMetadata.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.privacysandbox.tools.core.ToolMetadata)
      ToolMetadataOrBuilder {
    private ToolMetadata() {
    }
    public static final int CODE_GENERATION_VERSION_FIELD_NUMBER = 1;
    private int codeGenerationVersion_;
    /**
     * <code>int32 code_generation_version = 1;</code>
     * @return The codeGenerationVersion.
     */
    @java.lang.Override
    public int getCodeGenerationVersion() {
      return codeGenerationVersion_;
    }
    /**
     * <code>int32 code_generation_version = 1;</code>
     * @param value The codeGenerationVersion to set.
     */
    private void setCodeGenerationVersion(int value) {
      
      codeGenerationVersion_ = value;
    }
    /**
     * <code>int32 code_generation_version = 1;</code>
     */
    private void clearCodeGenerationVersion() {

      codeGenerationVersion_ = 0;
    }

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

    /**
     * <pre>
     * Metadata about Privacy Sandbox Tools.
     *
     * This message is stored in every SDK API descriptor so consumers can tweak code generation
     * according to what's expected by the compiled SDK.
     * </pre>
     *
     * Protobuf type {@code androidx.privacysandbox.tools.core.ToolMetadata}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.privacysandbox.tools.core.proto.PrivacySandboxToolsProtocol.ToolMetadata, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.privacysandbox.tools.core.ToolMetadata)
        androidx.privacysandbox.tools.core.proto.PrivacySandboxToolsProtocol.ToolMetadataOrBuilder {
      // Construct using androidx.privacysandbox.tools.core.proto.PrivacySandboxToolsProtocol.ToolMetadata.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <code>int32 code_generation_version = 1;</code>
       * @return The codeGenerationVersion.
       */
      @java.lang.Override
      public int getCodeGenerationVersion() {
        return instance.getCodeGenerationVersion();
      }
      /**
       * <code>int32 code_generation_version = 1;</code>
       * @param value The codeGenerationVersion to set.
       * @return This builder for chaining.
       */
      public Builder setCodeGenerationVersion(int value) {
        copyOnWrite();
        instance.setCodeGenerationVersion(value);
        return this;
      }
      /**
       * <code>int32 code_generation_version = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearCodeGenerationVersion() {
        copyOnWrite();
        instance.clearCodeGenerationVersion();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.privacysandbox.tools.core.ToolMetadata)
    }
    @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.privacysandbox.tools.core.proto.PrivacySandboxToolsProtocol.ToolMetadata();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "codeGenerationVersion_",
            };
            java.lang.String info =
                "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0004";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.privacysandbox.tools.core.proto.PrivacySandboxToolsProtocol.ToolMetadata> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.privacysandbox.tools.core.proto.PrivacySandboxToolsProtocol.ToolMetadata.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.privacysandbox.tools.core.proto.PrivacySandboxToolsProtocol.ToolMetadata>(
                        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.privacysandbox.tools.core.ToolMetadata)
    private static final androidx.privacysandbox.tools.core.proto.PrivacySandboxToolsProtocol.ToolMetadata DEFAULT_INSTANCE;
    static {
      ToolMetadata defaultInstance = new ToolMetadata();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        ToolMetadata.class, defaultInstance);
    }

    public static androidx.privacysandbox.tools.core.proto.PrivacySandboxToolsProtocol.ToolMetadata getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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


  static {
  }

  // @@protoc_insertion_point(outer_class_scope)
}