// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/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/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 [TopicViewService.GetTopicView][google.ads.googleads.v3.services.TopicViewService.GetTopicView].
type GetTopicViewRequest struct {
	// Required. 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_9cc4db1367a5244f, []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.v3.services.GetTopicViewRequest")
}

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

var fileDescriptor_9cc4db1367a5244f = []byte{
	// 424 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x3d, 0xcb, 0xd3, 0x40,
	0x1c, 0x27, 0x11, 0x04, 0xc3, 0x23, 0x48, 0x44, 0x7c, 0x8c, 0x82, 0xa5, 0x74, 0x90, 0xf2, 0x70,
	0x07, 0x0d, 0x0e, 0x9e, 0x38, 0x5c, 0x11, 0xea, 0xa4, 0x45, 0x25, 0x83, 0x04, 0xc2, 0x35, 0xf9,
	0x37, 0x1e, 0x24, 0xb9, 0x98, 0xbb, 0xa6, 0x83, 0xb8, 0xf8, 0x15, 0xfc, 0x06, 0x8e, 0x7e, 0x03,
	0xbf, 0x42, 0x57, 0x37, 0x27, 0x07, 0x27, 0xfd, 0x06, 0xe2, 0x20, 0xe9, 0xe5, 0xd2, 0x54, 0x9e,
	0xd0, 0xed, 0xc7, 0xfd, 0x5e, 0xfe, 0x6f, 0xe7, 0x3c, 0x4a, 0x85, 0x48, 0x33, 0xc0, 0x2c, 0x91,
	0x58, 0xc3, 0x06, 0xd5, 0x3e, 0x96, 0x50, 0xd5, 0x3c, 0x06, 0x89, 0x95, 0x28, 0x79, 0x1c, 0xd5,
	0x1c, 0xb6, 0x51, 0xfb, 0x86, 0xca, 0x4a, 0x28, 0xe1, 0x8e, 0xb4, 0x1e, 0xb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xa7, 0x1f, 0xbc, 0xbb, 0x3b, 0x7a, 0x3e, 0xb4, 0x85, 0xf9, 0x5f, 0xcb, 0x99,
	0xc4, 0x22, 0x3f, 0x39, 0xcd, 0xfc, 0xd6, 0xff, 0x3b, 0x59, 0x36, 0x57, 0x59, 0x5a, 0x6f, 0x9e,
	0xb5, 0xd6, 0x54, 0x64, 0xac, 0x48, 0x91, 0xa8, 0x52, 0x9c, 0x42, 0xb1, 0xbf, 0x19, 0x3e, 0x14,
	0x1b, 0xfe, 0xba, 0x8f, 0x0d, 0xf8, 0x6c, 0x5f, 0x59, 0x50, 0xfa, 0xc5, 0x1e, 0x2d, 0x74, 0x20,
	0x4d, 0x24, 0xd2, 0xb0, 0x41, 0x81, 0x8f, 0xda, 0xc2, 0x72, 0x67, 0x24, 0x21, 0x4d, 0x64, 0xd8,
	0x49, 0xc2, 0xc0, 0x0f, 0x8d, 0xe4, 0x97, 0x3d, 0xd1, 0xef, 0x84, 0xd0, 0x44, 0x12, 0xd2, 0x89,
	0x08, 0x09, 0x7c, 0x42, 0x8c, 0x6c, 0x75, 0x75, 0xdf, 0xa7, 0xff, 0x2f, 0x00, 0x00, 0xff, 0xff,
	0xee, 0x09, 0x2b, 0xd6, 0x61, 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

// 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.ClientConnInterface
}

func NewTopicViewServiceClient(cc grpc.ClientConnInterface) 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.v3.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)
}

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

func (*UnimplementedTopicViewServiceServer) GetTopicView(ctx context.Context, req *GetTopicViewRequest) (*resources.TopicView, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetTopicView not implemented")
}

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.v3.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.v3.services.TopicViewService",
	HandlerType: (*TopicViewServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTopicView",
			Handler:    _TopicViewService_GetTopicView_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/ads/googleads/v3/services/topic_view_service.proto",
}
