// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/services/user_interest_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 [UserInterestService.GetUserInterest][google.ads.googleads.v3.services.UserInterestService.GetUserInterest].
type GetUserInterestRequest struct {
	// Required. Resource name of the UserInterest 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 *GetUserInterestRequest) Reset()         { *m = GetUserInterestRequest{} }
func (m *GetUserInterestRequest) String() string { return proto.CompactTextString(m) }
func (*GetUserInterestRequest) ProtoMessage()    {}
func (*GetUserInterestRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_a82485cc994a3e73, []int{0}
}

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

var xxx_messageInfo_GetUserInterestRequest proto.InternalMessageInfo

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

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

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

var fileDescriptor_a82485cc994a3e73 = []byte{
	// 411 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x3f, 0x8b, 0xd4, 0x40,
	0x14, 0x27, 0x39, 0x10, 0x0c, 0x8a, 0x10, 0x41, 0x97, 0x55, 0x70, 0x39, 0xae, 0x38, 0xae, 0x98,
	0x41, 0x83, 0x20, 0xa3, 0x16, 0xb3, 0x4d, 0xb4, 0x91, 0xe3, 0xc4, 0x2d, 0x24, 0x10, 0xe6, 0x92,
	0x67, 0x1c, 0x48, 0x66, 0xd6, 0x79, 0x93, 0x34, 0x62, 0xe3, 0x57, 0xf0, 0x1b, 0x58, 0xfa, 0x3d,
	0x6c, 0xae, 0xb5, 0xb3, 0xb2, 0xb0, 0xf2, 0x23, 0xd8, 0x28, 0xd9, 0xc9, 0xe4, 0x72, 0x7a, 0xcb,
	0x76, 0x3f, 0xf2, 0x7e, 0x7f, 0xde, 0xfb, 0x4d, 0xa2, 0x27, 0x95, 0xd6, 0x55, 0x0d, 0x54, 0x94,
	0x48, 0x1d, 0xec, 0x51, 0x97, 0x50, 0x04, 0xd3, 0xc9, 0x02, 0x90, 0xb6, 0x08, 0x26, 0x97, 0xca,
	0x82, 0x01, 0xb4, 0xf9, 0xf0, 0x99, 0xac, 0x8d, 0xb6, 0x3a, 0x5e, 0x38, 0x09, 0x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 0x9b, 0x9d, 0x67, 0x2d, 0x67, 0x97, 0x54, 0x74, 0xdc, 0xbf, 0xc1, 0x71,
	0xf0, 0xfa, 0xd9, 0xa0, 0xae, 0x74, 0x2d, 0x54, 0x45, 0xb4, 0xa9, 0x68, 0x05, 0x6a, 0xf3, 0x42,
	0xf4, 0x3c, 0x6f, 0xfb, 0x3f, 0xf9, 0xd8, 0x83, 0xcf, 0xe1, 0x5e, 0xca, 0xf9, 0x97, 0x70, 0x91,
	0x3a, 0x43, 0x5e, 0x22, 0x71, 0xb0, 0x47, 0xab, 0x84, 0x0c, 0xc1, 0x78, 0xe6, 0x29, 0x19, 0x2f,
	0x31, 0x1b, 0x29, 0xd9, 0x2a, 0xc9, 0x3c, 0xe5, 0x57, 0x78, 0xe0, 0xbe, 0x33, 0xc6, 0x4b, 0x64,
	0x6c, 0x24, 0x31, 0xb6, 0x4a, 0x18, 0xf3, 0xb4, 0xd3, 0x2b, 0x9b, 0x3d, 0x93, 0xbf, 0x01, 0x00,
	0x00, 0xff, 0xff, 0x21, 0xc7, 0xa4, 0xbc, 0x3a, 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

// UserInterestServiceClient is the client API for UserInterestService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type UserInterestServiceClient interface {
	// Returns the requested user interest in full detail
	GetUserInterest(ctx context.Context, in *GetUserInterestRequest, opts ...grpc.CallOption) (*resources.UserInterest, error)
}

type userInterestServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewUserInterestServiceClient(cc grpc.ClientConnInterface) UserInterestServiceClient {
	return &userInterestServiceClient{cc}
}

func (c *userInterestServiceClient) GetUserInterest(ctx context.Context, in *GetUserInterestRequest, opts ...grpc.CallOption) (*resources.UserInterest, error) {
	out := new(resources.UserInterest)
	err := c.cc.Invoke(ctx, "/google.ads.googleads.v3.services.UserInterestService/GetUserInterest", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// UserInterestServiceServer is the server API for UserInterestService service.
type UserInterestServiceServer interface {
	// Returns the requested user interest in full detail
	GetUserInterest(context.Context, *GetUserInterestRequest) (*resources.UserInterest, error)
}

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

func (*UnimplementedUserInterestServiceServer) GetUserInterest(ctx context.Context, req *GetUserInterestRequest) (*resources.UserInterest, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetUserInterest not implemented")
}

func RegisterUserInterestServiceServer(s *grpc.Server, srv UserInterestServiceServer) {
	s.RegisterService(&_UserInterestService_serviceDesc, srv)
}

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

var _UserInterestService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "google.ads.googleads.v3.services.UserInterestService",
	HandlerType: (*UserInterestServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserInterest",
			Handler:    _UserInterestService_GetUserInterest_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/ads/googleads/v3/services/user_interest_service.proto",
}
