// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/services/user_location_view_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 [UserLocationViewService.GetUserLocationView][google.ads.googleads.v3.services.UserLocationViewService.GetUserLocationView].
type GetUserLocationViewRequest struct {
	// Required. The resource name of the user location view 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 *GetUserLocationViewRequest) Reset()         { *m = GetUserLocationViewRequest{} }
func (m *GetUserLocationViewRequest) String() string { return proto.CompactTextString(m) }
func (*GetUserLocationViewRequest) ProtoMessage()    {}
func (*GetUserLocationViewRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_7fcc93788fa7dbb3, []int{0}
}

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

var xxx_messageInfo_GetUserLocationViewRequest proto.InternalMessageInfo

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

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

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

var fileDescriptor_7fcc93788fa7dbb3 = []byte{
	// 416 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x3d, 0x8b, 0xd5, 0x40,
	0x14, 0x25, 0x59, 0x10, 0x0c, 0xda, 0xc4, 0x62, 0x97, 0xb8, 0xe0, 0x63, 0xd9, 0x62, 0xd9, 0x62,
	0x06, 0x1c, 0x6c, 0x46, 0x2d, 0xe6, 0x15, 0x3e, 0x41, 0x91, 0x65, 0xc5, 0x14, 0x12, 0x08, 0xb3,
	0xc9, 0x35, 0x0e, 0x24, 0x99, 0xe7, 0xdc, 0x24, 0x5b, 0x88, 0x8d, 0xf6, 0x36, 0xfe, 0x03, 0x4b,
	0x7f, 0xca, 0xb6, 0x62, 0x63, 0x65, 0x61, 0xe5, 0xaf, 0x90, 0x64, 0x32, 0xd9, 0xb7, 0xcb, 0x86,
	0xd7, 0x1d, 0xe6, 0x9c, 0x7b, 0xce, 0xfd, 0x98, 0x40, 0x14, 0x5a, 0x17, 0x25, 0x50, 0x99, 0x23,
	0xb5, 0xb0, 0x47, 0x1d, 0xa3, 0x08, 0xa6, 0x53, 0x19, 0x20, 0x6d, 0x11, 0x4c, 0x5a, 0xea, 0x4c,
	0x36, 0x4a, 0xd7,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8a, 0xee, 0x5f, 0x88, 0xbd, 0xcb, 0xe0, 0x11,
	0xad, 0x15, 0x92, 0x4c, 0x57, 0xcb, 0x2f, 0x7e, 0x70, 0x98, 0xe9, 0x6a, 0xeb, 0x88, 0xcb, 0xfd,
	0x99, 0xb5, 0x9d, 0xf4, 0xf7, 0x39, 0xf1, 0xde, 0x3e, 0x1f, 0x1d, 0x0a, 0x5d, 0xca, 0xba, 0x20,
	0xda, 0x14, 0xb4, 0x80, 0x7a, 0xb8, 0x1e, 0xbd, 0xcc, 0x9c, 0xff, 0xb9, 0x8f, 0x1d, 0xf8, 0xee,
	0xef, 0xac, 0x84, 0xf8, 0xe1, 0x2f, 0x56, 0xd6, 0x50, 0xe4, 0x48, 0x2c, 0xec, 0x51, 0xcc, 0xc8,
	0x18, 0x8c, 0x17, 0x4e, 0x92, 0x88, 0x1c, 0x93, 0x49, 0x92, 0xc4, 0x2c, 0x71, 0x92, 0x7f, 0xfe,
	0xa1, 0x7d, 0xe7, 0x5c, 0xe4, 0xc8, 0xf9, 0x24, 0xe2, 0x3c, 0x66, 0x9c, 0x3b, 0xd9, 0xd9, 0xad,
	0xa1, 0x4f, 0xf6, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xa0, 0x4c, 0x17, 0x4e, 0x60, 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

// UserLocationViewServiceClient is the client API for UserLocationViewService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type UserLocationViewServiceClient interface {
	// Returns the requested user location view in full detail.
	GetUserLocationView(ctx context.Context, in *GetUserLocationViewRequest, opts ...grpc.CallOption) (*resources.UserLocationView, error)
}

type userLocationViewServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewUserLocationViewServiceClient(cc grpc.ClientConnInterface) UserLocationViewServiceClient {
	return &userLocationViewServiceClient{cc}
}

func (c *userLocationViewServiceClient) GetUserLocationView(ctx context.Context, in *GetUserLocationViewRequest, opts ...grpc.CallOption) (*resources.UserLocationView, error) {
	out := new(resources.UserLocationView)
	err := c.cc.Invoke(ctx, "/google.ads.googleads.v3.services.UserLocationViewService/GetUserLocationView", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// UserLocationViewServiceServer is the server API for UserLocationViewService service.
type UserLocationViewServiceServer interface {
	// Returns the requested user location view in full detail.
	GetUserLocationView(context.Context, *GetUserLocationViewRequest) (*resources.UserLocationView, error)
}

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

func (*UnimplementedUserLocationViewServiceServer) GetUserLocationView(ctx context.Context, req *GetUserLocationViewRequest) (*resources.UserLocationView, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetUserLocationView not implemented")
}

func RegisterUserLocationViewServiceServer(s *grpc.Server, srv UserLocationViewServiceServer) {
	s.RegisterService(&_UserLocationViewService_serviceDesc, srv)
}

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

var _UserLocationViewService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "google.ads.googleads.v3.services.UserLocationViewService",
	HandlerType: (*UserLocationViewServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserLocationView",
			Handler:    _UserLocationViewService_GetUserLocationView_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/ads/googleads/v3/services/user_location_view_service.proto",
}
