[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003ecloud.google.com/go/profiler/mocks\u003c/code\u003e package is 0.4.2, with older versions ranging from 0.1.2 to 0.4.1 also available.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emocks\u003c/code\u003e package is a generated GoMock package that provides mocking functionality.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMockProfilerServiceClient\u003c/code\u003e is a struct that serves as a mock implementation of the \u003ccode\u003eProfilerServiceClient\u003c/code\u003e interface.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNewMockProfilerServiceClient\u003c/code\u003e is a function that is used to create new instances of the \u003ccode\u003eMockProfilerServiceClient\u003c/code\u003e mock.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMockProfilerServiceClient\u003c/code\u003e has methods to mock \u003ccode\u003eCreateOfflineProfile\u003c/code\u003e, \u003ccode\u003eCreateProfile\u003c/code\u003e, and \u003ccode\u003eUpdateProfile\u003c/code\u003e, with associated mock recorder functions to indicate expected calls.\u003c/p\u003e\n"]]],[],null,["# Package cloud.google.com/go/profiler/mocks (v0.4.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.2 (latest)](/go/docs/reference/cloud.google.com/go/profiler/latest/mocks)\n- [0.4.1](/go/docs/reference/cloud.google.com/go/profiler/0.4.1/mocks)\n- [0.3.1](/go/docs/reference/cloud.google.com/go/profiler/0.3.1/mocks)\n- [0.2.0](/go/docs/reference/cloud.google.com/go/profiler/0.2.0/mocks)\n- [0.1.2](/go/docs/reference/cloud.google.com/go/profiler/0.1.2/mocks) \n**Note:** To get more information about this package, such as access to older versions, view [this package on pkg.go.dev](https://pkg.go.dev/cloud.google.com/go/profiler/mocks). \n\u003cbr /\u003e\n\nPackage mocks is a generated GoMock package. \n\nMockProfilerServiceClient\n-------------------------\n\n type MockProfilerServiceClient struct {\n \t// contains filtered or unexported fields\n }\n\nMockProfilerServiceClient is a mock of ProfilerServiceClient interface \n\n### func NewMockProfilerServiceClient\n\n func NewMockProfilerServiceClient(ctrl *https://pkg.go.dev/github.com/golang/mock/gomock.https://pkg.go.dev/github.com/golang/mock/gomock#Controller) *#cloud_google_com_go_profiler_mocks_MockProfilerServiceClient\n\nNewMockProfilerServiceClient creates a new mock instance \n\n### func (\\*MockProfilerServiceClient) CreateOfflineProfile\n\n func (m *#cloud_google_com_go_profiler_mocks_MockProfilerServiceClient) CreateOfflineProfile(arg0 https://pkg.go.dev/context.https://pkg.go.dev/context#Context, arg1 *https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2.https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2#CreateOfflineProfileRequest, arg2 ...https://pkg.go.dev/google.golang.org/grpc.https://pkg.go.dev/google.golang.org/grpc#CallOption) (*https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2.https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2#Profile, https://pkg.go.dev/builtin#error)\n\nCreateOfflineProfile mocks base method \n\n### func (\\*MockProfilerServiceClient) CreateProfile\n\n func (m *#cloud_google_com_go_profiler_mocks_MockProfilerServiceClient) CreateProfile(arg0 https://pkg.go.dev/context.https://pkg.go.dev/context#Context, arg1 *https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2.https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2#CreateProfileRequest, arg2 ...https://pkg.go.dev/google.golang.org/grpc.https://pkg.go.dev/google.golang.org/grpc#CallOption) (*https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2.https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2#Profile, https://pkg.go.dev/builtin#error)\n\nCreateProfile mocks base method \n\n### func (\\*MockProfilerServiceClient) EXPECT\n\n func (m *#cloud_google_com_go_profiler_mocks_MockProfilerServiceClient) EXPECT() *#cloud_google_com_go_profiler_mocks_MockProfilerServiceClientMockRecorder\n\nEXPECT returns an object that allows the caller to indicate expected use \n\n### func (\\*MockProfilerServiceClient) UpdateProfile\n\n func (m *#cloud_google_com_go_profiler_mocks_MockProfilerServiceClient) UpdateProfile(arg0 https://pkg.go.dev/context.https://pkg.go.dev/context#Context, arg1 *https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2.https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2#UpdateProfileRequest, arg2 ...https://pkg.go.dev/google.golang.org/grpc.https://pkg.go.dev/google.golang.org/grpc#CallOption) (*https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2.https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2#Profile, https://pkg.go.dev/builtin#error)\n\nUpdateProfile mocks base method \n\nMockProfilerServiceClientMockRecorder\n-------------------------------------\n\n type MockProfilerServiceClientMockRecorder struct {\n \t// contains filtered or unexported fields\n }\n\nMockProfilerServiceClientMockRecorder is the mock recorder for MockProfilerServiceClient \n\n### func (\\*MockProfilerServiceClientMockRecorder) CreateOfflineProfile\n\n func (mr *#cloud_google_com_go_profiler_mocks_MockProfilerServiceClientMockRecorder) CreateOfflineProfile(arg0, arg1 interface{}, arg2 ...interface{}) *https://pkg.go.dev/github.com/golang/mock/gomock.https://pkg.go.dev/github.com/golang/mock/gomock#Call\n\nCreateOfflineProfile indicates an expected call of CreateOfflineProfile \n\n### func (\\*MockProfilerServiceClientMockRecorder) CreateProfile\n\n func (mr *#cloud_google_com_go_profiler_mocks_MockProfilerServiceClientMockRecorder) CreateProfile(arg0, arg1 interface{}, arg2 ...interface{}) *https://pkg.go.dev/github.com/golang/mock/gomock.https://pkg.go.dev/github.com/golang/mock/gomock#Call\n\nCreateProfile indicates an expected call of CreateProfile \n\n### func (\\*MockProfilerServiceClientMockRecorder) UpdateProfile\n\n func (mr *#cloud_google_com_go_profiler_mocks_MockProfilerServiceClientMockRecorder) UpdateProfile(arg0, arg1 interface{}, arg2 ...interface{}) *https://pkg.go.dev/github.com/golang/mock/gomock.https://pkg.go.dev/github.com/golang/mock/gomock#Call\n\nUpdateProfile indicates an expected call of UpdateProfile"]]