// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/services/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/v1/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
// [LocationViewService.GetLocationView][google.ads.googleads.v1.services.LocationViewService.GetLocationView].
type GetLocationViewRequest struct {
	// The resource name of the 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 *GetLocationViewRequest) Reset()         { *m = GetLocationViewRequest{} }
func (m *GetLocationViewRequest) String() string { return proto.CompactTextString(m) }
func (*GetLocationViewRequest) ProtoMessage()    {}
func (*GetLocationViewRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_cee10bb181b86493, []int{0}
}

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

var xxx_messageInfo_GetLocationViewRequest proto.InternalMessageInfo

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

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

func init() {
	proto.RegisterFile("google/ads/googleads/v1/services/location_view_service.proto", fileDescriptor_cee10bb181b86493)
}

var fileDescriptor_cee10bb181b86493 = []byte{
	// 362 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x3f, 0x4b, 0xc3, 0x40,
	0x18, 0xc6, 0x49, 0x04, 0xc1, 0xa0, 0x08, 0x11, 0xa4, 0x14, 0x87, 0x52, 0x3b, 0x48, 0x87, 0x3b,
	0xa2, 0x88, 0x72, 0xda, 0x21, 0x5d, 0xea, 0x20, 0x52, 0x2a, 0x64, 0x90, 0x40, 0x39, 0x93, 0x97,
	0x10, 0x68, 0x72, 0x35, 0xef, 0x35, 0x1d, 0xc4, 0xc5, 0xaf, 0xe0, 0x37, 0x70, 0x74, 0xf7, 0x4b,
	0x08, 0x4e, 0x7e, 0x05, 0x27, 0xbf, 0x84, 0x92, 0x5e, 0x2e, 0x54, 0x6d, 0xe9, 0xf6, 0xf0, 0xe6,
	0xf9, 0x3d, 0xef, 0x9f, 0x9c, 0x75, 0x1e, 0x09, 0x11, 0x8d, 0x80, 0xf2, 0x10, 0xa9, 0x92, 0x85,
	0xca, 0x1d, 0x8a, 0x90, 0xe5, 0x71, 0x00, 0x48, 0x47, 0x22, 0xe0, 0x32, 0x16, 0xe9, 0x30, 0x8f,
	0x61, 0x3a, 0x2c, 0xcb, 0x64, 0x9c, 0x09, 0x29, 0xec, 0x86, 0x42, 0x08, 0x0f, 0x91, 0x54, 0x34,
	0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0b, 0xe5, 0x39, 0xa4, 0x6c, 0x8c, 0x6f, 0xda, 0xe2, 0xbb, 0x21,
	0xfa, 0x95, 0xc5, 0xf7, 0x1c, 0x5f, 0x5b, 0xbe, 0xcc, 0x96, 0xaa, 0x33, 0xe6, 0x86, 0xc8, 0x58,
	0x65, 0x62, 0xcc, 0x73, 0x18, 0xd3, 0xb6, 0xdb, 0xf5, 0xd9, 0x9c, 0x47, 0x3f, 0x01, 0x00, 0x00,
	0xff, 0xff, 0x91, 0x8a, 0x03, 0x21, 0xce, 0x02, 0x00, 0x00,
}

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

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

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

type locationViewServiceClient struct {
	cc *grpc.ClientConn
}

func NewLocationViewServiceClient(cc *grpc.ClientConn) LocationViewServiceClient {
	return &locationViewServiceClient{cc}
}

func (c *locationViewServiceClient) GetLocationView(ctx context.Context, in *GetLocationViewRequest, opts ...grpc.CallOption) (*resources.LocationView, error) {
	out := new(resources.LocationView)
	err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.LocationViewService/GetLocationView", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// LocationViewServiceServer is the server API for LocationViewService service.
type LocationViewServiceServer interface {
	// Returns the requested location view in full detail.
	GetLocationView(context.Context, *GetLocationViewRequest) (*resources.LocationView, error)
}

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

func (*UnimplementedLocationViewServiceServer) GetLocationView(ctx context.Context, req *GetLocationViewRequest) (*resources.LocationView, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetLocationView not implemented")
}

func RegisterLocationViewServiceServer(s *grpc.Server, srv LocationViewServiceServer) {
	s.RegisterService(&_LocationViewService_serviceDesc, srv)
}

func _LocationViewService_GetLocationView_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetLocationViewRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(LocationViewServiceServer).GetLocationView(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/google.ads.googleads.v1.services.LocationViewService/GetLocationView",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(LocationViewServiceServer).GetLocationView(ctx, req.(*GetLocationViewRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _LocationViewService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "google.ads.googleads.v1.services.LocationViewService",
	HandlerType: (*LocationViewServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetLocationView",
			Handler:    _LocationViewService_GetLocationView_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/ads/googleads/v1/services/location_view_service.proto",
}
