Skip to content

Commit

Permalink
chore: set packed = false on field_behavior extension
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 604675854

Source-Link: googleapis/googleapis@42c04fe

Source-Link: googleapis/googleapis-gen@a1ed8a9
Copy-Tag: eyJwIjoiLk93bEJvdC55YW1sIiwiaCI6ImExZWQ4YTk3YTAwZDAyZmU0NTZmNmViZDQxNjBjNWIyYjAwMGFkNzUifQ==
  • Loading branch information
gcf-owl-bot[bot] committed Feb 6, 2024
1 parent aa5e18d commit 267a5c2
Show file tree
Hide file tree
Showing 36 changed files with 846 additions and 374 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,20 @@
/**
* Creates new notes in batch.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
* - It may require correct/in-range values for request initialization.
* - It may require specifying regional endpoints when creating the service client,
* please see the apiEndpoint client configuration option for more details.
* @param string $formattedParent The name of the project in the form of `projects/[PROJECT_ID]`, under which
* the notes are to be created. Please see
* {@see GrafeasClient::projectName()} for help formatting this field.
*/
function batch_create_notes_sample(): void
function batch_create_notes_sample(string $formattedParent): void
{
// Create a client.
$grafeasClient = new GrafeasClient();

// Prepare the request message.
$request = new BatchCreateNotesRequest();
$notes = [];
$request = (new BatchCreateNotesRequest())
->setParent($formattedParent)
->setNotes($notes);

// Call the API and handle any network failures.
try {
Expand All @@ -54,4 +55,20 @@ function batch_create_notes_sample(): void
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}
}

/**
* Helper to execute the sample.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
* - It may require correct/in-range values for request initialization.
* - It may require specifying regional endpoints when creating the service client,
* please see the apiEndpoint client configuration option for more details.
*/
function callSample(): void
{
$formattedParent = GrafeasClient::projectName('[PROJECT]');

batch_create_notes_sample($formattedParent);
}
// [END containeranalysis_v1_generated_Grafeas_BatchCreateNotes_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,25 @@
use Grafeas\V1\BatchCreateOccurrencesRequest;
use Grafeas\V1\BatchCreateOccurrencesResponse;
use Grafeas\V1\Client\GrafeasClient;
use Grafeas\V1\Occurrence;

/**
* Creates new occurrences in batch.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
* - It may require correct/in-range values for request initialization.
* - It may require specifying regional endpoints when creating the service client,
* please see the apiEndpoint client configuration option for more details.
* @param string $formattedParent The name of the project in the form of `projects/[PROJECT_ID]`, under which
* the occurrences are to be created. Please see
* {@see GrafeasClient::projectName()} for help formatting this field.
*/
function batch_create_occurrences_sample(): void
function batch_create_occurrences_sample(string $formattedParent): void
{
// Create a client.
$grafeasClient = new GrafeasClient();

// Prepare the request message.
$request = new BatchCreateOccurrencesRequest();
$occurrences = [new Occurrence()];
$request = (new BatchCreateOccurrencesRequest())
->setParent($formattedParent)
->setOccurrences($occurrences);

// Call the API and handle any network failures.
try {
Expand All @@ -54,4 +56,20 @@ function batch_create_occurrences_sample(): void
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}
}

/**
* Helper to execute the sample.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
* - It may require correct/in-range values for request initialization.
* - It may require specifying regional endpoints when creating the service client,
* please see the apiEndpoint client configuration option for more details.
*/
function callSample(): void
{
$formattedParent = GrafeasClient::projectName('[PROJECT]');

batch_create_occurrences_sample($formattedParent);
}
// [END containeranalysis_v1_generated_Grafeas_BatchCreateOccurrences_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,22 @@
/**
* Creates a new note.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
* - It may require correct/in-range values for request initialization.
* - It may require specifying regional endpoints when creating the service client,
* please see the apiEndpoint client configuration option for more details.
* @param string $formattedParent The name of the project in the form of `projects/[PROJECT_ID]`, under which
* the note is to be created. Please see
* {@see GrafeasClient::projectName()} for help formatting this field.
* @param string $noteId The ID to use for this note.
*/
function create_note_sample(): void
function create_note_sample(string $formattedParent, string $noteId): void
{
// Create a client.
$grafeasClient = new GrafeasClient();

// Prepare the request message.
$request = new CreateNoteRequest();
$note = new Note();
$request = (new CreateNoteRequest())
->setParent($formattedParent)
->setNoteId($noteId)
->setNote($note);

// Call the API and handle any network failures.
try {
Expand All @@ -54,4 +57,21 @@ function create_note_sample(): void
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}
}

/**
* Helper to execute the sample.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
* - It may require correct/in-range values for request initialization.
* - It may require specifying regional endpoints when creating the service client,
* please see the apiEndpoint client configuration option for more details.
*/
function callSample(): void
{
$formattedParent = GrafeasClient::projectName('[PROJECT]');
$noteId = '[NOTE_ID]';

create_note_sample($formattedParent, $noteId);
}
// [END containeranalysis_v1_generated_Grafeas_CreateNote_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,20 @@
/**
* Creates a new occurrence.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
* - It may require correct/in-range values for request initialization.
* - It may require specifying regional endpoints when creating the service client,
* please see the apiEndpoint client configuration option for more details.
* @param string $formattedParent The name of the project in the form of `projects/[PROJECT_ID]`, under which
* the occurrence is to be created. Please see
* {@see GrafeasClient::projectName()} for help formatting this field.
*/
function create_occurrence_sample(): void
function create_occurrence_sample(string $formattedParent): void
{
// Create a client.
$grafeasClient = new GrafeasClient();

// Prepare the request message.
$request = new CreateOccurrenceRequest();
$occurrence = new Occurrence();
$request = (new CreateOccurrenceRequest())
->setParent($formattedParent)
->setOccurrence($occurrence);

// Call the API and handle any network failures.
try {
Expand All @@ -54,4 +55,20 @@ function create_occurrence_sample(): void
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}
}

/**
* Helper to execute the sample.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
* - It may require correct/in-range values for request initialization.
* - It may require specifying regional endpoints when creating the service client,
* please see the apiEndpoint client configuration option for more details.
*/
function callSample(): void
{
$formattedParent = GrafeasClient::projectName('[PROJECT]');

create_occurrence_sample($formattedParent);
}
// [END containeranalysis_v1_generated_Grafeas_CreateOccurrence_sync]

0 comments on commit 267a5c2

Please sign in to comment.