// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/services/currency_constant_service.proto

package services

import (
	context "context"
	fmt "fmt"
	math "math"

	proto "github.com/golang/protobuf/proto"
	resources "google.golang.org/genproto/googleapis/ads/googleads/v3/resources"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
)

// 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

// Request message for [CurrencyConstantService.GetCurrencyConstant][google.ads.googleads.v3.services.CurrencyConstantService.GetCurrencyConstant].
type GetCurrencyConstantRequest struct {
	// Required. Resource name of the currency constant to fetch.
	ResourceName         string   `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *GetCurrencyConstantRequest) Reset()         { *m = GetCurrencyConstantRequest{} }
func (m *GetCurrencyConstantRequest) String() string { return proto.CompactTextString(m) }
func (*GetCurrencyConstantRequest) ProtoMessage()    {}
func (*GetCurrencyConstantRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_823f63dbbd8d219a, []int{0}
}

func (m *GetCurrencyConstantRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_GetCurrencyConstantRequest.Unmarshal(m, b)
}
func (m *GetCurrencyConstantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_GetCurrencyConstantRequest.Marshal(b, m, deterministic)
}
func (m *GetCurrencyConstantRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GetCurrencyConstantRequest.Merge(m, src)
}
func (m *GetCurrencyConstantRequest) XXX_Size() int {
	return xxx_messageInfo_GetCurrencyConstantRequest.Size(m)
}
func (m *GetCurrencyConstantRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_GetCurrencyConstantRequest.DiscardUnknown(m)
}

var xxx_messageInfo_GetCurrencyConstantRequest proto.InternalMessageInfo

func (m *GetCurrencyConstantRequest) GetResourceName() string {
	if m != nil {
		return m.ResourceName
	}
	return ""
}

func init() {
	proto.RegisterType((*GetCurrencyConstantRequest)(nil), "google.ads.googleads.v3.services.GetCurrencyConstantRequest")
}

func init() {
	proto.RegisterFile("google/ads/googleads/v3/services/currency_constant_service.proto", fileDescriptor_823f63dbbd8d219a)
}

var fileDescriptor_823f63dbbd8d219a = []byte{
	// 404 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xcf, 0x8a, 0xd3, 0x40,
	0x18, 0x27, 0x29, 0x08, 0x06, 0xbd, 0xc4, 0x43, 0x4b, 0x2c, 0x58, 0x4a, 0xc1, 0xea, 0x61, 0x06,
	0xcc, 0xc9, 0x51, 0xd1, 0x69, 0xc1, 0x7a, 0x92, 0x52, 0xa1, 0x07, 0x09, 0x84, 0xe9, 0x64, 0x8c,
	0x81, 0x64, 0xa6, 0xce, 0xa4, 0x01, 0x11, 0x2f, 0xf5, 0x11, 0x7c, 0x83, 0x3d, 0xee, 0x9b, 0x6c,
	0xaf, 0x7b, 0xdb, 0xd3, 0x1e, 0xf6, 0xb4, 0x4f, 0xb1, 0xa4, 0x93, 0x49, 0xff, 0xd0, 0xd0, 0xdb,
	0x8f, 0xfc, 0xfe, 0xcd, 0xf7, 0x7d, 0x71, 0x3e, 0xc5, 0x42, 0xc4, 0x29, 0x83, 0x24, 0x52, 0x50,
	0xc3, 0x12, 0x15, 0x3e, 0x54, 0x4c, 0x16, 0x09, 0x65, 0x0a, 0xd2, 0x95, 0x94, 0x8c, 0x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x96, 0x89, 0x02, 0x54, 0x64, 0xa3, 0x7f, 0xb6, 0x33, 0xa0, 0x22, 0x3b, 0x3b,
	0xd6, 0xa8, 0xdb, 0xb0, 0xaa, 0x69, 0x79, 0x93, 0xa9, 0xf5, 0xfd, 0x4b, 0x95, 0x10, 0x8b, 0x94,
	0xf0, 0x18, 0x08, 0x19, 0xc3, 0x98, 0xf1, 0xed, 0xc5, 0xe0, 0xae, 0xb3, 0xf9, 0x5f, 0x7d, 0x67,
	0xc0, 0x85, 0xdd, 0x9a, 0x60, 0x7c, 0x69, 0xf7, 0x26, 0x3a, 0x10, 0x47, 0x0a, 0x68, 0x58, 0xa2,
	0xb9, 0x0f, 0xaa, 0x62, 0xb5, 0x31, 0x92, 0x00, 0x47, 0x2a, 0xa8, 0x25, 0xc1, 0xdc, 0x0f, 0x8c,
	0xe4, 0xde, 0x1e, 0xe8, 0xef, 0x08, 0xe1, 0x48, 0x21, 0x54, 0x8b, 0x10, 0x9a, 0xfb, 0x08, 0x19,
	0xd9, 0xe2, 0xd1, 0xf6, 0x9d, 0xfe, 0x43, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x98, 0x53, 0xcf,
	0x52, 0x03, 0x00, 0x00,
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6

// CurrencyConstantServiceClient is the client API for CurrencyConstantService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CurrencyConstantServiceClient interface {
	// Returns the requested currency constant.
	GetCurrencyConstant(ctx context.Context, in *GetCurrencyConstantRequest, opts ...grpc.CallOption) (*resources.CurrencyConstant, error)
}

type currencyConstantServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewCurrencyConstantServiceClient(cc grpc.ClientConnInterface) CurrencyConstantServiceClient {
	return &currencyConstantServiceClient{cc}
}

func (c *currencyConstantServiceClient) GetCurrencyConstant(ctx context.Context, in *GetCurrencyConstantRequest, opts ...grpc.CallOption) (*resources.CurrencyConstant, error) {
	out := new(resources.CurrencyConstant)
	err := c.cc.Invoke(ctx, "/google.ads.googleads.v3.services.CurrencyConstantService/GetCurrencyConstant", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// CurrencyConstantServiceServer is the server API for CurrencyConstantService service.
type CurrencyConstantServiceServer interface {
	// Returns the requested currency constant.
	GetCurrencyConstant(context.Context, *GetCurrencyConstantRequest) (*resources.CurrencyConstant, error)
}

// UnimplementedCurrencyConstantServiceServer can be embedded to have forward compatible implementations.
type UnimplementedCurrencyConstantServiceServer struct {
}

func (*UnimplementedCurrencyConstantServiceServer) GetCurrencyConstant(ctx context.Context, req *GetCurrencyConstantRequest) (*resources.CurrencyConstant, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetCurrencyConstant not implemented")
}

func RegisterCurrencyConstantServiceServer(s *grpc.Server, srv CurrencyConstantServiceServer) {
	s.RegisterService(&_CurrencyConstantService_serviceDesc, srv)
}

func _CurrencyConstantService_GetCurrencyConstant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetCurrencyConstantRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CurrencyConstantServiceServer).GetCurrencyConstant(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/google.ads.googleads.v3.services.CurrencyConstantService/GetCurrencyConstant",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CurrencyConstantServiceServer).GetCurrencyConstant(ctx, req.(*GetCurrencyConstantRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _CurrencyConstantService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "google.ads.googleads.v3.services.CurrencyConstantService",
	HandlerType: (*CurrencyConstantServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCurrencyConstant",
			Handler:    _CurrencyConstantService_GetCurrencyConstant_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/ads/googleads/v3/services/currency_constant_service.proto",
}
