@Generated(value="by gapic-generator-java") public class EdgeNetworkClient extends Object implements com.google.api.gax.core.BackgroundResource
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
InitializeZoneResponse response = edgeNetworkClient.initializeZone(name);
}
Note: close() needs to be called on the EdgeNetworkClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| Method | Description | Method Variants |
|---|---|---|
InitializeZone |
InitializeZone will initialize resources for a zone in a project. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListZones |
Deprecated: not implemented. Lists Zones in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetZone |
Deprecated: not implemented. Gets details of a single Zone. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListNetworks |
Lists Networks in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetNetwork |
Gets details of a single Network. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DiagnoseNetwork |
Get the diagnostics of a single network resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateNetwork |
Creates a new Network in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteNetwork |
Deletes a single Network. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListSubnets |
Lists Subnets in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetSubnet |
Gets details of a single Subnet. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateSubnet |
Creates a new Subnet in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateSubnet |
Updates the parameters of a single Subnet. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteSubnet |
Deletes a single Subnet. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListInterconnects |
Lists Interconnects in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetInterconnect |
Gets details of a single Interconnect. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DiagnoseInterconnect |
Get the diagnostics of a single interconnect resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListInterconnectAttachments |
Lists InterconnectAttachments in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetInterconnectAttachment |
Gets details of a single InterconnectAttachment. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateInterconnectAttachment |
Creates a new InterconnectAttachment in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteInterconnectAttachment |
Deletes a single InterconnectAttachment. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListRouters |
Lists Routers in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetRouter |
Gets details of a single Router. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DiagnoseRouter |
Get the diagnostics of a single router resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateRouter |
Creates a new Router in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateRouter |
Updates the parameters of a single Router. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteRouter |
Deletes a single Router. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListLocations |
Lists information about the supported locations for this service. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLocation |
Gets information about a location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of EdgeNetworkSettings to create(). For example:
To customize credentials:
// 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
EdgeNetworkSettings edgeNetworkSettings =
EdgeNetworkSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create(edgeNetworkSettings);
To customize the endpoint:
// 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
EdgeNetworkSettings edgeNetworkSettings =
EdgeNetworkSettings.newBuilder().setEndpoint(myEndpoint).build();
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create(edgeNetworkSettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// 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
EdgeNetworkSettings edgeNetworkSettings = EdgeNetworkSettings.newHttpJsonBuilder().build();
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create(edgeNetworkSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
| Modifier | Constructor and Description |
|---|---|
protected |
EdgeNetworkClient(EdgeNetworkSettings settings)
Constructs an instance of EdgeNetworkClient, using the given settings.
|
protected |
EdgeNetworkClient(EdgeNetworkStub stub) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static EdgeNetworkClient |
create()
Constructs an instance of EdgeNetworkClient with default settings.
|
static EdgeNetworkClient |
create(EdgeNetworkSettings settings)
Constructs an instance of EdgeNetworkClient, using the given settings.
|
static EdgeNetworkClient |
create(EdgeNetworkStub stub)
Constructs an instance of EdgeNetworkClient, using the given stub for making calls.
|
com.google.api.gax.longrunning.OperationFuture<InterconnectAttachment,OperationMetadata> |
createInterconnectAttachmentAsync(CreateInterconnectAttachmentRequest request)
Creates a new InterconnectAttachment in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<InterconnectAttachment,OperationMetadata> |
createInterconnectAttachmentAsync(String parent,
InterconnectAttachment interconnectAttachment,
String interconnectAttachmentId)
Creates a new InterconnectAttachment in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<InterconnectAttachment,OperationMetadata> |
createInterconnectAttachmentAsync(ZoneName parent,
InterconnectAttachment interconnectAttachment,
String interconnectAttachmentId)
Creates a new InterconnectAttachment in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateInterconnectAttachmentRequest,com.google.longrunning.Operation> |
createInterconnectAttachmentCallable()
Creates a new InterconnectAttachment in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateInterconnectAttachmentRequest,InterconnectAttachment,OperationMetadata> |
createInterconnectAttachmentOperationCallable()
Creates a new InterconnectAttachment in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Network,OperationMetadata> |
createNetworkAsync(CreateNetworkRequest request)
Creates a new Network in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Network,OperationMetadata> |
createNetworkAsync(String parent,
Network network,
String networkId)
Creates a new Network in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Network,OperationMetadata> |
createNetworkAsync(ZoneName parent,
Network network,
String networkId)
Creates a new Network in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateNetworkRequest,com.google.longrunning.Operation> |
createNetworkCallable()
Creates a new Network in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateNetworkRequest,Network,OperationMetadata> |
createNetworkOperationCallable()
Creates a new Network in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Router,OperationMetadata> |
createRouterAsync(CreateRouterRequest request)
Creates a new Router in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Router,OperationMetadata> |
createRouterAsync(String parent,
Router router,
String routerId)
Creates a new Router in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Router,OperationMetadata> |
createRouterAsync(ZoneName parent,
Router router,
String routerId)
Creates a new Router in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateRouterRequest,com.google.longrunning.Operation> |
createRouterCallable()
Creates a new Router in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateRouterRequest,Router,OperationMetadata> |
createRouterOperationCallable()
Creates a new Router in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Subnet,OperationMetadata> |
createSubnetAsync(CreateSubnetRequest request)
Creates a new Subnet in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Subnet,OperationMetadata> |
createSubnetAsync(String parent,
Subnet subnet,
String subnetId)
Creates a new Subnet in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Subnet,OperationMetadata> |
createSubnetAsync(ZoneName parent,
Subnet subnet,
String subnetId)
Creates a new Subnet in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateSubnetRequest,com.google.longrunning.Operation> |
createSubnetCallable()
Creates a new Subnet in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateSubnetRequest,Subnet,OperationMetadata> |
createSubnetOperationCallable()
Creates a new Subnet in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteInterconnectAttachmentAsync(DeleteInterconnectAttachmentRequest request)
Deletes a single InterconnectAttachment.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteInterconnectAttachmentAsync(InterconnectAttachmentName name)
Deletes a single InterconnectAttachment.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteInterconnectAttachmentAsync(String name)
Deletes a single InterconnectAttachment.
|
com.google.api.gax.rpc.UnaryCallable<DeleteInterconnectAttachmentRequest,com.google.longrunning.Operation> |
deleteInterconnectAttachmentCallable()
Deletes a single InterconnectAttachment.
|
com.google.api.gax.rpc.OperationCallable<DeleteInterconnectAttachmentRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteInterconnectAttachmentOperationCallable()
Deletes a single InterconnectAttachment.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteNetworkAsync(DeleteNetworkRequest request)
Deletes a single Network.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteNetworkAsync(NetworkName name)
Deletes a single Network.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteNetworkAsync(String name)
Deletes a single Network.
|
com.google.api.gax.rpc.UnaryCallable<DeleteNetworkRequest,com.google.longrunning.Operation> |
deleteNetworkCallable()
Deletes a single Network.
|
com.google.api.gax.rpc.OperationCallable<DeleteNetworkRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteNetworkOperationCallable()
Deletes a single Network.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteRouterAsync(DeleteRouterRequest request)
Deletes a single Router.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteRouterAsync(RouterName name)
Deletes a single Router.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteRouterAsync(String name)
Deletes a single Router.
|
com.google.api.gax.rpc.UnaryCallable<DeleteRouterRequest,com.google.longrunning.Operation> |
deleteRouterCallable()
Deletes a single Router.
|
com.google.api.gax.rpc.OperationCallable<DeleteRouterRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteRouterOperationCallable()
Deletes a single Router.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteSubnetAsync(DeleteSubnetRequest request)
Deletes a single Subnet.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteSubnetAsync(String name)
Deletes a single Subnet.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteSubnetAsync(SubnetName name)
Deletes a single Subnet.
|
com.google.api.gax.rpc.UnaryCallable<DeleteSubnetRequest,com.google.longrunning.Operation> |
deleteSubnetCallable()
Deletes a single Subnet.
|
com.google.api.gax.rpc.OperationCallable<DeleteSubnetRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteSubnetOperationCallable()
Deletes a single Subnet.
|
DiagnoseInterconnectResponse |
diagnoseInterconnect(DiagnoseInterconnectRequest request)
Get the diagnostics of a single interconnect resource.
|
DiagnoseInterconnectResponse |
diagnoseInterconnect(InterconnectName name)
Get the diagnostics of a single interconnect resource.
|
DiagnoseInterconnectResponse |
diagnoseInterconnect(String name)
Get the diagnostics of a single interconnect resource.
|
com.google.api.gax.rpc.UnaryCallable<DiagnoseInterconnectRequest,DiagnoseInterconnectResponse> |
diagnoseInterconnectCallable()
Get the diagnostics of a single interconnect resource.
|
DiagnoseNetworkResponse |
diagnoseNetwork(DiagnoseNetworkRequest request)
Get the diagnostics of a single network resource.
|
DiagnoseNetworkResponse |
diagnoseNetwork(NetworkName name)
Get the diagnostics of a single network resource.
|
DiagnoseNetworkResponse |
diagnoseNetwork(String name)
Get the diagnostics of a single network resource.
|
com.google.api.gax.rpc.UnaryCallable<DiagnoseNetworkRequest,DiagnoseNetworkResponse> |
diagnoseNetworkCallable()
Get the diagnostics of a single network resource.
|
DiagnoseRouterResponse |
diagnoseRouter(DiagnoseRouterRequest request)
Get the diagnostics of a single router resource.
|
DiagnoseRouterResponse |
diagnoseRouter(RouterName name)
Get the diagnostics of a single router resource.
|
DiagnoseRouterResponse |
diagnoseRouter(String name)
Get the diagnostics of a single router resource.
|
com.google.api.gax.rpc.UnaryCallable<DiagnoseRouterRequest,DiagnoseRouterResponse> |
diagnoseRouterCallable()
Get the diagnostics of a single router resource.
|
com.google.api.gax.httpjson.longrunning.OperationsClient |
getHttpJsonOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.
|
Interconnect |
getInterconnect(GetInterconnectRequest request)
Gets details of a single Interconnect.
|
Interconnect |
getInterconnect(InterconnectName name)
Gets details of a single Interconnect.
|
Interconnect |
getInterconnect(String name)
Gets details of a single Interconnect.
|
InterconnectAttachment |
getInterconnectAttachment(GetInterconnectAttachmentRequest request)
Gets details of a single InterconnectAttachment.
|
InterconnectAttachment |
getInterconnectAttachment(InterconnectAttachmentName name)
Gets details of a single InterconnectAttachment.
|
InterconnectAttachment |
getInterconnectAttachment(String name)
Gets details of a single InterconnectAttachment.
|
com.google.api.gax.rpc.UnaryCallable<GetInterconnectAttachmentRequest,InterconnectAttachment> |
getInterconnectAttachmentCallable()
Gets details of a single InterconnectAttachment.
|
com.google.api.gax.rpc.UnaryCallable<GetInterconnectRequest,Interconnect> |
getInterconnectCallable()
Gets details of a single Interconnect.
|
com.google.cloud.location.Location |
getLocation(com.google.cloud.location.GetLocationRequest request)
Gets information about a location.
|
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getLocationCallable()
Gets information about a location.
|
Network |
getNetwork(GetNetworkRequest request)
Gets details of a single Network.
|
Network |
getNetwork(NetworkName name)
Gets details of a single Network.
|
Network |
getNetwork(String name)
Gets details of a single Network.
|
com.google.api.gax.rpc.UnaryCallable<GetNetworkRequest,Network> |
getNetworkCallable()
Gets details of a single Network.
|
com.google.longrunning.OperationsClient |
getOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.
|
Router |
getRouter(GetRouterRequest request)
Gets details of a single Router.
|
Router |
getRouter(RouterName name)
Gets details of a single Router.
|
Router |
getRouter(String name)
Gets details of a single Router.
|
com.google.api.gax.rpc.UnaryCallable<GetRouterRequest,Router> |
getRouterCallable()
Gets details of a single Router.
|
EdgeNetworkSettings |
getSettings() |
EdgeNetworkStub |
getStub() |
Subnet |
getSubnet(GetSubnetRequest request)
Gets details of a single Subnet.
|
Subnet |
getSubnet(String name)
Gets details of a single Subnet.
|
Subnet |
getSubnet(SubnetName name)
Gets details of a single Subnet.
|
com.google.api.gax.rpc.UnaryCallable<GetSubnetRequest,Subnet> |
getSubnetCallable()
Gets details of a single Subnet.
|
Zone |
getZone(GetZoneRequest request)
Deprecated.
This method is deprecated and will be removed in the next major version update.
|
Zone |
getZone(String name)
Deprecated.
This method is deprecated and will be removed in the next major version update.
|
Zone |
getZone(ZoneName name)
Deprecated.
This method is deprecated and will be removed in the next major version update.
|
com.google.api.gax.rpc.UnaryCallable<GetZoneRequest,Zone> |
getZoneCallable()
Deprecated.
This method is deprecated and will be removed in the next major version update.
|
InitializeZoneResponse |
initializeZone(InitializeZoneRequest request)
InitializeZone will initialize resources for a zone in a project.
|
InitializeZoneResponse |
initializeZone(String name)
InitializeZone will initialize resources for a zone in a project.
|
InitializeZoneResponse |
initializeZone(ZoneName name)
InitializeZone will initialize resources for a zone in a project.
|
com.google.api.gax.rpc.UnaryCallable<InitializeZoneRequest,InitializeZoneResponse> |
initializeZoneCallable()
InitializeZone will initialize resources for a zone in a project.
|
boolean |
isShutdown() |
boolean |
isTerminated() |
EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse |
listInterconnectAttachments(ListInterconnectAttachmentsRequest request)
Lists InterconnectAttachments in a given project and location.
|
EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse |
listInterconnectAttachments(String parent)
Lists InterconnectAttachments in a given project and location.
|
EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse |
listInterconnectAttachments(ZoneName parent)
Lists InterconnectAttachments in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListInterconnectAttachmentsRequest,ListInterconnectAttachmentsResponse> |
listInterconnectAttachmentsCallable()
Lists InterconnectAttachments in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListInterconnectAttachmentsRequest,EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse> |
listInterconnectAttachmentsPagedCallable()
Lists InterconnectAttachments in a given project and location.
|
EdgeNetworkClient.ListInterconnectsPagedResponse |
listInterconnects(ListInterconnectsRequest request)
Lists Interconnects in a given project and location.
|
EdgeNetworkClient.ListInterconnectsPagedResponse |
listInterconnects(String parent)
Lists Interconnects in a given project and location.
|
EdgeNetworkClient.ListInterconnectsPagedResponse |
listInterconnects(ZoneName parent)
Lists Interconnects in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListInterconnectsRequest,ListInterconnectsResponse> |
listInterconnectsCallable()
Lists Interconnects in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListInterconnectsRequest,EdgeNetworkClient.ListInterconnectsPagedResponse> |
listInterconnectsPagedCallable()
Lists Interconnects in a given project and location.
|
EdgeNetworkClient.ListLocationsPagedResponse |
listLocations(com.google.cloud.location.ListLocationsRequest request)
Lists information about the supported locations for this service.
|
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
listLocationsCallable()
Lists information about the supported locations for this service.
|
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,EdgeNetworkClient.ListLocationsPagedResponse> |
listLocationsPagedCallable()
Lists information about the supported locations for this service.
|
EdgeNetworkClient.ListNetworksPagedResponse |
listNetworks(ListNetworksRequest request)
Lists Networks in a given project and location.
|
EdgeNetworkClient.ListNetworksPagedResponse |
listNetworks(String parent)
Lists Networks in a given project and location.
|
EdgeNetworkClient.ListNetworksPagedResponse |
listNetworks(ZoneName parent)
Lists Networks in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListNetworksRequest,ListNetworksResponse> |
listNetworksCallable()
Lists Networks in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListNetworksRequest,EdgeNetworkClient.ListNetworksPagedResponse> |
listNetworksPagedCallable()
Lists Networks in a given project and location.
|
EdgeNetworkClient.ListRoutersPagedResponse |
listRouters(ListRoutersRequest request)
Lists Routers in a given project and location.
|
EdgeNetworkClient.ListRoutersPagedResponse |
listRouters(String parent)
Lists Routers in a given project and location.
|
EdgeNetworkClient.ListRoutersPagedResponse |
listRouters(ZoneName parent)
Lists Routers in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListRoutersRequest,ListRoutersResponse> |
listRoutersCallable()
Lists Routers in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListRoutersRequest,EdgeNetworkClient.ListRoutersPagedResponse> |
listRoutersPagedCallable()
Lists Routers in a given project and location.
|
EdgeNetworkClient.ListSubnetsPagedResponse |
listSubnets(ListSubnetsRequest request)
Lists Subnets in a given project and location.
|
EdgeNetworkClient.ListSubnetsPagedResponse |
listSubnets(String parent)
Lists Subnets in a given project and location.
|
EdgeNetworkClient.ListSubnetsPagedResponse |
listSubnets(ZoneName parent)
Lists Subnets in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListSubnetsRequest,ListSubnetsResponse> |
listSubnetsCallable()
Lists Subnets in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListSubnetsRequest,EdgeNetworkClient.ListSubnetsPagedResponse> |
listSubnetsPagedCallable()
Lists Subnets in a given project and location.
|
EdgeNetworkClient.ListZonesPagedResponse |
listZones(ListZonesRequest request)
Deprecated.
This method is deprecated and will be removed in the next major version update.
|
EdgeNetworkClient.ListZonesPagedResponse |
listZones(LocationName parent)
Deprecated.
This method is deprecated and will be removed in the next major version update.
|
EdgeNetworkClient.ListZonesPagedResponse |
listZones(String parent)
Deprecated.
This method is deprecated and will be removed in the next major version update.
|
com.google.api.gax.rpc.UnaryCallable<ListZonesRequest,ListZonesResponse> |
listZonesCallable()
Deprecated.
This method is deprecated and will be removed in the next major version update.
|
com.google.api.gax.rpc.UnaryCallable<ListZonesRequest,EdgeNetworkClient.ListZonesPagedResponse> |
listZonesPagedCallable()
Deprecated.
This method is deprecated and will be removed in the next major version update.
|
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.longrunning.OperationFuture<Router,OperationMetadata> |
updateRouterAsync(Router router,
com.google.protobuf.FieldMask updateMask)
Updates the parameters of a single Router.
|
com.google.api.gax.longrunning.OperationFuture<Router,OperationMetadata> |
updateRouterAsync(UpdateRouterRequest request)
Updates the parameters of a single Router.
|
com.google.api.gax.rpc.UnaryCallable<UpdateRouterRequest,com.google.longrunning.Operation> |
updateRouterCallable()
Updates the parameters of a single Router.
|
com.google.api.gax.rpc.OperationCallable<UpdateRouterRequest,Router,OperationMetadata> |
updateRouterOperationCallable()
Updates the parameters of a single Router.
|
com.google.api.gax.longrunning.OperationFuture<Subnet,OperationMetadata> |
updateSubnetAsync(Subnet subnet,
com.google.protobuf.FieldMask updateMask)
Updates the parameters of a single Subnet.
|
com.google.api.gax.longrunning.OperationFuture<Subnet,OperationMetadata> |
updateSubnetAsync(UpdateSubnetRequest request)
Updates the parameters of a single Subnet.
|
com.google.api.gax.rpc.UnaryCallable<UpdateSubnetRequest,com.google.longrunning.Operation> |
updateSubnetCallable()
Updates the parameters of a single Subnet.
|
com.google.api.gax.rpc.OperationCallable<UpdateSubnetRequest,Subnet,OperationMetadata> |
updateSubnetOperationCallable()
Updates the parameters of a single Subnet.
|
protected EdgeNetworkClient(EdgeNetworkSettings settings) throws IOException
IOExceptionprotected EdgeNetworkClient(EdgeNetworkStub stub)
public static final EdgeNetworkClient create() throws IOException
IOExceptionpublic static final EdgeNetworkClient create(EdgeNetworkSettings settings) throws IOException
IOExceptionpublic static final EdgeNetworkClient create(EdgeNetworkStub stub)
public final EdgeNetworkSettings getSettings()
public EdgeNetworkStub getStub()
public final com.google.longrunning.OperationsClient getOperationsClient()
@BetaApi public final com.google.api.gax.httpjson.longrunning.OperationsClient getHttpJsonOperationsClient()
public final InitializeZoneResponse initializeZone(ZoneName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
InitializeZoneResponse response = edgeNetworkClient.initializeZone(name);
}
name - Required. The name of the zone resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InitializeZoneResponse initializeZone(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
InitializeZoneResponse response = edgeNetworkClient.initializeZone(name);
}
name - Required. The name of the zone resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final InitializeZoneResponse initializeZone(InitializeZoneRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
InitializeZoneRequest request =
InitializeZoneRequest.newBuilder()
.setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.build();
InitializeZoneResponse response = edgeNetworkClient.initializeZone(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<InitializeZoneRequest,InitializeZoneResponse> initializeZoneCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
InitializeZoneRequest request =
InitializeZoneRequest.newBuilder()
.setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.build();
ApiFuture<InitializeZoneResponse> future =
edgeNetworkClient.initializeZoneCallable().futureCall(request);
// Do something.
InitializeZoneResponse response = future.get();
}
@Deprecated public final EdgeNetworkClient.ListZonesPagedResponse listZones(LocationName parent)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Zone element : edgeNetworkClient.listZones(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListZonesRequestcom.google.api.gax.rpc.ApiException - if the remote call fails@Deprecated public final EdgeNetworkClient.ListZonesPagedResponse listZones(String parent)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Zone element : edgeNetworkClient.listZones(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListZonesRequestcom.google.api.gax.rpc.ApiException - if the remote call fails@Deprecated public final EdgeNetworkClient.ListZonesPagedResponse listZones(ListZonesRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListZonesRequest request =
ListZonesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Zone element : edgeNetworkClient.listZones(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call fails@Deprecated public final com.google.api.gax.rpc.UnaryCallable<ListZonesRequest,EdgeNetworkClient.ListZonesPagedResponse> listZonesPagedCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListZonesRequest request =
ListZonesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Zone> future = edgeNetworkClient.listZonesPagedCallable().futureCall(request);
// Do something.
for (Zone element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
@Deprecated public final com.google.api.gax.rpc.UnaryCallable<ListZonesRequest,ListZonesResponse> listZonesCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListZonesRequest request =
ListZonesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListZonesResponse response = edgeNetworkClient.listZonesCallable().call(request);
for (Zone element : response.getZonesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
@Deprecated public final Zone getZone(ZoneName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
Zone response = edgeNetworkClient.getZone(name);
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call fails@Deprecated public final Zone getZone(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
Zone response = edgeNetworkClient.getZone(name);
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call fails@Deprecated public final Zone getZone(GetZoneRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetZoneRequest request =
GetZoneRequest.newBuilder()
.setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.build();
Zone response = edgeNetworkClient.getZone(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call fails@Deprecated public final com.google.api.gax.rpc.UnaryCallable<GetZoneRequest,Zone> getZoneCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetZoneRequest request =
GetZoneRequest.newBuilder()
.setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.build();
ApiFuture<Zone> future = edgeNetworkClient.getZoneCallable().futureCall(request);
// Do something.
Zone response = future.get();
}
public final EdgeNetworkClient.ListNetworksPagedResponse listNetworks(ZoneName parent)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
for (Network element : edgeNetworkClient.listNetworks(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListNetworksRequestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final EdgeNetworkClient.ListNetworksPagedResponse listNetworks(String parent)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
for (Network element : edgeNetworkClient.listNetworks(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListNetworksRequestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final EdgeNetworkClient.ListNetworksPagedResponse listNetworks(ListNetworksRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListNetworksRequest request =
ListNetworksRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Network element : edgeNetworkClient.listNetworks(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListNetworksRequest,EdgeNetworkClient.ListNetworksPagedResponse> listNetworksPagedCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListNetworksRequest request =
ListNetworksRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Network> future = edgeNetworkClient.listNetworksPagedCallable().futureCall(request);
// Do something.
for (Network element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListNetworksRequest,ListNetworksResponse> listNetworksCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListNetworksRequest request =
ListNetworksRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListNetworksResponse response = edgeNetworkClient.listNetworksCallable().call(request);
for (Network element : response.getNetworksList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final Network getNetwork(NetworkName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
Network response = edgeNetworkClient.getNetwork(name);
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final Network getNetwork(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString();
Network response = edgeNetworkClient.getNetwork(name);
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final Network getNetwork(GetNetworkRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetNetworkRequest request =
GetNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.build();
Network response = edgeNetworkClient.getNetwork(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetNetworkRequest,Network> getNetworkCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetNetworkRequest request =
GetNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.build();
ApiFuture<Network> future = edgeNetworkClient.getNetworkCallable().futureCall(request);
// Do something.
Network response = future.get();
}
public final DiagnoseNetworkResponse diagnoseNetwork(NetworkName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
DiagnoseNetworkResponse response = edgeNetworkClient.diagnoseNetwork(name);
}
name - Required. The name of the network resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DiagnoseNetworkResponse diagnoseNetwork(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString();
DiagnoseNetworkResponse response = edgeNetworkClient.diagnoseNetwork(name);
}
name - Required. The name of the network resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DiagnoseNetworkResponse diagnoseNetwork(DiagnoseNetworkRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DiagnoseNetworkRequest request =
DiagnoseNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.build();
DiagnoseNetworkResponse response = edgeNetworkClient.diagnoseNetwork(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DiagnoseNetworkRequest,DiagnoseNetworkResponse> diagnoseNetworkCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DiagnoseNetworkRequest request =
DiagnoseNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.build();
ApiFuture<DiagnoseNetworkResponse> future =
edgeNetworkClient.diagnoseNetworkCallable().futureCall(request);
// Do something.
DiagnoseNetworkResponse response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Network,OperationMetadata> createNetworkAsync(ZoneName parent, Network network, String networkId)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
Network network = Network.newBuilder().build();
String networkId = "networkId2062782441";
Network response = edgeNetworkClient.createNetworkAsync(parent, network, networkId).get();
}
parent - Required. Value for parent.network - Required. The resource being creatednetworkId - Required. Id of the requesting object If auto-generating Id server-side,
remove this field and network_id from the method_signature of Create RPCcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Network,OperationMetadata> createNetworkAsync(String parent, Network network, String networkId)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
Network network = Network.newBuilder().build();
String networkId = "networkId2062782441";
Network response = edgeNetworkClient.createNetworkAsync(parent, network, networkId).get();
}
parent - Required. Value for parent.network - Required. The resource being creatednetworkId - Required. Id of the requesting object If auto-generating Id server-side,
remove this field and network_id from the method_signature of Create RPCcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Network,OperationMetadata> createNetworkAsync(CreateNetworkRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateNetworkRequest request =
CreateNetworkRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setNetworkId("networkId2062782441")
.setNetwork(Network.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Network response = edgeNetworkClient.createNetworkAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateNetworkRequest,Network,OperationMetadata> createNetworkOperationCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateNetworkRequest request =
CreateNetworkRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setNetworkId("networkId2062782441")
.setNetwork(Network.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Network, OperationMetadata> future =
edgeNetworkClient.createNetworkOperationCallable().futureCall(request);
// Do something.
Network response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateNetworkRequest,com.google.longrunning.Operation> createNetworkCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateNetworkRequest request =
CreateNetworkRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setNetworkId("networkId2062782441")
.setNetwork(Network.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.createNetworkCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteNetworkAsync(NetworkName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
edgeNetworkClient.deleteNetworkAsync(name).get();
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteNetworkAsync(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString();
edgeNetworkClient.deleteNetworkAsync(name).get();
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteNetworkAsync(DeleteNetworkRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteNetworkRequest request =
DeleteNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.setRequestId("requestId693933066")
.build();
edgeNetworkClient.deleteNetworkAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteNetworkRequest,com.google.protobuf.Empty,OperationMetadata> deleteNetworkOperationCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteNetworkRequest request =
DeleteNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
edgeNetworkClient.deleteNetworkOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteNetworkRequest,com.google.longrunning.Operation> deleteNetworkCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteNetworkRequest request =
DeleteNetworkRequest.newBuilder()
.setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.deleteNetworkCallable().futureCall(request);
// Do something.
future.get();
}
public final EdgeNetworkClient.ListSubnetsPagedResponse listSubnets(ZoneName parent)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
for (Subnet element : edgeNetworkClient.listSubnets(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListSubnetsRequestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final EdgeNetworkClient.ListSubnetsPagedResponse listSubnets(String parent)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
for (Subnet element : edgeNetworkClient.listSubnets(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListSubnetsRequestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final EdgeNetworkClient.ListSubnetsPagedResponse listSubnets(ListSubnetsRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListSubnetsRequest request =
ListSubnetsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Subnet element : edgeNetworkClient.listSubnets(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListSubnetsRequest,EdgeNetworkClient.ListSubnetsPagedResponse> listSubnetsPagedCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListSubnetsRequest request =
ListSubnetsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Subnet> future = edgeNetworkClient.listSubnetsPagedCallable().futureCall(request);
// Do something.
for (Subnet element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListSubnetsRequest,ListSubnetsResponse> listSubnetsCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListSubnetsRequest request =
ListSubnetsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListSubnetsResponse response = edgeNetworkClient.listSubnetsCallable().call(request);
for (Subnet element : response.getSubnetsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final Subnet getSubnet(SubnetName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
SubnetName name = SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]");
Subnet response = edgeNetworkClient.getSubnet(name);
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final Subnet getSubnet(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString();
Subnet response = edgeNetworkClient.getSubnet(name);
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final Subnet getSubnet(GetSubnetRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetSubnetRequest request =
GetSubnetRequest.newBuilder()
.setName(SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString())
.build();
Subnet response = edgeNetworkClient.getSubnet(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetSubnetRequest,Subnet> getSubnetCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetSubnetRequest request =
GetSubnetRequest.newBuilder()
.setName(SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString())
.build();
ApiFuture<Subnet> future = edgeNetworkClient.getSubnetCallable().futureCall(request);
// Do something.
Subnet response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Subnet,OperationMetadata> createSubnetAsync(ZoneName parent, Subnet subnet, String subnetId)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
Subnet subnet = Subnet.newBuilder().build();
String subnetId = "subnetId-2066159272";
Subnet response = edgeNetworkClient.createSubnetAsync(parent, subnet, subnetId).get();
}
parent - Required. Value for parent.subnet - Required. The resource being createdsubnetId - Required. Id of the requesting object If auto-generating Id server-side, remove
this field and subnet_id from the method_signature of Create RPCcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Subnet,OperationMetadata> createSubnetAsync(String parent, Subnet subnet, String subnetId)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
Subnet subnet = Subnet.newBuilder().build();
String subnetId = "subnetId-2066159272";
Subnet response = edgeNetworkClient.createSubnetAsync(parent, subnet, subnetId).get();
}
parent - Required. Value for parent.subnet - Required. The resource being createdsubnetId - Required. Id of the requesting object If auto-generating Id server-side, remove
this field and subnet_id from the method_signature of Create RPCcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Subnet,OperationMetadata> createSubnetAsync(CreateSubnetRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateSubnetRequest request =
CreateSubnetRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setSubnetId("subnetId-2066159272")
.setSubnet(Subnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Subnet response = edgeNetworkClient.createSubnetAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateSubnetRequest,Subnet,OperationMetadata> createSubnetOperationCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateSubnetRequest request =
CreateSubnetRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setSubnetId("subnetId-2066159272")
.setSubnet(Subnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Subnet, OperationMetadata> future =
edgeNetworkClient.createSubnetOperationCallable().futureCall(request);
// Do something.
Subnet response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateSubnetRequest,com.google.longrunning.Operation> createSubnetCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateSubnetRequest request =
CreateSubnetRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setSubnetId("subnetId-2066159272")
.setSubnet(Subnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.createSubnetCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Subnet,OperationMetadata> updateSubnetAsync(Subnet subnet, com.google.protobuf.FieldMask updateMask)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
Subnet subnet = Subnet.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Subnet response = edgeNetworkClient.updateSubnetAsync(subnet, updateMask).get();
}
subnet - Required. The resource being updatedupdateMask - Required. Field mask is used to specify the fields to be overwritten in the
Subnet resource by the update. The fields specified in the update_mask are relative to the
resource, not the full request. A field will be overwritten if it is in the mask. If the
user does not provide a mask then all fields will be overwritten.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Subnet,OperationMetadata> updateSubnetAsync(UpdateSubnetRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
UpdateSubnetRequest request =
UpdateSubnetRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setSubnet(Subnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Subnet response = edgeNetworkClient.updateSubnetAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateSubnetRequest,Subnet,OperationMetadata> updateSubnetOperationCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
UpdateSubnetRequest request =
UpdateSubnetRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setSubnet(Subnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Subnet, OperationMetadata> future =
edgeNetworkClient.updateSubnetOperationCallable().futureCall(request);
// Do something.
Subnet response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateSubnetRequest,com.google.longrunning.Operation> updateSubnetCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
UpdateSubnetRequest request =
UpdateSubnetRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setSubnet(Subnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.updateSubnetCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteSubnetAsync(SubnetName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
SubnetName name = SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]");
edgeNetworkClient.deleteSubnetAsync(name).get();
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteSubnetAsync(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString();
edgeNetworkClient.deleteSubnetAsync(name).get();
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteSubnetAsync(DeleteSubnetRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteSubnetRequest request =
DeleteSubnetRequest.newBuilder()
.setName(SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString())
.setRequestId("requestId693933066")
.build();
edgeNetworkClient.deleteSubnetAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteSubnetRequest,com.google.protobuf.Empty,OperationMetadata> deleteSubnetOperationCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteSubnetRequest request =
DeleteSubnetRequest.newBuilder()
.setName(SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
edgeNetworkClient.deleteSubnetOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteSubnetRequest,com.google.longrunning.Operation> deleteSubnetCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteSubnetRequest request =
DeleteSubnetRequest.newBuilder()
.setName(SubnetName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.deleteSubnetCallable().futureCall(request);
// Do something.
future.get();
}
public final EdgeNetworkClient.ListInterconnectsPagedResponse listInterconnects(ZoneName parent)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
for (Interconnect element : edgeNetworkClient.listInterconnects(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListInterconnectsRequestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final EdgeNetworkClient.ListInterconnectsPagedResponse listInterconnects(String parent)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
for (Interconnect element : edgeNetworkClient.listInterconnects(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListInterconnectsRequestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final EdgeNetworkClient.ListInterconnectsPagedResponse listInterconnects(ListInterconnectsRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListInterconnectsRequest request =
ListInterconnectsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Interconnect element : edgeNetworkClient.listInterconnects(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListInterconnectsRequest,EdgeNetworkClient.ListInterconnectsPagedResponse> listInterconnectsPagedCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListInterconnectsRequest request =
ListInterconnectsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Interconnect> future =
edgeNetworkClient.listInterconnectsPagedCallable().futureCall(request);
// Do something.
for (Interconnect element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListInterconnectsRequest,ListInterconnectsResponse> listInterconnectsCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListInterconnectsRequest request =
ListInterconnectsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListInterconnectsResponse response =
edgeNetworkClient.listInterconnectsCallable().call(request);
for (Interconnect element : response.getInterconnectsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final Interconnect getInterconnect(InterconnectName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
InterconnectName name =
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]");
Interconnect response = edgeNetworkClient.getInterconnect(name);
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final Interconnect getInterconnect(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name =
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]").toString();
Interconnect response = edgeNetworkClient.getInterconnect(name);
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final Interconnect getInterconnect(GetInterconnectRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetInterconnectRequest request =
GetInterconnectRequest.newBuilder()
.setName(
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]")
.toString())
.build();
Interconnect response = edgeNetworkClient.getInterconnect(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetInterconnectRequest,Interconnect> getInterconnectCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetInterconnectRequest request =
GetInterconnectRequest.newBuilder()
.setName(
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]")
.toString())
.build();
ApiFuture<Interconnect> future =
edgeNetworkClient.getInterconnectCallable().futureCall(request);
// Do something.
Interconnect response = future.get();
}
public final DiagnoseInterconnectResponse diagnoseInterconnect(InterconnectName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
InterconnectName name =
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]");
DiagnoseInterconnectResponse response = edgeNetworkClient.diagnoseInterconnect(name);
}
name - Required. The name of the interconnect resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DiagnoseInterconnectResponse diagnoseInterconnect(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name =
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]").toString();
DiagnoseInterconnectResponse response = edgeNetworkClient.diagnoseInterconnect(name);
}
name - Required. The name of the interconnect resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DiagnoseInterconnectResponse diagnoseInterconnect(DiagnoseInterconnectRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DiagnoseInterconnectRequest request =
DiagnoseInterconnectRequest.newBuilder()
.setName(
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]")
.toString())
.build();
DiagnoseInterconnectResponse response = edgeNetworkClient.diagnoseInterconnect(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DiagnoseInterconnectRequest,DiagnoseInterconnectResponse> diagnoseInterconnectCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DiagnoseInterconnectRequest request =
DiagnoseInterconnectRequest.newBuilder()
.setName(
InterconnectName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]")
.toString())
.build();
ApiFuture<DiagnoseInterconnectResponse> future =
edgeNetworkClient.diagnoseInterconnectCallable().futureCall(request);
// Do something.
DiagnoseInterconnectResponse response = future.get();
}
public final EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse listInterconnectAttachments(ZoneName parent)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
for (InterconnectAttachment element :
edgeNetworkClient.listInterconnectAttachments(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListInterconnectAttachmentsRequestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse listInterconnectAttachments(String parent)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
for (InterconnectAttachment element :
edgeNetworkClient.listInterconnectAttachments(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListInterconnectAttachmentsRequestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse listInterconnectAttachments(ListInterconnectAttachmentsRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListInterconnectAttachmentsRequest request =
ListInterconnectAttachmentsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (InterconnectAttachment element :
edgeNetworkClient.listInterconnectAttachments(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListInterconnectAttachmentsRequest,EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse> listInterconnectAttachmentsPagedCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListInterconnectAttachmentsRequest request =
ListInterconnectAttachmentsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<InterconnectAttachment> future =
edgeNetworkClient.listInterconnectAttachmentsPagedCallable().futureCall(request);
// Do something.
for (InterconnectAttachment element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListInterconnectAttachmentsRequest,ListInterconnectAttachmentsResponse> listInterconnectAttachmentsCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListInterconnectAttachmentsRequest request =
ListInterconnectAttachmentsRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListInterconnectAttachmentsResponse response =
edgeNetworkClient.listInterconnectAttachmentsCallable().call(request);
for (InterconnectAttachment element : response.getInterconnectAttachmentsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final InterconnectAttachment getInterconnectAttachment(InterconnectAttachmentName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
InterconnectAttachmentName name =
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]");
InterconnectAttachment response = edgeNetworkClient.getInterconnectAttachment(name);
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final InterconnectAttachment getInterconnectAttachment(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name =
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString();
InterconnectAttachment response = edgeNetworkClient.getInterconnectAttachment(name);
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final InterconnectAttachment getInterconnectAttachment(GetInterconnectAttachmentRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetInterconnectAttachmentRequest request =
GetInterconnectAttachmentRequest.newBuilder()
.setName(
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString())
.build();
InterconnectAttachment response = edgeNetworkClient.getInterconnectAttachment(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetInterconnectAttachmentRequest,InterconnectAttachment> getInterconnectAttachmentCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetInterconnectAttachmentRequest request =
GetInterconnectAttachmentRequest.newBuilder()
.setName(
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString())
.build();
ApiFuture<InterconnectAttachment> future =
edgeNetworkClient.getInterconnectAttachmentCallable().futureCall(request);
// Do something.
InterconnectAttachment response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<InterconnectAttachment,OperationMetadata> createInterconnectAttachmentAsync(ZoneName parent, InterconnectAttachment interconnectAttachment, String interconnectAttachmentId)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
InterconnectAttachment interconnectAttachment = InterconnectAttachment.newBuilder().build();
String interconnectAttachmentId = "interconnectAttachmentId1053538636";
InterconnectAttachment response =
edgeNetworkClient
.createInterconnectAttachmentAsync(
parent, interconnectAttachment, interconnectAttachmentId)
.get();
}
parent - Required. Value for parent.interconnectAttachment - Required. The resource being createdinterconnectAttachmentId - Required. Id of the requesting object If auto-generating Id
server-side, remove this field and interconnect_attachment_id from the method_signature of
Create RPCcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<InterconnectAttachment,OperationMetadata> createInterconnectAttachmentAsync(String parent, InterconnectAttachment interconnectAttachment, String interconnectAttachmentId)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
InterconnectAttachment interconnectAttachment = InterconnectAttachment.newBuilder().build();
String interconnectAttachmentId = "interconnectAttachmentId1053538636";
InterconnectAttachment response =
edgeNetworkClient
.createInterconnectAttachmentAsync(
parent, interconnectAttachment, interconnectAttachmentId)
.get();
}
parent - Required. Value for parent.interconnectAttachment - Required. The resource being createdinterconnectAttachmentId - Required. Id of the requesting object If auto-generating Id
server-side, remove this field and interconnect_attachment_id from the method_signature of
Create RPCcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<InterconnectAttachment,OperationMetadata> createInterconnectAttachmentAsync(CreateInterconnectAttachmentRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateInterconnectAttachmentRequest request =
CreateInterconnectAttachmentRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setInterconnectAttachmentId("interconnectAttachmentId1053538636")
.setInterconnectAttachment(InterconnectAttachment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
InterconnectAttachment response =
edgeNetworkClient.createInterconnectAttachmentAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateInterconnectAttachmentRequest,InterconnectAttachment,OperationMetadata> createInterconnectAttachmentOperationCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateInterconnectAttachmentRequest request =
CreateInterconnectAttachmentRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setInterconnectAttachmentId("interconnectAttachmentId1053538636")
.setInterconnectAttachment(InterconnectAttachment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<InterconnectAttachment, OperationMetadata> future =
edgeNetworkClient.createInterconnectAttachmentOperationCallable().futureCall(request);
// Do something.
InterconnectAttachment response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateInterconnectAttachmentRequest,com.google.longrunning.Operation> createInterconnectAttachmentCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateInterconnectAttachmentRequest request =
CreateInterconnectAttachmentRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setInterconnectAttachmentId("interconnectAttachmentId1053538636")
.setInterconnectAttachment(InterconnectAttachment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
edgeNetworkClient.createInterconnectAttachmentCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteInterconnectAttachmentAsync(InterconnectAttachmentName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
InterconnectAttachmentName name =
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]");
edgeNetworkClient.deleteInterconnectAttachmentAsync(name).get();
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteInterconnectAttachmentAsync(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name =
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString();
edgeNetworkClient.deleteInterconnectAttachmentAsync(name).get();
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteInterconnectAttachmentAsync(DeleteInterconnectAttachmentRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteInterconnectAttachmentRequest request =
DeleteInterconnectAttachmentRequest.newBuilder()
.setName(
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString())
.setRequestId("requestId693933066")
.build();
edgeNetworkClient.deleteInterconnectAttachmentAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteInterconnectAttachmentRequest,com.google.protobuf.Empty,OperationMetadata> deleteInterconnectAttachmentOperationCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteInterconnectAttachmentRequest request =
DeleteInterconnectAttachmentRequest.newBuilder()
.setName(
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
edgeNetworkClient.deleteInterconnectAttachmentOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteInterconnectAttachmentRequest,com.google.longrunning.Operation> deleteInterconnectAttachmentCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteInterconnectAttachmentRequest request =
DeleteInterconnectAttachmentRequest.newBuilder()
.setName(
InterconnectAttachmentName.of(
"[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]")
.toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
edgeNetworkClient.deleteInterconnectAttachmentCallable().futureCall(request);
// Do something.
future.get();
}
public final EdgeNetworkClient.ListRoutersPagedResponse listRouters(ZoneName parent)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
for (Router element : edgeNetworkClient.listRouters(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListRoutersRequestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final EdgeNetworkClient.ListRoutersPagedResponse listRouters(String parent)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
for (Router element : edgeNetworkClient.listRouters(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListRoutersRequestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final EdgeNetworkClient.ListRoutersPagedResponse listRouters(ListRoutersRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListRoutersRequest request =
ListRoutersRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Router element : edgeNetworkClient.listRouters(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListRoutersRequest,EdgeNetworkClient.ListRoutersPagedResponse> listRoutersPagedCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListRoutersRequest request =
ListRoutersRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Router> future = edgeNetworkClient.listRoutersPagedCallable().futureCall(request);
// Do something.
for (Router element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListRoutersRequest,ListRoutersResponse> listRoutersCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListRoutersRequest request =
ListRoutersRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListRoutersResponse response = edgeNetworkClient.listRoutersCallable().call(request);
for (Router element : response.getRoutersList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final Router getRouter(RouterName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
RouterName name = RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
Router response = edgeNetworkClient.getRouter(name);
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final Router getRouter(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString();
Router response = edgeNetworkClient.getRouter(name);
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final Router getRouter(GetRouterRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetRouterRequest request =
GetRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.build();
Router response = edgeNetworkClient.getRouter(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetRouterRequest,Router> getRouterCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetRouterRequest request =
GetRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.build();
ApiFuture<Router> future = edgeNetworkClient.getRouterCallable().futureCall(request);
// Do something.
Router response = future.get();
}
public final DiagnoseRouterResponse diagnoseRouter(RouterName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
RouterName name = RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
DiagnoseRouterResponse response = edgeNetworkClient.diagnoseRouter(name);
}
name - Required. The name of the router resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DiagnoseRouterResponse diagnoseRouter(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString();
DiagnoseRouterResponse response = edgeNetworkClient.diagnoseRouter(name);
}
name - Required. The name of the router resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DiagnoseRouterResponse diagnoseRouter(DiagnoseRouterRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DiagnoseRouterRequest request =
DiagnoseRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.build();
DiagnoseRouterResponse response = edgeNetworkClient.diagnoseRouter(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DiagnoseRouterRequest,DiagnoseRouterResponse> diagnoseRouterCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DiagnoseRouterRequest request =
DiagnoseRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.build();
ApiFuture<DiagnoseRouterResponse> future =
edgeNetworkClient.diagnoseRouterCallable().futureCall(request);
// Do something.
DiagnoseRouterResponse response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Router,OperationMetadata> createRouterAsync(ZoneName parent, Router router, String routerId)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
Router router = Router.newBuilder().build();
String routerId = "routerId5435972";
Router response = edgeNetworkClient.createRouterAsync(parent, router, routerId).get();
}
parent - Required. Value for parent.router - Required. The resource being createdrouterId - Required. Id of the requesting object If auto-generating Id server-side, remove
this field and router_id from the method_signature of Create RPCcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Router,OperationMetadata> createRouterAsync(String parent, Router router, String routerId)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
Router router = Router.newBuilder().build();
String routerId = "routerId5435972";
Router response = edgeNetworkClient.createRouterAsync(parent, router, routerId).get();
}
parent - Required. Value for parent.router - Required. The resource being createdrouterId - Required. Id of the requesting object If auto-generating Id server-side, remove
this field and router_id from the method_signature of Create RPCcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Router,OperationMetadata> createRouterAsync(CreateRouterRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateRouterRequest request =
CreateRouterRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setRouterId("routerId5435972")
.setRouter(Router.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Router response = edgeNetworkClient.createRouterAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateRouterRequest,Router,OperationMetadata> createRouterOperationCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateRouterRequest request =
CreateRouterRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setRouterId("routerId5435972")
.setRouter(Router.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Router, OperationMetadata> future =
edgeNetworkClient.createRouterOperationCallable().futureCall(request);
// Do something.
Router response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateRouterRequest,com.google.longrunning.Operation> createRouterCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
CreateRouterRequest request =
CreateRouterRequest.newBuilder()
.setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
.setRouterId("routerId5435972")
.setRouter(Router.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.createRouterCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Router,OperationMetadata> updateRouterAsync(Router router, com.google.protobuf.FieldMask updateMask)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
Router router = Router.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Router response = edgeNetworkClient.updateRouterAsync(router, updateMask).get();
}
router - Required. The resource being updatedupdateMask - Required. Field mask is used to specify the fields to be overwritten in the
Router resource by the update. The fields specified in the update_mask are relative to the
resource, not the full request. A field will be overwritten if it is in the mask. If the
user does not provide a mask then all fields will be overwritten.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Router,OperationMetadata> updateRouterAsync(UpdateRouterRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
UpdateRouterRequest request =
UpdateRouterRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setRouter(Router.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Router response = edgeNetworkClient.updateRouterAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateRouterRequest,Router,OperationMetadata> updateRouterOperationCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
UpdateRouterRequest request =
UpdateRouterRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setRouter(Router.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Router, OperationMetadata> future =
edgeNetworkClient.updateRouterOperationCallable().futureCall(request);
// Do something.
Router response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateRouterRequest,com.google.longrunning.Operation> updateRouterCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
UpdateRouterRequest request =
UpdateRouterRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setRouter(Router.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.updateRouterCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteRouterAsync(RouterName name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
RouterName name = RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
edgeNetworkClient.deleteRouterAsync(name).get();
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteRouterAsync(String name)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
String name = RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString();
edgeNetworkClient.deleteRouterAsync(name).get();
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteRouterAsync(DeleteRouterRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteRouterRequest request =
DeleteRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.setRequestId("requestId693933066")
.build();
edgeNetworkClient.deleteRouterAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteRouterRequest,com.google.protobuf.Empty,OperationMetadata> deleteRouterOperationCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteRouterRequest request =
DeleteRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
edgeNetworkClient.deleteRouterOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteRouterRequest,com.google.longrunning.Operation> deleteRouterCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
DeleteRouterRequest request =
DeleteRouterRequest.newBuilder()
.setName(RouterName.of("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = edgeNetworkClient.deleteRouterCallable().futureCall(request);
// Do something.
future.get();
}
public final EdgeNetworkClient.ListLocationsPagedResponse listLocations(com.google.cloud.location.ListLocationsRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Location element : edgeNetworkClient.listLocations(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,EdgeNetworkClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Location> future =
edgeNetworkClient.listLocationsPagedCallable().futureCall(request);
// Do something.
for (Location element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListLocationsResponse response = edgeNetworkClient.listLocationsCallable().call(request);
for (Location element : response.getLocationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final com.google.cloud.location.Location getLocation(com.google.cloud.location.GetLocationRequest request)
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
Location response = edgeNetworkClient.getLocation(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
Sample code:
// 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 (EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
ApiFuture<Location> future = edgeNetworkClient.getLocationCallable().futureCall(request);
// Do something.
Location response = future.get();
}
public final void close()
close in interface AutoCloseablepublic void shutdown()
shutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isShutdown()
isShutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isTerminated()
isTerminated in interface com.google.api.gax.core.BackgroundResourcepublic void shutdownNow()
shutdownNow in interface com.google.api.gax.core.BackgroundResourcepublic boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface com.google.api.gax.core.BackgroundResourceInterruptedExceptionCopyright © 2025 Google LLC. All rights reserved.