/* * Copyright 2013 Cloudera Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: src/test/resources/test-protos/protos.proto package org.kitesdk.morphline.protobuf; public final class Protos { private Protos() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface RepeatedLongsOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated sint64 longVal = 1; /** * <code>repeated sint64 longVal = 1;</code> */ java.util.List<java.lang.Long> getLongValList(); /** * <code>repeated sint64 longVal = 1;</code> */ int getLongValCount(); /** * <code>repeated sint64 longVal = 1;</code> */ long getLongVal(int index); } /** * Protobuf type {@code RepeatedLongs} */ public static final class RepeatedLongs extends com.google.protobuf.GeneratedMessage implements RepeatedLongsOrBuilder { // Use RepeatedLongs.newBuilder() to construct. private RepeatedLongs(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RepeatedLongs(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RepeatedLongs defaultInstance; public static RepeatedLongs getDefaultInstance() { return defaultInstance; } public RepeatedLongs getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RepeatedLongs( 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 8: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { longVal_ = new java.util.ArrayList<java.lang.Long>(); mutable_bitField0_ |= 0x00000001; } longVal_.add(input.readSInt64()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { longVal_ = new java.util.ArrayList<java.lang.Long>(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { longVal_.add(input.readSInt64()); } input.popLimit(limit); 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_ & 0x00000001) == 0x00000001)) { longVal_ = java.util.Collections.unmodifiableList(longVal_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.kitesdk.morphline.protobuf.Protos.internal_static_RepeatedLongs_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.kitesdk.morphline.protobuf.Protos.internal_static_RepeatedLongs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.class, org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.Builder.class); } public static com.google.protobuf.Parser<RepeatedLongs> PARSER = new com.google.protobuf.AbstractParser<RepeatedLongs>() { public RepeatedLongs parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RepeatedLongs(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RepeatedLongs> getParserForType() { return PARSER; } // repeated sint64 longVal = 1; public static final int LONGVAL_FIELD_NUMBER = 1; private java.util.List<java.lang.Long> longVal_; /** * <code>repeated sint64 longVal = 1;</code> */ public java.util.List<java.lang.Long> getLongValList() { return longVal_; } /** * <code>repeated sint64 longVal = 1;</code> */ public int getLongValCount() { return longVal_.size(); } /** * <code>repeated sint64 longVal = 1;</code> */ public long getLongVal(int index) { return longVal_.get(index); } private void initFields() { longVal_ = java.util.Collections.emptyList(); } 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(); for (int i = 0; i < longVal_.size(); i++) { output.writeSInt64(1, longVal_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < longVal_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeSInt64SizeNoTag(longVal_.get(i)); } size += dataSize; size += 1 * getLongValList().size(); } 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.kitesdk.morphline.protobuf.Protos.RepeatedLongs)) { return super.equals(obj); } org.kitesdk.morphline.protobuf.Protos.RepeatedLongs other = (org.kitesdk.morphline.protobuf.Protos.RepeatedLongs) obj; boolean result = true; result = result && getLongValList() .equals(other.getLongValList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getLongValCount() > 0) { hash = (37 * hash) + LONGVAL_FIELD_NUMBER; hash = (53 * hash) + getLongValList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.kitesdk.morphline.protobuf.Protos.RepeatedLongs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.kitesdk.morphline.protobuf.Protos.RepeatedLongs parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.RepeatedLongs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.kitesdk.morphline.protobuf.Protos.RepeatedLongs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.RepeatedLongs parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.kitesdk.morphline.protobuf.Protos.RepeatedLongs parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.RepeatedLongs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.kitesdk.morphline.protobuf.Protos.RepeatedLongs parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.RepeatedLongs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.kitesdk.morphline.protobuf.Protos.RepeatedLongs 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(org.kitesdk.morphline.protobuf.Protos.RepeatedLongs 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 RepeatedLongs} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.kitesdk.morphline.protobuf.Protos.RepeatedLongsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.kitesdk.morphline.protobuf.Protos.internal_static_RepeatedLongs_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.kitesdk.morphline.protobuf.Protos.internal_static_RepeatedLongs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.class, org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.Builder.class); } // Construct using org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.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(); longVal_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.kitesdk.morphline.protobuf.Protos.internal_static_RepeatedLongs_descriptor; } public org.kitesdk.morphline.protobuf.Protos.RepeatedLongs getDefaultInstanceForType() { return org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.getDefaultInstance(); } public org.kitesdk.morphline.protobuf.Protos.RepeatedLongs build() { org.kitesdk.morphline.protobuf.Protos.RepeatedLongs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.kitesdk.morphline.protobuf.Protos.RepeatedLongs buildPartial() { org.kitesdk.morphline.protobuf.Protos.RepeatedLongs result = new org.kitesdk.morphline.protobuf.Protos.RepeatedLongs(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { longVal_ = java.util.Collections.unmodifiableList(longVal_); bitField0_ = (bitField0_ & ~0x00000001); } result.longVal_ = longVal_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.kitesdk.morphline.protobuf.Protos.RepeatedLongs) { return mergeFrom((org.kitesdk.morphline.protobuf.Protos.RepeatedLongs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.kitesdk.morphline.protobuf.Protos.RepeatedLongs other) { if (other == org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.getDefaultInstance()) return this; if (!other.longVal_.isEmpty()) { if (longVal_.isEmpty()) { longVal_ = other.longVal_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLongValIsMutable(); longVal_.addAll(other.longVal_); } 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 { org.kitesdk.morphline.protobuf.Protos.RepeatedLongs parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.kitesdk.morphline.protobuf.Protos.RepeatedLongs) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated sint64 longVal = 1; private java.util.List<java.lang.Long> longVal_ = java.util.Collections.emptyList(); private void ensureLongValIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { longVal_ = new java.util.ArrayList<java.lang.Long>(longVal_); bitField0_ |= 0x00000001; } } /** * <code>repeated sint64 longVal = 1;</code> */ public java.util.List<java.lang.Long> getLongValList() { return java.util.Collections.unmodifiableList(longVal_); } /** * <code>repeated sint64 longVal = 1;</code> */ public int getLongValCount() { return longVal_.size(); } /** * <code>repeated sint64 longVal = 1;</code> */ public long getLongVal(int index) { return longVal_.get(index); } /** * <code>repeated sint64 longVal = 1;</code> */ public Builder setLongVal( int index, long value) { ensureLongValIsMutable(); longVal_.set(index, value); onChanged(); return this; } /** * <code>repeated sint64 longVal = 1;</code> */ public Builder addLongVal(long value) { ensureLongValIsMutable(); longVal_.add(value); onChanged(); return this; } /** * <code>repeated sint64 longVal = 1;</code> */ public Builder addAllLongVal( java.lang.Iterable<? extends java.lang.Long> values) { ensureLongValIsMutable(); super.addAll(values, longVal_); onChanged(); return this; } /** * <code>repeated sint64 longVal = 1;</code> */ public Builder clearLongVal() { longVal_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RepeatedLongs) } static { defaultInstance = new RepeatedLongs(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RepeatedLongs) } public interface ComplexOrBuilder extends com.google.protobuf.MessageOrBuilder { // required sint32 docId = 1; /** * <code>required sint32 docId = 1;</code> */ boolean hasDocId(); /** * <code>required sint32 docId = 1;</code> */ int getDocId(); // required .Complex.Name name = 2; /** * <code>required .Complex.Name name = 2;</code> */ boolean hasName(); /** * <code>required .Complex.Name name = 2;</code> */ org.kitesdk.morphline.protobuf.Protos.Complex.Name getName(); /** * <code>required .Complex.Name name = 2;</code> */ org.kitesdk.morphline.protobuf.Protos.Complex.NameOrBuilder getNameOrBuilder(); // repeated .Complex.Link link = 3; /** * <code>repeated .Complex.Link link = 3;</code> */ java.util.List<org.kitesdk.morphline.protobuf.Protos.Complex.Link> getLinkList(); /** * <code>repeated .Complex.Link link = 3;</code> */ org.kitesdk.morphline.protobuf.Protos.Complex.Link getLink(int index); /** * <code>repeated .Complex.Link link = 3;</code> */ int getLinkCount(); /** * <code>repeated .Complex.Link link = 3;</code> */ java.util.List<? extends org.kitesdk.morphline.protobuf.Protos.Complex.LinkOrBuilder> getLinkOrBuilderList(); /** * <code>repeated .Complex.Link link = 3;</code> */ org.kitesdk.morphline.protobuf.Protos.Complex.LinkOrBuilder getLinkOrBuilder( int index); // required .Complex.Type type = 4; /** * <code>required .Complex.Type type = 4;</code> */ boolean hasType(); /** * <code>required .Complex.Type type = 4;</code> */ org.kitesdk.morphline.protobuf.Protos.Complex.Type getType(); } /** * Protobuf type {@code Complex} */ public static final class Complex extends com.google.protobuf.GeneratedMessage implements ComplexOrBuilder { // Use Complex.newBuilder() to construct. private Complex(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Complex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Complex defaultInstance; public static Complex getDefaultInstance() { return defaultInstance; } public Complex getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Complex( 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 8: { bitField0_ |= 0x00000001; docId_ = input.readSInt32(); break; } case 18: { org.kitesdk.morphline.protobuf.Protos.Complex.Name.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = name_.toBuilder(); } name_ = input.readMessage(org.kitesdk.morphline.protobuf.Protos.Complex.Name.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(name_); name_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { link_ = new java.util.ArrayList<org.kitesdk.morphline.protobuf.Protos.Complex.Link>(); mutable_bitField0_ |= 0x00000004; } link_.add(input.readMessage(org.kitesdk.morphline.protobuf.Protos.Complex.Link.PARSER, extensionRegistry)); break; } case 32: { int rawValue = input.readEnum(); org.kitesdk.morphline.protobuf.Protos.Complex.Type value = org.kitesdk.morphline.protobuf.Protos.Complex.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000004; type_ = value; } 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_ & 0x00000004) == 0x00000004)) { link_ = java.util.Collections.unmodifiableList(link_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_fieldAccessorTable .ensureFieldAccessorsInitialized( org.kitesdk.morphline.protobuf.Protos.Complex.class, org.kitesdk.morphline.protobuf.Protos.Complex.Builder.class); } public static com.google.protobuf.Parser<Complex> PARSER = new com.google.protobuf.AbstractParser<Complex>() { public Complex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Complex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<Complex> getParserForType() { return PARSER; } /** * Protobuf enum {@code Complex.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * <code>QUERY = 1;</code> */ QUERY(0, 1), /** * <code>UPDATE = 2;</code> */ UPDATE(1, 2), ; /** * <code>QUERY = 1;</code> */ public static final int QUERY_VALUE = 1; /** * <code>UPDATE = 2;</code> */ public static final int UPDATE_VALUE = 2; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 1: return QUERY; case 2: return UPDATE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Type>() { public Type findValueByNumber(int number) { return Type.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.kitesdk.morphline.protobuf.Protos.Complex.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Type(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:Complex.Type) } public interface NameOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional uint32 intVal = 1; /** * <code>optional uint32 intVal = 1;</code> */ boolean hasIntVal(); /** * <code>optional uint32 intVal = 1;</code> */ int getIntVal(); // optional uint64 longVal = 2; /** * <code>optional uint64 longVal = 2;</code> */ boolean hasLongVal(); /** * <code>optional uint64 longVal = 2;</code> */ long getLongVal(); // optional double doubleVal = 3; /** * <code>optional double doubleVal = 3;</code> */ boolean hasDoubleVal(); /** * <code>optional double doubleVal = 3;</code> */ double getDoubleVal(); // optional float floatVal = 4; /** * <code>optional float floatVal = 4;</code> */ boolean hasFloatVal(); /** * <code>optional float floatVal = 4;</code> */ float getFloatVal(); // repeated string stringVal = 5; /** * <code>repeated string stringVal = 5;</code> */ java.util.List<java.lang.String> getStringValList(); /** * <code>repeated string stringVal = 5;</code> */ int getStringValCount(); /** * <code>repeated string stringVal = 5;</code> */ java.lang.String getStringVal(int index); /** * <code>repeated string stringVal = 5;</code> */ com.google.protobuf.ByteString getStringValBytes(int index); // optional .RepeatedLongs repeatedLong = 6; /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ boolean hasRepeatedLong(); /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ org.kitesdk.morphline.protobuf.Protos.RepeatedLongs getRepeatedLong(); /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ org.kitesdk.morphline.protobuf.Protos.RepeatedLongsOrBuilder getRepeatedLongOrBuilder(); } /** * Protobuf type {@code Complex.Name} */ public static final class Name extends com.google.protobuf.GeneratedMessage implements NameOrBuilder { // Use Name.newBuilder() to construct. private Name(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Name(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Name defaultInstance; public static Name getDefaultInstance() { return defaultInstance; } public Name getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Name( 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 8: { bitField0_ |= 0x00000001; intVal_ = input.readUInt32(); break; } case 16: { bitField0_ |= 0x00000002; longVal_ = input.readUInt64(); break; } case 25: { bitField0_ |= 0x00000004; doubleVal_ = input.readDouble(); break; } case 37: { bitField0_ |= 0x00000008; floatVal_ = input.readFloat(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { stringVal_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } stringVal_.add(input.readBytes()); break; } case 50: { org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = repeatedLong_.toBuilder(); } repeatedLong_ = input.readMessage(org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(repeatedLong_); repeatedLong_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; 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_ & 0x00000010) == 0x00000010)) { stringVal_ = new com.google.protobuf.UnmodifiableLazyStringList(stringVal_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_Name_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_Name_fieldAccessorTable .ensureFieldAccessorsInitialized( org.kitesdk.morphline.protobuf.Protos.Complex.Name.class, org.kitesdk.morphline.protobuf.Protos.Complex.Name.Builder.class); } public static com.google.protobuf.Parser<Name> PARSER = new com.google.protobuf.AbstractParser<Name>() { public Name parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Name(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<Name> getParserForType() { return PARSER; } private int bitField0_; // optional uint32 intVal = 1; public static final int INTVAL_FIELD_NUMBER = 1; private int intVal_; /** * <code>optional uint32 intVal = 1;</code> */ public boolean hasIntVal() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 intVal = 1;</code> */ public int getIntVal() { return intVal_; } // optional uint64 longVal = 2; public static final int LONGVAL_FIELD_NUMBER = 2; private long longVal_; /** * <code>optional uint64 longVal = 2;</code> */ public boolean hasLongVal() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint64 longVal = 2;</code> */ public long getLongVal() { return longVal_; } // optional double doubleVal = 3; public static final int DOUBLEVAL_FIELD_NUMBER = 3; private double doubleVal_; /** * <code>optional double doubleVal = 3;</code> */ public boolean hasDoubleVal() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional double doubleVal = 3;</code> */ public double getDoubleVal() { return doubleVal_; } // optional float floatVal = 4; public static final int FLOATVAL_FIELD_NUMBER = 4; private float floatVal_; /** * <code>optional float floatVal = 4;</code> */ public boolean hasFloatVal() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional float floatVal = 4;</code> */ public float getFloatVal() { return floatVal_; } // repeated string stringVal = 5; public static final int STRINGVAL_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList stringVal_; /** * <code>repeated string stringVal = 5;</code> */ public java.util.List<java.lang.String> getStringValList() { return stringVal_; } /** * <code>repeated string stringVal = 5;</code> */ public int getStringValCount() { return stringVal_.size(); } /** * <code>repeated string stringVal = 5;</code> */ public java.lang.String getStringVal(int index) { return stringVal_.get(index); } /** * <code>repeated string stringVal = 5;</code> */ public com.google.protobuf.ByteString getStringValBytes(int index) { return stringVal_.getByteString(index); } // optional .RepeatedLongs repeatedLong = 6; public static final int REPEATEDLONG_FIELD_NUMBER = 6; private org.kitesdk.morphline.protobuf.Protos.RepeatedLongs repeatedLong_; /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ public boolean hasRepeatedLong() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ public org.kitesdk.morphline.protobuf.Protos.RepeatedLongs getRepeatedLong() { return repeatedLong_; } /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ public org.kitesdk.morphline.protobuf.Protos.RepeatedLongsOrBuilder getRepeatedLongOrBuilder() { return repeatedLong_; } private void initFields() { intVal_ = 0; longVal_ = 0L; doubleVal_ = 0D; floatVal_ = 0F; stringVal_ = com.google.protobuf.LazyStringArrayList.EMPTY; repeatedLong_ = org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.getDefaultInstance(); } 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.writeUInt32(1, intVal_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt64(2, longVal_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeDouble(3, doubleVal_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeFloat(4, floatVal_); } for (int i = 0; i < stringVal_.size(); i++) { output.writeBytes(5, stringVal_.getByteString(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(6, repeatedLong_); } 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 .computeUInt32Size(1, intVal_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, longVal_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, doubleVal_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(4, floatVal_); } { int dataSize = 0; for (int i = 0; i < stringVal_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(stringVal_.getByteString(i)); } size += dataSize; size += 1 * getStringValList().size(); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, repeatedLong_); } 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.kitesdk.morphline.protobuf.Protos.Complex.Name)) { return super.equals(obj); } org.kitesdk.morphline.protobuf.Protos.Complex.Name other = (org.kitesdk.morphline.protobuf.Protos.Complex.Name) obj; boolean result = true; result = result && (hasIntVal() == other.hasIntVal()); if (hasIntVal()) { result = result && (getIntVal() == other.getIntVal()); } result = result && (hasLongVal() == other.hasLongVal()); if (hasLongVal()) { result = result && (getLongVal() == other.getLongVal()); } result = result && (hasDoubleVal() == other.hasDoubleVal()); if (hasDoubleVal()) { result = result && (Double.doubleToLongBits(getDoubleVal()) == Double.doubleToLongBits(other.getDoubleVal())); } result = result && (hasFloatVal() == other.hasFloatVal()); if (hasFloatVal()) { result = result && (Float.floatToIntBits(getFloatVal()) == Float.floatToIntBits(other.getFloatVal())); } result = result && getStringValList() .equals(other.getStringValList()); result = result && (hasRepeatedLong() == other.hasRepeatedLong()); if (hasRepeatedLong()) { result = result && getRepeatedLong() .equals(other.getRepeatedLong()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasIntVal()) { hash = (37 * hash) + INTVAL_FIELD_NUMBER; hash = (53 * hash) + getIntVal(); } if (hasLongVal()) { hash = (37 * hash) + LONGVAL_FIELD_NUMBER; hash = (53 * hash) + hashLong(getLongVal()); } if (hasDoubleVal()) { hash = (37 * hash) + DOUBLEVAL_FIELD_NUMBER; hash = (53 * hash) + hashLong( Double.doubleToLongBits(getDoubleVal())); } if (hasFloatVal()) { hash = (37 * hash) + FLOATVAL_FIELD_NUMBER; hash = (53 * hash) + Float.floatToIntBits( getFloatVal()); } if (getStringValCount() > 0) { hash = (37 * hash) + STRINGVAL_FIELD_NUMBER; hash = (53 * hash) + getStringValList().hashCode(); } if (hasRepeatedLong()) { hash = (37 * hash) + REPEATEDLONG_FIELD_NUMBER; hash = (53 * hash) + getRepeatedLong().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.kitesdk.morphline.protobuf.Protos.Complex.Name parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Name parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Name parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Name parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Name parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Name parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Name parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Name parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Name parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Name 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(org.kitesdk.morphline.protobuf.Protos.Complex.Name 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 Complex.Name} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.kitesdk.morphline.protobuf.Protos.Complex.NameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_Name_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_Name_fieldAccessorTable .ensureFieldAccessorsInitialized( org.kitesdk.morphline.protobuf.Protos.Complex.Name.class, org.kitesdk.morphline.protobuf.Protos.Complex.Name.Builder.class); } // Construct using org.kitesdk.morphline.protobuf.Protos.Complex.Name.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getRepeatedLongFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); intVal_ = 0; bitField0_ = (bitField0_ & ~0x00000001); longVal_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); doubleVal_ = 0D; bitField0_ = (bitField0_ & ~0x00000004); floatVal_ = 0F; bitField0_ = (bitField0_ & ~0x00000008); stringVal_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); if (repeatedLongBuilder_ == null) { repeatedLong_ = org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.getDefaultInstance(); } else { repeatedLongBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_Name_descriptor; } public org.kitesdk.morphline.protobuf.Protos.Complex.Name getDefaultInstanceForType() { return org.kitesdk.morphline.protobuf.Protos.Complex.Name.getDefaultInstance(); } public org.kitesdk.morphline.protobuf.Protos.Complex.Name build() { org.kitesdk.morphline.protobuf.Protos.Complex.Name result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.kitesdk.morphline.protobuf.Protos.Complex.Name buildPartial() { org.kitesdk.morphline.protobuf.Protos.Complex.Name result = new org.kitesdk.morphline.protobuf.Protos.Complex.Name(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.intVal_ = intVal_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.longVal_ = longVal_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.doubleVal_ = doubleVal_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.floatVal_ = floatVal_; if (((bitField0_ & 0x00000010) == 0x00000010)) { stringVal_ = new com.google.protobuf.UnmodifiableLazyStringList( stringVal_); bitField0_ = (bitField0_ & ~0x00000010); } result.stringVal_ = stringVal_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } if (repeatedLongBuilder_ == null) { result.repeatedLong_ = repeatedLong_; } else { result.repeatedLong_ = repeatedLongBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.kitesdk.morphline.protobuf.Protos.Complex.Name) { return mergeFrom((org.kitesdk.morphline.protobuf.Protos.Complex.Name)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.kitesdk.morphline.protobuf.Protos.Complex.Name other) { if (other == org.kitesdk.morphline.protobuf.Protos.Complex.Name.getDefaultInstance()) return this; if (other.hasIntVal()) { setIntVal(other.getIntVal()); } if (other.hasLongVal()) { setLongVal(other.getLongVal()); } if (other.hasDoubleVal()) { setDoubleVal(other.getDoubleVal()); } if (other.hasFloatVal()) { setFloatVal(other.getFloatVal()); } if (!other.stringVal_.isEmpty()) { if (stringVal_.isEmpty()) { stringVal_ = other.stringVal_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureStringValIsMutable(); stringVal_.addAll(other.stringVal_); } onChanged(); } if (other.hasRepeatedLong()) { mergeRepeatedLong(other.getRepeatedLong()); } 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 { org.kitesdk.morphline.protobuf.Protos.Complex.Name parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.kitesdk.morphline.protobuf.Protos.Complex.Name) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional uint32 intVal = 1; private int intVal_ ; /** * <code>optional uint32 intVal = 1;</code> */ public boolean hasIntVal() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 intVal = 1;</code> */ public int getIntVal() { return intVal_; } /** * <code>optional uint32 intVal = 1;</code> */ public Builder setIntVal(int value) { bitField0_ |= 0x00000001; intVal_ = value; onChanged(); return this; } /** * <code>optional uint32 intVal = 1;</code> */ public Builder clearIntVal() { bitField0_ = (bitField0_ & ~0x00000001); intVal_ = 0; onChanged(); return this; } // optional uint64 longVal = 2; private long longVal_ ; /** * <code>optional uint64 longVal = 2;</code> */ public boolean hasLongVal() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint64 longVal = 2;</code> */ public long getLongVal() { return longVal_; } /** * <code>optional uint64 longVal = 2;</code> */ public Builder setLongVal(long value) { bitField0_ |= 0x00000002; longVal_ = value; onChanged(); return this; } /** * <code>optional uint64 longVal = 2;</code> */ public Builder clearLongVal() { bitField0_ = (bitField0_ & ~0x00000002); longVal_ = 0L; onChanged(); return this; } // optional double doubleVal = 3; private double doubleVal_ ; /** * <code>optional double doubleVal = 3;</code> */ public boolean hasDoubleVal() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional double doubleVal = 3;</code> */ public double getDoubleVal() { return doubleVal_; } /** * <code>optional double doubleVal = 3;</code> */ public Builder setDoubleVal(double value) { bitField0_ |= 0x00000004; doubleVal_ = value; onChanged(); return this; } /** * <code>optional double doubleVal = 3;</code> */ public Builder clearDoubleVal() { bitField0_ = (bitField0_ & ~0x00000004); doubleVal_ = 0D; onChanged(); return this; } // optional float floatVal = 4; private float floatVal_ ; /** * <code>optional float floatVal = 4;</code> */ public boolean hasFloatVal() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional float floatVal = 4;</code> */ public float getFloatVal() { return floatVal_; } /** * <code>optional float floatVal = 4;</code> */ public Builder setFloatVal(float value) { bitField0_ |= 0x00000008; floatVal_ = value; onChanged(); return this; } /** * <code>optional float floatVal = 4;</code> */ public Builder clearFloatVal() { bitField0_ = (bitField0_ & ~0x00000008); floatVal_ = 0F; onChanged(); return this; } // repeated string stringVal = 5; private com.google.protobuf.LazyStringList stringVal_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStringValIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { stringVal_ = new com.google.protobuf.LazyStringArrayList(stringVal_); bitField0_ |= 0x00000010; } } /** * <code>repeated string stringVal = 5;</code> */ public java.util.List<java.lang.String> getStringValList() { return java.util.Collections.unmodifiableList(stringVal_); } /** * <code>repeated string stringVal = 5;</code> */ public int getStringValCount() { return stringVal_.size(); } /** * <code>repeated string stringVal = 5;</code> */ public java.lang.String getStringVal(int index) { return stringVal_.get(index); } /** * <code>repeated string stringVal = 5;</code> */ public com.google.protobuf.ByteString getStringValBytes(int index) { return stringVal_.getByteString(index); } /** * <code>repeated string stringVal = 5;</code> */ public Builder setStringVal( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringValIsMutable(); stringVal_.set(index, value); onChanged(); return this; } /** * <code>repeated string stringVal = 5;</code> */ public Builder addStringVal( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringValIsMutable(); stringVal_.add(value); onChanged(); return this; } /** * <code>repeated string stringVal = 5;</code> */ public Builder addAllStringVal( java.lang.Iterable<java.lang.String> values) { ensureStringValIsMutable(); super.addAll(values, stringVal_); onChanged(); return this; } /** * <code>repeated string stringVal = 5;</code> */ public Builder clearStringVal() { stringVal_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * <code>repeated string stringVal = 5;</code> */ public Builder addStringValBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureStringValIsMutable(); stringVal_.add(value); onChanged(); return this; } // optional .RepeatedLongs repeatedLong = 6; private org.kitesdk.morphline.protobuf.Protos.RepeatedLongs repeatedLong_ = org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.kitesdk.morphline.protobuf.Protos.RepeatedLongs, org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.Builder, org.kitesdk.morphline.protobuf.Protos.RepeatedLongsOrBuilder> repeatedLongBuilder_; /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ public boolean hasRepeatedLong() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ public org.kitesdk.morphline.protobuf.Protos.RepeatedLongs getRepeatedLong() { if (repeatedLongBuilder_ == null) { return repeatedLong_; } else { return repeatedLongBuilder_.getMessage(); } } /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ public Builder setRepeatedLong(org.kitesdk.morphline.protobuf.Protos.RepeatedLongs value) { if (repeatedLongBuilder_ == null) { if (value == null) { throw new NullPointerException(); } repeatedLong_ = value; onChanged(); } else { repeatedLongBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ public Builder setRepeatedLong( org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.Builder builderForValue) { if (repeatedLongBuilder_ == null) { repeatedLong_ = builderForValue.build(); onChanged(); } else { repeatedLongBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ public Builder mergeRepeatedLong(org.kitesdk.morphline.protobuf.Protos.RepeatedLongs value) { if (repeatedLongBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && repeatedLong_ != org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.getDefaultInstance()) { repeatedLong_ = org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.newBuilder(repeatedLong_).mergeFrom(value).buildPartial(); } else { repeatedLong_ = value; } onChanged(); } else { repeatedLongBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ public Builder clearRepeatedLong() { if (repeatedLongBuilder_ == null) { repeatedLong_ = org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.getDefaultInstance(); onChanged(); } else { repeatedLongBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ public org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.Builder getRepeatedLongBuilder() { bitField0_ |= 0x00000020; onChanged(); return getRepeatedLongFieldBuilder().getBuilder(); } /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ public org.kitesdk.morphline.protobuf.Protos.RepeatedLongsOrBuilder getRepeatedLongOrBuilder() { if (repeatedLongBuilder_ != null) { return repeatedLongBuilder_.getMessageOrBuilder(); } else { return repeatedLong_; } } /** * <code>optional .RepeatedLongs repeatedLong = 6;</code> */ private com.google.protobuf.SingleFieldBuilder< org.kitesdk.morphline.protobuf.Protos.RepeatedLongs, org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.Builder, org.kitesdk.morphline.protobuf.Protos.RepeatedLongsOrBuilder> getRepeatedLongFieldBuilder() { if (repeatedLongBuilder_ == null) { repeatedLongBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.kitesdk.morphline.protobuf.Protos.RepeatedLongs, org.kitesdk.morphline.protobuf.Protos.RepeatedLongs.Builder, org.kitesdk.morphline.protobuf.Protos.RepeatedLongsOrBuilder>( repeatedLong_, getParentForChildren(), isClean()); repeatedLong_ = null; } return repeatedLongBuilder_; } // @@protoc_insertion_point(builder_scope:Complex.Name) } static { defaultInstance = new Name(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:Complex.Name) } public interface LinkOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated string language = 1; /** * <code>repeated string language = 1;</code> */ java.util.List<java.lang.String> getLanguageList(); /** * <code>repeated string language = 1;</code> */ int getLanguageCount(); /** * <code>repeated string language = 1;</code> */ java.lang.String getLanguage(int index); /** * <code>repeated string language = 1;</code> */ com.google.protobuf.ByteString getLanguageBytes(int index); // required string url = 2; /** * <code>required string url = 2;</code> */ boolean hasUrl(); /** * <code>required string url = 2;</code> */ java.lang.String getUrl(); /** * <code>required string url = 2;</code> */ com.google.protobuf.ByteString getUrlBytes(); } /** * Protobuf type {@code Complex.Link} */ public static final class Link extends com.google.protobuf.GeneratedMessage implements LinkOrBuilder { // Use Link.newBuilder() to construct. private Link(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Link(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Link defaultInstance; public static Link getDefaultInstance() { return defaultInstance; } public Link getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Link( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { language_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } language_.add(input.readBytes()); break; } case 18: { bitField0_ |= 0x00000001; url_ = 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_ & 0x00000001) == 0x00000001)) { language_ = new com.google.protobuf.UnmodifiableLazyStringList(language_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_Link_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_Link_fieldAccessorTable .ensureFieldAccessorsInitialized( org.kitesdk.morphline.protobuf.Protos.Complex.Link.class, org.kitesdk.morphline.protobuf.Protos.Complex.Link.Builder.class); } public static com.google.protobuf.Parser<Link> PARSER = new com.google.protobuf.AbstractParser<Link>() { public Link parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Link(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<Link> getParserForType() { return PARSER; } private int bitField0_; // repeated string language = 1; public static final int LANGUAGE_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList language_; /** * <code>repeated string language = 1;</code> */ public java.util.List<java.lang.String> getLanguageList() { return language_; } /** * <code>repeated string language = 1;</code> */ public int getLanguageCount() { return language_.size(); } /** * <code>repeated string language = 1;</code> */ public java.lang.String getLanguage(int index) { return language_.get(index); } /** * <code>repeated string language = 1;</code> */ public com.google.protobuf.ByteString getLanguageBytes(int index) { return language_.getByteString(index); } // required string url = 2; public static final int URL_FIELD_NUMBER = 2; private java.lang.Object url_; /** * <code>required string url = 2;</code> */ public boolean hasUrl() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string url = 2;</code> */ public java.lang.String getUrl() { java.lang.Object ref = url_; 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()) { url_ = s; } return s; } } /** * <code>required string url = 2;</code> */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { language_ = com.google.protobuf.LazyStringArrayList.EMPTY; url_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasUrl()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < language_.size(); i++) { output.writeBytes(1, language_.getByteString(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(2, getUrlBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < language_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(language_.getByteString(i)); } size += dataSize; size += 1 * getLanguageList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getUrlBytes()); } 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.kitesdk.morphline.protobuf.Protos.Complex.Link)) { return super.equals(obj); } org.kitesdk.morphline.protobuf.Protos.Complex.Link other = (org.kitesdk.morphline.protobuf.Protos.Complex.Link) obj; boolean result = true; result = result && getLanguageList() .equals(other.getLanguageList()); result = result && (hasUrl() == other.hasUrl()); if (hasUrl()) { result = result && getUrl() .equals(other.getUrl()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getLanguageCount() > 0) { hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + getLanguageList().hashCode(); } if (hasUrl()) { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.kitesdk.morphline.protobuf.Protos.Complex.Link parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Link parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Link parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Link parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Link parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Link parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Link parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Link parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Link parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.kitesdk.morphline.protobuf.Protos.Complex.Link 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(org.kitesdk.morphline.protobuf.Protos.Complex.Link 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 Complex.Link} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.kitesdk.morphline.protobuf.Protos.Complex.LinkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_Link_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_Link_fieldAccessorTable .ensureFieldAccessorsInitialized( org.kitesdk.morphline.protobuf.Protos.Complex.Link.class, org.kitesdk.morphline.protobuf.Protos.Complex.Link.Builder.class); } // Construct using org.kitesdk.morphline.protobuf.Protos.Complex.Link.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(); language_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); url_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_Link_descriptor; } public org.kitesdk.morphline.protobuf.Protos.Complex.Link getDefaultInstanceForType() { return org.kitesdk.morphline.protobuf.Protos.Complex.Link.getDefaultInstance(); } public org.kitesdk.morphline.protobuf.Protos.Complex.Link build() { org.kitesdk.morphline.protobuf.Protos.Complex.Link result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.kitesdk.morphline.protobuf.Protos.Complex.Link buildPartial() { org.kitesdk.morphline.protobuf.Protos.Complex.Link result = new org.kitesdk.morphline.protobuf.Protos.Complex.Link(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { language_ = new com.google.protobuf.UnmodifiableLazyStringList( language_); bitField0_ = (bitField0_ & ~0x00000001); } result.language_ = language_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.url_ = url_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.kitesdk.morphline.protobuf.Protos.Complex.Link) { return mergeFrom((org.kitesdk.morphline.protobuf.Protos.Complex.Link)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.kitesdk.morphline.protobuf.Protos.Complex.Link other) { if (other == org.kitesdk.morphline.protobuf.Protos.Complex.Link.getDefaultInstance()) return this; if (!other.language_.isEmpty()) { if (language_.isEmpty()) { language_ = other.language_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLanguageIsMutable(); language_.addAll(other.language_); } onChanged(); } if (other.hasUrl()) { bitField0_ |= 0x00000002; url_ = other.url_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUrl()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.kitesdk.morphline.protobuf.Protos.Complex.Link parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.kitesdk.morphline.protobuf.Protos.Complex.Link) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated string language = 1; private com.google.protobuf.LazyStringList language_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLanguageIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { language_ = new com.google.protobuf.LazyStringArrayList(language_); bitField0_ |= 0x00000001; } } /** * <code>repeated string language = 1;</code> */ public java.util.List<java.lang.String> getLanguageList() { return java.util.Collections.unmodifiableList(language_); } /** * <code>repeated string language = 1;</code> */ public int getLanguageCount() { return language_.size(); } /** * <code>repeated string language = 1;</code> */ public java.lang.String getLanguage(int index) { return language_.get(index); } /** * <code>repeated string language = 1;</code> */ public com.google.protobuf.ByteString getLanguageBytes(int index) { return language_.getByteString(index); } /** * <code>repeated string language = 1;</code> */ public Builder setLanguage( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLanguageIsMutable(); language_.set(index, value); onChanged(); return this; } /** * <code>repeated string language = 1;</code> */ public Builder addLanguage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLanguageIsMutable(); language_.add(value); onChanged(); return this; } /** * <code>repeated string language = 1;</code> */ public Builder addAllLanguage( java.lang.Iterable<java.lang.String> values) { ensureLanguageIsMutable(); super.addAll(values, language_); onChanged(); return this; } /** * <code>repeated string language = 1;</code> */ public Builder clearLanguage() { language_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>repeated string language = 1;</code> */ public Builder addLanguageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureLanguageIsMutable(); language_.add(value); onChanged(); return this; } // required string url = 2; private java.lang.Object url_ = ""; /** * <code>required string url = 2;</code> */ public boolean hasUrl() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string url = 2;</code> */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); url_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string url = 2;</code> */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string url = 2;</code> */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; url_ = value; onChanged(); return this; } /** * <code>required string url = 2;</code> */ public Builder clearUrl() { bitField0_ = (bitField0_ & ~0x00000002); url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** * <code>required string url = 2;</code> */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; url_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:Complex.Link) } static { defaultInstance = new Link(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:Complex.Link) } private int bitField0_; // required sint32 docId = 1; public static final int DOCID_FIELD_NUMBER = 1; private int docId_; /** * <code>required sint32 docId = 1;</code> */ public boolean hasDocId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint32 docId = 1;</code> */ public int getDocId() { return docId_; } // required .Complex.Name name = 2; public static final int NAME_FIELD_NUMBER = 2; private org.kitesdk.morphline.protobuf.Protos.Complex.Name name_; /** * <code>required .Complex.Name name = 2;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .Complex.Name name = 2;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.Name getName() { return name_; } /** * <code>required .Complex.Name name = 2;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.NameOrBuilder getNameOrBuilder() { return name_; } // repeated .Complex.Link link = 3; public static final int LINK_FIELD_NUMBER = 3; private java.util.List<org.kitesdk.morphline.protobuf.Protos.Complex.Link> link_; /** * <code>repeated .Complex.Link link = 3;</code> */ public java.util.List<org.kitesdk.morphline.protobuf.Protos.Complex.Link> getLinkList() { return link_; } /** * <code>repeated .Complex.Link link = 3;</code> */ public java.util.List<? extends org.kitesdk.morphline.protobuf.Protos.Complex.LinkOrBuilder> getLinkOrBuilderList() { return link_; } /** * <code>repeated .Complex.Link link = 3;</code> */ public int getLinkCount() { return link_.size(); } /** * <code>repeated .Complex.Link link = 3;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.Link getLink(int index) { return link_.get(index); } /** * <code>repeated .Complex.Link link = 3;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.LinkOrBuilder getLinkOrBuilder( int index) { return link_.get(index); } // required .Complex.Type type = 4; public static final int TYPE_FIELD_NUMBER = 4; private org.kitesdk.morphline.protobuf.Protos.Complex.Type type_; /** * <code>required .Complex.Type type = 4;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required .Complex.Type type = 4;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.Type getType() { return type_; } private void initFields() { docId_ = 0; name_ = org.kitesdk.morphline.protobuf.Protos.Complex.Name.getDefaultInstance(); link_ = java.util.Collections.emptyList(); type_ = org.kitesdk.morphline.protobuf.Protos.Complex.Type.QUERY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasDocId()) { memoizedIsInitialized = 0; return false; } if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasType()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getLinkCount(); i++) { if (!getLink(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeSInt32(1, docId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, name_); } for (int i = 0; i < link_.size(); i++) { output.writeMessage(3, link_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(4, type_.getNumber()); } 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 .computeSInt32Size(1, docId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, name_); } for (int i = 0; i < link_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, link_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, type_.getNumber()); } 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.kitesdk.morphline.protobuf.Protos.Complex)) { return super.equals(obj); } org.kitesdk.morphline.protobuf.Protos.Complex other = (org.kitesdk.morphline.protobuf.Protos.Complex) obj; boolean result = true; result = result && (hasDocId() == other.hasDocId()); if (hasDocId()) { result = result && (getDocId() == other.getDocId()); } result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && getLinkList() .equals(other.getLinkList()); result = result && (hasType() == other.hasType()); if (hasType()) { result = result && (getType() == other.getType()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasDocId()) { hash = (37 * hash) + DOCID_FIELD_NUMBER; hash = (53 * hash) + getDocId(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (getLinkCount() > 0) { hash = (37 * hash) + LINK_FIELD_NUMBER; hash = (53 * hash) + getLinkList().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getType()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.kitesdk.morphline.protobuf.Protos.Complex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.kitesdk.morphline.protobuf.Protos.Complex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.Complex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.kitesdk.morphline.protobuf.Protos.Complex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.Complex parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.kitesdk.morphline.protobuf.Protos.Complex parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.Complex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.kitesdk.morphline.protobuf.Protos.Complex parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.kitesdk.morphline.protobuf.Protos.Complex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.kitesdk.morphline.protobuf.Protos.Complex 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(org.kitesdk.morphline.protobuf.Protos.Complex 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 Complex} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.kitesdk.morphline.protobuf.Protos.ComplexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_fieldAccessorTable .ensureFieldAccessorsInitialized( org.kitesdk.morphline.protobuf.Protos.Complex.class, org.kitesdk.morphline.protobuf.Protos.Complex.Builder.class); } // Construct using org.kitesdk.morphline.protobuf.Protos.Complex.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getNameFieldBuilder(); getLinkFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); docId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (nameBuilder_ == null) { name_ = org.kitesdk.morphline.protobuf.Protos.Complex.Name.getDefaultInstance(); } else { nameBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (linkBuilder_ == null) { link_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { linkBuilder_.clear(); } type_ = org.kitesdk.morphline.protobuf.Protos.Complex.Type.QUERY; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.kitesdk.morphline.protobuf.Protos.internal_static_Complex_descriptor; } public org.kitesdk.morphline.protobuf.Protos.Complex getDefaultInstanceForType() { return org.kitesdk.morphline.protobuf.Protos.Complex.getDefaultInstance(); } public org.kitesdk.morphline.protobuf.Protos.Complex build() { org.kitesdk.morphline.protobuf.Protos.Complex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.kitesdk.morphline.protobuf.Protos.Complex buildPartial() { org.kitesdk.morphline.protobuf.Protos.Complex result = new org.kitesdk.morphline.protobuf.Protos.Complex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.docId_ = docId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (nameBuilder_ == null) { result.name_ = name_; } else { result.name_ = nameBuilder_.build(); } if (linkBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { link_ = java.util.Collections.unmodifiableList(link_); bitField0_ = (bitField0_ & ~0x00000004); } result.link_ = link_; } else { result.link_ = linkBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.kitesdk.morphline.protobuf.Protos.Complex) { return mergeFrom((org.kitesdk.morphline.protobuf.Protos.Complex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.kitesdk.morphline.protobuf.Protos.Complex other) { if (other == org.kitesdk.morphline.protobuf.Protos.Complex.getDefaultInstance()) return this; if (other.hasDocId()) { setDocId(other.getDocId()); } if (other.hasName()) { mergeName(other.getName()); } if (linkBuilder_ == null) { if (!other.link_.isEmpty()) { if (link_.isEmpty()) { link_ = other.link_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLinkIsMutable(); link_.addAll(other.link_); } onChanged(); } } else { if (!other.link_.isEmpty()) { if (linkBuilder_.isEmpty()) { linkBuilder_.dispose(); linkBuilder_ = null; link_ = other.link_; bitField0_ = (bitField0_ & ~0x00000004); linkBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getLinkFieldBuilder() : null; } else { linkBuilder_.addAllMessages(other.link_); } } } if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasDocId()) { return false; } if (!hasName()) { return false; } if (!hasType()) { return false; } for (int i = 0; i < getLinkCount(); i++) { if (!getLink(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.kitesdk.morphline.protobuf.Protos.Complex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.kitesdk.morphline.protobuf.Protos.Complex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required sint32 docId = 1; private int docId_ ; /** * <code>required sint32 docId = 1;</code> */ public boolean hasDocId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint32 docId = 1;</code> */ public int getDocId() { return docId_; } /** * <code>required sint32 docId = 1;</code> */ public Builder setDocId(int value) { bitField0_ |= 0x00000001; docId_ = value; onChanged(); return this; } /** * <code>required sint32 docId = 1;</code> */ public Builder clearDocId() { bitField0_ = (bitField0_ & ~0x00000001); docId_ = 0; onChanged(); return this; } // required .Complex.Name name = 2; private org.kitesdk.morphline.protobuf.Protos.Complex.Name name_ = org.kitesdk.morphline.protobuf.Protos.Complex.Name.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.kitesdk.morphline.protobuf.Protos.Complex.Name, org.kitesdk.morphline.protobuf.Protos.Complex.Name.Builder, org.kitesdk.morphline.protobuf.Protos.Complex.NameOrBuilder> nameBuilder_; /** * <code>required .Complex.Name name = 2;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .Complex.Name name = 2;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.Name getName() { if (nameBuilder_ == null) { return name_; } else { return nameBuilder_.getMessage(); } } /** * <code>required .Complex.Name name = 2;</code> */ public Builder setName(org.kitesdk.morphline.protobuf.Protos.Complex.Name value) { if (nameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); } else { nameBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>required .Complex.Name name = 2;</code> */ public Builder setName( org.kitesdk.morphline.protobuf.Protos.Complex.Name.Builder builderForValue) { if (nameBuilder_ == null) { name_ = builderForValue.build(); onChanged(); } else { nameBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>required .Complex.Name name = 2;</code> */ public Builder mergeName(org.kitesdk.morphline.protobuf.Protos.Complex.Name value) { if (nameBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && name_ != org.kitesdk.morphline.protobuf.Protos.Complex.Name.getDefaultInstance()) { name_ = org.kitesdk.morphline.protobuf.Protos.Complex.Name.newBuilder(name_).mergeFrom(value).buildPartial(); } else { name_ = value; } onChanged(); } else { nameBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>required .Complex.Name name = 2;</code> */ public Builder clearName() { if (nameBuilder_ == null) { name_ = org.kitesdk.morphline.protobuf.Protos.Complex.Name.getDefaultInstance(); onChanged(); } else { nameBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>required .Complex.Name name = 2;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.Name.Builder getNameBuilder() { bitField0_ |= 0x00000002; onChanged(); return getNameFieldBuilder().getBuilder(); } /** * <code>required .Complex.Name name = 2;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.NameOrBuilder getNameOrBuilder() { if (nameBuilder_ != null) { return nameBuilder_.getMessageOrBuilder(); } else { return name_; } } /** * <code>required .Complex.Name name = 2;</code> */ private com.google.protobuf.SingleFieldBuilder< org.kitesdk.morphline.protobuf.Protos.Complex.Name, org.kitesdk.morphline.protobuf.Protos.Complex.Name.Builder, org.kitesdk.morphline.protobuf.Protos.Complex.NameOrBuilder> getNameFieldBuilder() { if (nameBuilder_ == null) { nameBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.kitesdk.morphline.protobuf.Protos.Complex.Name, org.kitesdk.morphline.protobuf.Protos.Complex.Name.Builder, org.kitesdk.morphline.protobuf.Protos.Complex.NameOrBuilder>( name_, getParentForChildren(), isClean()); name_ = null; } return nameBuilder_; } // repeated .Complex.Link link = 3; private java.util.List<org.kitesdk.morphline.protobuf.Protos.Complex.Link> link_ = java.util.Collections.emptyList(); private void ensureLinkIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { link_ = new java.util.ArrayList<org.kitesdk.morphline.protobuf.Protos.Complex.Link>(link_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< org.kitesdk.morphline.protobuf.Protos.Complex.Link, org.kitesdk.morphline.protobuf.Protos.Complex.Link.Builder, org.kitesdk.morphline.protobuf.Protos.Complex.LinkOrBuilder> linkBuilder_; /** * <code>repeated .Complex.Link link = 3;</code> */ public java.util.List<org.kitesdk.morphline.protobuf.Protos.Complex.Link> getLinkList() { if (linkBuilder_ == null) { return java.util.Collections.unmodifiableList(link_); } else { return linkBuilder_.getMessageList(); } } /** * <code>repeated .Complex.Link link = 3;</code> */ public int getLinkCount() { if (linkBuilder_ == null) { return link_.size(); } else { return linkBuilder_.getCount(); } } /** * <code>repeated .Complex.Link link = 3;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.Link getLink(int index) { if (linkBuilder_ == null) { return link_.get(index); } else { return linkBuilder_.getMessage(index); } } /** * <code>repeated .Complex.Link link = 3;</code> */ public Builder setLink( int index, org.kitesdk.morphline.protobuf.Protos.Complex.Link value) { if (linkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinkIsMutable(); link_.set(index, value); onChanged(); } else { linkBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .Complex.Link link = 3;</code> */ public Builder setLink( int index, org.kitesdk.morphline.protobuf.Protos.Complex.Link.Builder builderForValue) { if (linkBuilder_ == null) { ensureLinkIsMutable(); link_.set(index, builderForValue.build()); onChanged(); } else { linkBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .Complex.Link link = 3;</code> */ public Builder addLink(org.kitesdk.morphline.protobuf.Protos.Complex.Link value) { if (linkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinkIsMutable(); link_.add(value); onChanged(); } else { linkBuilder_.addMessage(value); } return this; } /** * <code>repeated .Complex.Link link = 3;</code> */ public Builder addLink( int index, org.kitesdk.morphline.protobuf.Protos.Complex.Link value) { if (linkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinkIsMutable(); link_.add(index, value); onChanged(); } else { linkBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .Complex.Link link = 3;</code> */ public Builder addLink( org.kitesdk.morphline.protobuf.Protos.Complex.Link.Builder builderForValue) { if (linkBuilder_ == null) { ensureLinkIsMutable(); link_.add(builderForValue.build()); onChanged(); } else { linkBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .Complex.Link link = 3;</code> */ public Builder addLink( int index, org.kitesdk.morphline.protobuf.Protos.Complex.Link.Builder builderForValue) { if (linkBuilder_ == null) { ensureLinkIsMutable(); link_.add(index, builderForValue.build()); onChanged(); } else { linkBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .Complex.Link link = 3;</code> */ public Builder addAllLink( java.lang.Iterable<? extends org.kitesdk.morphline.protobuf.Protos.Complex.Link> values) { if (linkBuilder_ == null) { ensureLinkIsMutable(); super.addAll(values, link_); onChanged(); } else { linkBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .Complex.Link link = 3;</code> */ public Builder clearLink() { if (linkBuilder_ == null) { link_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { linkBuilder_.clear(); } return this; } /** * <code>repeated .Complex.Link link = 3;</code> */ public Builder removeLink(int index) { if (linkBuilder_ == null) { ensureLinkIsMutable(); link_.remove(index); onChanged(); } else { linkBuilder_.remove(index); } return this; } /** * <code>repeated .Complex.Link link = 3;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.Link.Builder getLinkBuilder( int index) { return getLinkFieldBuilder().getBuilder(index); } /** * <code>repeated .Complex.Link link = 3;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.LinkOrBuilder getLinkOrBuilder( int index) { if (linkBuilder_ == null) { return link_.get(index); } else { return linkBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .Complex.Link link = 3;</code> */ public java.util.List<? extends org.kitesdk.morphline.protobuf.Protos.Complex.LinkOrBuilder> getLinkOrBuilderList() { if (linkBuilder_ != null) { return linkBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(link_); } } /** * <code>repeated .Complex.Link link = 3;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.Link.Builder addLinkBuilder() { return getLinkFieldBuilder().addBuilder( org.kitesdk.morphline.protobuf.Protos.Complex.Link.getDefaultInstance()); } /** * <code>repeated .Complex.Link link = 3;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.Link.Builder addLinkBuilder( int index) { return getLinkFieldBuilder().addBuilder( index, org.kitesdk.morphline.protobuf.Protos.Complex.Link.getDefaultInstance()); } /** * <code>repeated .Complex.Link link = 3;</code> */ public java.util.List<org.kitesdk.morphline.protobuf.Protos.Complex.Link.Builder> getLinkBuilderList() { return getLinkFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.kitesdk.morphline.protobuf.Protos.Complex.Link, org.kitesdk.morphline.protobuf.Protos.Complex.Link.Builder, org.kitesdk.morphline.protobuf.Protos.Complex.LinkOrBuilder> getLinkFieldBuilder() { if (linkBuilder_ == null) { linkBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.kitesdk.morphline.protobuf.Protos.Complex.Link, org.kitesdk.morphline.protobuf.Protos.Complex.Link.Builder, org.kitesdk.morphline.protobuf.Protos.Complex.LinkOrBuilder>( link_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); link_ = null; } return linkBuilder_; } // required .Complex.Type type = 4; private org.kitesdk.morphline.protobuf.Protos.Complex.Type type_ = org.kitesdk.morphline.protobuf.Protos.Complex.Type.QUERY; /** * <code>required .Complex.Type type = 4;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required .Complex.Type type = 4;</code> */ public org.kitesdk.morphline.protobuf.Protos.Complex.Type getType() { return type_; } /** * <code>required .Complex.Type type = 4;</code> */ public Builder setType(org.kitesdk.morphline.protobuf.Protos.Complex.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value; onChanged(); return this; } /** * <code>required .Complex.Type type = 4;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = org.kitesdk.morphline.protobuf.Protos.Complex.Type.QUERY; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:Complex) } static { defaultInstance = new Complex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:Complex) } private static com.google.protobuf.Descriptors.Descriptor internal_static_RepeatedLongs_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RepeatedLongs_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_Complex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Complex_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_Complex_Name_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Complex_Name_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_Complex_Link_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Complex_Link_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n+src/test/resources/test-protos/protos." + "proto\" \n\rRepeatedLongs\022\017\n\007longVal\030\001 \003(\022\"" + "\275\002\n\007Complex\022\r\n\005docId\030\001 \002(\021\022\033\n\004name\030\002 \002(\013" + "2\r.Complex.Name\022\033\n\004link\030\003 \003(\0132\r.Complex." + "Link\022\033\n\004type\030\004 \002(\0162\r.Complex.Type\032\205\001\n\004Na" + "me\022\016\n\006intVal\030\001 \001(\r\022\017\n\007longVal\030\002 \001(\004\022\021\n\td" + "oubleVal\030\003 \001(\001\022\020\n\010floatVal\030\004 \001(\002\022\021\n\tstri" + "ngVal\030\005 \003(\t\022$\n\014repeatedLong\030\006 \001(\0132\016.Repe" + "atedLongs\032%\n\004Link\022\020\n\010language\030\001 \003(\t\022\013\n\003u" + "rl\030\002 \002(\t\"\035\n\004Type\022\t\n\005QUERY\020\001\022\n\n\006UPDATE\020\002B", "-\n\036org.kitesdk.morphline.protobufB\006Proto" + "sH\001\240\001\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_RepeatedLongs_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_RepeatedLongs_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RepeatedLongs_descriptor, new java.lang.String[] { "LongVal", }); internal_static_Complex_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Complex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Complex_descriptor, new java.lang.String[] { "DocId", "Name", "Link", "Type", }); internal_static_Complex_Name_descriptor = internal_static_Complex_descriptor.getNestedTypes().get(0); internal_static_Complex_Name_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Complex_Name_descriptor, new java.lang.String[] { "IntVal", "LongVal", "DoubleVal", "FloatVal", "StringVal", "RepeatedLong", }); internal_static_Complex_Link_descriptor = internal_static_Complex_descriptor.getNestedTypes().get(1); internal_static_Complex_Link_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Complex_Link_descriptor, new java.lang.String[] { "Language", "Url", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }