Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* string currency = 1;
* @return The bytes for currency.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCurrencyBytes() {
java.lang.Object ref = currency_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currency_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UNITS_FIELD_NUMBER = 2;
private long units_ = 0L;
/**
*
* целая часть суммы, может быть отрицательным числом
*
*
* int64 units = 2;
* @return The units.
*/
@java.lang.Override
public long getUnits() {
return units_;
}
public static final int NANO_FIELD_NUMBER = 3;
private int nano_ = 0;
/**
*
* дробная часть суммы, может быть отрицательным числом
*
*
* string currency = 1;
* @param value The bytes for currency to set.
* @return This builder for chaining.
*/
public Builder setCurrencyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
currency_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long units_ ;
/**
*
* целая часть суммы, может быть отрицательным числом
*
*
* int64 units = 2;
* @return The units.
*/
@java.lang.Override
public long getUnits() {
return units_;
}
/**
*
* целая часть суммы, может быть отрицательным числом
*
*
* int64 units = 2;
* @param value The units to set.
* @return This builder for chaining.
*/
public Builder setUnits(long value) {
units_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* целая часть суммы, может быть отрицательным числом
*
*
* int64 units = 2;
* @return This builder for chaining.
*/
public Builder clearUnits() {
bitField0_ = (bitField0_ & ~0x00000002);
units_ = 0L;
onChanged();
return this;
}
private int nano_ ;
/**
*
* дробная часть суммы, может быть отрицательным числом
*
*
* int32 nano = 3;
* @return The nano.
*/
@java.lang.Override
public int getNano() {
return nano_;
}
/**
*
* дробная часть суммы, может быть отрицательным числом
*
*
* int32 nano = 3;
* @param value The nano to set.
* @return This builder for chaining.
*/
public Builder setNano(int value) {
nano_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* дробная часть суммы, может быть отрицательным числом
*
*
* int32 nano = 3;
* @return This builder for chaining.
*/
public Builder clearNano() {
bitField0_ = (bitField0_ & ~0x00000004);
nano_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tinkoff.public.invest.api.contract.v1.MoneyValue)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.MoneyValue)
private static final ru.tinkoff.piapi.contract.v1.MoneyValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.MoneyValue();
}
public static ru.tinkoff.piapi.contract.v1.MoneyValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MoneyValue 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 ru.tinkoff.piapi.contract.v1.MoneyValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}