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

org.openfeed.CapitalDistributions Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: openfeed.proto
// Protobuf Java Version: 4.28.3

package org.openfeed;

/**
 * 
 * / Capital Distributions
 * 
* * Protobuf type {@code org.openfeed.CapitalDistributions} */ public final class CapitalDistributions extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.CapitalDistributions) CapitalDistributionsOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", CapitalDistributions.class.getName()); } // Use CapitalDistributions.newBuilder() to construct. private CapitalDistributions(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private CapitalDistributions() { instrumentType_ = ""; corporateAction_ = ""; currencyCode_ = ""; notes_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_CapitalDistributions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_CapitalDistributions_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.CapitalDistributions.class, org.openfeed.CapitalDistributions.Builder.class); } public static final int TRANSACTIONTIME_FIELD_NUMBER = 8; private long transactionTime_ = 0L; /** * sint64 transactionTime = 8; * @return The transactionTime. */ @java.lang.Override public long getTransactionTime() { return transactionTime_; } public static final int INSTRUMENTTYPE_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object instrumentType_ = ""; /** * string instrumentType = 9; * @return The instrumentType. */ @java.lang.Override public java.lang.String getInstrumentType() { java.lang.Object ref = instrumentType_; 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(); instrumentType_ = s; return s; } } /** * string instrumentType = 9; * @return The bytes for instrumentType. */ @java.lang.Override public com.google.protobuf.ByteString getInstrumentTypeBytes() { java.lang.Object ref = instrumentType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instrumentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CORPORATEACTION_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object corporateAction_ = ""; /** *
   * Corporate Action
   * 
* * string corporateAction = 10; * @return The corporateAction. */ @java.lang.Override public java.lang.String getCorporateAction() { java.lang.Object ref = corporateAction_; 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(); corporateAction_ = s; return s; } } /** *
   * Corporate Action
   * 
* * string corporateAction = 10; * @return The bytes for corporateAction. */ @java.lang.Override public com.google.protobuf.ByteString getCorporateActionBytes() { java.lang.Object ref = corporateAction_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); corporateAction_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAYABLEDATE_FIELD_NUMBER = 11; private int payableDate_ = 0; /** *
   * Date only, format 2012-07-04 -> 20120704
   * 
* * sint32 payableDate = 11; * @return The payableDate. */ @java.lang.Override public int getPayableDate() { return payableDate_; } public static final int RECORDDATE_FIELD_NUMBER = 12; private int recordDate_ = 0; /** * sint32 recordDate = 12; * @return The recordDate. */ @java.lang.Override public int getRecordDate() { return recordDate_; } public static final int EXDATE_FIELD_NUMBER = 13; private int exDate_ = 0; /** * sint32 exDate = 13; * @return The exDate. */ @java.lang.Override public int getExDate() { return exDate_; } public static final int SHORTTERMCAPITALGAIN_FIELD_NUMBER = 14; private long shortTermCapitalGain_ = 0L; /** *
   * Distributions
   * 
* * sint64 shortTermCapitalGain = 14; * @return The shortTermCapitalGain. */ @java.lang.Override public long getShortTermCapitalGain() { return shortTermCapitalGain_; } public static final int LONGTERMCAPITALGAIN_FIELD_NUMBER = 15; private long longTermCapitalGain_ = 0L; /** * sint64 longTermCapitalGain = 15; * @return The longTermCapitalGain. */ @java.lang.Override public long getLongTermCapitalGain() { return longTermCapitalGain_; } public static final int UNALLOCATEDDISTRIBUTIONS_FIELD_NUMBER = 16; private long unallocatedDistributions_ = 0L; /** * sint64 unallocatedDistributions = 16; * @return The unallocatedDistributions. */ @java.lang.Override public long getUnallocatedDistributions() { return unallocatedDistributions_; } public static final int RETURNOFCAPITAL_FIELD_NUMBER = 17; private long returnOfCapital_ = 0L; /** * sint64 returnOfCapital = 17; * @return The returnOfCapital. */ @java.lang.Override public long getReturnOfCapital() { return returnOfCapital_; } public static final int CURRENCYCODE_FIELD_NUMBER = 18; @SuppressWarnings("serial") private volatile java.lang.Object currencyCode_ = ""; /** * string currencyCode = 18; * @return The currencyCode. */ @java.lang.Override public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; 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(); currencyCode_ = s; return s; } } /** * string currencyCode = 18; * @return The bytes for currencyCode. */ @java.lang.Override public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currencyCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NOTES_FIELD_NUMBER = 19; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList notes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string notes = 19; * @return A list containing the notes. */ public com.google.protobuf.ProtocolStringList getNotesList() { return notes_; } /** * repeated string notes = 19; * @return The count of notes. */ public int getNotesCount() { return notes_.size(); } /** * repeated string notes = 19; * @param index The index of the element to return. * @return The notes at the given index. */ public java.lang.String getNotes(int index) { return notes_.get(index); } /** * repeated string notes = 19; * @param index The index of the value to return. * @return The bytes of the notes at the given index. */ public com.google.protobuf.ByteString getNotesBytes(int index) { return notes_.getByteString(index); } public static final int REINVESTDATE_FIELD_NUMBER = 20; private int reinvestDate_ = 0; /** *
   * 
* * sint32 reinvestDate = 20; * @return The reinvestDate. */ @java.lang.Override public int getReinvestDate() { return reinvestDate_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (transactionTime_ != 0L) { output.writeSInt64(8, transactionTime_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instrumentType_)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, instrumentType_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(corporateAction_)) { com.google.protobuf.GeneratedMessage.writeString(output, 10, corporateAction_); } if (payableDate_ != 0) { output.writeSInt32(11, payableDate_); } if (recordDate_ != 0) { output.writeSInt32(12, recordDate_); } if (exDate_ != 0) { output.writeSInt32(13, exDate_); } if (shortTermCapitalGain_ != 0L) { output.writeSInt64(14, shortTermCapitalGain_); } if (longTermCapitalGain_ != 0L) { output.writeSInt64(15, longTermCapitalGain_); } if (unallocatedDistributions_ != 0L) { output.writeSInt64(16, unallocatedDistributions_); } if (returnOfCapital_ != 0L) { output.writeSInt64(17, returnOfCapital_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(currencyCode_)) { com.google.protobuf.GeneratedMessage.writeString(output, 18, currencyCode_); } for (int i = 0; i < notes_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 19, notes_.getRaw(i)); } if (reinvestDate_ != 0) { output.writeSInt32(20, reinvestDate_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (transactionTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(8, transactionTime_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instrumentType_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, instrumentType_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(corporateAction_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(10, corporateAction_); } if (payableDate_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(11, payableDate_); } if (recordDate_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(12, recordDate_); } if (exDate_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(13, exDate_); } if (shortTermCapitalGain_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(14, shortTermCapitalGain_); } if (longTermCapitalGain_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(15, longTermCapitalGain_); } if (unallocatedDistributions_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(16, unallocatedDistributions_); } if (returnOfCapital_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(17, returnOfCapital_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(currencyCode_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(18, currencyCode_); } { int dataSize = 0; for (int i = 0; i < notes_.size(); i++) { dataSize += computeStringSizeNoTag(notes_.getRaw(i)); } size += dataSize; size += 2 * getNotesList().size(); } if (reinvestDate_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(20, reinvestDate_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.openfeed.CapitalDistributions)) { return super.equals(obj); } org.openfeed.CapitalDistributions other = (org.openfeed.CapitalDistributions) obj; if (getTransactionTime() != other.getTransactionTime()) return false; if (!getInstrumentType() .equals(other.getInstrumentType())) return false; if (!getCorporateAction() .equals(other.getCorporateAction())) return false; if (getPayableDate() != other.getPayableDate()) return false; if (getRecordDate() != other.getRecordDate()) return false; if (getExDate() != other.getExDate()) return false; if (getShortTermCapitalGain() != other.getShortTermCapitalGain()) return false; if (getLongTermCapitalGain() != other.getLongTermCapitalGain()) return false; if (getUnallocatedDistributions() != other.getUnallocatedDistributions()) return false; if (getReturnOfCapital() != other.getReturnOfCapital()) return false; if (!getCurrencyCode() .equals(other.getCurrencyCode())) return false; if (!getNotesList() .equals(other.getNotesList())) return false; if (getReinvestDate() != other.getReinvestDate()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRANSACTIONTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTransactionTime()); hash = (37 * hash) + INSTRUMENTTYPE_FIELD_NUMBER; hash = (53 * hash) + getInstrumentType().hashCode(); hash = (37 * hash) + CORPORATEACTION_FIELD_NUMBER; hash = (53 * hash) + getCorporateAction().hashCode(); hash = (37 * hash) + PAYABLEDATE_FIELD_NUMBER; hash = (53 * hash) + getPayableDate(); hash = (37 * hash) + RECORDDATE_FIELD_NUMBER; hash = (53 * hash) + getRecordDate(); hash = (37 * hash) + EXDATE_FIELD_NUMBER; hash = (53 * hash) + getExDate(); hash = (37 * hash) + SHORTTERMCAPITALGAIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getShortTermCapitalGain()); hash = (37 * hash) + LONGTERMCAPITALGAIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLongTermCapitalGain()); hash = (37 * hash) + UNALLOCATEDDISTRIBUTIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUnallocatedDistributions()); hash = (37 * hash) + RETURNOFCAPITAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getReturnOfCapital()); hash = (37 * hash) + CURRENCYCODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); if (getNotesCount() > 0) { hash = (37 * hash) + NOTES_FIELD_NUMBER; hash = (53 * hash) + getNotesList().hashCode(); } hash = (37 * hash) + REINVESTDATE_FIELD_NUMBER; hash = (53 * hash) + getReinvestDate(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.CapitalDistributions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.CapitalDistributions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.CapitalDistributions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.CapitalDistributions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.CapitalDistributions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.CapitalDistributions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.CapitalDistributions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.CapitalDistributions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.openfeed.CapitalDistributions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.CapitalDistributions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.openfeed.CapitalDistributions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.CapitalDistributions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.openfeed.CapitalDistributions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * / Capital Distributions
   * 
* * Protobuf type {@code org.openfeed.CapitalDistributions} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.CapitalDistributions) org.openfeed.CapitalDistributionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_CapitalDistributions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_CapitalDistributions_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.CapitalDistributions.class, org.openfeed.CapitalDistributions.Builder.class); } // Construct using org.openfeed.CapitalDistributions.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; transactionTime_ = 0L; instrumentType_ = ""; corporateAction_ = ""; payableDate_ = 0; recordDate_ = 0; exDate_ = 0; shortTermCapitalGain_ = 0L; longTermCapitalGain_ = 0L; unallocatedDistributions_ = 0L; returnOfCapital_ = 0L; currencyCode_ = ""; notes_ = com.google.protobuf.LazyStringArrayList.emptyList(); reinvestDate_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.Openfeed.internal_static_org_openfeed_CapitalDistributions_descriptor; } @java.lang.Override public org.openfeed.CapitalDistributions getDefaultInstanceForType() { return org.openfeed.CapitalDistributions.getDefaultInstance(); } @java.lang.Override public org.openfeed.CapitalDistributions build() { org.openfeed.CapitalDistributions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.CapitalDistributions buildPartial() { org.openfeed.CapitalDistributions result = new org.openfeed.CapitalDistributions(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.openfeed.CapitalDistributions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.transactionTime_ = transactionTime_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.instrumentType_ = instrumentType_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.corporateAction_ = corporateAction_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.payableDate_ = payableDate_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.recordDate_ = recordDate_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.exDate_ = exDate_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.shortTermCapitalGain_ = shortTermCapitalGain_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.longTermCapitalGain_ = longTermCapitalGain_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.unallocatedDistributions_ = unallocatedDistributions_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.returnOfCapital_ = returnOfCapital_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.currencyCode_ = currencyCode_; } if (((from_bitField0_ & 0x00000800) != 0)) { notes_.makeImmutable(); result.notes_ = notes_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.reinvestDate_ = reinvestDate_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.CapitalDistributions) { return mergeFrom((org.openfeed.CapitalDistributions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.CapitalDistributions other) { if (other == org.openfeed.CapitalDistributions.getDefaultInstance()) return this; if (other.getTransactionTime() != 0L) { setTransactionTime(other.getTransactionTime()); } if (!other.getInstrumentType().isEmpty()) { instrumentType_ = other.instrumentType_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getCorporateAction().isEmpty()) { corporateAction_ = other.corporateAction_; bitField0_ |= 0x00000004; onChanged(); } if (other.getPayableDate() != 0) { setPayableDate(other.getPayableDate()); } if (other.getRecordDate() != 0) { setRecordDate(other.getRecordDate()); } if (other.getExDate() != 0) { setExDate(other.getExDate()); } if (other.getShortTermCapitalGain() != 0L) { setShortTermCapitalGain(other.getShortTermCapitalGain()); } if (other.getLongTermCapitalGain() != 0L) { setLongTermCapitalGain(other.getLongTermCapitalGain()); } if (other.getUnallocatedDistributions() != 0L) { setUnallocatedDistributions(other.getUnallocatedDistributions()); } if (other.getReturnOfCapital() != 0L) { setReturnOfCapital(other.getReturnOfCapital()); } if (!other.getCurrencyCode().isEmpty()) { currencyCode_ = other.currencyCode_; bitField0_ |= 0x00000400; onChanged(); } if (!other.notes_.isEmpty()) { if (notes_.isEmpty()) { notes_ = other.notes_; bitField0_ |= 0x00000800; } else { ensureNotesIsMutable(); notes_.addAll(other.notes_); } onChanged(); } if (other.getReinvestDate() != 0) { setReinvestDate(other.getReinvestDate()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 64: { transactionTime_ = input.readSInt64(); bitField0_ |= 0x00000001; break; } // case 64 case 74: { instrumentType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 74 case 82: { corporateAction_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 82 case 88: { payableDate_ = input.readSInt32(); bitField0_ |= 0x00000008; break; } // case 88 case 96: { recordDate_ = input.readSInt32(); bitField0_ |= 0x00000010; break; } // case 96 case 104: { exDate_ = input.readSInt32(); bitField0_ |= 0x00000020; break; } // case 104 case 112: { shortTermCapitalGain_ = input.readSInt64(); bitField0_ |= 0x00000040; break; } // case 112 case 120: { longTermCapitalGain_ = input.readSInt64(); bitField0_ |= 0x00000080; break; } // case 120 case 128: { unallocatedDistributions_ = input.readSInt64(); bitField0_ |= 0x00000100; break; } // case 128 case 136: { returnOfCapital_ = input.readSInt64(); bitField0_ |= 0x00000200; break; } // case 136 case 146: { currencyCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 146 case 154: { java.lang.String s = input.readStringRequireUtf8(); ensureNotesIsMutable(); notes_.add(s); break; } // case 154 case 160: { reinvestDate_ = input.readSInt32(); bitField0_ |= 0x00001000; break; } // case 160 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long transactionTime_ ; /** * sint64 transactionTime = 8; * @return The transactionTime. */ @java.lang.Override public long getTransactionTime() { return transactionTime_; } /** * sint64 transactionTime = 8; * @param value The transactionTime to set. * @return This builder for chaining. */ public Builder setTransactionTime(long value) { transactionTime_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * sint64 transactionTime = 8; * @return This builder for chaining. */ public Builder clearTransactionTime() { bitField0_ = (bitField0_ & ~0x00000001); transactionTime_ = 0L; onChanged(); return this; } private java.lang.Object instrumentType_ = ""; /** * string instrumentType = 9; * @return The instrumentType. */ public java.lang.String getInstrumentType() { java.lang.Object ref = instrumentType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instrumentType_ = s; return s; } else { return (java.lang.String) ref; } } /** * string instrumentType = 9; * @return The bytes for instrumentType. */ public com.google.protobuf.ByteString getInstrumentTypeBytes() { java.lang.Object ref = instrumentType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instrumentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string instrumentType = 9; * @param value The instrumentType to set. * @return This builder for chaining. */ public Builder setInstrumentType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instrumentType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string instrumentType = 9; * @return This builder for chaining. */ public Builder clearInstrumentType() { instrumentType_ = getDefaultInstance().getInstrumentType(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string instrumentType = 9; * @param value The bytes for instrumentType to set. * @return This builder for chaining. */ public Builder setInstrumentTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instrumentType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object corporateAction_ = ""; /** *
     * Corporate Action
     * 
* * string corporateAction = 10; * @return The corporateAction. */ public java.lang.String getCorporateAction() { java.lang.Object ref = corporateAction_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); corporateAction_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Corporate Action
     * 
* * string corporateAction = 10; * @return The bytes for corporateAction. */ public com.google.protobuf.ByteString getCorporateActionBytes() { java.lang.Object ref = corporateAction_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); corporateAction_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Corporate Action
     * 
* * string corporateAction = 10; * @param value The corporateAction to set. * @return This builder for chaining. */ public Builder setCorporateAction( java.lang.String value) { if (value == null) { throw new NullPointerException(); } corporateAction_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Corporate Action
     * 
* * string corporateAction = 10; * @return This builder for chaining. */ public Builder clearCorporateAction() { corporateAction_ = getDefaultInstance().getCorporateAction(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Corporate Action
     * 
* * string corporateAction = 10; * @param value The bytes for corporateAction to set. * @return This builder for chaining. */ public Builder setCorporateActionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); corporateAction_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private int payableDate_ ; /** *
     * Date only, format 2012-07-04 -> 20120704
     * 
* * sint32 payableDate = 11; * @return The payableDate. */ @java.lang.Override public int getPayableDate() { return payableDate_; } /** *
     * Date only, format 2012-07-04 -> 20120704
     * 
* * sint32 payableDate = 11; * @param value The payableDate to set. * @return This builder for chaining. */ public Builder setPayableDate(int value) { payableDate_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Date only, format 2012-07-04 -> 20120704
     * 
* * sint32 payableDate = 11; * @return This builder for chaining. */ public Builder clearPayableDate() { bitField0_ = (bitField0_ & ~0x00000008); payableDate_ = 0; onChanged(); return this; } private int recordDate_ ; /** * sint32 recordDate = 12; * @return The recordDate. */ @java.lang.Override public int getRecordDate() { return recordDate_; } /** * sint32 recordDate = 12; * @param value The recordDate to set. * @return This builder for chaining. */ public Builder setRecordDate(int value) { recordDate_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * sint32 recordDate = 12; * @return This builder for chaining. */ public Builder clearRecordDate() { bitField0_ = (bitField0_ & ~0x00000010); recordDate_ = 0; onChanged(); return this; } private int exDate_ ; /** * sint32 exDate = 13; * @return The exDate. */ @java.lang.Override public int getExDate() { return exDate_; } /** * sint32 exDate = 13; * @param value The exDate to set. * @return This builder for chaining. */ public Builder setExDate(int value) { exDate_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * sint32 exDate = 13; * @return This builder for chaining. */ public Builder clearExDate() { bitField0_ = (bitField0_ & ~0x00000020); exDate_ = 0; onChanged(); return this; } private long shortTermCapitalGain_ ; /** *
     * Distributions
     * 
* * sint64 shortTermCapitalGain = 14; * @return The shortTermCapitalGain. */ @java.lang.Override public long getShortTermCapitalGain() { return shortTermCapitalGain_; } /** *
     * Distributions
     * 
* * sint64 shortTermCapitalGain = 14; * @param value The shortTermCapitalGain to set. * @return This builder for chaining. */ public Builder setShortTermCapitalGain(long value) { shortTermCapitalGain_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Distributions
     * 
* * sint64 shortTermCapitalGain = 14; * @return This builder for chaining. */ public Builder clearShortTermCapitalGain() { bitField0_ = (bitField0_ & ~0x00000040); shortTermCapitalGain_ = 0L; onChanged(); return this; } private long longTermCapitalGain_ ; /** * sint64 longTermCapitalGain = 15; * @return The longTermCapitalGain. */ @java.lang.Override public long getLongTermCapitalGain() { return longTermCapitalGain_; } /** * sint64 longTermCapitalGain = 15; * @param value The longTermCapitalGain to set. * @return This builder for chaining. */ public Builder setLongTermCapitalGain(long value) { longTermCapitalGain_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * sint64 longTermCapitalGain = 15; * @return This builder for chaining. */ public Builder clearLongTermCapitalGain() { bitField0_ = (bitField0_ & ~0x00000080); longTermCapitalGain_ = 0L; onChanged(); return this; } private long unallocatedDistributions_ ; /** * sint64 unallocatedDistributions = 16; * @return The unallocatedDistributions. */ @java.lang.Override public long getUnallocatedDistributions() { return unallocatedDistributions_; } /** * sint64 unallocatedDistributions = 16; * @param value The unallocatedDistributions to set. * @return This builder for chaining. */ public Builder setUnallocatedDistributions(long value) { unallocatedDistributions_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * sint64 unallocatedDistributions = 16; * @return This builder for chaining. */ public Builder clearUnallocatedDistributions() { bitField0_ = (bitField0_ & ~0x00000100); unallocatedDistributions_ = 0L; onChanged(); return this; } private long returnOfCapital_ ; /** * sint64 returnOfCapital = 17; * @return The returnOfCapital. */ @java.lang.Override public long getReturnOfCapital() { return returnOfCapital_; } /** * sint64 returnOfCapital = 17; * @param value The returnOfCapital to set. * @return This builder for chaining. */ public Builder setReturnOfCapital(long value) { returnOfCapital_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * sint64 returnOfCapital = 17; * @return This builder for chaining. */ public Builder clearReturnOfCapital() { bitField0_ = (bitField0_ & ~0x00000200); returnOfCapital_ = 0L; onChanged(); return this; } private java.lang.Object currencyCode_ = ""; /** * string currencyCode = 18; * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } else { return (java.lang.String) ref; } } /** * string currencyCode = 18; * @return The bytes for currencyCode. */ public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currencyCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string currencyCode = 18; * @param value The currencyCode to set. * @return This builder for chaining. */ public Builder setCurrencyCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } currencyCode_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * string currencyCode = 18; * @return This builder for chaining. */ public Builder clearCurrencyCode() { currencyCode_ = getDefaultInstance().getCurrencyCode(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * string currencyCode = 18; * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ public Builder setCurrencyCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currencyCode_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList notes_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureNotesIsMutable() { if (!notes_.isModifiable()) { notes_ = new com.google.protobuf.LazyStringArrayList(notes_); } bitField0_ |= 0x00000800; } /** * repeated string notes = 19; * @return A list containing the notes. */ public com.google.protobuf.ProtocolStringList getNotesList() { notes_.makeImmutable(); return notes_; } /** * repeated string notes = 19; * @return The count of notes. */ public int getNotesCount() { return notes_.size(); } /** * repeated string notes = 19; * @param index The index of the element to return. * @return The notes at the given index. */ public java.lang.String getNotes(int index) { return notes_.get(index); } /** * repeated string notes = 19; * @param index The index of the value to return. * @return The bytes of the notes at the given index. */ public com.google.protobuf.ByteString getNotesBytes(int index) { return notes_.getByteString(index); } /** * repeated string notes = 19; * @param index The index to set the value at. * @param value The notes to set. * @return This builder for chaining. */ public Builder setNotes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNotesIsMutable(); notes_.set(index, value); bitField0_ |= 0x00000800; onChanged(); return this; } /** * repeated string notes = 19; * @param value The notes to add. * @return This builder for chaining. */ public Builder addNotes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNotesIsMutable(); notes_.add(value); bitField0_ |= 0x00000800; onChanged(); return this; } /** * repeated string notes = 19; * @param values The notes to add. * @return This builder for chaining. */ public Builder addAllNotes( java.lang.Iterable values) { ensureNotesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, notes_); bitField0_ |= 0x00000800; onChanged(); return this; } /** * repeated string notes = 19; * @return This builder for chaining. */ public Builder clearNotes() { notes_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000800);; onChanged(); return this; } /** * repeated string notes = 19; * @param value The bytes of the notes to add. * @return This builder for chaining. */ public Builder addNotesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureNotesIsMutable(); notes_.add(value); bitField0_ |= 0x00000800; onChanged(); return this; } private int reinvestDate_ ; /** *
     * 
* * sint32 reinvestDate = 20; * @return The reinvestDate. */ @java.lang.Override public int getReinvestDate() { return reinvestDate_; } /** *
     * 
* * sint32 reinvestDate = 20; * @param value The reinvestDate to set. * @return This builder for chaining. */ public Builder setReinvestDate(int value) { reinvestDate_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     * 
* * sint32 reinvestDate = 20; * @return This builder for chaining. */ public Builder clearReinvestDate() { bitField0_ = (bitField0_ & ~0x00001000); reinvestDate_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:org.openfeed.CapitalDistributions) } // @@protoc_insertion_point(class_scope:org.openfeed.CapitalDistributions) private static final org.openfeed.CapitalDistributions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.CapitalDistributions(); } public static org.openfeed.CapitalDistributions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CapitalDistributions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.openfeed.CapitalDistributions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy