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/channel/v1/offers.proto 18 19 package com.google.cloud.channel.v1; 20 21 public interface PriceOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.channel.v1.Price) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Base price. 31 * </pre> 32 * 33 * <code>.google.type.Money base_price = 1;</code> 34 * 35 * @return Whether the basePrice field is set. 36 */ hasBasePrice()37 boolean hasBasePrice(); 38 /** 39 * 40 * 41 * <pre> 42 * Base price. 43 * </pre> 44 * 45 * <code>.google.type.Money base_price = 1;</code> 46 * 47 * @return The basePrice. 48 */ getBasePrice()49 com.google.type.Money getBasePrice(); 50 /** 51 * 52 * 53 * <pre> 54 * Base price. 55 * </pre> 56 * 57 * <code>.google.type.Money base_price = 1;</code> 58 */ getBasePriceOrBuilder()59 com.google.type.MoneyOrBuilder getBasePriceOrBuilder(); 60 61 /** 62 * 63 * 64 * <pre> 65 * Discount percentage, represented as decimal. 66 * For example, a 20% discount will be represent as 0.2. 67 * </pre> 68 * 69 * <code>double discount = 2;</code> 70 * 71 * @return The discount. 72 */ getDiscount()73 double getDiscount(); 74 75 /** 76 * 77 * 78 * <pre> 79 * Effective Price after applying the discounts. 80 * </pre> 81 * 82 * <code>.google.type.Money effective_price = 3;</code> 83 * 84 * @return Whether the effectivePrice field is set. 85 */ hasEffectivePrice()86 boolean hasEffectivePrice(); 87 /** 88 * 89 * 90 * <pre> 91 * Effective Price after applying the discounts. 92 * </pre> 93 * 94 * <code>.google.type.Money effective_price = 3;</code> 95 * 96 * @return The effectivePrice. 97 */ getEffectivePrice()98 com.google.type.Money getEffectivePrice(); 99 /** 100 * 101 * 102 * <pre> 103 * Effective Price after applying the discounts. 104 * </pre> 105 * 106 * <code>.google.type.Money effective_price = 3;</code> 107 */ getEffectivePriceOrBuilder()108 com.google.type.MoneyOrBuilder getEffectivePriceOrBuilder(); 109 110 /** 111 * 112 * 113 * <pre> 114 * Link to external price list, such as link to Google Voice rate card. 115 * </pre> 116 * 117 * <code>string external_price_uri = 4;</code> 118 * 119 * @return The externalPriceUri. 120 */ getExternalPriceUri()121 java.lang.String getExternalPriceUri(); 122 /** 123 * 124 * 125 * <pre> 126 * Link to external price list, such as link to Google Voice rate card. 127 * </pre> 128 * 129 * <code>string external_price_uri = 4;</code> 130 * 131 * @return The bytes for externalPriceUri. 132 */ getExternalPriceUriBytes()133 com.google.protobuf.ByteString getExternalPriceUriBytes(); 134 } 135