1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
|
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/common/value.proto
package common
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// A generic data container.
type Value struct {
// A value.
//
// Types that are valid to be assigned to Value:
// *Value_BooleanValue
// *Value_Int64Value
// *Value_FloatValue
// *Value_DoubleValue
// *Value_StringValue
Value isValue_Value `protobuf_oneof:"value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Value) Reset() { *m = Value{} }
func (m *Value) String() string { return proto.CompactTextString(m) }
func (*Value) ProtoMessage() {}
func (*Value) Descriptor() ([]byte, []int) {
return fileDescriptor_a73d72db515a577a, []int{0}
}
func (m *Value) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Value.Unmarshal(m, b)
}
func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Value.Marshal(b, m, deterministic)
}
func (m *Value) XXX_Merge(src proto.Message) {
xxx_messageInfo_Value.Merge(m, src)
}
func (m *Value) XXX_Size() int {
return xxx_messageInfo_Value.Size(m)
}
func (m *Value) XXX_DiscardUnknown() {
xxx_messageInfo_Value.DiscardUnknown(m)
}
var xxx_messageInfo_Value proto.InternalMessageInfo
type isValue_Value interface {
isValue_Value()
}
type Value_BooleanValue struct {
BooleanValue bool `protobuf:"varint,1,opt,name=boolean_value,json=booleanValue,proto3,oneof"`
}
type Value_Int64Value struct {
Int64Value int64 `protobuf:"varint,2,opt,name=int64_value,json=int64Value,proto3,oneof"`
}
type Value_FloatValue struct {
FloatValue float32 `protobuf:"fixed32,3,opt,name=float_value,json=floatValue,proto3,oneof"`
}
type Value_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
type Value_StringValue struct {
StringValue string `protobuf:"bytes,5,opt,name=string_value,json=stringValue,proto3,oneof"`
}
func (*Value_BooleanValue) isValue_Value() {}
func (*Value_Int64Value) isValue_Value() {}
func (*Value_FloatValue) isValue_Value() {}
func (*Value_DoubleValue) isValue_Value() {}
func (*Value_StringValue) isValue_Value() {}
func (m *Value) GetValue() isValue_Value {
if m != nil {
return m.Value
}
return nil
}
func (m *Value) GetBooleanValue() bool {
if x, ok := m.GetValue().(*Value_BooleanValue); ok {
return x.BooleanValue
}
return false
}
func (m *Value) GetInt64Value() int64 {
if x, ok := m.GetValue().(*Value_Int64Value); ok {
return x.Int64Value
}
return 0
}
func (m *Value) GetFloatValue() float32 {
if x, ok := m.GetValue().(*Value_FloatValue); ok {
return x.FloatValue
}
return 0
}
func (m *Value) GetDoubleValue() float64 {
if x, ok := m.GetValue().(*Value_DoubleValue); ok {
return x.DoubleValue
}
return 0
}
func (m *Value) GetStringValue() string {
if x, ok := m.GetValue().(*Value_StringValue); ok {
return x.StringValue
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*Value) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*Value_BooleanValue)(nil),
(*Value_Int64Value)(nil),
(*Value_FloatValue)(nil),
(*Value_DoubleValue)(nil),
(*Value_StringValue)(nil),
}
}
func init() {
proto.RegisterType((*Value)(nil), "google.ads.googleads.v3.common.Value")
}
func init() {
proto.RegisterFile("google/ads/googleads/v3/common/value.proto", fileDescriptor_a73d72db515a577a)
}
var fileDescriptor_a73d72db515a577a = []byte{
// 328 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0xd1, 0x4f, 0x4b, 0xc3, 0x30,
0x18, 0x06, 0xf0, 0xa5, 0x73, 0xfe, 0xc9, 0xe6, 0x65, 0x27, 0x11, 0x19, 0x75, 0x22, 0x14, 0x0f,
0xe9, 0xa1, 0xe2, 0x21, 0x9e, 0x3a, 0x85, 0xed, 0x38, 0x76, 0xe8, 0x41, 0x0a, 0x92, 0xad, 0x35,
0x14, 0xb2, 0xbc, 0x63, 0xc9, 0xf6, 0x81, 0x3c, 0xfa, 0x45, 0x04, 0xbf, 0x87, 0x17, 0x3f, 0x85,
0x24, 0x6f, 0xd6, 0x9b, 0x9e, 0xfa, 0xf2, 0xf4, 0x97, 0x87, 0xf6, 0x0d, 0xbd, 0x93, 0x00, 0x52,
0xd5, 0xa9, 0xa8, 0x4c, 0x8a, 0xa3, 0x9b, 0xf6, 0x59, 0xba, 0x82, 0xf5, 0x1a, 0x74, 0xba, 0x17,
0x6a, 0x57, 0xb3, 0xcd, 0x16, 0x2c, 0x0c, 0x47, 0x08, 0x98, 0xa8, 0x0c, 0x6b, 0x2d, 0xdb, 0x67,
0x0c, 0xed, 0xe5, 0xd5, 0xa1, 0x6b, 0xd3, 0xa4, 0x42, 0x6b, 0xb0, 0xc2, 0x36, 0xa0, 0x0d, 0x9e,
0x1e, 0x7f, 0x12, 0xda, 0x2b, 0x5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