1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/ads/googleads/v3/services/carrier_constant_service.proto
3
4package services
5
6import (
7	context "context"
8	fmt "fmt"
9	math "math"
10
11	proto "github.com/golang/protobuf/proto"
12	resources "google.golang.org/genproto/googleapis/ads/googleads/v3/resources"
13	_ "google.golang.org/genproto/googleapis/api/annotations"
14	grpc "google.golang.org/grpc"
15	codes "google.golang.org/grpc/codes"
16	status "google.golang.org/grpc/status"
17)
18
19// Reference imports to suppress errors if they are not otherwise used.
20var _ = proto.Marshal
21var _ = fmt.Errorf
22var _ = math.Inf
23
24// This is a compile-time assertion to ensure that this generated file
25// is compatible with the proto package it is being compiled against.
26// A compilation error at this line likely means your copy of the
27// proto package needs to be updated.
28const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
29
30// Request message for [CarrierConstantService.GetCarrierConstant][google.ads.googleads.v3.services.CarrierConstantService.GetCarrierConstant].
31type GetCarrierConstantRequest struct {
32	// Required. Resource name of the carrier constant to fetch.
33	ResourceName         string   `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
34	XXX_NoUnkeyedLiteral struct{} `json:"-"`
35	XXX_unrecognized     []byte   `json:"-"`
36	XXX_sizecache        int32    `json:"-"`
37}
38
39func (m *GetCarrierConstantRequest) Reset()         { *m = GetCarrierConstantRequest{} }
40func (m *GetCarrierConstantRequest) String() string { return proto.CompactTextString(m) }
41func (*GetCarrierConstantRequest) ProtoMessage()    {}
42func (*GetCarrierConstantRequest) Descriptor() ([]byte, []int) {
43	return fileDescriptor_3024993599d2a450, []int{0}
44}
45
46func (m *GetCarrierConstantRequest) XXX_Unmarshal(b []byte) error {
47	return xxx_messageInfo_GetCarrierConstantRequest.Unmarshal(m, b)
48}
49func (m *GetCarrierConstantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
50	return xxx_messageInfo_GetCarrierConstantRequest.Marshal(b, m, deterministic)
51}
52func (m *GetCarrierConstantRequest) XXX_Merge(src proto.Message) {
53	xxx_messageInfo_GetCarrierConstantRequest.Merge(m, src)
54}
55func (m *GetCarrierConstantRequest) XXX_Size() int {
56	return xxx_messageInfo_GetCarrierConstantRequest.Size(m)
57}
58func (m *GetCarrierConstantRequest) XXX_DiscardUnknown() {
59	xxx_messageInfo_GetCarrierConstantRequest.DiscardUnknown(m)
60}
61
62var xxx_messageInfo_GetCarrierConstantRequest proto.InternalMessageInfo
63
64func (m *GetCarrierConstantRequest) GetResourceName() string {
65	if m != nil {
66		return m.ResourceName
67	}
68	return ""
69}
70
71func init() {
72	proto.RegisterType((*GetCarrierConstantRequest)(nil), "google.ads.googleads.v3.services.GetCarrierConstantRequest")
73}
74
75func init() {
76	proto.RegisterFile("google/ads/googleads/v3/services/carrier_constant_service.proto", fileDescriptor_3024993599d2a450)
77}
78
79var fileDescriptor_3024993599d2a450 = []byte{
80	// 418 bytes of a gzipped FileDescriptorProto
81	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x3d, 0xcb, 0xd3, 0x40,
82	0x1c, 0x27, 0x11, 0x04, 0x83, 0x2e, 0x19, 0xb4, 0x4d, 0x05, 0x4b, 0x29, 0x52, 0x3a, 0xdc, 0x49,
83	0xb3, 0xc8, 0x15, 0x95, 0x6b, 0x87, 0x3a, 0x49, 0x51, 0xec, 0x20, 0x81, 0x70, 0x4d, 0xce, 0x78,
84	0x90, 0xdc, 0xd5, 0xbb, 0x34, 0x8b, 0xb8, 0xf4, 0x2b, 0xf8, 0x0d, 0x1c, 0xfd, 0x1e, 0x2e, 0x5d,
85	0xdd, 0x9c, 0x1c, 0x9c, 0x9e, 0x8f, 0xf0, 0xc0, 0x03, 0x0f, 0xe9, 0xe5, 0xd2, 0x97, 0xa7, 0xa1,
86	0xdb, 0x8f, 0xfb, 0xbd, 0xfc, 0xdf, 0xce, 0x79, 0x93, 0x08, 0x91, 0xa4, 0x14, 0x92, 0x58, 0x41,
87	0x0d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0x58, 0x7b, 0xaf, 0xff, 0xe2, 0xe3, 0xd1, 0x37, 0x7f, 0xfe, 0xff,
99	0xb0, 0x07, 0xee, 0xf3, 0xf2, 0x8e, 0xdf, 0x8e, 0x98, 0x57, 0xd1, 0xb1, 0x57, 0xc1, 0xe1, 0x77,
100	0xaf, 0xb3, 0xc5, 0xad, 0xa6, 0xed, 0x4c, 0x36, 0xb6, 0xd3, 0x8f, 0x44, 0x76, 0x71, 0xa6, 0x49,
101	0xe7, 0xfc, 0x96, 0xe6, 0xe5, 0xe5, 0xe6, 0xd6, 0xa7, 0xb7, 0x55, 0x40, 0x22, 0x52, 0xc2, 0x13,
102	0x20, 0x64, 0x02, 0x13, 0xca, 0x77, 0x77, 0x85, 0xfb, 0x92, 0xcd, 0x5f, 0x7d, 0x6c, 0xc0, 0x4f,
103	0xfb, 0xde, 0x0c, 0xe3, 0x5f, 0x76, 0x77, 0xa6, 0x03, 0x71, 0xac, 0x80, 0x86, 0x25, 0x5a, 0xf8,
104	0xa0, 0x2a, 0xac, 0xb6, 0x46, 0x12, 0xe0, 0x58, 0x05, 0xb5, 0x24, 0x58, 0xf8, 0x81, 0x91, 0x5c,
105	0xd9, 0x7d, 0xfd, 0x8e, 0x10, 0x8e, 0x15, 0x42, 0xb5, 0x08, 0xa1, 0x85, 0x8f, 0x90, 0x91, 0x2d,
106	0xef, 0xef, 0xfa, 0xf4, 0x6f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x1d, 0x75, 0x85, 0xb0, 0x91, 0x03,
107	0x00, 0x00,
108}
109
110// Reference imports to suppress errors if they are not otherwise used.
111var _ context.Context
112var _ grpc.ClientConnInterface
113
114// This is a compile-time assertion to ensure that this generated file
115// is compatible with the grpc package it is being compiled against.
116const _ = grpc.SupportPackageIsVersion6
117
118// CarrierConstantServiceClient is the client API for CarrierConstantService service.
119//
120// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
121type CarrierConstantServiceClient interface {
122	// Returns the requested carrier constant in full detail.
123	GetCarrierConstant(ctx context.Context, in *GetCarrierConstantRequest, opts ...grpc.CallOption) (*resources.CarrierConstant, error)
124}
125
126type carrierConstantServiceClient struct {
127	cc grpc.ClientConnInterface
128}
129
130func NewCarrierConstantServiceClient(cc grpc.ClientConnInterface) CarrierConstantServiceClient {
131	return &carrierConstantServiceClient{cc}
132}
133
134func (c *carrierConstantServiceClient) GetCarrierConstant(ctx context.Context, in *GetCarrierConstantRequest, opts ...grpc.CallOption) (*resources.CarrierConstant, error) {
135	out := new(resources.CarrierConstant)
136	err := c.cc.Invoke(ctx, "/google.ads.googleads.v3.services.CarrierConstantService/GetCarrierConstant", in, out, opts...)
137	if err != nil {
138		return nil, err
139	}
140	return out, nil
141}
142
143// CarrierConstantServiceServer is the server API for CarrierConstantService service.
144type CarrierConstantServiceServer interface {
145	// Returns the requested carrier constant in full detail.
146	GetCarrierConstant(context.Context, *GetCarrierConstantRequest) (*resources.CarrierConstant, error)
147}
148
149// UnimplementedCarrierConstantServiceServer can be embedded to have forward compatible implementations.
150type UnimplementedCarrierConstantServiceServer struct {
151}
152
153func (*UnimplementedCarrierConstantServiceServer) GetCarrierConstant(ctx context.Context, req *GetCarrierConstantRequest) (*resources.CarrierConstant, error) {
154	return nil, status.Errorf(codes.Unimplemented, "method GetCarrierConstant not implemented")
155}
156
157func RegisterCarrierConstantServiceServer(s *grpc.Server, srv CarrierConstantServiceServer) {
158	s.RegisterService(&_CarrierConstantService_serviceDesc, srv)
159}
160
161func _CarrierConstantService_GetCarrierConstant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
162	in := new(GetCarrierConstantRequest)
163	if err := dec(in); err != nil {
164		return nil, err
165	}
166	if interceptor == nil {
167		return srv.(CarrierConstantServiceServer).GetCarrierConstant(ctx, in)
168	}
169	info := &grpc.UnaryServerInfo{
170		Server:     srv,
171		FullMethod: "/google.ads.googleads.v3.services.CarrierConstantService/GetCarrierConstant",
172	}
173	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
174		return srv.(CarrierConstantServiceServer).GetCarrierConstant(ctx, req.(*GetCarrierConstantRequest))
175	}
176	return interceptor(ctx, in, info, handler)
177}
178
179var _CarrierConstantService_serviceDesc = grpc.ServiceDesc{
180	ServiceName: "google.ads.googleads.v3.services.CarrierConstantService",
181	HandlerType: (*CarrierConstantServiceServer)(nil),
182	Methods: []grpc.MethodDesc{
183		{
184			MethodName: "GetCarrierConstant",
185			Handler:    _CarrierConstantService_GetCarrierConstant_Handler,
186		},
187	},
188	Streams:  []grpc.StreamDesc{},
189	Metadata: "google/ads/googleads/v3/services/carrier_constant_service.proto",
190}
191