Esempio n. 1
0
        public async Task UpdatePhotoAsync()
        {
            // Snippet: UpdatePhotoAsync(Photo,FieldMask,CallSettings)
            // Additional: UpdatePhotoAsync(Photo,FieldMask,CancellationToken)
            // Create client
            StreetViewPublishServiceClient streetViewPublishServiceClient = await StreetViewPublishServiceClient.CreateAsync();

            // Initialize request argument(s)
            Photo     photo      = new Photo();
            FieldMask updateMask = new FieldMask();
            // Make the request
            Photo response = await streetViewPublishServiceClient.UpdatePhotoAsync(photo, updateMask);

            // End snippet
        }
Esempio n. 2
0
        public async Task UpdatePhotoAsync_RequestObject()
        {
            // Snippet: UpdatePhotoAsync(UpdatePhotoRequest,CallSettings)
            // Create client
            StreetViewPublishServiceClient streetViewPublishServiceClient = await StreetViewPublishServiceClient.CreateAsync();

            // Initialize request argument(s)
            UpdatePhotoRequest request = new UpdatePhotoRequest
            {
                Photo      = new Photo(),
                UpdateMask = new FieldMask(),
            };
            // Make the request
            Photo response = await streetViewPublishServiceClient.UpdatePhotoAsync(request);

            // End snippet
        }