// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Engineer.proto package com.streamsets.pipeline.lib.util; public final class EngineerProto { private EngineerProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface EngineerOrBuilder extends com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder<Engineer> { // required .util.Person person = 1; /** * <code>required .util.Person person = 1;</code> */ boolean hasPerson(); /** * <code>required .util.Person person = 1;</code> */ com.streamsets.pipeline.lib.util.PersonProto.Person getPerson(); /** * <code>required .util.Person person = 1;</code> */ com.streamsets.pipeline.lib.util.PersonProto.PersonOrBuilder getPersonOrBuilder(); // required string employeeId = 2; /** * <code>required string employeeId = 2;</code> */ boolean hasEmployeeId(); /** * <code>required string employeeId = 2;</code> */ java.lang.String getEmployeeId(); /** * <code>required string employeeId = 2;</code> */ com.google.protobuf.ByteString getEmployeeIdBytes(); // optional string depName = 3 [default = "engineering"]; /** * <code>optional string depName = 3 [default = "engineering"];</code> */ boolean hasDepName(); /** * <code>optional string depName = 3 [default = "engineering"];</code> */ java.lang.String getDepName(); /** * <code>optional string depName = 3 [default = "engineering"];</code> */ com.google.protobuf.ByteString getDepNameBytes(); // optional int32 depid = 4; /** * <code>optional int32 depid = 4;</code> */ boolean hasDepid(); /** * <code>optional int32 depid = 4;</code> */ int getDepid(); } /** * Protobuf type {@code util.Engineer} */ public static final class Engineer extends com.google.protobuf.GeneratedMessage.ExtendableMessage< Engineer> implements EngineerOrBuilder { // Use Engineer.newBuilder() to construct. private Engineer(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.streamsets.pipeline.lib.util.EngineerProto.Engineer, ?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Engineer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Engineer defaultInstance; public static Engineer getDefaultInstance() { return defaultInstance; } public Engineer getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Engineer( 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: { com.streamsets.pipeline.lib.util.PersonProto.Person.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = person_.toBuilder(); } person_ = input.readMessage(com.streamsets.pipeline.lib.util.PersonProto.Person.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(person_); person_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { bitField0_ |= 0x00000002; employeeId_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; depName_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; depid_ = input.readInt32(); 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.streamsets.pipeline.lib.util.EngineerProto.internal_static_util_Engineer_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.streamsets.pipeline.lib.util.EngineerProto.internal_static_util_Engineer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.streamsets.pipeline.lib.util.EngineerProto.Engineer.class, com.streamsets.pipeline.lib.util.EngineerProto.Engineer.Builder.class); } public static com.google.protobuf.Parser<Engineer> PARSER = new com.google.protobuf.AbstractParser<Engineer>() { public Engineer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Engineer(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<Engineer> getParserForType() { return PARSER; } private int bitField0_; // required .util.Person person = 1; public static final int PERSON_FIELD_NUMBER = 1; private com.streamsets.pipeline.lib.util.PersonProto.Person person_; /** * <code>required .util.Person person = 1;</code> */ public boolean hasPerson() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .util.Person person = 1;</code> */ public com.streamsets.pipeline.lib.util.PersonProto.Person getPerson() { return person_; } /** * <code>required .util.Person person = 1;</code> */ public com.streamsets.pipeline.lib.util.PersonProto.PersonOrBuilder getPersonOrBuilder() { return person_; } // required string employeeId = 2; public static final int EMPLOYEEID_FIELD_NUMBER = 2; private java.lang.Object employeeId_; /** * <code>required string employeeId = 2;</code> */ public boolean hasEmployeeId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string employeeId = 2;</code> */ public java.lang.String getEmployeeId() { java.lang.Object ref = employeeId_; 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()) { employeeId_ = s; } return s; } } /** * <code>required string employeeId = 2;</code> */ public com.google.protobuf.ByteString getEmployeeIdBytes() { java.lang.Object ref = employeeId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); employeeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string depName = 3 [default = "engineering"]; public static final int DEPNAME_FIELD_NUMBER = 3; private java.lang.Object depName_; /** * <code>optional string depName = 3 [default = "engineering"];</code> */ public boolean hasDepName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string depName = 3 [default = "engineering"];</code> */ public java.lang.String getDepName() { java.lang.Object ref = depName_; 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()) { depName_ = s; } return s; } } /** * <code>optional string depName = 3 [default = "engineering"];</code> */ public com.google.protobuf.ByteString getDepNameBytes() { java.lang.Object ref = depName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); depName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 depid = 4; public static final int DEPID_FIELD_NUMBER = 4; private int depid_; /** * <code>optional int32 depid = 4;</code> */ public boolean hasDepid() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 depid = 4;</code> */ public int getDepid() { return depid_; } private void initFields() { person_ = com.streamsets.pipeline.lib.util.PersonProto.Person.getDefaultInstance(); employeeId_ = ""; depName_ = "engineering"; depid_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasPerson()) { memoizedIsInitialized = 0; return false; } if (!hasEmployeeId()) { memoizedIsInitialized = 0; return false; } if (!getPerson().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage<com.streamsets.pipeline.lib.util.EngineerProto.Engineer>.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, person_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getEmployeeIdBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getDepNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, depid_); } extensionWriter.writeUntil(300, output); 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 .computeMessageSize(1, person_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getEmployeeIdBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getDepNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, depid_); } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.streamsets.pipeline.lib.util.EngineerProto.Engineer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.streamsets.pipeline.lib.util.EngineerProto.Engineer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.streamsets.pipeline.lib.util.EngineerProto.Engineer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.streamsets.pipeline.lib.util.EngineerProto.Engineer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.streamsets.pipeline.lib.util.EngineerProto.Engineer parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.streamsets.pipeline.lib.util.EngineerProto.Engineer parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.streamsets.pipeline.lib.util.EngineerProto.Engineer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.streamsets.pipeline.lib.util.EngineerProto.Engineer parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.streamsets.pipeline.lib.util.EngineerProto.Engineer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.streamsets.pipeline.lib.util.EngineerProto.Engineer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.streamsets.pipeline.lib.util.EngineerProto.Engineer 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 util.Engineer} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< com.streamsets.pipeline.lib.util.EngineerProto.Engineer, Builder> implements com.streamsets.pipeline.lib.util.EngineerProto.EngineerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.streamsets.pipeline.lib.util.EngineerProto.internal_static_util_Engineer_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.streamsets.pipeline.lib.util.EngineerProto.internal_static_util_Engineer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.streamsets.pipeline.lib.util.EngineerProto.Engineer.class, com.streamsets.pipeline.lib.util.EngineerProto.Engineer.Builder.class); } // Construct using com.streamsets.pipeline.lib.util.EngineerProto.Engineer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPersonFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (personBuilder_ == null) { person_ = com.streamsets.pipeline.lib.util.PersonProto.Person.getDefaultInstance(); } else { personBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); employeeId_ = ""; bitField0_ = (bitField0_ & ~0x00000002); depName_ = "engineering"; bitField0_ = (bitField0_ & ~0x00000004); depid_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.streamsets.pipeline.lib.util.EngineerProto.internal_static_util_Engineer_descriptor; } public com.streamsets.pipeline.lib.util.EngineerProto.Engineer getDefaultInstanceForType() { return com.streamsets.pipeline.lib.util.EngineerProto.Engineer.getDefaultInstance(); } public com.streamsets.pipeline.lib.util.EngineerProto.Engineer build() { com.streamsets.pipeline.lib.util.EngineerProto.Engineer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.streamsets.pipeline.lib.util.EngineerProto.Engineer buildPartial() { com.streamsets.pipeline.lib.util.EngineerProto.Engineer result = new com.streamsets.pipeline.lib.util.EngineerProto.Engineer(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (personBuilder_ == null) { result.person_ = person_; } else { result.person_ = personBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.employeeId_ = employeeId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.depName_ = depName_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.depid_ = depid_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.streamsets.pipeline.lib.util.EngineerProto.Engineer) { return mergeFrom((com.streamsets.pipeline.lib.util.EngineerProto.Engineer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.streamsets.pipeline.lib.util.EngineerProto.Engineer other) { if (other == com.streamsets.pipeline.lib.util.EngineerProto.Engineer.getDefaultInstance()) return this; if (other.hasPerson()) { mergePerson(other.getPerson()); } if (other.hasEmployeeId()) { bitField0_ |= 0x00000002; employeeId_ = other.employeeId_; onChanged(); } if (other.hasDepName()) { bitField0_ |= 0x00000004; depName_ = other.depName_; onChanged(); } if (other.hasDepid()) { setDepid(other.getDepid()); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasPerson()) { return false; } if (!hasEmployeeId()) { return false; } if (!getPerson().isInitialized()) { return false; } if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.streamsets.pipeline.lib.util.EngineerProto.Engineer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.streamsets.pipeline.lib.util.EngineerProto.Engineer) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .util.Person person = 1; private com.streamsets.pipeline.lib.util.PersonProto.Person person_ = com.streamsets.pipeline.lib.util.PersonProto.Person.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.streamsets.pipeline.lib.util.PersonProto.Person, com.streamsets.pipeline.lib.util.PersonProto.Person.Builder, com.streamsets.pipeline.lib.util.PersonProto.PersonOrBuilder> personBuilder_; /** * <code>required .util.Person person = 1;</code> */ public boolean hasPerson() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .util.Person person = 1;</code> */ public com.streamsets.pipeline.lib.util.PersonProto.Person getPerson() { if (personBuilder_ == null) { return person_; } else { return personBuilder_.getMessage(); } } /** * <code>required .util.Person person = 1;</code> */ public Builder setPerson(com.streamsets.pipeline.lib.util.PersonProto.Person value) { if (personBuilder_ == null) { if (value == null) { throw new NullPointerException(); } person_ = value; onChanged(); } else { personBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * <code>required .util.Person person = 1;</code> */ public Builder setPerson( com.streamsets.pipeline.lib.util.PersonProto.Person.Builder builderForValue) { if (personBuilder_ == null) { person_ = builderForValue.build(); onChanged(); } else { personBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * <code>required .util.Person person = 1;</code> */ public Builder mergePerson(com.streamsets.pipeline.lib.util.PersonProto.Person value) { if (personBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && person_ != com.streamsets.pipeline.lib.util.PersonProto.Person.getDefaultInstance()) { person_ = com.streamsets.pipeline.lib.util.PersonProto.Person.newBuilder(person_).mergeFrom(value).buildPartial(); } else { person_ = value; } onChanged(); } else { personBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * <code>required .util.Person person = 1;</code> */ public Builder clearPerson() { if (personBuilder_ == null) { person_ = com.streamsets.pipeline.lib.util.PersonProto.Person.getDefaultInstance(); onChanged(); } else { personBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>required .util.Person person = 1;</code> */ public com.streamsets.pipeline.lib.util.PersonProto.Person.Builder getPersonBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPersonFieldBuilder().getBuilder(); } /** * <code>required .util.Person person = 1;</code> */ public com.streamsets.pipeline.lib.util.PersonProto.PersonOrBuilder getPersonOrBuilder() { if (personBuilder_ != null) { return personBuilder_.getMessageOrBuilder(); } else { return person_; } } /** * <code>required .util.Person person = 1;</code> */ private com.google.protobuf.SingleFieldBuilder< com.streamsets.pipeline.lib.util.PersonProto.Person, com.streamsets.pipeline.lib.util.PersonProto.Person.Builder, com.streamsets.pipeline.lib.util.PersonProto.PersonOrBuilder> getPersonFieldBuilder() { if (personBuilder_ == null) { personBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.streamsets.pipeline.lib.util.PersonProto.Person, com.streamsets.pipeline.lib.util.PersonProto.Person.Builder, com.streamsets.pipeline.lib.util.PersonProto.PersonOrBuilder>( person_, getParentForChildren(), isClean()); person_ = null; } return personBuilder_; } // required string employeeId = 2; private java.lang.Object employeeId_ = ""; /** * <code>required string employeeId = 2;</code> */ public boolean hasEmployeeId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string employeeId = 2;</code> */ public java.lang.String getEmployeeId() { java.lang.Object ref = employeeId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); employeeId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string employeeId = 2;</code> */ public com.google.protobuf.ByteString getEmployeeIdBytes() { java.lang.Object ref = employeeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); employeeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string employeeId = 2;</code> */ public Builder setEmployeeId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; employeeId_ = value; onChanged(); return this; } /** * <code>required string employeeId = 2;</code> */ public Builder clearEmployeeId() { bitField0_ = (bitField0_ & ~0x00000002); employeeId_ = getDefaultInstance().getEmployeeId(); onChanged(); return this; } /** * <code>required string employeeId = 2;</code> */ public Builder setEmployeeIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; employeeId_ = value; onChanged(); return this; } // optional string depName = 3 [default = "engineering"]; private java.lang.Object depName_ = "engineering"; /** * <code>optional string depName = 3 [default = "engineering"];</code> */ public boolean hasDepName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string depName = 3 [default = "engineering"];</code> */ public java.lang.String getDepName() { java.lang.Object ref = depName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); depName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string depName = 3 [default = "engineering"];</code> */ public com.google.protobuf.ByteString getDepNameBytes() { java.lang.Object ref = depName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); depName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string depName = 3 [default = "engineering"];</code> */ public Builder setDepName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; depName_ = value; onChanged(); return this; } /** * <code>optional string depName = 3 [default = "engineering"];</code> */ public Builder clearDepName() { bitField0_ = (bitField0_ & ~0x00000004); depName_ = getDefaultInstance().getDepName(); onChanged(); return this; } /** * <code>optional string depName = 3 [default = "engineering"];</code> */ public Builder setDepNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; depName_ = value; onChanged(); return this; } // optional int32 depid = 4; private int depid_ ; /** * <code>optional int32 depid = 4;</code> */ public boolean hasDepid() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 depid = 4;</code> */ public int getDepid() { return depid_; } /** * <code>optional int32 depid = 4;</code> */ public Builder setDepid(int value) { bitField0_ |= 0x00000008; depid_ = value; onChanged(); return this; } /** * <code>optional int32 depid = 4;</code> */ public Builder clearDepid() { bitField0_ = (bitField0_ & ~0x00000008); depid_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:util.Engineer) } static { defaultInstance = new Engineer(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:util.Engineer) } private static com.google.protobuf.Descriptors.Descriptor internal_static_util_Engineer_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_util_Engineer_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\016Engineer.proto\022\004util\032\014Person.proto\"q\n\010" + "Engineer\022\034\n\006person\030\001 \002(\0132\014.util.Person\022\022" + "\n\nemployeeId\030\002 \002(\t\022\034\n\007depName\030\003 \001(\t:\013eng" + "ineering\022\r\n\005depid\030\004 \001(\005*\006\010\310\001\020\254\002B1\n com.s" + "treamsets.pipeline.lib.utilB\rEngineerPro" + "to" }; 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_util_Engineer_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_util_Engineer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_util_Engineer_descriptor, new java.lang.String[] { "Person", "EmployeeId", "DepName", "Depid", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.streamsets.pipeline.lib.util.PersonProto.getDescriptor(), }, assigner); } // @@protoc_insertion_point(outer_class_scope) }