• 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/cloud/billing/v1/cloud_catalog.proto
18 
19 package com.google.cloud.billing.v1;
20 
21 public interface PricingInfoOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.PricingInfo)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The timestamp from which this pricing was effective within the requested
31    * time range. This is guaranteed to be greater than or equal to the
32    * start_time field in the request and less than the end_time field in the
33    * request. If a time range was not specified in the request this field will
34    * be equivalent to a time within the last 12 hours, indicating the latest
35    * pricing info.
36    * </pre>
37    *
38    * <code>.google.protobuf.Timestamp effective_time = 1;</code>
39    *
40    * @return Whether the effectiveTime field is set.
41    */
hasEffectiveTime()42   boolean hasEffectiveTime();
43   /**
44    *
45    *
46    * <pre>
47    * The timestamp from which this pricing was effective within the requested
48    * time range. This is guaranteed to be greater than or equal to the
49    * start_time field in the request and less than the end_time field in the
50    * request. If a time range was not specified in the request this field will
51    * be equivalent to a time within the last 12 hours, indicating the latest
52    * pricing info.
53    * </pre>
54    *
55    * <code>.google.protobuf.Timestamp effective_time = 1;</code>
56    *
57    * @return The effectiveTime.
58    */
getEffectiveTime()59   com.google.protobuf.Timestamp getEffectiveTime();
60   /**
61    *
62    *
63    * <pre>
64    * The timestamp from which this pricing was effective within the requested
65    * time range. This is guaranteed to be greater than or equal to the
66    * start_time field in the request and less than the end_time field in the
67    * request. If a time range was not specified in the request this field will
68    * be equivalent to a time within the last 12 hours, indicating the latest
69    * pricing info.
70    * </pre>
71    *
72    * <code>.google.protobuf.Timestamp effective_time = 1;</code>
73    */
getEffectiveTimeOrBuilder()74   com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder();
75 
76   /**
77    *
78    *
79    * <pre>
80    * An optional human readable summary of the pricing information, has a
81    * maximum length of 256 characters.
82    * </pre>
83    *
84    * <code>string summary = 2;</code>
85    *
86    * @return The summary.
87    */
getSummary()88   java.lang.String getSummary();
89   /**
90    *
91    *
92    * <pre>
93    * An optional human readable summary of the pricing information, has a
94    * maximum length of 256 characters.
95    * </pre>
96    *
97    * <code>string summary = 2;</code>
98    *
99    * @return The bytes for summary.
100    */
getSummaryBytes()101   com.google.protobuf.ByteString getSummaryBytes();
102 
103   /**
104    *
105    *
106    * <pre>
107    * Expresses the pricing formula. See `PricingExpression` for an example.
108    * </pre>
109    *
110    * <code>.google.cloud.billing.v1.PricingExpression pricing_expression = 3;</code>
111    *
112    * @return Whether the pricingExpression field is set.
113    */
hasPricingExpression()114   boolean hasPricingExpression();
115   /**
116    *
117    *
118    * <pre>
119    * Expresses the pricing formula. See `PricingExpression` for an example.
120    * </pre>
121    *
122    * <code>.google.cloud.billing.v1.PricingExpression pricing_expression = 3;</code>
123    *
124    * @return The pricingExpression.
125    */
getPricingExpression()126   com.google.cloud.billing.v1.PricingExpression getPricingExpression();
127   /**
128    *
129    *
130    * <pre>
131    * Expresses the pricing formula. See `PricingExpression` for an example.
132    * </pre>
133    *
134    * <code>.google.cloud.billing.v1.PricingExpression pricing_expression = 3;</code>
135    */
getPricingExpressionOrBuilder()136   com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressionOrBuilder();
137 
138   /**
139    *
140    *
141    * <pre>
142    * Aggregation Info. This can be left unspecified if the pricing expression
143    * doesn't require aggregation.
144    * </pre>
145    *
146    * <code>.google.cloud.billing.v1.AggregationInfo aggregation_info = 4;</code>
147    *
148    * @return Whether the aggregationInfo field is set.
149    */
hasAggregationInfo()150   boolean hasAggregationInfo();
151   /**
152    *
153    *
154    * <pre>
155    * Aggregation Info. This can be left unspecified if the pricing expression
156    * doesn't require aggregation.
157    * </pre>
158    *
159    * <code>.google.cloud.billing.v1.AggregationInfo aggregation_info = 4;</code>
160    *
161    * @return The aggregationInfo.
162    */
getAggregationInfo()163   com.google.cloud.billing.v1.AggregationInfo getAggregationInfo();
164   /**
165    *
166    *
167    * <pre>
168    * Aggregation Info. This can be left unspecified if the pricing expression
169    * doesn't require aggregation.
170    * </pre>
171    *
172    * <code>.google.cloud.billing.v1.AggregationInfo aggregation_info = 4;</code>
173    */
getAggregationInfoOrBuilder()174   com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOrBuilder();
175 
176   /**
177    *
178    *
179    * <pre>
180    * Conversion rate used for currency conversion, from USD to the currency
181    * specified in the request. This includes any surcharge collected for billing
182    * in non USD currency. If a currency is not specified in the request this
183    * defaults to 1.0.
184    * Example: USD * currency_conversion_rate = JPY
185    * </pre>
186    *
187    * <code>double currency_conversion_rate = 5;</code>
188    *
189    * @return The currencyConversionRate.
190    */
getCurrencyConversionRate()191   double getCurrencyConversionRate();
192 }
193