// Generated by the protocol buffer compiler. DO NOT EDIT! package com.google.javascript.jscomp; public final class Instrumentation extends com.google.protobuf.GeneratedMessage implements InstrumentationOrBuilder { // Use Instrumentation.newBuilder() to construct. private Instrumentation(Builder builder) { super(builder); } private Instrumentation(boolean noInit) {} private static final Instrumentation defaultInstance; public static Instrumentation getDefaultInstance() { return defaultInstance; } public Instrumentation getDefaultInstanceForType() { return defaultInstance; } 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; } private int bitField0_; // optional string report_defined = 1; public static final int REPORT_DEFINED_FIELD_NUMBER = 1; private java.lang.Object reportDefined_; public boolean hasReportDefined() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getReportDefined() { java.lang.Object ref = reportDefined_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { reportDefined_ = s; } return s; } } private com.google.protobuf.ByteString getReportDefinedBytes() { java.lang.Object ref = reportDefined_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((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_; public boolean hasReportCall() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getReportCall() { java.lang.Object ref = reportCall_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { reportCall_ = s; } return s; } } private com.google.protobuf.ByteString getReportCallBytes() { java.lang.Object ref = reportCall_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((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_; public boolean hasReportExit() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getReportExit() { java.lang.Object ref = reportExit_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { reportExit_ = s; } return s; } } private com.google.protobuf.ByteString getReportExitBytes() { java.lang.Object ref = reportExit_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((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_; public java.util.List getDeclarationToRemoveList() { return declarationToRemove_; } public int getDeclarationToRemoveCount() { return declarationToRemove_.size(); } public String getDeclarationToRemove(int index) { return declarationToRemove_.get(index); } // repeated string init = 4; public static final int INIT_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList init_; public java.util.List getInitList() { return init_; } public int getInitCount() { return init_.size(); } public String getInit(int index) { return init_.get(index); } // optional string app_name_setter = 5; public static final int APP_NAME_SETTER_FIELD_NUMBER = 5; private java.lang.Object appNameSetter_; public boolean hasAppNameSetter() { return ((bitField0_ & 0x00000008) == 0x00000008); } public String getAppNameSetter() { java.lang.Object ref = appNameSetter_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { appNameSetter_ = s; } return s; } } private com.google.protobuf.ByteString getAppNameSetterBytes() { java.lang.Object ref = appNameSetter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((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 newBuilder().mergeFrom(data).buildParsed(); } public static com.google.javascript.jscomp.Instrumentation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.google.javascript.jscomp.Instrumentation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.google.javascript.jscomp.Instrumentation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.google.javascript.jscomp.Instrumentation parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.google.javascript.jscomp.Instrumentation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.google.javascript.jscomp.Instrumentation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.google.javascript.jscomp.Instrumentation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.google.javascript.jscomp.Instrumentation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.google.javascript.jscomp.Instrumentation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } 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; } 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; } // Construct using com.google.javascript.jscomp.Instrumentation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(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.Instrumentation.getDescriptor(); } 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; } private com.google.javascript.jscomp.Instrumentation buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.google.javascript.jscomp.Instrumentation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } 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()) { setReportDefined(other.getReportDefined()); } if (other.hasReportCall()) { setReportCall(other.getReportCall()); } if (other.hasReportExit()) { setReportExit(other.getReportExit()); } 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()) { setAppNameSetter(other.getAppNameSetter()); } 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.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; reportDefined_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; reportCall_ = input.readBytes(); break; } case 26: { ensureDeclarationToRemoveIsMutable(); declarationToRemove_.add(input.readBytes()); break; } case 34: { ensureInitIsMutable(); init_.add(input.readBytes()); break; } case 42: { bitField0_ |= 0x00000020; appNameSetter_ = input.readBytes(); break; } case 50: { bitField0_ |= 0x00000004; reportExit_ = input.readBytes(); break; } } } } private int bitField0_; // optional string report_defined = 1; private java.lang.Object reportDefined_ = ""; public boolean hasReportDefined() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getReportDefined() { java.lang.Object ref = reportDefined_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); reportDefined_ = s; return s; } else { return (String) ref; } } public Builder setReportDefined(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; reportDefined_ = value; onChanged(); return this; } public Builder clearReportDefined() { bitField0_ = (bitField0_ & ~0x00000001); reportDefined_ = getDefaultInstance().getReportDefined(); onChanged(); return this; } void setReportDefined(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; reportDefined_ = value; onChanged(); } // optional string report_call = 2; private java.lang.Object reportCall_ = ""; public boolean hasReportCall() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getReportCall() { java.lang.Object ref = reportCall_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); reportCall_ = s; return s; } else { return (String) ref; } } public Builder setReportCall(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; reportCall_ = value; onChanged(); return this; } public Builder clearReportCall() { bitField0_ = (bitField0_ & ~0x00000002); reportCall_ = getDefaultInstance().getReportCall(); onChanged(); return this; } void setReportCall(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; reportCall_ = value; onChanged(); } // optional string report_exit = 6; private java.lang.Object reportExit_ = ""; public boolean hasReportExit() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getReportExit() { java.lang.Object ref = reportExit_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); reportExit_ = s; return s; } else { return (String) ref; } } public Builder setReportExit(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reportExit_ = value; onChanged(); return this; } public Builder clearReportExit() { bitField0_ = (bitField0_ & ~0x00000004); reportExit_ = getDefaultInstance().getReportExit(); onChanged(); return this; } void setReportExit(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000004; reportExit_ = value; onChanged(); } // 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; } } public java.util.List getDeclarationToRemoveList() { return java.util.Collections.unmodifiableList(declarationToRemove_); } public int getDeclarationToRemoveCount() { return declarationToRemove_.size(); } public String getDeclarationToRemove(int index) { return declarationToRemove_.get(index); } public Builder setDeclarationToRemove( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureDeclarationToRemoveIsMutable(); declarationToRemove_.set(index, value); onChanged(); return this; } public Builder addDeclarationToRemove(String value) { if (value == null) { throw new NullPointerException(); } ensureDeclarationToRemoveIsMutable(); declarationToRemove_.add(value); onChanged(); return this; } public Builder addAllDeclarationToRemove( java.lang.Iterable values) { ensureDeclarationToRemoveIsMutable(); super.addAll(values, declarationToRemove_); onChanged(); return this; } public Builder clearDeclarationToRemove() { declarationToRemove_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } void addDeclarationToRemove(com.google.protobuf.ByteString value) { ensureDeclarationToRemoveIsMutable(); declarationToRemove_.add(value); onChanged(); } // 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; } } public java.util.List getInitList() { return java.util.Collections.unmodifiableList(init_); } public int getInitCount() { return init_.size(); } public String getInit(int index) { return init_.get(index); } public Builder setInit( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureInitIsMutable(); init_.set(index, value); onChanged(); return this; } public Builder addInit(String value) { if (value == null) { throw new NullPointerException(); } ensureInitIsMutable(); init_.add(value); onChanged(); return this; } public Builder addAllInit( java.lang.Iterable values) { ensureInitIsMutable(); super.addAll(values, init_); onChanged(); return this; } public Builder clearInit() { init_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } void addInit(com.google.protobuf.ByteString value) { ensureInitIsMutable(); init_.add(value); onChanged(); } // optional string app_name_setter = 5; private java.lang.Object appNameSetter_ = ""; public boolean hasAppNameSetter() { return ((bitField0_ & 0x00000020) == 0x00000020); } public String getAppNameSetter() { java.lang.Object ref = appNameSetter_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); appNameSetter_ = s; return s; } else { return (String) ref; } } public Builder setAppNameSetter(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; appNameSetter_ = value; onChanged(); return this; } public Builder clearAppNameSetter() { bitField0_ = (bitField0_ & ~0x00000020); appNameSetter_ = getDefaultInstance().getAppNameSetter(); onChanged(); return this; } void setAppNameSetter(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000020; appNameSetter_ = value; onChanged(); } // @@protoc_insertion_point(builder_scope:jscomp.Instrumentation) } static { defaultInstance = new Instrumentation(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:jscomp.Instrumentation) }