// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/services/topic_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/v2/resources"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	grpc "google.golang.org/grpc"
)

// 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 [TopicViewService.GetTopicView][google.ads.googleads.v2.services.TopicViewService.GetTopicView].
type GetTopicViewRequest struct {
	// The resource name of the topic 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 *GetTopicViewRequest) Reset()         { *m = GetTopicViewRequest{} }
func (m *GetTopicViewRequest) String() string { return proto.CompactTextString(m) }
func (*GetTopicViewRequest) ProtoMessage()    {}
func (*GetTopicViewRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_c6d00f993f4e0946, []int{0}
}

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

var xxx_messageInfo_GetTopicViewRequest proto.InternalMessageInfo

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

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

func init() {
	proto.RegisterFile("google/ads/googleads/v2/services/topic_view_service.proto", fileDescriptor_c6d00f993f4e0946)
}

var fileDescriptor_c6d00f993f4e0946 = []byte{
	// 379 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x31, 0x4b, 0xc3, 0x40,
	0x18, 0x25, 0x11, 0x04, 0x43, 0x05, 0x89, 0x88, 0x25, 0x3a, 0x94, 0xda, 0x41, 0x4a, 0xb9, 0x83,
	0xa8, 0x83, 0x27, 0x0e, 0xe9, 0x52, 0x27, 0x29, 0x55, 0x32, 0x48, 0xa0, 0xc4, 0xe4, 0x08, 0x07,
	0x4d, 0x2e, 0xe6, 0xbb, 0xa6, 0x83, 0xb8, 0xf8, 0x17, 0xfc, 0x07, 0x6e, 0xfa, 0x53, 0xba, 0x3a,
	0xba, 0x3a, 0xf9, 0x1b, 0x1c, 0x24, 0xbd, 0x5c, 0xda, 0x8a, 0xa5, 0xdb, 0xe3, 0xfb, 0xde, 0x7b,
	0xdf, 0xbb, 0xc7, 0x19, 0xe7, 0x11, 0xe7, 0xd1, 0x88, 0x62, 0x3f, 0x04, 0x2c, 0x61, 0x81, 0x72,
	0x1b, 0x03, 0xcd, 0x72, 0x16, 0x50, 0xc0, 0x82, 0xa7, 0x2c, 0x18, 0xe6, 0x8c, 0x4e, 0x86, 0xe5,
	0x0c, 0xa5, 0x19, 0x17, 0xdc, 0x6c, 0x48, 0x3e, 0xf2, 0x43, 0x40, 0x95, 0x14, 0xe5, 0x36, 0x52,
	0x52, 0xcb, 0x5e, 0x65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xbc, 0xea, 0x1b, 0x3d, 0xc7, 0x79, 0xd7, 0x1b,
	0x3d, 0x69, 0xe8, 0x84, 0x80, 0x24, 0x2c, 0x90, 0x6b, 0xa3, 0xf2, 0x30, 0x4c, 0x15, 0xc5, 0x73,
	0x42, 0xf0, 0x2a, 0x8a, 0xe7, 0xda, 0x9e, 0xa2, 0x7c, 0xeb, 0x2d, 0x39, 0x27, 0xc4, 0x09, 0x81,
	0x90, 0x8a, 0x44, 0x88, 0x6b, 0x13, 0xa2, 0x68, 0xf7, 0x9b, 0xb3, 0x9c, 0x27, 0xbf, 0x01, 0x00,
	0x00, 0xff, 0xff, 0x80, 0xae, 0x3b, 0xed, 0xe9, 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

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

type topicViewServiceClient struct {
	cc *grpc.ClientConn
}

func NewTopicViewServiceClient(cc *grpc.ClientConn) TopicViewServiceClient {
	return &topicViewServiceClient{cc}
}

func (c *topicViewServiceClient) GetTopicView(ctx context.Context, in *GetTopicViewRequest, opts ...grpc.CallOption) (*resources.TopicView, error) {
	out := new(resources.TopicView)
	err := c.cc.Invoke(ctx, "/google.ads.googleads.v2.services.TopicViewService/GetTopicView", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// TopicViewServiceServer is the server API for TopicViewService service.
type TopicViewServiceServer interface {
	// Returns the requested topic view in full detail.
	GetTopicView(context.Context, *GetTopicViewRequest) (*resources.TopicView, error)
}

func RegisterTopicViewServiceServer(s *grpc.Server, srv TopicViewServiceServer) {
	s.RegisterService(&_TopicViewService_serviceDesc, srv)
}

func _TopicViewService_GetTopicView_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetTopicViewRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TopicViewServiceServer).GetTopicView(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/google.ads.googleads.v2.services.TopicViewService/GetTopicView",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TopicViewServiceServer).GetTopicView(ctx, req.(*GetTopicViewRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _TopicViewService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "google.ads.googleads.v2.services.TopicViewService",
	HandlerType: (*TopicViewServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTopicView",
			Handler:    _TopicViewService_GetTopicView_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/ads/googleads/v2/services/topic_view_service.proto",
}
