| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/ads/googleads/v1/resources/asset.proto |
| |
| package resources |
| |
| import ( |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| wrappers "github.com/golang/protobuf/ptypes/wrappers" |
| common "google.golang.org/genproto/googleapis/ads/googleads/v1/common" |
| enums "google.golang.org/genproto/googleapis/ads/googleads/v1/enums" |
| _ "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 |
| |
| // Asset is a part of an ad which can be shared across multiple ads. |
| // It can be an image (ImageAsset), a video (YoutubeVideoAsset), etc. |
| type Asset struct { |
| // The resource name of the asset. |
| // Asset resource names have the form: |
| // |
| // `customers/{customer_id}/assets/{asset_id}` |
| ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` |
| // The ID of the asset. |
| Id *wrappers.Int64Value `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` |
| // Optional name of the asset. |
| Name *wrappers.StringValue `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` |
| // Type of the asset. |
| Type enums.AssetTypeEnum_AssetType `protobuf:"varint,4,opt,name=type,proto3,enum=google.ads.googleads.v1.enums.AssetTypeEnum_AssetType" json:"type,omitempty"` |
| // The specific type of the asset. |
| // |
| // Types that are valid to be assigned to AssetData: |
| // *Asset_YoutubeVideoAsset |
| // *Asset_MediaBundleAsset |
| // *Asset_ImageAsset |
| // *Asset_TextAsset |
| AssetData isAsset_AssetData `protobuf_oneof:"asset_data"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Asset) Reset() { *m = Asset{} } |
| func (m *Asset) String() string { return proto.CompactTextString(m) } |
| func (*Asset) ProtoMessage() {} |
| func (*Asset) Descriptor() ([]byte, []int) { |
| return fileDescriptor_6b8d91af9b64a99d, []int{0} |
| } |
| |
| func (m *Asset) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Asset.Unmarshal(m, b) |
| } |
| func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Asset.Marshal(b, m, deterministic) |
| } |
| func (m *Asset) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Asset.Merge(m, src) |
| } |
| func (m *Asset) XXX_Size() int { |
| return xxx_messageInfo_Asset.Size(m) |
| } |
| func (m *Asset) XXX_DiscardUnknown() { |
| xxx_messageInfo_Asset.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Asset proto.InternalMessageInfo |
| |
| func (m *Asset) GetResourceName() string { |
| if m != nil { |
| return m.ResourceName |
| } |
| return "" |
| } |
| |
| func (m *Asset) GetId() *wrappers.Int64Value { |
| if m != nil { |
| return m.Id |
| } |
| return nil |
| } |
| |
| func (m *Asset) GetName() *wrappers.StringValue { |
| if m != nil { |
| return m.Name |
| } |
| return nil |
| } |
| |
| func (m *Asset) GetType() enums.AssetTypeEnum_AssetType { |
| if m != nil { |
| return m.Type |
| } |
| return enums.AssetTypeEnum_UNSPECIFIED |
| } |
| |
| type isAsset_AssetData interface { |
| isAsset_AssetData() |
| } |
| |
| type Asset_YoutubeVideoAsset struct { |
| YoutubeVideoAsset *common.YoutubeVideoAsset `protobuf:"bytes,5,opt,name=youtube_video_asset,json=youtubeVideoAsset,proto3,oneof"` |
| } |
| |
| type Asset_MediaBundleAsset struct { |
| MediaBundleAsset *common.MediaBundleAsset `protobuf:"bytes,6,opt,name=media_bundle_asset,json=mediaBundleAsset,proto3,oneof"` |
| } |
| |
| type Asset_ImageAsset struct { |
| ImageAsset *common.ImageAsset `protobuf:"bytes,7,opt,name=image_asset,json=imageAsset,proto3,oneof"` |
| } |
| |
| type Asset_TextAsset struct { |
| TextAsset *common.TextAsset `protobuf:"bytes,8,opt,name=text_asset,json=textAsset,proto3,oneof"` |
| } |
| |
| func (*Asset_YoutubeVideoAsset) isAsset_AssetData() {} |
| |
| func (*Asset_MediaBundleAsset) isAsset_AssetData() {} |
| |
| func (*Asset_ImageAsset) isAsset_AssetData() {} |
| |
| func (*Asset_TextAsset) isAsset_AssetData() {} |
| |
| func (m *Asset) GetAssetData() isAsset_AssetData { |
| if m != nil { |
| return m.AssetData |
| } |
| return nil |
| } |
| |
| func (m *Asset) GetYoutubeVideoAsset() *common.YoutubeVideoAsset { |
| if x, ok := m.GetAssetData().(*Asset_YoutubeVideoAsset); ok { |
| return x.YoutubeVideoAsset |
| } |
| return nil |
| } |
| |
| func (m *Asset) GetMediaBundleAsset() *common.MediaBundleAsset { |
| if x, ok := m.GetAssetData().(*Asset_MediaBundleAsset); ok { |
| return x.MediaBundleAsset |
| } |
| return nil |
| } |
| |
| func (m *Asset) GetImageAsset() *common.ImageAsset { |
| if x, ok := m.GetAssetData().(*Asset_ImageAsset); ok { |
| return x.ImageAsset |
| } |
| return nil |
| } |
| |
| func (m *Asset) GetTextAsset() *common.TextAsset { |
| if x, ok := m.GetAssetData().(*Asset_TextAsset); ok { |
| return x.TextAsset |
| } |
| return nil |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*Asset) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*Asset_YoutubeVideoAsset)(nil), |
| (*Asset_MediaBundleAsset)(nil), |
| (*Asset_ImageAsset)(nil), |
| (*Asset_TextAsset)(nil), |
| } |
| } |
| |
| func init() { |
| proto.RegisterType((*Asset)(nil), "google.ads.googleads.v1.resources.Asset") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/ads/googleads/v1/resources/asset.proto", fileDescriptor_6b8d91af9b64a99d) |
| } |
| |
| var fileDescriptor_6b8d91af9b64a99d = []byte{ |
| // 508 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xc1, 0x6e, 0xd3, 0x30, |
| 0x18, 0xc7, 0x49, 0xd6, 0x0d, 0xe6, 0x0d, 0x04, 0xe6, 0x52, 0x8d, 0x09, 0x75, 0xa0, 0x49, 0x05, |
| 0x84, 0xd3, 0x0c, 0xb4, 0x43, 0x38, 0xa5, 0x12, 0x1a, 0xab, 0x34, 0x34, 0x85, 0x29, 0x12, 0xa8, |
| 0x52, 0x70, 0x6b, 0x13, 0x59, 0xaa, 0xed, 0x28, 0x76, 0xca, 0xfa, 0x3a, 0x1c, 0x79, 0x11, 0x24, |
| 0x1e, 0x85, 0x17, 0xe0, 0x8a, 0x62, 0xc7, 0x01, 0x15, 0x75, 0xb9, 0x7d, 0x76, 0x7e, 0xff, 0xdf, |
| 0xf7, 0xd5, 0xb5, 0xc1, 0xcb, 0x5c, 0xca, 0x7c, 0x41, 0x03, 0x4c, 0x54, 0x60, 0xcb, 0xba, 0x5a, |
| 0x86, 0x41, 0x49, 0x95, 0xac, 0xca, 0x39, 0x55, 0x01, 0x56, 0x8a, 0x6a, 0x54, 0x94, 0x52, 0x4b, |
| 0x78, 0x64, 0x19, 0x84, 0x89, 0x42, 0x2d, 0x8e, 0x96, 0x21, 0x6a, 0xf1, 0x83, 0xd1, 0x26, 0xe3, |
| 0x5c, 0x72, 0x2e, 0x85, 0xd5, 0x65, 0x7a, 0x55, 0x50, 0x65, 0xa5, 0x07, 0x68, 0x53, 0x82, 0x8a, |
| 0x8a, 0xab, 0x7f, 0x02, 0x0d, 0xff, 0xb8, 0xe1, 0xcd, 0x6a, 0x56, 0x7d, 0x09, 0xbe, 0x96, 0xb8, |
| 0x28, 0x68, 0xe9, 0x7c, 0x87, 0xce, 0x57, 0xb0, 0x00, 0x0b, 0x21, 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