• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/type/money.proto
18 
19 package com.google.type;
20 
21 public interface MoneyOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.type.Money)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The three-letter currency code defined in ISO 4217.
31    * </pre>
32    *
33    * <code>string currency_code = 1;</code>
34    *
35    * @return The currencyCode.
36    */
getCurrencyCode()37   java.lang.String getCurrencyCode();
38   /**
39    *
40    *
41    * <pre>
42    * The three-letter currency code defined in ISO 4217.
43    * </pre>
44    *
45    * <code>string currency_code = 1;</code>
46    *
47    * @return The bytes for currencyCode.
48    */
getCurrencyCodeBytes()49   com.google.protobuf.ByteString getCurrencyCodeBytes();
50 
51   /**
52    *
53    *
54    * <pre>
55    * The whole units of the amount.
56    * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
57    * </pre>
58    *
59    * <code>int64 units = 2;</code>
60    *
61    * @return The units.
62    */
getUnits()63   long getUnits();
64 
65   /**
66    *
67    *
68    * <pre>
69    * Number of nano (10^-9) units of the amount.
70    * The value must be between -999,999,999 and +999,999,999 inclusive.
71    * If `units` is positive, `nanos` must be positive or zero.
72    * If `units` is zero, `nanos` can be positive, zero, or negative.
73    * If `units` is negative, `nanos` must be negative or zero.
74    * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
75    * </pre>
76    *
77    * <code>int32 nanos = 3;</code>
78    *
79    * @return The nanos.
80    */
getNanos()81   int getNanos();
82 }
83