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

com.google.javascript.jscomp.Instrumentation Maven / Gradle / Ivy

There is a newer version: 9.0.8
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: com/google/javascript/jscomp/instrumentation_template.proto

package com.google.javascript.jscomp;

/**
 * Protobuf type {@code jscomp.Instrumentation}
 */
public  final class Instrumentation extends
    com.google.protobuf.GeneratedMessage
    implements InstrumentationOrBuilder {
  // Use Instrumentation.newBuilder() to construct.
  private Instrumentation(com.google.protobuf.GeneratedMessage.Builder builder) {
    super(builder);
    this.unknownFields = builder.getUnknownFields();
  }
  private Instrumentation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

  public Instrumentation getDefaultInstanceForType() {
    return defaultInstance;
  }

  private final com.google.protobuf.UnknownFieldSet unknownFields;
  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
    return this.unknownFields;
  }
  private Instrumentation(
      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;
            reportDefined_ = input.readBytes();
            break;
          }
          case 18: {
            bitField0_ |= 0x00000002;
            reportCall_ = input.readBytes();
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
              declarationToRemove_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000008;
            }
            declarationToRemove_.add(input.readBytes());
            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
              init_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000010;
            }
            init_.add(input.readBytes());
            break;
          }
          case 42: {
            bitField0_ |= 0x00000008;
            appNameSetter_ = input.readBytes();
            break;
          }
          case 50: {
            bitField0_ |= 0x00000004;
            reportExit_ = 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 {
      if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
        declarationToRemove_ = new com.google.protobuf.UnmodifiableLazyStringList(declarationToRemove_);
      }
      if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
        init_ = new com.google.protobuf.UnmodifiableLazyStringList(init_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.google.javascript.jscomp.InstrumentationTemplate.internal_static_jscomp_Instrumentation_descriptor;
  }

  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.javascript.jscomp.InstrumentationTemplate.internal_static_jscomp_Instrumentation_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.javascript.jscomp.Instrumentation.class, com.google.javascript.jscomp.Instrumentation.Builder.class);
  }

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

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

  private int bitField0_;
  // optional string report_defined = 1;
  public static final int REPORT_DEFINED_FIELD_NUMBER = 1;
  private java.lang.Object reportDefined_;
  /**
   * optional string report_defined = 1;
   *
   * 
   * name of function(ID = <numeric function id>);
   * used to inform the harness about the contents of a module
   * 
*/ public boolean hasReportDefined() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string report_defined = 1; * *
   * name of function(ID = <numeric function id>);
   * used to inform the harness about the contents of a module
   * 
*/ public java.lang.String getReportDefined() { java.lang.Object ref = reportDefined_; 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()) { reportDefined_ = s; } return s; } } /** * optional string report_defined = 1; * *
   * name of function(ID = <numeric function id>);
   * used to inform the harness about the contents of a module
   * 
*/ public com.google.protobuf.ByteString getReportDefinedBytes() { java.lang.Object ref = reportDefined_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reportDefined_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string report_call = 2; public static final int REPORT_CALL_FIELD_NUMBER = 2; private java.lang.Object reportCall_; /** * optional string report_call = 2; * *
   * name of function(ID = <numeric function id>);
   * used to inform the harness about a function call
   * 
*/ public boolean hasReportCall() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string report_call = 2; * *
   * name of function(ID = <numeric function id>);
   * used to inform the harness about a function call
   * 
*/ public java.lang.String getReportCall() { java.lang.Object ref = reportCall_; 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()) { reportCall_ = s; } return s; } } /** * optional string report_call = 2; * *
   * name of function(ID = <numeric function id>);
   * used to inform the harness about a function call
   * 
*/ public com.google.protobuf.ByteString getReportCallBytes() { java.lang.Object ref = reportCall_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reportCall_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string report_exit = 6; public static final int REPORT_EXIT_FIELD_NUMBER = 6; private java.lang.Object reportExit_; /** * optional string report_exit = 6; * *
   * name of function(ID = <numeric function id>, VAL = <return value>);
   * used to inform the harness about a function exit.  Must return
   * its second argument.
   *
   * @return VAL
   * 
*/ public boolean hasReportExit() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string report_exit = 6; * *
   * name of function(ID = <numeric function id>, VAL = <return value>);
   * used to inform the harness about a function exit.  Must return
   * its second argument.
   *
   * @return VAL
   * 
*/ public java.lang.String getReportExit() { java.lang.Object ref = reportExit_; 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()) { reportExit_ = s; } return s; } } /** * optional string report_exit = 6; * *
   * name of function(ID = <numeric function id>, VAL = <return value>);
   * used to inform the harness about a function exit.  Must return
   * its second argument.
   *
   * @return VAL
   * 
*/ public com.google.protobuf.ByteString getReportExitBytes() { java.lang.Object ref = reportExit_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reportExit_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated string declaration_to_remove = 3; public static final int DECLARATION_TO_REMOVE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList declarationToRemove_; /** * repeated string declaration_to_remove = 3; * *
   * List of variable declarations in the application's source code
   * that should be replaced by variables with the same name that are
   * part of the instrumentation harness.  The presence of these
   * declarations in the original code allows debug UIs that access
   * these variables to compile when the instrumentation pass is
   * disabled.
   * 
*/ public java.util.List getDeclarationToRemoveList() { return declarationToRemove_; } /** * repeated string declaration_to_remove = 3; * *
   * List of variable declarations in the application's source code
   * that should be replaced by variables with the same name that are
   * part of the instrumentation harness.  The presence of these
   * declarations in the original code allows debug UIs that access
   * these variables to compile when the instrumentation pass is
   * disabled.
   * 
*/ public int getDeclarationToRemoveCount() { return declarationToRemove_.size(); } /** * repeated string declaration_to_remove = 3; * *
   * List of variable declarations in the application's source code
   * that should be replaced by variables with the same name that are
   * part of the instrumentation harness.  The presence of these
   * declarations in the original code allows debug UIs that access
   * these variables to compile when the instrumentation pass is
   * disabled.
   * 
*/ public java.lang.String getDeclarationToRemove(int index) { return declarationToRemove_.get(index); } /** * repeated string declaration_to_remove = 3; * *
   * List of variable declarations in the application's source code
   * that should be replaced by variables with the same name that are
   * part of the instrumentation harness.  The presence of these
   * declarations in the original code allows debug UIs that access
   * these variables to compile when the instrumentation pass is
   * disabled.
   * 
*/ public com.google.protobuf.ByteString getDeclarationToRemoveBytes(int index) { return declarationToRemove_.getByteString(index); } // repeated string init = 4; public static final int INIT_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList init_; /** * repeated string init = 4; * *
   * Definition of functions used to report module contents and
   * function calls.  Will be added to the start of the app's main
   * module.
   * 
*/ public java.util.List getInitList() { return init_; } /** * repeated string init = 4; * *
   * Definition of functions used to report module contents and
   * function calls.  Will be added to the start of the app's main
   * module.
   * 
*/ public int getInitCount() { return init_.size(); } /** * repeated string init = 4; * *
   * Definition of functions used to report module contents and
   * function calls.  Will be added to the start of the app's main
   * module.
   * 
*/ public java.lang.String getInit(int index) { return init_.get(index); } /** * repeated string init = 4; * *
   * Definition of functions used to report module contents and
   * function calls.  Will be added to the start of the app's main
   * module.
   * 
*/ public com.google.protobuf.ByteString getInitBytes(int index) { return init_.getByteString(index); } // optional string app_name_setter = 5; public static final int APP_NAME_SETTER_FIELD_NUMBER = 5; private java.lang.Object appNameSetter_; /** * optional string app_name_setter = 5; * *
   * name of function(<string>);
   * used to inform the harness about the app name
   * 
*/ public boolean hasAppNameSetter() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string app_name_setter = 5; * *
   * name of function(<string>);
   * used to inform the harness about the app name
   * 
*/ public java.lang.String getAppNameSetter() { java.lang.Object ref = appNameSetter_; 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()) { appNameSetter_ = s; } return s; } } /** * optional string app_name_setter = 5; * *
   * name of function(<string>);
   * used to inform the harness about the app name
   * 
*/ public com.google.protobuf.ByteString getAppNameSetterBytes() { java.lang.Object ref = appNameSetter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appNameSetter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { reportDefined_ = ""; reportCall_ = ""; reportExit_ = ""; declarationToRemove_ = com.google.protobuf.LazyStringArrayList.EMPTY; init_ = com.google.protobuf.LazyStringArrayList.EMPTY; appNameSetter_ = ""; } 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, getReportDefinedBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getReportCallBytes()); } for (int i = 0; i < declarationToRemove_.size(); i++) { output.writeBytes(3, declarationToRemove_.getByteString(i)); } for (int i = 0; i < init_.size(); i++) { output.writeBytes(4, init_.getByteString(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(5, getAppNameSetterBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(6, getReportExitBytes()); } 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, getReportDefinedBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getReportCallBytes()); } { int dataSize = 0; for (int i = 0; i < declarationToRemove_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(declarationToRemove_.getByteString(i)); } size += dataSize; size += 1 * getDeclarationToRemoveList().size(); } { int dataSize = 0; for (int i = 0; i < init_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(init_.getByteString(i)); } size += dataSize; size += 1 * getInitList().size(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getAppNameSetterBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getReportExitBytes()); } 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 com.google.javascript.jscomp.Instrumentation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.javascript.jscomp.Instrumentation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.javascript.jscomp.Instrumentation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.javascript.jscomp.Instrumentation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.javascript.jscomp.Instrumentation parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.javascript.jscomp.Instrumentation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.javascript.jscomp.Instrumentation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.javascript.jscomp.Instrumentation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.javascript.jscomp.Instrumentation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.javascript.jscomp.Instrumentation 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(com.google.javascript.jscomp.Instrumentation 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 jscomp.Instrumentation} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.google.javascript.jscomp.InstrumentationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.javascript.jscomp.InstrumentationTemplate.internal_static_jscomp_Instrumentation_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.javascript.jscomp.InstrumentationTemplate.internal_static_jscomp_Instrumentation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.javascript.jscomp.Instrumentation.class, com.google.javascript.jscomp.Instrumentation.Builder.class); } // Construct using com.google.javascript.jscomp.Instrumentation.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(); reportDefined_ = ""; bitField0_ = (bitField0_ & ~0x00000001); reportCall_ = ""; bitField0_ = (bitField0_ & ~0x00000002); reportExit_ = ""; bitField0_ = (bitField0_ & ~0x00000004); declarationToRemove_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); init_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); appNameSetter_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.javascript.jscomp.InstrumentationTemplate.internal_static_jscomp_Instrumentation_descriptor; } public com.google.javascript.jscomp.Instrumentation getDefaultInstanceForType() { return com.google.javascript.jscomp.Instrumentation.getDefaultInstance(); } public com.google.javascript.jscomp.Instrumentation build() { com.google.javascript.jscomp.Instrumentation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.javascript.jscomp.Instrumentation buildPartial() { com.google.javascript.jscomp.Instrumentation result = new com.google.javascript.jscomp.Instrumentation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.reportDefined_ = reportDefined_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.reportCall_ = reportCall_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.reportExit_ = reportExit_; if (((bitField0_ & 0x00000008) == 0x00000008)) { declarationToRemove_ = new com.google.protobuf.UnmodifiableLazyStringList( declarationToRemove_); bitField0_ = (bitField0_ & ~0x00000008); } result.declarationToRemove_ = declarationToRemove_; if (((bitField0_ & 0x00000010) == 0x00000010)) { init_ = new com.google.protobuf.UnmodifiableLazyStringList( init_); bitField0_ = (bitField0_ & ~0x00000010); } result.init_ = init_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000008; } result.appNameSetter_ = appNameSetter_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.javascript.jscomp.Instrumentation) { return mergeFrom((com.google.javascript.jscomp.Instrumentation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.javascript.jscomp.Instrumentation other) { if (other == com.google.javascript.jscomp.Instrumentation.getDefaultInstance()) return this; if (other.hasReportDefined()) { bitField0_ |= 0x00000001; reportDefined_ = other.reportDefined_; onChanged(); } if (other.hasReportCall()) { bitField0_ |= 0x00000002; reportCall_ = other.reportCall_; onChanged(); } if (other.hasReportExit()) { bitField0_ |= 0x00000004; reportExit_ = other.reportExit_; onChanged(); } if (!other.declarationToRemove_.isEmpty()) { if (declarationToRemove_.isEmpty()) { declarationToRemove_ = other.declarationToRemove_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDeclarationToRemoveIsMutable(); declarationToRemove_.addAll(other.declarationToRemove_); } onChanged(); } if (!other.init_.isEmpty()) { if (init_.isEmpty()) { init_ = other.init_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureInitIsMutable(); init_.addAll(other.init_); } onChanged(); } if (other.hasAppNameSetter()) { bitField0_ |= 0x00000020; appNameSetter_ = other.appNameSetter_; 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 { com.google.javascript.jscomp.Instrumentation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.javascript.jscomp.Instrumentation) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string report_defined = 1; private java.lang.Object reportDefined_ = ""; /** * optional string report_defined = 1; * *
     * name of function(ID = <numeric function id>);
     * used to inform the harness about the contents of a module
     * 
*/ public boolean hasReportDefined() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string report_defined = 1; * *
     * name of function(ID = <numeric function id>);
     * used to inform the harness about the contents of a module
     * 
*/ public java.lang.String getReportDefined() { java.lang.Object ref = reportDefined_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); reportDefined_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string report_defined = 1; * *
     * name of function(ID = <numeric function id>);
     * used to inform the harness about the contents of a module
     * 
*/ public com.google.protobuf.ByteString getReportDefinedBytes() { java.lang.Object ref = reportDefined_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reportDefined_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string report_defined = 1; * *
     * name of function(ID = <numeric function id>);
     * used to inform the harness about the contents of a module
     * 
*/ public Builder setReportDefined( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; reportDefined_ = value; onChanged(); return this; } /** * optional string report_defined = 1; * *
     * name of function(ID = <numeric function id>);
     * used to inform the harness about the contents of a module
     * 
*/ public Builder clearReportDefined() { bitField0_ = (bitField0_ & ~0x00000001); reportDefined_ = getDefaultInstance().getReportDefined(); onChanged(); return this; } /** * optional string report_defined = 1; * *
     * name of function(ID = <numeric function id>);
     * used to inform the harness about the contents of a module
     * 
*/ public Builder setReportDefinedBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; reportDefined_ = value; onChanged(); return this; } // optional string report_call = 2; private java.lang.Object reportCall_ = ""; /** * optional string report_call = 2; * *
     * name of function(ID = <numeric function id>);
     * used to inform the harness about a function call
     * 
*/ public boolean hasReportCall() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string report_call = 2; * *
     * name of function(ID = <numeric function id>);
     * used to inform the harness about a function call
     * 
*/ public java.lang.String getReportCall() { java.lang.Object ref = reportCall_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); reportCall_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string report_call = 2; * *
     * name of function(ID = <numeric function id>);
     * used to inform the harness about a function call
     * 
*/ public com.google.protobuf.ByteString getReportCallBytes() { java.lang.Object ref = reportCall_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reportCall_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string report_call = 2; * *
     * name of function(ID = <numeric function id>);
     * used to inform the harness about a function call
     * 
*/ public Builder setReportCall( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; reportCall_ = value; onChanged(); return this; } /** * optional string report_call = 2; * *
     * name of function(ID = <numeric function id>);
     * used to inform the harness about a function call
     * 
*/ public Builder clearReportCall() { bitField0_ = (bitField0_ & ~0x00000002); reportCall_ = getDefaultInstance().getReportCall(); onChanged(); return this; } /** * optional string report_call = 2; * *
     * name of function(ID = <numeric function id>);
     * used to inform the harness about a function call
     * 
*/ public Builder setReportCallBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; reportCall_ = value; onChanged(); return this; } // optional string report_exit = 6; private java.lang.Object reportExit_ = ""; /** * optional string report_exit = 6; * *
     * name of function(ID = <numeric function id>, VAL = <return value>);
     * used to inform the harness about a function exit.  Must return
     * its second argument.
     *
     * @return VAL
     * 
*/ public boolean hasReportExit() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string report_exit = 6; * *
     * name of function(ID = <numeric function id>, VAL = <return value>);
     * used to inform the harness about a function exit.  Must return
     * its second argument.
     *
     * @return VAL
     * 
*/ public java.lang.String getReportExit() { java.lang.Object ref = reportExit_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); reportExit_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string report_exit = 6; * *
     * name of function(ID = <numeric function id>, VAL = <return value>);
     * used to inform the harness about a function exit.  Must return
     * its second argument.
     *
     * @return VAL
     * 
*/ public com.google.protobuf.ByteString getReportExitBytes() { java.lang.Object ref = reportExit_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reportExit_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string report_exit = 6; * *
     * name of function(ID = <numeric function id>, VAL = <return value>);
     * used to inform the harness about a function exit.  Must return
     * its second argument.
     *
     * @return VAL
     * 
*/ public Builder setReportExit( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reportExit_ = value; onChanged(); return this; } /** * optional string report_exit = 6; * *
     * name of function(ID = <numeric function id>, VAL = <return value>);
     * used to inform the harness about a function exit.  Must return
     * its second argument.
     *
     * @return VAL
     * 
*/ public Builder clearReportExit() { bitField0_ = (bitField0_ & ~0x00000004); reportExit_ = getDefaultInstance().getReportExit(); onChanged(); return this; } /** * optional string report_exit = 6; * *
     * name of function(ID = <numeric function id>, VAL = <return value>);
     * used to inform the harness about a function exit.  Must return
     * its second argument.
     *
     * @return VAL
     * 
*/ public Builder setReportExitBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reportExit_ = value; onChanged(); return this; } // repeated string declaration_to_remove = 3; private com.google.protobuf.LazyStringList declarationToRemove_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDeclarationToRemoveIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { declarationToRemove_ = new com.google.protobuf.LazyStringArrayList(declarationToRemove_); bitField0_ |= 0x00000008; } } /** * repeated string declaration_to_remove = 3; * *
     * List of variable declarations in the application's source code
     * that should be replaced by variables with the same name that are
     * part of the instrumentation harness.  The presence of these
     * declarations in the original code allows debug UIs that access
     * these variables to compile when the instrumentation pass is
     * disabled.
     * 
*/ public java.util.List getDeclarationToRemoveList() { return java.util.Collections.unmodifiableList(declarationToRemove_); } /** * repeated string declaration_to_remove = 3; * *
     * List of variable declarations in the application's source code
     * that should be replaced by variables with the same name that are
     * part of the instrumentation harness.  The presence of these
     * declarations in the original code allows debug UIs that access
     * these variables to compile when the instrumentation pass is
     * disabled.
     * 
*/ public int getDeclarationToRemoveCount() { return declarationToRemove_.size(); } /** * repeated string declaration_to_remove = 3; * *
     * List of variable declarations in the application's source code
     * that should be replaced by variables with the same name that are
     * part of the instrumentation harness.  The presence of these
     * declarations in the original code allows debug UIs that access
     * these variables to compile when the instrumentation pass is
     * disabled.
     * 
*/ public java.lang.String getDeclarationToRemove(int index) { return declarationToRemove_.get(index); } /** * repeated string declaration_to_remove = 3; * *
     * List of variable declarations in the application's source code
     * that should be replaced by variables with the same name that are
     * part of the instrumentation harness.  The presence of these
     * declarations in the original code allows debug UIs that access
     * these variables to compile when the instrumentation pass is
     * disabled.
     * 
*/ public com.google.protobuf.ByteString getDeclarationToRemoveBytes(int index) { return declarationToRemove_.getByteString(index); } /** * repeated string declaration_to_remove = 3; * *
     * List of variable declarations in the application's source code
     * that should be replaced by variables with the same name that are
     * part of the instrumentation harness.  The presence of these
     * declarations in the original code allows debug UIs that access
     * these variables to compile when the instrumentation pass is
     * disabled.
     * 
*/ public Builder setDeclarationToRemove( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDeclarationToRemoveIsMutable(); declarationToRemove_.set(index, value); onChanged(); return this; } /** * repeated string declaration_to_remove = 3; * *
     * List of variable declarations in the application's source code
     * that should be replaced by variables with the same name that are
     * part of the instrumentation harness.  The presence of these
     * declarations in the original code allows debug UIs that access
     * these variables to compile when the instrumentation pass is
     * disabled.
     * 
*/ public Builder addDeclarationToRemove( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDeclarationToRemoveIsMutable(); declarationToRemove_.add(value); onChanged(); return this; } /** * repeated string declaration_to_remove = 3; * *
     * List of variable declarations in the application's source code
     * that should be replaced by variables with the same name that are
     * part of the instrumentation harness.  The presence of these
     * declarations in the original code allows debug UIs that access
     * these variables to compile when the instrumentation pass is
     * disabled.
     * 
*/ public Builder addAllDeclarationToRemove( java.lang.Iterable values) { ensureDeclarationToRemoveIsMutable(); super.addAll(values, declarationToRemove_); onChanged(); return this; } /** * repeated string declaration_to_remove = 3; * *
     * List of variable declarations in the application's source code
     * that should be replaced by variables with the same name that are
     * part of the instrumentation harness.  The presence of these
     * declarations in the original code allows debug UIs that access
     * these variables to compile when the instrumentation pass is
     * disabled.
     * 
*/ public Builder clearDeclarationToRemove() { declarationToRemove_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * repeated string declaration_to_remove = 3; * *
     * List of variable declarations in the application's source code
     * that should be replaced by variables with the same name that are
     * part of the instrumentation harness.  The presence of these
     * declarations in the original code allows debug UIs that access
     * these variables to compile when the instrumentation pass is
     * disabled.
     * 
*/ public Builder addDeclarationToRemoveBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDeclarationToRemoveIsMutable(); declarationToRemove_.add(value); onChanged(); return this; } // repeated string init = 4; private com.google.protobuf.LazyStringList init_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInitIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { init_ = new com.google.protobuf.LazyStringArrayList(init_); bitField0_ |= 0x00000010; } } /** * repeated string init = 4; * *
     * Definition of functions used to report module contents and
     * function calls.  Will be added to the start of the app's main
     * module.
     * 
*/ public java.util.List getInitList() { return java.util.Collections.unmodifiableList(init_); } /** * repeated string init = 4; * *
     * Definition of functions used to report module contents and
     * function calls.  Will be added to the start of the app's main
     * module.
     * 
*/ public int getInitCount() { return init_.size(); } /** * repeated string init = 4; * *
     * Definition of functions used to report module contents and
     * function calls.  Will be added to the start of the app's main
     * module.
     * 
*/ public java.lang.String getInit(int index) { return init_.get(index); } /** * repeated string init = 4; * *
     * Definition of functions used to report module contents and
     * function calls.  Will be added to the start of the app's main
     * module.
     * 
*/ public com.google.protobuf.ByteString getInitBytes(int index) { return init_.getByteString(index); } /** * repeated string init = 4; * *
     * Definition of functions used to report module contents and
     * function calls.  Will be added to the start of the app's main
     * module.
     * 
*/ public Builder setInit( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInitIsMutable(); init_.set(index, value); onChanged(); return this; } /** * repeated string init = 4; * *
     * Definition of functions used to report module contents and
     * function calls.  Will be added to the start of the app's main
     * module.
     * 
*/ public Builder addInit( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInitIsMutable(); init_.add(value); onChanged(); return this; } /** * repeated string init = 4; * *
     * Definition of functions used to report module contents and
     * function calls.  Will be added to the start of the app's main
     * module.
     * 
*/ public Builder addAllInit( java.lang.Iterable values) { ensureInitIsMutable(); super.addAll(values, init_); onChanged(); return this; } /** * repeated string init = 4; * *
     * Definition of functions used to report module contents and
     * function calls.  Will be added to the start of the app's main
     * module.
     * 
*/ public Builder clearInit() { init_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * repeated string init = 4; * *
     * Definition of functions used to report module contents and
     * function calls.  Will be added to the start of the app's main
     * module.
     * 
*/ public Builder addInitBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureInitIsMutable(); init_.add(value); onChanged(); return this; } // optional string app_name_setter = 5; private java.lang.Object appNameSetter_ = ""; /** * optional string app_name_setter = 5; * *
     * name of function(<string>);
     * used to inform the harness about the app name
     * 
*/ public boolean hasAppNameSetter() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string app_name_setter = 5; * *
     * name of function(<string>);
     * used to inform the harness about the app name
     * 
*/ public java.lang.String getAppNameSetter() { java.lang.Object ref = appNameSetter_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); appNameSetter_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string app_name_setter = 5; * *
     * name of function(<string>);
     * used to inform the harness about the app name
     * 
*/ public com.google.protobuf.ByteString getAppNameSetterBytes() { java.lang.Object ref = appNameSetter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appNameSetter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string app_name_setter = 5; * *
     * name of function(<string>);
     * used to inform the harness about the app name
     * 
*/ public Builder setAppNameSetter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; appNameSetter_ = value; onChanged(); return this; } /** * optional string app_name_setter = 5; * *
     * name of function(<string>);
     * used to inform the harness about the app name
     * 
*/ public Builder clearAppNameSetter() { bitField0_ = (bitField0_ & ~0x00000020); appNameSetter_ = getDefaultInstance().getAppNameSetter(); onChanged(); return this; } /** * optional string app_name_setter = 5; * *
     * name of function(<string>);
     * used to inform the harness about the app name
     * 
*/ public Builder setAppNameSetterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; appNameSetter_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:jscomp.Instrumentation) } static { defaultInstance = new Instrumentation(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:jscomp.Instrumentation) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy