{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ConnectionProfileName name = * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); @@ -89,8 +92,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DatastreamSettings datastreamSettings = * DatastreamSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -101,8 +107,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DatastreamSettings datastreamSettings = * DatastreamSettings.newBuilder().setEndpoint(myEndpoint).build(); * DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings); @@ -112,8 +121,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DatastreamSettings datastreamSettings = * DatastreamSettings.newBuilder() * .setTransportChannelProvider( @@ -204,8 +216,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (ConnectionProfile element : @@ -233,8 +248,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(Location *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (ConnectionProfile element : @@ -260,8 +278,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(String p *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListConnectionProfilesRequest request = * ListConnectionProfilesRequest.newBuilder() @@ -293,8 +314,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListConnectionProfilesRequest request = * ListConnectionProfilesRequest.newBuilder() @@ -325,8 +349,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListConnectionProfilesRequest request = * ListConnectionProfilesRequest.newBuilder() @@ -364,8 +391,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ConnectionProfileName name = * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); @@ -391,8 +421,11 @@ public final ConnectionProfile getConnectionProfile(ConnectionProfileName name) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String name = * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString(); @@ -416,8 +449,11 @@ public final ConnectionProfile getConnectionProfile(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetConnectionProfileRequest request = * GetConnectionProfileRequest.newBuilder() @@ -443,8 +479,11 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetConnectionProfileRequest request = * GetConnectionProfileRequest.newBuilder() @@ -471,8 +510,11 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); @@ -507,8 +549,11 @@ public final OperationFuturecreateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); @@ -543,8 +588,11 @@ public final OperationFuturecreateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateConnectionProfileRequest request = * CreateConnectionProfileRequest.newBuilder() @@ -574,8 +622,11 @@ public final OperationFuturecreateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateConnectionProfileRequest request = * CreateConnectionProfileRequest.newBuilder() @@ -606,8 +657,11 @@ public final OperationFuturecreateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateConnectionProfileRequest request = * CreateConnectionProfileRequest.newBuilder() @@ -637,8 +691,11 @@ public final OperationFuturecreateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -671,8 +728,11 @@ public final OperationFutureupdateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * UpdateConnectionProfileRequest request = * UpdateConnectionProfileRequest.newBuilder() @@ -701,8 +761,11 @@ public final OperationFutureupdateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * UpdateConnectionProfileRequest request = * UpdateConnectionProfileRequest.newBuilder() @@ -732,8 +795,11 @@ public final OperationFutureupdateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * UpdateConnectionProfileRequest request = * UpdateConnectionProfileRequest.newBuilder() @@ -762,8 +828,11 @@ public final OperationFutureupdateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ConnectionProfileName name = * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); @@ -790,8 +859,11 @@ public final OperationFuturedeleteConnectionProfileAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String name = * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString(); @@ -815,8 +887,11 @@ public final OperationFuturedeleteConnectionProfileAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeleteConnectionProfileRequest request = * DeleteConnectionProfileRequest.newBuilder() @@ -844,8 +919,11 @@ public final OperationFuturedeleteConnectionProfileAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeleteConnectionProfileRequest request = * DeleteConnectionProfileRequest.newBuilder() @@ -873,8 +951,11 @@ public final OperationFuturedeleteConnectionProfileAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeleteConnectionProfileRequest request = * DeleteConnectionProfileRequest.newBuilder() @@ -904,8 +985,11 @@ public final OperationFuturedeleteConnectionProfileAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DiscoverConnectionProfileRequest request = * DiscoverConnectionProfileRequest.newBuilder() @@ -933,8 +1017,11 @@ public final DiscoverConnectionProfileResponse discoverConnectionProfile( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DiscoverConnectionProfileRequest request = * DiscoverConnectionProfileRequest.newBuilder() @@ -959,8 +1046,11 @@ public final DiscoverConnectionProfileResponse discoverConnectionProfile( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Stream element : datastreamClient.listStreams(parent).iterateAll()) { @@ -987,8 +1077,11 @@ public final ListStreamsPagedResponse listStreams(LocationName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Stream element : datastreamClient.listStreams(parent).iterateAll()) { @@ -1012,8 +1105,11 @@ public final ListStreamsPagedResponse listStreams(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListStreamsRequest request = * ListStreamsRequest.newBuilder() @@ -1043,8 +1139,11 @@ public final ListStreamsPagedResponse listStreams(ListStreamsRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListStreamsRequest request = * ListStreamsRequest.newBuilder() @@ -1074,8 +1173,11 @@ public final ListStreamsPagedResponse listStreams(ListStreamsRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListStreamsRequest request = * ListStreamsRequest.newBuilder() @@ -1111,8 +1213,11 @@ public final UnaryCallablelistStreamsC * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); * Stream response = datastreamClient.getStream(name); @@ -1135,8 +1240,11 @@ public final Stream getStream(StreamName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString(); * Stream response = datastreamClient.getStream(name); @@ -1158,8 +1266,11 @@ public final Stream getStream(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetStreamRequest request = * GetStreamRequest.newBuilder() @@ -1183,8 +1294,11 @@ public final Stream getStream(GetStreamRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetStreamRequest request = * GetStreamRequest.newBuilder() @@ -1207,8 +1321,11 @@ public final UnaryCallablegetStreamCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Stream stream = Stream.newBuilder().build(); @@ -1240,8 +1357,11 @@ public final OperationFuturecreateStreamAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Stream stream = Stream.newBuilder().build(); @@ -1273,8 +1393,11 @@ public final OperationFuturecreateStreamAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateStreamRequest request = * CreateStreamRequest.newBuilder() @@ -1304,8 +1427,11 @@ public final OperationFuturecreateStreamAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateStreamRequest request = * CreateStreamRequest.newBuilder() @@ -1335,8 +1461,11 @@ public final OperationFuturecreateStreamAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateStreamRequest request = * CreateStreamRequest.newBuilder() @@ -1364,8 +1493,11 @@ public final UnaryCallablecreateStreamCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * Stream stream = Stream.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1394,8 +1526,11 @@ public final OperationFutureupdateStreamAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * UpdateStreamRequest request = * UpdateStreamRequest.newBuilder() @@ -1424,8 +1559,11 @@ public final OperationFutureupdateStreamAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * UpdateStreamRequest request = * UpdateStreamRequest.newBuilder() @@ -1454,8 +1592,11 @@ public final OperationFutureupdateStreamAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * UpdateStreamRequest request = * UpdateStreamRequest.newBuilder() @@ -1482,8 +1623,11 @@ public final UnaryCallableupdateStreamCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); * datastreamClient.deleteStreamAsync(name).get(); @@ -1506,8 +1650,11 @@ public final OperationFuturedeleteStreamAsync(StreamN * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString(); * datastreamClient.deleteStreamAsync(name).get(); @@ -1529,8 +1676,11 @@ public final OperationFuturedeleteStreamAsync(String * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeleteStreamRequest request = * DeleteStreamRequest.newBuilder() @@ -1556,8 +1706,11 @@ public final OperationFuturedeleteStreamAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeleteStreamRequest request = * DeleteStreamRequest.newBuilder() @@ -1583,8 +1736,11 @@ public final OperationFuturedeleteStreamAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeleteStreamRequest request = * DeleteStreamRequest.newBuilder() @@ -1608,8 +1764,11 @@ public final UnaryCallabledeleteStreamCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * StreamObjectName name = * StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]"); @@ -1633,8 +1792,11 @@ public final StreamObject getStreamObject(StreamObjectName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String name = * StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString(); @@ -1657,8 +1819,11 @@ public final StreamObject getStreamObject(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetStreamObjectRequest request = * GetStreamObjectRequest.newBuilder() @@ -1683,8 +1848,11 @@ public final StreamObject getStreamObject(GetStreamObjectRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetStreamObjectRequest request = * GetStreamObjectRequest.newBuilder() @@ -1709,8 +1877,11 @@ public final UnaryCallablegetStreamObject * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * LookupStreamObjectRequest request = * LookupStreamObjectRequest.newBuilder() @@ -1735,8 +1906,11 @@ public final StreamObject lookupStreamObject(LookupStreamObjectRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * LookupStreamObjectRequest request = * LookupStreamObjectRequest.newBuilder() @@ -1761,8 +1935,11 @@ public final UnaryCallablelookupStream * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * StreamName parent = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); * for (StreamObject element : datastreamClient.listStreamObjects(parent).iterateAll()) { @@ -1789,8 +1966,11 @@ public final ListStreamObjectsPagedResponse listStreamObjects(StreamName parent) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String parent = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString(); * for (StreamObject element : datastreamClient.listStreamObjects(parent).iterateAll()) { @@ -1815,8 +1995,11 @@ public final ListStreamObjectsPagedResponse listStreamObjects(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListStreamObjectsRequest request = * ListStreamObjectsRequest.newBuilder() @@ -1844,8 +2027,11 @@ public final ListStreamObjectsPagedResponse listStreamObjects(ListStreamObjectsR *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListStreamObjectsRequest request = * ListStreamObjectsRequest.newBuilder() @@ -1874,8 +2060,11 @@ public final ListStreamObjectsPagedResponse listStreamObjects(ListStreamObjectsR *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListStreamObjectsRequest request = * ListStreamObjectsRequest.newBuilder() @@ -1911,8 +2100,11 @@ public final ListStreamObjectsPagedResponse listStreamObjects(ListStreamObjectsR *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * StreamObjectName object = * StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]"); @@ -1938,8 +2130,11 @@ public final StartBackfillJobResponse startBackfillJob(StreamObjectName object) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String object = * StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString(); @@ -1963,8 +2158,11 @@ public final StartBackfillJobResponse startBackfillJob(String object) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * StartBackfillJobRequest request = * StartBackfillJobRequest.newBuilder() @@ -1989,8 +2187,11 @@ public final StartBackfillJobResponse startBackfillJob(StartBackfillJobRequest r *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * StartBackfillJobRequest request = * StartBackfillJobRequest.newBuilder() @@ -2016,8 +2217,11 @@ public final StartBackfillJobResponse startBackfillJob(StartBackfillJobRequest r *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * StreamObjectName object = * StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]"); @@ -2043,8 +2247,11 @@ public final StopBackfillJobResponse stopBackfillJob(StreamObjectName object) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String object = * StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString(); @@ -2067,8 +2274,11 @@ public final StopBackfillJobResponse stopBackfillJob(String object) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * StopBackfillJobRequest request = * StopBackfillJobRequest.newBuilder() @@ -2093,8 +2303,11 @@ public final StopBackfillJobResponse stopBackfillJob(StopBackfillJobRequest requ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * StopBackfillJobRequest request = * StopBackfillJobRequest.newBuilder() @@ -2120,8 +2333,11 @@ public final StopBackfillJobResponse stopBackfillJob(StopBackfillJobRequest requ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * LocationName name = LocationName.of("[PROJECT]", "[LOCATION]"); * for (String element : datastreamClient.fetchStaticIps(name).iterateAll()) { @@ -2147,8 +2363,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(LocationName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String name = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (String element : datastreamClient.fetchStaticIps(name).iterateAll()) { @@ -2173,8 +2392,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * FetchStaticIpsRequest request = * FetchStaticIpsRequest.newBuilder() @@ -2202,8 +2424,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(FetchStaticIpsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * FetchStaticIpsRequest request = * FetchStaticIpsRequest.newBuilder() @@ -2231,8 +2456,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(FetchStaticIpsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * FetchStaticIpsRequest request = * FetchStaticIpsRequest.newBuilder() @@ -2267,8 +2495,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(FetchStaticIpsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); @@ -2303,8 +2534,11 @@ public final OperationFuturecreatePrivate * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); @@ -2339,8 +2573,11 @@ public final OperationFuturecreatePrivate * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreatePrivateConnectionRequest request = * CreatePrivateConnectionRequest.newBuilder() @@ -2368,8 +2605,11 @@ public final OperationFuturecreatePrivate * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreatePrivateConnectionRequest request = * CreatePrivateConnectionRequest.newBuilder() @@ -2398,8 +2638,11 @@ public final OperationFuturecreatePrivate * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreatePrivateConnectionRequest request = * CreatePrivateConnectionRequest.newBuilder() @@ -2427,8 +2670,11 @@ public final OperationFuturecreatePrivate * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * PrivateConnectionName name = * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); @@ -2454,8 +2700,11 @@ public final PrivateConnection getPrivateConnection(PrivateConnectionName name) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String name = * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); @@ -2479,8 +2728,11 @@ public final PrivateConnection getPrivateConnection(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetPrivateConnectionRequest request = * GetPrivateConnectionRequest.newBuilder() @@ -2506,8 +2758,11 @@ public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetPrivateConnectionRequest request = * GetPrivateConnectionRequest.newBuilder() @@ -2534,8 +2789,11 @@ public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (PrivateConnection element : @@ -2564,8 +2822,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(Location *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (PrivateConnection element : @@ -2592,8 +2853,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(String p *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListPrivateConnectionsRequest request = * ListPrivateConnectionsRequest.newBuilder() @@ -2625,8 +2889,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListPrivateConnectionsRequest request = * ListPrivateConnectionsRequest.newBuilder() @@ -2657,8 +2924,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListPrivateConnectionsRequest request = * ListPrivateConnectionsRequest.newBuilder() @@ -2696,8 +2966,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * PrivateConnectionName name = * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); @@ -2724,8 +2997,11 @@ public final OperationFuturedeletePrivateConnectionAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String name = * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); @@ -2749,8 +3025,11 @@ public final OperationFuturedeletePrivateConnectionAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeletePrivateConnectionRequest request = * DeletePrivateConnectionRequest.newBuilder() @@ -2779,8 +3058,11 @@ public final OperationFuturedeletePrivateConnectionAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeletePrivateConnectionRequest request = * DeletePrivateConnectionRequest.newBuilder() @@ -2809,8 +3091,11 @@ public final OperationFuturedeletePrivateConnectionAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeletePrivateConnectionRequest request = * DeletePrivateConnectionRequest.newBuilder() @@ -2840,8 +3125,11 @@ public final OperationFuturedeletePrivateConnectionAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * PrivateConnectionName parent = * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); @@ -2875,8 +3163,11 @@ public final OperationFuturecreateRouteAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String parent = * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); @@ -2910,8 +3201,11 @@ public final OperationFuturecreateRouteAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateRouteRequest request = * CreateRouteRequest.newBuilder() @@ -2942,8 +3236,11 @@ public final OperationFuturecreateRouteAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateRouteRequest request = * CreateRouteRequest.newBuilder() @@ -2974,8 +3271,11 @@ public final OperationFuturecreateRouteAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateRouteRequest request = * CreateRouteRequest.newBuilder() @@ -3003,8 +3303,11 @@ public final UnaryCallablecreateRouteCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]"); * Route response = datastreamClient.getRoute(name); @@ -3027,8 +3330,11 @@ public final Route getRoute(RouteName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String name = * RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]").toString(); @@ -3051,8 +3357,11 @@ public final Route getRoute(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetRouteRequest request = * GetRouteRequest.newBuilder() @@ -3078,8 +3387,11 @@ public final Route getRoute(GetRouteRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetRouteRequest request = * GetRouteRequest.newBuilder() @@ -3105,8 +3417,11 @@ public final UnaryCallablegetRouteCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * PrivateConnectionName parent = * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); @@ -3133,8 +3448,11 @@ public final ListRoutesPagedResponse listRoutes(PrivateConnectionName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String parent = * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); @@ -3160,8 +3478,11 @@ public final ListRoutesPagedResponse listRoutes(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListRoutesRequest request = * ListRoutesRequest.newBuilder() @@ -3194,8 +3515,11 @@ public final ListRoutesPagedResponse listRoutes(ListRoutesRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListRoutesRequest request = * ListRoutesRequest.newBuilder() @@ -3227,8 +3551,11 @@ public final UnaryCallablelistRoute * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListRoutesRequest request = * ListRoutesRequest.newBuilder() @@ -3266,8 +3593,11 @@ public final UnaryCallablelistRoutesCall * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]"); * datastreamClient.deleteRouteAsync(name).get(); @@ -3290,8 +3620,11 @@ public final OperationFuturedeleteRouteAsync(RouteNam * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String name = * RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]").toString(); @@ -3314,8 +3647,11 @@ public final OperationFuturedeleteRouteAsync(String n * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeleteRouteRequest request = * DeleteRouteRequest.newBuilder() @@ -3343,8 +3679,11 @@ public final OperationFuturedeleteRouteAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeleteRouteRequest request = * DeleteRouteRequest.newBuilder() @@ -3372,8 +3711,11 @@ public final OperationFuturedeleteRouteAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeleteRouteRequest request = * DeleteRouteRequest.newBuilder() @@ -3399,8 +3741,11 @@ public final UnaryCallabledeleteRouteCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -3429,8 +3774,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -3460,8 +3808,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -3496,8 +3847,11 @@ public final UnaryCallablelistLoca * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * Location response = datastreamClient.getLocation(request); @@ -3518,8 +3872,11 @@ public final Location getLocation(GetLocationRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = datastreamClient.getLocationCallable().futureCall(request); diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java index c300817a..0b4d308a 100644 --- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java +++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java @@ -66,16 +66,16 @@ * For example, to set the total timeout of getConnectionProfile to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DatastreamSettings.Builder datastreamSettingsBuilder = DatastreamSettings.newBuilder(); * datastreamSettingsBuilder * .getConnectionProfileSettings() * .setRetrySettings( - * datastreamSettingsBuilder - * .getConnectionProfileSettings() - * .getRetrySettings() - * .toBuilder() + * datastreamSettingsBuilder.getConnectionProfileSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * DatastreamSettings datastreamSettings = datastreamSettingsBuilder.build(); diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java index 1b40c70d..8bf773b8 100644 --- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java +++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java @@ -26,8 +26,11 @@ *Sample for DatastreamClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ConnectionProfileName name = * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java index 6114d9a9..437d0e03 100644 --- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java +++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java @@ -126,16 +126,16 @@ *For example, to set the total timeout of getConnectionProfile to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DatastreamStubSettings.Builder datastreamSettingsBuilder = DatastreamStubSettings.newBuilder(); * datastreamSettingsBuilder * .getConnectionProfileSettings() * .setRetrySettings( - * datastreamSettingsBuilder - * .getConnectionProfileSettings() - * .getRetrySettings() - * .toBuilder() + * datastreamSettingsBuilder.getConnectionProfileSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * DatastreamStubSettings datastreamSettings = datastreamSettingsBuilder.build(); diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java index 93b28d2e..83d5e6de 100644 --- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java +++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java @@ -218,7 +218,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("connectionProfile", request.getConnectionProfile())) + .toBody( + "connectionProfile", request.getConnectionProfile(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -265,7 +266,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("connectionProfile", request.getConnectionProfile())) + .toBody( + "connectionProfile", request.getConnectionProfile(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -343,7 +345,7 @@ public class HttpJsonDatastreamStub extends DatastreamStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -452,7 +454,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("stream", request.getStream())) + ProtoRestSerializer.create() + .toBody("stream", request.getStream(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -496,7 +499,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("stream", request.getStream())) + ProtoRestSerializer.create() + .toBody("stream", request.getStream(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -605,7 +609,7 @@ public class HttpJsonDatastreamStub extends DatastreamStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -676,7 +680,7 @@ public class HttpJsonDatastreamStub extends DatastreamStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearObject().build())) + .toBody("*", request.toBuilder().clearObject().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -712,7 +716,7 @@ public class HttpJsonDatastreamStub extends DatastreamStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearObject().build())) + .toBody("*", request.toBuilder().clearObject().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -786,7 +790,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("privateConnection", request.getPrivateConnection())) + .toBody( + "privateConnection", request.getPrivateConnection(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -936,7 +941,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("route", request.getRoute())) + ProtoRestSerializer.create() + .toBody("route", request.getRoute(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java index 2a9f640b..c7e51dcf 100644 --- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java +++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java @@ -47,8 +47,11 @@ * calls that map to API methods. Sample code to get started: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ConnectionProfileName name = * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); @@ -85,8 +88,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DatastreamSettings datastreamSettings = * DatastreamSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -97,8 +103,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DatastreamSettings datastreamSettings = * DatastreamSettings.newBuilder().setEndpoint(myEndpoint).build(); * DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings); @@ -108,8 +117,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DatastreamSettings datastreamSettings = * DatastreamSettings.newBuilder() * .setTransportChannelProvider( @@ -201,8 +213,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (ConnectionProfile element : @@ -230,8 +245,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(Location *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (ConnectionProfile element : @@ -257,8 +275,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(String p *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListConnectionProfilesRequest request = * ListConnectionProfilesRequest.newBuilder() @@ -290,8 +311,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListConnectionProfilesRequest request = * ListConnectionProfilesRequest.newBuilder() @@ -322,8 +346,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListConnectionProfilesRequest request = * ListConnectionProfilesRequest.newBuilder() @@ -361,8 +388,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ConnectionProfileName name = * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); @@ -388,8 +418,11 @@ public final ConnectionProfile getConnectionProfile(ConnectionProfileName name) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String name = * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString(); @@ -413,8 +446,11 @@ public final ConnectionProfile getConnectionProfile(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetConnectionProfileRequest request = * GetConnectionProfileRequest.newBuilder() @@ -440,8 +476,11 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetConnectionProfileRequest request = * GetConnectionProfileRequest.newBuilder() @@ -468,8 +507,11 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); @@ -504,8 +546,11 @@ public final OperationFuturecreateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); @@ -540,8 +585,11 @@ public final OperationFuturecreateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateConnectionProfileRequest request = * CreateConnectionProfileRequest.newBuilder() @@ -569,8 +617,11 @@ public final OperationFuturecreateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateConnectionProfileRequest request = * CreateConnectionProfileRequest.newBuilder() @@ -599,8 +650,11 @@ public final OperationFuturecreateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateConnectionProfileRequest request = * CreateConnectionProfileRequest.newBuilder() @@ -628,8 +682,11 @@ public final OperationFuturecreateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -662,8 +719,11 @@ public final OperationFutureupdateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * UpdateConnectionProfileRequest request = * UpdateConnectionProfileRequest.newBuilder() @@ -690,8 +750,11 @@ public final OperationFutureupdateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * UpdateConnectionProfileRequest request = * UpdateConnectionProfileRequest.newBuilder() @@ -719,8 +782,11 @@ public final OperationFutureupdateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * UpdateConnectionProfileRequest request = * UpdateConnectionProfileRequest.newBuilder() @@ -747,8 +813,11 @@ public final OperationFutureupdateConnect * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ConnectionProfileName name = * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); @@ -775,8 +844,11 @@ public final OperationFuturedeleteConnectionProfileAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String name = * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString(); @@ -800,8 +872,11 @@ public final OperationFuturedeleteConnectionProfileAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeleteConnectionProfileRequest request = * DeleteConnectionProfileRequest.newBuilder() @@ -829,8 +904,11 @@ public final OperationFuturedeleteConnectionProfileAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeleteConnectionProfileRequest request = * DeleteConnectionProfileRequest.newBuilder() @@ -858,8 +936,11 @@ public final OperationFuturedeleteConnectionProfileAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DeleteConnectionProfileRequest request = * DeleteConnectionProfileRequest.newBuilder() @@ -889,8 +970,11 @@ public final OperationFuturedeleteConnectionProfileAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DiscoverConnectionProfileRequest request = * DiscoverConnectionProfileRequest.newBuilder() @@ -918,8 +1002,11 @@ public final DiscoverConnectionProfileResponse discoverConnectionProfile( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * DiscoverConnectionProfileRequest request = * DiscoverConnectionProfileRequest.newBuilder() @@ -944,8 +1031,11 @@ public final DiscoverConnectionProfileResponse discoverConnectionProfile( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Stream element : datastreamClient.listStreams(parent).iterateAll()) { @@ -972,8 +1062,11 @@ public final ListStreamsPagedResponse listStreams(LocationName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Stream element : datastreamClient.listStreams(parent).iterateAll()) { @@ -997,8 +1090,11 @@ public final ListStreamsPagedResponse listStreams(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListStreamsRequest request = * ListStreamsRequest.newBuilder() @@ -1028,8 +1124,11 @@ public final ListStreamsPagedResponse listStreams(ListStreamsRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListStreamsRequest request = * ListStreamsRequest.newBuilder() @@ -1059,8 +1158,11 @@ public final ListStreamsPagedResponse listStreams(ListStreamsRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * ListStreamsRequest request = * ListStreamsRequest.newBuilder() @@ -1096,8 +1198,11 @@ public final UnaryCallablelistStreamsC * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); * Stream response = datastreamClient.getStream(name); @@ -1120,8 +1225,11 @@ public final Stream getStream(StreamName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString(); * Stream response = datastreamClient.getStream(name); @@ -1143,8 +1251,11 @@ public final Stream getStream(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetStreamRequest request = * GetStreamRequest.newBuilder() @@ -1168,8 +1279,11 @@ public final Stream getStream(GetStreamRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * GetStreamRequest request = * GetStreamRequest.newBuilder() @@ -1192,8 +1306,11 @@ public final UnaryCallablegetStreamCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Stream stream = Stream.newBuilder().build(); @@ -1225,8 +1342,11 @@ public final OperationFuturecreateStreamAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Stream stream = Stream.newBuilder().build(); @@ -1258,8 +1378,11 @@ public final OperationFuturecreateStreamAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateStreamRequest request = * CreateStreamRequest.newBuilder() @@ -1289,8 +1412,11 @@ public final OperationFuturecreateStreamAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet 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 as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DatastreamClient datastreamClient = DatastreamClient.create()) { * CreateStreamRequest request = * CreateStreamRequest.newBuilder() @@ -1320,8 +1446,11 @@ public final OperationFuturecreateStreamAsync( *