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

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

There is a newer version: 9.0.8
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: conformance.proto

package com.google.javascript.jscomp;

/**
 * 
 * A container to describe code requirements
 * 
* * Protobuf type {@code jscomp.ConformanceConfig} */ public final class ConformanceConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:jscomp.ConformanceConfig) ConformanceConfigOrBuilder { // Use ConformanceConfig.newBuilder() to construct. private ConformanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConformanceConfig() { requirement_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConformanceConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { requirement_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } requirement_.add( input.readMessage(com.google.javascript.jscomp.Requirement.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { requirement_ = java.util.Collections.unmodifiableList(requirement_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.javascript.jscomp.Conformance.internal_static_jscomp_ConformanceConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.javascript.jscomp.Conformance.internal_static_jscomp_ConformanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.javascript.jscomp.ConformanceConfig.class, com.google.javascript.jscomp.ConformanceConfig.Builder.class); } public static final int REQUIREMENT_FIELD_NUMBER = 1; private java.util.List requirement_; /** * repeated .jscomp.Requirement requirement = 1; */ public java.util.List getRequirementList() { return requirement_; } /** * repeated .jscomp.Requirement requirement = 1; */ public java.util.List getRequirementOrBuilderList() { return requirement_; } /** * repeated .jscomp.Requirement requirement = 1; */ public int getRequirementCount() { return requirement_.size(); } /** * repeated .jscomp.Requirement requirement = 1; */ public com.google.javascript.jscomp.Requirement getRequirement(int index) { return requirement_.get(index); } /** * repeated .jscomp.Requirement requirement = 1; */ public com.google.javascript.jscomp.RequirementOrBuilder getRequirementOrBuilder( int index) { return requirement_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getRequirementCount(); i++) { if (!getRequirement(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requirement_.size(); i++) { output.writeMessage(1, requirement_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < requirement_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, requirement_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.javascript.jscomp.ConformanceConfig)) { return super.equals(obj); } com.google.javascript.jscomp.ConformanceConfig other = (com.google.javascript.jscomp.ConformanceConfig) obj; boolean result = true; result = result && getRequirementList() .equals(other.getRequirementList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getRequirementCount() > 0) { hash = (37 * hash) + REQUIREMENT_FIELD_NUMBER; hash = (53 * hash) + getRequirementList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.javascript.jscomp.ConformanceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.javascript.jscomp.ConformanceConfig 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.ConformanceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.javascript.jscomp.ConformanceConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.javascript.jscomp.ConformanceConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.javascript.jscomp.ConformanceConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.javascript.jscomp.ConformanceConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.javascript.jscomp.ConformanceConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.javascript.jscomp.ConformanceConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.javascript.jscomp.ConformanceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.javascript.jscomp.ConformanceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * A container to describe code requirements
   * 
* * Protobuf type {@code jscomp.ConformanceConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:jscomp.ConformanceConfig) com.google.javascript.jscomp.ConformanceConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.javascript.jscomp.Conformance.internal_static_jscomp_ConformanceConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.javascript.jscomp.Conformance.internal_static_jscomp_ConformanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.javascript.jscomp.ConformanceConfig.class, com.google.javascript.jscomp.ConformanceConfig.Builder.class); } // Construct using com.google.javascript.jscomp.ConformanceConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRequirementFieldBuilder(); } } public Builder clear() { super.clear(); if (requirementBuilder_ == null) { requirement_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { requirementBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.javascript.jscomp.Conformance.internal_static_jscomp_ConformanceConfig_descriptor; } public com.google.javascript.jscomp.ConformanceConfig getDefaultInstanceForType() { return com.google.javascript.jscomp.ConformanceConfig.getDefaultInstance(); } public com.google.javascript.jscomp.ConformanceConfig build() { com.google.javascript.jscomp.ConformanceConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.javascript.jscomp.ConformanceConfig buildPartial() { com.google.javascript.jscomp.ConformanceConfig result = new com.google.javascript.jscomp.ConformanceConfig(this); int from_bitField0_ = bitField0_; if (requirementBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { requirement_ = java.util.Collections.unmodifiableList(requirement_); bitField0_ = (bitField0_ & ~0x00000001); } result.requirement_ = requirement_; } else { result.requirement_ = requirementBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.javascript.jscomp.ConformanceConfig) { return mergeFrom((com.google.javascript.jscomp.ConformanceConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.javascript.jscomp.ConformanceConfig other) { if (other == com.google.javascript.jscomp.ConformanceConfig.getDefaultInstance()) return this; if (requirementBuilder_ == null) { if (!other.requirement_.isEmpty()) { if (requirement_.isEmpty()) { requirement_ = other.requirement_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRequirementIsMutable(); requirement_.addAll(other.requirement_); } onChanged(); } } else { if (!other.requirement_.isEmpty()) { if (requirementBuilder_.isEmpty()) { requirementBuilder_.dispose(); requirementBuilder_ = null; requirement_ = other.requirement_; bitField0_ = (bitField0_ & ~0x00000001); requirementBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequirementFieldBuilder() : null; } else { requirementBuilder_.addAllMessages(other.requirement_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getRequirementCount(); i++) { if (!getRequirement(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.javascript.jscomp.ConformanceConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.javascript.jscomp.ConformanceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List requirement_ = java.util.Collections.emptyList(); private void ensureRequirementIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { requirement_ = new java.util.ArrayList(requirement_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.javascript.jscomp.Requirement, com.google.javascript.jscomp.Requirement.Builder, com.google.javascript.jscomp.RequirementOrBuilder> requirementBuilder_; /** * repeated .jscomp.Requirement requirement = 1; */ public java.util.List getRequirementList() { if (requirementBuilder_ == null) { return java.util.Collections.unmodifiableList(requirement_); } else { return requirementBuilder_.getMessageList(); } } /** * repeated .jscomp.Requirement requirement = 1; */ public int getRequirementCount() { if (requirementBuilder_ == null) { return requirement_.size(); } else { return requirementBuilder_.getCount(); } } /** * repeated .jscomp.Requirement requirement = 1; */ public com.google.javascript.jscomp.Requirement getRequirement(int index) { if (requirementBuilder_ == null) { return requirement_.get(index); } else { return requirementBuilder_.getMessage(index); } } /** * repeated .jscomp.Requirement requirement = 1; */ public Builder setRequirement( int index, com.google.javascript.jscomp.Requirement value) { if (requirementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequirementIsMutable(); requirement_.set(index, value); onChanged(); } else { requirementBuilder_.setMessage(index, value); } return this; } /** * repeated .jscomp.Requirement requirement = 1; */ public Builder setRequirement( int index, com.google.javascript.jscomp.Requirement.Builder builderForValue) { if (requirementBuilder_ == null) { ensureRequirementIsMutable(); requirement_.set(index, builderForValue.build()); onChanged(); } else { requirementBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .jscomp.Requirement requirement = 1; */ public Builder addRequirement(com.google.javascript.jscomp.Requirement value) { if (requirementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequirementIsMutable(); requirement_.add(value); onChanged(); } else { requirementBuilder_.addMessage(value); } return this; } /** * repeated .jscomp.Requirement requirement = 1; */ public Builder addRequirement( int index, com.google.javascript.jscomp.Requirement value) { if (requirementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequirementIsMutable(); requirement_.add(index, value); onChanged(); } else { requirementBuilder_.addMessage(index, value); } return this; } /** * repeated .jscomp.Requirement requirement = 1; */ public Builder addRequirement( com.google.javascript.jscomp.Requirement.Builder builderForValue) { if (requirementBuilder_ == null) { ensureRequirementIsMutable(); requirement_.add(builderForValue.build()); onChanged(); } else { requirementBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .jscomp.Requirement requirement = 1; */ public Builder addRequirement( int index, com.google.javascript.jscomp.Requirement.Builder builderForValue) { if (requirementBuilder_ == null) { ensureRequirementIsMutable(); requirement_.add(index, builderForValue.build()); onChanged(); } else { requirementBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .jscomp.Requirement requirement = 1; */ public Builder addAllRequirement( java.lang.Iterable values) { if (requirementBuilder_ == null) { ensureRequirementIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requirement_); onChanged(); } else { requirementBuilder_.addAllMessages(values); } return this; } /** * repeated .jscomp.Requirement requirement = 1; */ public Builder clearRequirement() { if (requirementBuilder_ == null) { requirement_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { requirementBuilder_.clear(); } return this; } /** * repeated .jscomp.Requirement requirement = 1; */ public Builder removeRequirement(int index) { if (requirementBuilder_ == null) { ensureRequirementIsMutable(); requirement_.remove(index); onChanged(); } else { requirementBuilder_.remove(index); } return this; } /** * repeated .jscomp.Requirement requirement = 1; */ public com.google.javascript.jscomp.Requirement.Builder getRequirementBuilder( int index) { return getRequirementFieldBuilder().getBuilder(index); } /** * repeated .jscomp.Requirement requirement = 1; */ public com.google.javascript.jscomp.RequirementOrBuilder getRequirementOrBuilder( int index) { if (requirementBuilder_ == null) { return requirement_.get(index); } else { return requirementBuilder_.getMessageOrBuilder(index); } } /** * repeated .jscomp.Requirement requirement = 1; */ public java.util.List getRequirementOrBuilderList() { if (requirementBuilder_ != null) { return requirementBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(requirement_); } } /** * repeated .jscomp.Requirement requirement = 1; */ public com.google.javascript.jscomp.Requirement.Builder addRequirementBuilder() { return getRequirementFieldBuilder().addBuilder( com.google.javascript.jscomp.Requirement.getDefaultInstance()); } /** * repeated .jscomp.Requirement requirement = 1; */ public com.google.javascript.jscomp.Requirement.Builder addRequirementBuilder( int index) { return getRequirementFieldBuilder().addBuilder( index, com.google.javascript.jscomp.Requirement.getDefaultInstance()); } /** * repeated .jscomp.Requirement requirement = 1; */ public java.util.List getRequirementBuilderList() { return getRequirementFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.javascript.jscomp.Requirement, com.google.javascript.jscomp.Requirement.Builder, com.google.javascript.jscomp.RequirementOrBuilder> getRequirementFieldBuilder() { if (requirementBuilder_ == null) { requirementBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.javascript.jscomp.Requirement, com.google.javascript.jscomp.Requirement.Builder, com.google.javascript.jscomp.RequirementOrBuilder>( requirement_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); requirement_ = null; } return requirementBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:jscomp.ConformanceConfig) } // @@protoc_insertion_point(class_scope:jscomp.ConformanceConfig) private static final com.google.javascript.jscomp.ConformanceConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.javascript.jscomp.ConformanceConfig(); } public static com.google.javascript.jscomp.ConformanceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ConformanceConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConformanceConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.javascript.jscomp.ConformanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy