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

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

var xxx_messageInfo_GetOperatingSystemVersionConstantRequest proto.InternalMessageInfo

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

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

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

var fileDescriptor_0b1505ba5b934207 = []byte{
	// 445 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x31, 0x8b, 0x13, 0x41,
	0x14, 0xc7, 0xc9, 0x0a, 0x82, 0x8b, 0x36, 0xdb, 0x78, 0x46, 0xc1, 0x78, 0x9c, 0x70, 0x5c, 0x31,
	0x03, 0x2e, 0x72, 0x38, 0x22, 0x32, 0xb1, 0x88, 0x0a, 0x6a, 0xf0, 0x20, 0x85, 0x04, 0x96, 0xb9,
	0xdd, 0xe7, 0x3a, 0x90, 0x9d, 0x17, 0xe7, 0xcd, 0x2d, 0x88, 0x58, 0xe8, 0x27, 0x50, 0xfc, 0x06,
	0x96, 0x7e, 0x12, 0xb9, 0xd6, 0xce, 0xca, 0xc2, 0xca, 0x8f, 0x60, 0x25, 0xc9, 0xec, 0xec, 0xe5,
	0x8a, 0x64, 0xd3, 0xfd, 0xd9, 0xf7, 0x9f, 0xdf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 0x7e, 0x44, 0xf1,
	0xed, 0xcd, 0x07, 0x8e, 0x7c, 0xf7, 0xc9, 0xc7, 0x28, 0xbe, 0xd5, 0x19, 0x3e, 0x79, 0xca, 0xba,
	0xee, 0x90, 0x6d, 0xdb, 0x40, 0x5f, 0xae, 0x65, 0xb5, 0xb7, 0xcd, 0x36, 0x93, 0x76, 0x9f, 0xfd,
	0x92, 0xe7, 0x5b, 0xfc, 0xf4, 0xf3, 0xcf, 0xd7, 0xe8, 0x30, 0xb9, 0xbb, 0x78, 0x33, 0xef, 0xcf,
	0x4d, 0x1e, 0xe0, 0x46, 0x14, 0xf1, 0x83, 0x0f, 0xfd, 0xeb, 0xa7, 0x72, 0x67, 0x5d, 0xef, 0xc3,
	0x2f, 0x51, 0xbc, 0x97, 0x63, 0xd5, 0x59, 0xc0, 0xf0, 0x60, 0xab, 0xc2, 0xc7, 0x8b, 0x27, 0x33,
	0xee, 0xbd, 0x7a, 0xdc, 0xf0, 0x4a, 0x9c, 0x29, 0x53, 0x32, 0xb4, 0x25, 0x2f, 0xc1, 0x2c, 0x1f,
	0x14, 0x3f, 0x4b, 0xb0, 0xfe, 0x2f, 0xbc, 0x1f, 0xc4, 0xb7, 0xe8, 0xc2, 0x48, 0xca, 0xef, 0xd1,
	0x60, 0xe4, 0x81, 0xb2, 0x20, 0xe6, 0xe5, 0x42, 0x4d, 0x52, 0xd6, 0x2c, 0xa6, 0xd3, 0x60, 0x99,
	0xca, 0x82, 0xa6, 0xad, 0x65, 0x3a, 0x49, 0xa7, 0xc1, 0xf2, 0x37, 0xda, 0xf3, 0xdf, 0x85, 0x90,
	0x05, 0x09, 0xd1, 0x9a, 0x84, 0x98, 0xa4, 0x42, 0x04, 0xdb, 0xf1, 0xc5, 0x65, 0xce, 0xf4, 0x7f,
	0x00, 0x00, 0x00, 0xff, 0xff, 0x5a, 0x52, 0x5c, 0x52, 0x2c, 0x04, 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

// OperatingSystemVersionConstantServiceClient is the client API for OperatingSystemVersionConstantService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type OperatingSystemVersionConstantServiceClient interface {
	// Returns the requested OS version constant in full detail.
	GetOperatingSystemVersionConstant(ctx context.Context, in *GetOperatingSystemVersionConstantRequest, opts ...grpc.CallOption) (*resources.OperatingSystemVersionConstant, error)
}

type operatingSystemVersionConstantServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewOperatingSystemVersionConstantServiceClient(cc grpc.ClientConnInterface) OperatingSystemVersionConstantServiceClient {
	return &operatingSystemVersionConstantServiceClient{cc}
}

func (c *operatingSystemVersionConstantServiceClient) GetOperatingSystemVersionConstant(ctx context.Context, in *GetOperatingSystemVersionConstantRequest, opts ...grpc.CallOption) (*resources.OperatingSystemVersionConstant, error) {
	out := new(resources.OperatingSystemVersionConstant)
	err := c.cc.Invoke(ctx, "/google.ads.googleads.v3.services.OperatingSystemVersionConstantService/GetOperatingSystemVersionConstant", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// OperatingSystemVersionConstantServiceServer is the server API for OperatingSystemVersionConstantService service.
type OperatingSystemVersionConstantServiceServer interface {
	// Returns the requested OS version constant in full detail.
	GetOperatingSystemVersionConstant(context.Context, *GetOperatingSystemVersionConstantRequest) (*resources.OperatingSystemVersionConstant, error)
}

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

func (*UnimplementedOperatingSystemVersionConstantServiceServer) GetOperatingSystemVersionConstant(ctx context.Context, req *GetOperatingSystemVersionConstantRequest) (*resources.OperatingSystemVersionConstant, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetOperatingSystemVersionConstant not implemented")
}

func RegisterOperatingSystemVersionConstantServiceServer(s *grpc.Server, srv OperatingSystemVersionConstantServiceServer) {
	s.RegisterService(&_OperatingSystemVersionConstantService_serviceDesc, srv)
}

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

var _OperatingSystemVersionConstantService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "google.ads.googleads.v3.services.OperatingSystemVersionConstantService",
	HandlerType: (*OperatingSystemVersionConstantServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetOperatingSystemVersionConstant",
			Handler:    _OperatingSystemVersionConstantService_GetOperatingSystemVersionConstant_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/ads/googleads/v3/services/operating_system_version_constant_service.proto",
}
