public static int Main(string[] args)
        {
            // Read projectId from args
            if (args.Length != 1)
            {
                Console.WriteLine("Usage: Project ID must be passed as first argument.");
                Console.WriteLine();
                return(1);
            }
            string projectId = args[0];

            // Create client
            ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.Create();
            // ContainerAnalysisClient doesn't contain Grafeas methods; only IAM, and a way of getting at a GrafeasClient.
            GrafeasClient grafeasClient = containerAnalysisClient.GrafeasClient;

            // Call API method
            ProjectName projectName = new ProjectName(projectId);
            PagedEnumerable <ListNotesResponse, Note> notes = grafeasClient.ListNotes(projectName, "");

            // Show the result
            foreach (Note note in notes)
            {
                Console.WriteLine(notes);
            }

            // Success
            Console.WriteLine("Smoke test passed OK");
            return(0);
        }
        public static int Main(string[] args)
        {
            // Read projectId from args
            if (args.Length != 1)
            {
                Console.WriteLine("Usage: Project ID must be passed as first argument.");
                Console.WriteLine();
                return(1);
            }
            string projectId = args[0];

            // Smoke test against the Google Container Analysis implementation, using
            // a known endpoint.

            // Create client
            var           channelCredential = GoogleCredential.GetApplicationDefault().ToChannelCredentials();
            var           channel           = new Channel("containeranalysis.googleapis.com", channelCredential);
            GrafeasClient client            = GrafeasClient.Create(channel);

            // Call API method
            ProjectName projectName = new ProjectName(projectId);
            PagedEnumerable <ListNotesResponse, Note> notes = client.ListNotes(projectName, "");

            // Show the result
            foreach (Note note in notes)
            {
                Console.WriteLine(note);
            }

            // Success
            Console.WriteLine("Smoke test passed OK");
            return(0);
        }
 partial void OnConstruction(ContainerAnalysis.ContainerAnalysisClient grpcClient, ContainerAnalysisSettings effectiveSettings, ClientHelper clientHelper) =>
 _grafeasClient = new GrafeasClientImpl(grpcClient.CreateGrafeasClient(), effectiveSettings.GrafeasSettings);