diff --git a/packages/google-cloud-networkconnectivity/README.md b/packages/google-cloud-networkconnectivity/README.md index f5b51beda18..506ae449dda 100644 --- a/packages/google-cloud-networkconnectivity/README.md +++ b/packages/google-cloud-networkconnectivity/README.md @@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. 1. [Select or create a Cloud Platform project][projects]. 1. [Enable billing for your project][billing]. 1. [Enable the Network Connectivity Center API][enable_api]. -1. [Set up authentication with a service account][auth] so you can access the +1. [Set up authentication][auth] so you can access the API from your local workstation. ### Installing the client library @@ -104,7 +104,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Hub_service.list_route_tables | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.list_route_tables.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.list_route_tables.js,packages/google-cloud-networkconnectivity/samples/README.md) | | Hub_service.list_routes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.list_routes.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.list_routes.js,packages/google-cloud-networkconnectivity/samples/README.md) | | Hub_service.list_spokes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.list_spokes.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.list_spokes.js,packages/google-cloud-networkconnectivity/samples/README.md) | +| Hub_service.query_hub_status | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.query_hub_status.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.query_hub_status.js,packages/google-cloud-networkconnectivity/samples/README.md) | | Hub_service.reject_hub_spoke | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.reject_hub_spoke.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.reject_hub_spoke.js,packages/google-cloud-networkconnectivity/samples/README.md) | +| Hub_service.update_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.update_group.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.update_group.js,packages/google-cloud-networkconnectivity/samples/README.md) | | Hub_service.update_hub | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.update_hub.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.update_hub.js,packages/google-cloud-networkconnectivity/samples/README.md) | | Hub_service.update_spoke | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.update_spoke.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.update_spoke.js,packages/google-cloud-networkconnectivity/samples/README.md) | | Policy_based_routing_service.create_policy_based_route | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkconnectivity/samples/generated/v1/policy_based_routing_service.create_policy_based_route.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkconnectivity/samples/generated/v1/policy_based_routing_service.create_policy_based_route.js,packages/google-cloud-networkconnectivity/samples/README.md) | @@ -191,4 +193,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) [projects]: https://console.cloud.google.com/project [billing]: https://support.google.com/cloud/answer/6293499#enable-billing [enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=networkconnectivity.googleapis.com -[auth]: https://cloud.google.com/docs/authentication/getting-started +[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local diff --git a/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1/hub.proto b/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1/hub.proto index 7f6284430d9..84ea3211bc3 100644 --- a/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1/hub.proto +++ b/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1/hub.proto @@ -19,6 +19,7 @@ package google.cloud.networkconnectivity.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/cloud/networkconnectivity/v1/common.proto"; import "google/longrunning/operations.proto"; @@ -115,6 +116,15 @@ service HubService { option (google.api.method_signature) = "name"; } + // Query the Private Service Connect propagation status of a Network + // Connectivity Center hub. + rpc QueryHubStatus(QueryHubStatusRequest) returns (QueryHubStatusResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/global/hubs/*}:queryStatus" + }; + option (google.api.method_signature) = "name"; + } + // Lists the Network Connectivity Center spokes in a specified project and // location. rpc ListSpokes(ListSpokesRequest) returns (ListSpokesResponse) { @@ -218,7 +228,7 @@ service HubService { option (google.api.method_signature) = "name"; } - // Lists routes in a given project. + // Lists routes in a given route table. rpc ListRoutes(ListRoutesRequest) returns (ListRoutesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/global/hubs/*/routeTables/*}/routes" @@ -226,7 +236,7 @@ service HubService { option (google.api.method_signature) = "parent"; } - // Lists route tables in a given project. + // Lists route tables in a given hub. rpc ListRouteTables(ListRouteTablesRequest) returns (ListRouteTablesResponse) { option (google.api.http) = { @@ -250,6 +260,19 @@ service HubService { }; option (google.api.method_signature) = "parent"; } + + // Updates the parameters of a Network Connectivity Center group. + rpc UpdateGroup(UpdateGroupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{group.name=projects/*/locations/global/hubs/*/groups/*}" + body: "group" + }; + option (google.api.method_signature) = "group,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Group" + metadata_type: "OperationMetadata" + }; + } } // Supported features for a location @@ -276,6 +299,11 @@ enum RouteType { // The route leads to a destination within the secondary address range of the // VPC network's subnet. VPC_SECONDARY_SUBNET = 2; + + // The route leads to a destination in a dynamic route. Dynamic routes are + // derived from Border Gateway Protocol (BGP) advertisements received from an + // NCC hybrid spoke. + DYNAMIC_ROUTE = 3; } // The State enum represents the lifecycle stage of a Network Connectivity @@ -327,6 +355,35 @@ enum SpokeType { // Spokes associated with VPC networks. VPC_NETWORK = 4; + + // Spokes that are backed by a producer VPC network. + PRODUCER_VPC_NETWORK = 7; +} + +// This enum controls the policy mode used in a hub. +enum PolicyMode { + // Policy mode is unspecified. It defaults to PRESET + // with preset_topology = MESH. + POLICY_MODE_UNSPECIFIED = 0; + + // Hub uses one of the preset topologies. + PRESET = 1; +} + +// The list of available preset topologies. +enum PresetTopology { + // Preset topology is unspecified. When policy_mode = PRESET, + // it defaults to MESH. + PRESET_TOPOLOGY_UNSPECIFIED = 0; + + // Mesh topology is implemented. Group `default` is automatically created. + // All spokes in the hub are added to group `default`. + MESH = 2; + + // Star topology is implemented. Two groups, `center` and `edge`, are + // automatically created along with hub creation. Spokes have to join one of + // the groups during creation. + STAR = 3; } // A Network Connectivity Center hub is a global management resource to which @@ -390,6 +447,24 @@ message Hub { // the summary also lists the reasons they are inactive, // including a count for each reason. SpokeSummary spoke_summary = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The policy mode of this hub. This field can be either + // PRESET or CUSTOM. If unspecified, the + // policy_mode defaults to PRESET. + PolicyMode policy_mode = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The topology implemented in this hub. Currently, this field is + // only used when policy_mode = PRESET. The available preset topologies are + // MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET, + // the preset_topology defaults to MESH. When policy_mode = CUSTOM, + // the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED. + PresetTopology preset_topology = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether Private Service Connect transitivity is enabled for the + // hub. If true, Private Service Connect endpoints in VPC spokes attached to + // the hub are made accessible to other VPC spokes attached to the hub. + // The default value is false. + optional bool export_psc = 15 [(google.api.field_behavior) = OPTIONAL]; } // RoutingVPC contains information about the VPC networks associated @@ -506,6 +581,10 @@ message Spoke { LinkedVpcNetwork linked_vpc_network = 20 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The linked producer VPC that is associated with the spoke. + LinkedProducerVpcNetwork linked_producer_vpc_network = 26 + [(google.api.field_behavior) = OPTIONAL]; + // Output only. The Google-generated UUID for the spoke. This value is unique // across all spoke resources. If a spoke is deleted and another with the same // name is created, the new spoke is assigned a different `unique_id`. @@ -617,10 +696,28 @@ message Route { } ]; - // Output only. The location of the route. + // Output only. The origin location of the route. // Uses the following form: "projects/{project}/locations/{location}" // Example: projects/1234/locations/us-central1 string location = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The priority of this route. Priority is used to break ties in + // cases where a destination matches more than one route. In these cases the + // route with the lowest-numbered priority value wins. + int64 priority = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The next-hop VPN tunnel for packets on this route. + NextHopVPNTunnel next_hop_vpn_tunnel = 14 + [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The next-hop Router appliance instance for packets on this + // route. + NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 + [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The next-hop VLAN attachment for packets on this route. + NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 + [(google.api.field_behavior) = IMMUTABLE]; } // A group represents a subset of spokes attached to a hub. @@ -659,6 +756,28 @@ message Group { // Output only. The current lifecycle state of this group. State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The auto-accept setting for this group. + AutoAccept auto_accept = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The name of the route table that corresponds to this group. + // They use the following form: + // `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` + string route_table = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The auto-accept setting for a group controls whether +// proposed spokes are automatically attached to the hub. If auto-accept is +// enabled, the spoke immediately is attached to the hub and becomes part of the +// group. In this case, the new spoke is in the ACTIVE state. +// If auto-accept is disabled, the spoke goes to the INACTIVE +// state, and it must be reviewed and accepted by a hub +// administrator. +message AutoAccept { + // A list of project ids or project numbers for which you want + // to enable auto-accept. The auto-accept setting is applied to + // spokes being created or updated in these projects. + repeated string auto_accept_projects = 1; } // Request for @@ -883,6 +1002,146 @@ message ListHubSpokesResponse { repeated string unreachable = 3; } +// The request for +// [HubService.QueryHubStatus][google.cloud.networkconnectivity.v1.HubService.QueryHubStatus]. +message QueryHubStatusRequest { + // Required. The name of the hub. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Hub" + } + ]; + + // Optional. The maximum number of results to return per page. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression that filters the list of results. + // The filter can be used to filter the results by the following fields: + // * `psc_propagation_status.source_spoke` + // * `psc_propagation_status.source_group` + // * `psc_propagation_status.source_forwarding_rule` + // * `psc_propagation_status.target_spoke` + // * `psc_propagation_status.target_group` + // * `psc_propagation_status.code` + // * `psc_propagation_status.message` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sort the results in ascending order by the specified fields. + // A comma-separated list of any of these fields: + // * `psc_propagation_status.source_spoke` + // * `psc_propagation_status.source_group` + // * `psc_propagation_status.source_forwarding_rule` + // * `psc_propagation_status.target_spoke` + // * `psc_propagation_status.target_group` + // * `psc_propagation_status.code` + // If `group_by` is set, the value of the `order_by` field must be the + // same as or a subset of the `group_by` field. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Aggregate the results by the specified fields. + // A comma-separated list of any of these fields: + // * `psc_propagation_status.source_spoke` + // * `psc_propagation_status.source_group` + // * `psc_propagation_status.source_forwarding_rule` + // * `psc_propagation_status.target_spoke` + // * `psc_propagation_status.target_group` + // * `psc_propagation_status.code` + string group_by = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for +// [HubService.QueryHubStatus][google.cloud.networkconnectivity.v1.HubService.QueryHubStatus]. +message QueryHubStatusResponse { + // The list of hub status. + repeated HubStatusEntry hub_status_entries = 1; + + // The token for the next page of the response. To see more results, + // use this value as the page_token for your next request. If this value + // is empty, there are no more results. + string next_page_token = 2; +} + +// A hub status entry represents the status of a set of propagated Private +// Service Connect connections grouped by certain fields. +message HubStatusEntry { + // The number of propagated Private Service Connect connections with this + // status. If the `group_by` field was not set in the request message, the + // value of this field is 1. + int32 count = 1; + + // The fields that this entry is grouped by. This has the same value as the + // `group_by` field in the request message. + string group_by = 2; + + // The Private Service Connect propagation status. + PscPropagationStatus psc_propagation_status = 3; +} + +// The status of one or more propagated Private Service Connect connections in a +// hub. +message PscPropagationStatus { + // The Code enum represents the state of the Private Service Connect + // propagation. + enum Code { + // The code is unspecified. + CODE_UNSPECIFIED = 0; + + // The propagated Private Service Connect connection is ready. + READY = 1; + + // The Private Service Connect connection is propagating. This is a + // transient state. + PROPAGATING = 2; + + // The Private Service Connect connection propagation failed because the VPC + // network or the project of the target spoke has exceeded the connection + // limit set by the producer. + ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED = 3; + + // The Private Service Connect connection propagation failed because the NAT + // IP subnet space has been exhausted. It is equivalent to the `Needs + // attention` status of the Private Service Connect connection. See + // https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#connection-statuses. + ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED = 4; + + // The Private Service Connect connection propagation failed because the + // `PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK` quota in the + // producer VPC network has been exceeded. + ERROR_PRODUCER_QUOTA_EXCEEDED = 5; + + // The Private Service Connect connection propagation failed because the + // `PSC_PROPAGATED_CONNECTIONS_PER_VPC_NETWORK` quota in the consumer + // VPC network has been exceeded. + ERROR_CONSUMER_QUOTA_EXCEEDED = 6; + } + + // The name of the spoke that the source forwarding rule belongs to. + string source_spoke = 1; + + // The name of the group that the source spoke belongs to. + string source_group = 2; + + // The name of the forwarding rule exported to the hub. + string source_forwarding_rule = 3; + + // The name of the spoke that the source forwarding rule propagates to. + string target_spoke = 4; + + // The name of the group that the target spoke belongs to. + string target_group = 5; + + // The propagation status. + Code code = 6; + + // The human-readable summary of the Private Service Connect connection + // propagation status. + string message = 7; +} + // The request for // [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes]. message ListSpokesRequest { @@ -1284,6 +1543,12 @@ message LinkedVpnTunnels { (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; + + // Optional. IP ranges allowed to be included during import from hub (does not + // control transit connectivity). The only allowed value for now is + // "ALL_IPV4_RANGES". + repeated string include_import_ranges = 5 + [(google.api.field_behavior) = OPTIONAL]; } // A collection of VLAN attachment resources. These resources should @@ -1306,6 +1571,12 @@ message LinkedInterconnectAttachments { (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; + + // Optional. IP ranges allowed to be included during import from hub (does not + // control transit connectivity). The only allowed value for now is + // "ALL_IPV4_RANGES". + repeated string include_import_ranges = 5 + [(google.api.field_behavior) = OPTIONAL]; } // A collection of router appliance instances. If you configure multiple router @@ -1327,6 +1598,12 @@ message LinkedRouterApplianceInstances { (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; + + // Optional. IP ranges allowed to be included during import from hub (does not + // control transit connectivity). The only allowed value for now is + // "ALL_IPV4_RANGES". + repeated string include_import_ranges = 5 + [(google.api.field_behavior) = OPTIONAL]; } // An existing VPC network. @@ -1340,6 +1617,56 @@ message LinkedVpcNetwork { // Optional. IP ranges encompassing the subnets to be excluded from peering. repeated string exclude_export_ranges = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. IP ranges allowed to be included from peering. + repeated string include_export_ranges = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The list of Producer VPC spokes that this VPC spoke is a + // service consumer VPC spoke for. These producer VPCs are connected through + // VPC peering to this spoke's backing VPC network. + repeated string producer_vpc_spokes = 4 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Spoke" + } + ]; +} + +message LinkedProducerVpcNetwork { + // Immutable. The URI of the Service Consumer VPC that the Producer VPC is + // peered with. + string network = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Output only. The Service Consumer Network spoke. + string service_consumer_vpc_spoke = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Spoke" + } + ]; + + // Immutable. The name of the VPC peering between the Service Consumer VPC and + // the Producer VPC (defined in the Tenant project) which is added to the NCC + // hub. This peering must be in ACTIVE state. + string peering = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The URI of the Producer VPC. + string producer_network = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Optional. IP ranges encompassing the subnets to be excluded from peering. + repeated string exclude_export_ranges = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. IP ranges allowed to be included from peering. + repeated string include_export_ranges = 4 + [(google.api.field_behavior) = OPTIONAL]; } // A router appliance instance is a Compute Engine virtual machine (VM) instance @@ -1369,6 +1696,61 @@ message NextHopVpcNetwork { ]; } +// A route next hop that leads to a VPN tunnel resource. +message NextHopVPNTunnel { + // The URI of the VPN tunnel resource. + string uri = 1 [(google.api.resource_reference) = { + type: "compute.googleapis.com/VpnTunnel" + }]; + + // The VPC network where this VPN tunnel is located. + string vpc_network = 2 [ + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Indicates whether site-to-site data transfer is allowed for this VPN tunnel + // resource. Data transfer is available only in [supported + // locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). + bool site_to_site_data_transfer = 3; +} + +// A route next hop that leads to a Router appliance instance. +message NextHopRouterApplianceInstance { + // The URI of the Router appliance instance. + string uri = 1 [(google.api.resource_reference) = { + type: "compute.googleapis.com/Instance" + }]; + + // The VPC network where this VM is located. + string vpc_network = 2 [ + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Indicates whether site-to-site data transfer is allowed for this Router + // appliance instance resource. Data transfer is available only in [supported + // locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). + bool site_to_site_data_transfer = 3; +} + +// A route next hop that leads to an interconnect attachment resource. +message NextHopInterconnectAttachment { + // The URI of the interconnect attachment resource. + string uri = 1 [(google.api.resource_reference) = { + type: "compute.googleapis.com/InterconnectAttachment" + }]; + + // The VPC network where this interconnect attachment is located. + string vpc_network = 2 [ + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Indicates whether site-to-site data transfer is allowed for this + // interconnect attachment resource. Data transfer is available only in + // [supported + // locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). + bool site_to_site_data_transfer = 3; +} + // Summarizes information about the spokes associated with a hub. // The summary includes a count of spokes according to type // and according to state. If any spokes are inactive, @@ -1436,3 +1818,35 @@ message GetGroupRequest { } ]; } + +// Request for +// [HubService.UpdateGroup][google.cloud.networkconnectivity.v1.HubService.UpdateGroup] +// method. +message UpdateGroupRequest { + // Optional. In the case of an update to an existing group, field mask is used + // to specify the fields to be overwritten. The fields specified in the + // update_mask are relative to the resource, not the full request. A field is + // overwritten if it is in the mask. If the user does not provide a mask, then + // all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The state that the group should be in after the update. + Group group = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server knows to ignore the request + // if it has already been completed. The server guarantees that a request + // doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check to see whether the original operation + // was received. If it was, the server ignores the second request. This + // behavior prevents clients from mistakenly creating duplicate commitments. + // + // The request ID must be a valid UUID, with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/packages/google-cloud-networkconnectivity/protos/protos.d.ts b/packages/google-cloud-networkconnectivity/protos/protos.d.ts index 9c9c0053076..705a2deba90 100644 --- a/packages/google-cloud-networkconnectivity/protos/protos.d.ts +++ b/packages/google-cloud-networkconnectivity/protos/protos.d.ts @@ -263,6 +263,20 @@ export namespace google { */ public listHubSpokes(request: google.cloud.networkconnectivity.v1.IListHubSpokesRequest): Promise; + /** + * Calls QueryHubStatus. + * @param request QueryHubStatusRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryHubStatusResponse + */ + public queryHubStatus(request: google.cloud.networkconnectivity.v1.IQueryHubStatusRequest, callback: google.cloud.networkconnectivity.v1.HubService.QueryHubStatusCallback): void; + + /** + * Calls QueryHubStatus. + * @param request QueryHubStatusRequest message or plain object + * @returns Promise + */ + public queryHubStatus(request: google.cloud.networkconnectivity.v1.IQueryHubStatusRequest): Promise; + /** * Calls ListSpokes. * @param request ListSpokesRequest message or plain object @@ -444,6 +458,20 @@ export namespace google { * @returns Promise */ public listGroups(request: google.cloud.networkconnectivity.v1.IListGroupsRequest): Promise; + + /** + * Calls UpdateGroup. + * @param request UpdateGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateGroup(request: google.cloud.networkconnectivity.v1.IUpdateGroupRequest, callback: google.cloud.networkconnectivity.v1.HubService.UpdateGroupCallback): void; + + /** + * Calls UpdateGroup. + * @param request UpdateGroupRequest message or plain object + * @returns Promise + */ + public updateGroup(request: google.cloud.networkconnectivity.v1.IUpdateGroupRequest): Promise; } namespace HubService { @@ -490,6 +518,13 @@ export namespace google { */ type ListHubSpokesCallback = (error: (Error|null), response?: google.cloud.networkconnectivity.v1.ListHubSpokesResponse) => void; + /** + * Callback as used by {@link google.cloud.networkconnectivity.v1.HubService|queryHubStatus}. + * @param error Error, if any + * @param [response] QueryHubStatusResponse + */ + type QueryHubStatusCallback = (error: (Error|null), response?: google.cloud.networkconnectivity.v1.QueryHubStatusResponse) => void; + /** * Callback as used by {@link google.cloud.networkconnectivity.v1.HubService|listSpokes}. * @param error Error, if any @@ -580,6 +615,13 @@ export namespace google { * @param [response] ListGroupsResponse */ type ListGroupsCallback = (error: (Error|null), response?: google.cloud.networkconnectivity.v1.ListGroupsResponse) => void; + + /** + * Callback as used by {@link google.cloud.networkconnectivity.v1.HubService|updateGroup}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateGroupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } /** LocationFeature enum. */ @@ -593,7 +635,8 @@ export namespace google { enum RouteType { ROUTE_TYPE_UNSPECIFIED = 0, VPC_PRIMARY_SUBNET = 1, - VPC_SECONDARY_SUBNET = 2 + VPC_SECONDARY_SUBNET = 2, + DYNAMIC_ROUTE = 3 } /** State enum. */ @@ -615,7 +658,21 @@ export namespace google { VPN_TUNNEL = 1, INTERCONNECT_ATTACHMENT = 2, ROUTER_APPLIANCE = 3, - VPC_NETWORK = 4 + VPC_NETWORK = 4, + PRODUCER_VPC_NETWORK = 7 + } + + /** PolicyMode enum. */ + enum PolicyMode { + POLICY_MODE_UNSPECIFIED = 0, + PRESET = 1 + } + + /** PresetTopology enum. */ + enum PresetTopology { + PRESET_TOPOLOGY_UNSPECIFIED = 0, + MESH = 2, + STAR = 3 } /** Properties of a Hub. */ @@ -650,6 +707,15 @@ export namespace google { /** Hub spokeSummary */ spokeSummary?: (google.cloud.networkconnectivity.v1.ISpokeSummary|null); + + /** Hub policyMode */ + policyMode?: (google.cloud.networkconnectivity.v1.PolicyMode|keyof typeof google.cloud.networkconnectivity.v1.PolicyMode|null); + + /** Hub presetTopology */ + presetTopology?: (google.cloud.networkconnectivity.v1.PresetTopology|keyof typeof google.cloud.networkconnectivity.v1.PresetTopology|null); + + /** Hub exportPsc */ + exportPsc?: (boolean|null); } /** Represents a Hub. */ @@ -691,6 +757,18 @@ export namespace google { /** Hub spokeSummary. */ public spokeSummary?: (google.cloud.networkconnectivity.v1.ISpokeSummary|null); + /** Hub policyMode. */ + public policyMode: (google.cloud.networkconnectivity.v1.PolicyMode|keyof typeof google.cloud.networkconnectivity.v1.PolicyMode); + + /** Hub presetTopology. */ + public presetTopology: (google.cloud.networkconnectivity.v1.PresetTopology|keyof typeof google.cloud.networkconnectivity.v1.PresetTopology); + + /** Hub exportPsc. */ + public exportPsc?: (boolean|null); + + /** Hub _exportPsc. */ + public _exportPsc?: "exportPsc"; + /** * Creates a new Hub instance using the specified properties. * @param [properties] Properties to set @@ -908,6 +986,9 @@ export namespace google { /** Spoke linkedVpcNetwork */ linkedVpcNetwork?: (google.cloud.networkconnectivity.v1.ILinkedVpcNetwork|null); + /** Spoke linkedProducerVpcNetwork */ + linkedProducerVpcNetwork?: (google.cloud.networkconnectivity.v1.ILinkedProducerVpcNetwork|null); + /** Spoke uniqueId */ uniqueId?: (string|null); @@ -963,6 +1044,9 @@ export namespace google { /** Spoke linkedVpcNetwork. */ public linkedVpcNetwork?: (google.cloud.networkconnectivity.v1.ILinkedVpcNetwork|null); + /** Spoke linkedProducerVpcNetwork. */ + public linkedProducerVpcNetwork?: (google.cloud.networkconnectivity.v1.ILinkedProducerVpcNetwork|null); + /** Spoke uniqueId. */ public uniqueId: string; @@ -1348,6 +1432,18 @@ export namespace google { /** Route location */ location?: (string|null); + + /** Route priority */ + priority?: (number|Long|string|null); + + /** Route nextHopVpnTunnel */ + nextHopVpnTunnel?: (google.cloud.networkconnectivity.v1.INextHopVPNTunnel|null); + + /** Route nextHopRouterApplianceInstance */ + nextHopRouterApplianceInstance?: (google.cloud.networkconnectivity.v1.INextHopRouterApplianceInstance|null); + + /** Route nextHopInterconnectAttachment */ + nextHopInterconnectAttachment?: (google.cloud.networkconnectivity.v1.INextHopInterconnectAttachment|null); } /** Represents a Route. */ @@ -1395,6 +1491,18 @@ export namespace google { /** Route location. */ public location: string; + /** Route priority. */ + public priority: (number|Long|string); + + /** Route nextHopVpnTunnel. */ + public nextHopVpnTunnel?: (google.cloud.networkconnectivity.v1.INextHopVPNTunnel|null); + + /** Route nextHopRouterApplianceInstance. */ + public nextHopRouterApplianceInstance?: (google.cloud.networkconnectivity.v1.INextHopRouterApplianceInstance|null); + + /** Route nextHopInterconnectAttachment. */ + public nextHopInterconnectAttachment?: (google.cloud.networkconnectivity.v1.INextHopInterconnectAttachment|null); + /** * Creates a new Route instance using the specified properties. * @param [properties] Properties to set @@ -1496,6 +1604,12 @@ export namespace google { /** Group state */ state?: (google.cloud.networkconnectivity.v1.State|keyof typeof google.cloud.networkconnectivity.v1.State|null); + + /** Group autoAccept */ + autoAccept?: (google.cloud.networkconnectivity.v1.IAutoAccept|null); + + /** Group routeTable */ + routeTable?: (string|null); } /** Represents a Group. */ @@ -1528,6 +1642,12 @@ export namespace google { /** Group state. */ public state: (google.cloud.networkconnectivity.v1.State|keyof typeof google.cloud.networkconnectivity.v1.State); + /** Group autoAccept. */ + public autoAccept?: (google.cloud.networkconnectivity.v1.IAutoAccept|null); + + /** Group routeTable. */ + public routeTable: string; + /** * Creates a new Group instance using the specified properties. * @param [properties] Properties to set @@ -1606,6 +1726,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AutoAccept. */ + interface IAutoAccept { + + /** AutoAccept autoAcceptProjects */ + autoAcceptProjects?: (string[]|null); + } + + /** Represents an AutoAccept. */ + class AutoAccept implements IAutoAccept { + + /** + * Constructs a new AutoAccept. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.networkconnectivity.v1.IAutoAccept); + + /** AutoAccept autoAcceptProjects. */ + public autoAcceptProjects: string[]; + + /** + * Creates a new AutoAccept instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoAccept instance + */ + public static create(properties?: google.cloud.networkconnectivity.v1.IAutoAccept): google.cloud.networkconnectivity.v1.AutoAccept; + + /** + * Encodes the specified AutoAccept message. Does not implicitly {@link google.cloud.networkconnectivity.v1.AutoAccept.verify|verify} messages. + * @param message AutoAccept message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.networkconnectivity.v1.IAutoAccept, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoAccept message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.AutoAccept.verify|verify} messages. + * @param message AutoAccept message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IAutoAccept, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoAccept message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoAccept + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.AutoAccept; + + /** + * Decodes an AutoAccept message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoAccept + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.AutoAccept; + + /** + * Verifies an AutoAccept message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AutoAccept message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoAccept + */ + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.AutoAccept; + + /** + * Creates a plain object from an AutoAccept message. Also converts values to other types if specified. + * @param message AutoAccept + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.networkconnectivity.v1.AutoAccept, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoAccept to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoAccept + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListHubsRequest. */ interface IListHubsRequest { @@ -2512,2683 +2729,3653 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListSpokesRequest. */ - interface IListSpokesRequest { + /** Properties of a QueryHubStatusRequest. */ + interface IQueryHubStatusRequest { - /** ListSpokesRequest parent */ - parent?: (string|null); + /** QueryHubStatusRequest name */ + name?: (string|null); - /** ListSpokesRequest pageSize */ + /** QueryHubStatusRequest pageSize */ pageSize?: (number|null); - /** ListSpokesRequest pageToken */ + /** QueryHubStatusRequest pageToken */ pageToken?: (string|null); - /** ListSpokesRequest filter */ + /** QueryHubStatusRequest filter */ filter?: (string|null); - /** ListSpokesRequest orderBy */ + /** QueryHubStatusRequest orderBy */ orderBy?: (string|null); + + /** QueryHubStatusRequest groupBy */ + groupBy?: (string|null); } - /** Represents a ListSpokesRequest. */ - class ListSpokesRequest implements IListSpokesRequest { + /** Represents a QueryHubStatusRequest. */ + class QueryHubStatusRequest implements IQueryHubStatusRequest { /** - * Constructs a new ListSpokesRequest. + * Constructs a new QueryHubStatusRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IListSpokesRequest); + constructor(properties?: google.cloud.networkconnectivity.v1.IQueryHubStatusRequest); - /** ListSpokesRequest parent. */ - public parent: string; + /** QueryHubStatusRequest name. */ + public name: string; - /** ListSpokesRequest pageSize. */ + /** QueryHubStatusRequest pageSize. */ public pageSize: number; - /** ListSpokesRequest pageToken. */ + /** QueryHubStatusRequest pageToken. */ public pageToken: string; - /** ListSpokesRequest filter. */ + /** QueryHubStatusRequest filter. */ public filter: string; - /** ListSpokesRequest orderBy. */ + /** QueryHubStatusRequest orderBy. */ public orderBy: string; + /** QueryHubStatusRequest groupBy. */ + public groupBy: string; + /** - * Creates a new ListSpokesRequest instance using the specified properties. + * Creates a new QueryHubStatusRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListSpokesRequest instance + * @returns QueryHubStatusRequest instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IListSpokesRequest): google.cloud.networkconnectivity.v1.ListSpokesRequest; + public static create(properties?: google.cloud.networkconnectivity.v1.IQueryHubStatusRequest): google.cloud.networkconnectivity.v1.QueryHubStatusRequest; /** - * Encodes the specified ListSpokesRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesRequest.verify|verify} messages. - * @param message ListSpokesRequest message or plain object to encode + * Encodes the specified QueryHubStatusRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.QueryHubStatusRequest.verify|verify} messages. + * @param message QueryHubStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IListSpokesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IQueryHubStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSpokesRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesRequest.verify|verify} messages. - * @param message ListSpokesRequest message or plain object to encode + * Encodes the specified QueryHubStatusRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.QueryHubStatusRequest.verify|verify} messages. + * @param message QueryHubStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListSpokesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IQueryHubStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSpokesRequest message from the specified reader or buffer. + * Decodes a QueryHubStatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSpokesRequest + * @returns QueryHubStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListSpokesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.QueryHubStatusRequest; /** - * Decodes a ListSpokesRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryHubStatusRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSpokesRequest + * @returns QueryHubStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListSpokesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.QueryHubStatusRequest; /** - * Verifies a ListSpokesRequest message. + * Verifies a QueryHubStatusRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSpokesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryHubStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSpokesRequest + * @returns QueryHubStatusRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListSpokesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.QueryHubStatusRequest; /** - * Creates a plain object from a ListSpokesRequest message. Also converts values to other types if specified. - * @param message ListSpokesRequest + * Creates a plain object from a QueryHubStatusRequest message. Also converts values to other types if specified. + * @param message QueryHubStatusRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.ListSpokesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.QueryHubStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSpokesRequest to JSON. + * Converts this QueryHubStatusRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSpokesRequest + * Gets the default type url for QueryHubStatusRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListSpokesResponse. */ - interface IListSpokesResponse { + /** Properties of a QueryHubStatusResponse. */ + interface IQueryHubStatusResponse { - /** ListSpokesResponse spokes */ - spokes?: (google.cloud.networkconnectivity.v1.ISpoke[]|null); + /** QueryHubStatusResponse hubStatusEntries */ + hubStatusEntries?: (google.cloud.networkconnectivity.v1.IHubStatusEntry[]|null); - /** ListSpokesResponse nextPageToken */ + /** QueryHubStatusResponse nextPageToken */ nextPageToken?: (string|null); - - /** ListSpokesResponse unreachable */ - unreachable?: (string[]|null); } - /** Represents a ListSpokesResponse. */ - class ListSpokesResponse implements IListSpokesResponse { + /** Represents a QueryHubStatusResponse. */ + class QueryHubStatusResponse implements IQueryHubStatusResponse { /** - * Constructs a new ListSpokesResponse. + * Constructs a new QueryHubStatusResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IListSpokesResponse); + constructor(properties?: google.cloud.networkconnectivity.v1.IQueryHubStatusResponse); - /** ListSpokesResponse spokes. */ - public spokes: google.cloud.networkconnectivity.v1.ISpoke[]; + /** QueryHubStatusResponse hubStatusEntries. */ + public hubStatusEntries: google.cloud.networkconnectivity.v1.IHubStatusEntry[]; - /** ListSpokesResponse nextPageToken. */ + /** QueryHubStatusResponse nextPageToken. */ public nextPageToken: string; - /** ListSpokesResponse unreachable. */ - public unreachable: string[]; - /** - * Creates a new ListSpokesResponse instance using the specified properties. + * Creates a new QueryHubStatusResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListSpokesResponse instance + * @returns QueryHubStatusResponse instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IListSpokesResponse): google.cloud.networkconnectivity.v1.ListSpokesResponse; + public static create(properties?: google.cloud.networkconnectivity.v1.IQueryHubStatusResponse): google.cloud.networkconnectivity.v1.QueryHubStatusResponse; /** - * Encodes the specified ListSpokesResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesResponse.verify|verify} messages. - * @param message ListSpokesResponse message or plain object to encode + * Encodes the specified QueryHubStatusResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.QueryHubStatusResponse.verify|verify} messages. + * @param message QueryHubStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IListSpokesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IQueryHubStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSpokesResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesResponse.verify|verify} messages. - * @param message ListSpokesResponse message or plain object to encode + * Encodes the specified QueryHubStatusResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.QueryHubStatusResponse.verify|verify} messages. + * @param message QueryHubStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListSpokesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IQueryHubStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSpokesResponse message from the specified reader or buffer. + * Decodes a QueryHubStatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSpokesResponse + * @returns QueryHubStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListSpokesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.QueryHubStatusResponse; /** - * Decodes a ListSpokesResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryHubStatusResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSpokesResponse + * @returns QueryHubStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListSpokesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.QueryHubStatusResponse; /** - * Verifies a ListSpokesResponse message. + * Verifies a QueryHubStatusResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSpokesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryHubStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSpokesResponse + * @returns QueryHubStatusResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListSpokesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.QueryHubStatusResponse; /** - * Creates a plain object from a ListSpokesResponse message. Also converts values to other types if specified. - * @param message ListSpokesResponse + * Creates a plain object from a QueryHubStatusResponse message. Also converts values to other types if specified. + * @param message QueryHubStatusResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.ListSpokesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.QueryHubStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSpokesResponse to JSON. + * Converts this QueryHubStatusResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSpokesResponse + * Gets the default type url for QueryHubStatusResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetSpokeRequest. */ - interface IGetSpokeRequest { + /** Properties of a HubStatusEntry. */ + interface IHubStatusEntry { - /** GetSpokeRequest name */ - name?: (string|null); + /** HubStatusEntry count */ + count?: (number|null); + + /** HubStatusEntry groupBy */ + groupBy?: (string|null); + + /** HubStatusEntry pscPropagationStatus */ + pscPropagationStatus?: (google.cloud.networkconnectivity.v1.IPscPropagationStatus|null); } - /** Represents a GetSpokeRequest. */ - class GetSpokeRequest implements IGetSpokeRequest { + /** Represents a HubStatusEntry. */ + class HubStatusEntry implements IHubStatusEntry { /** - * Constructs a new GetSpokeRequest. + * Constructs a new HubStatusEntry. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IGetSpokeRequest); + constructor(properties?: google.cloud.networkconnectivity.v1.IHubStatusEntry); - /** GetSpokeRequest name. */ - public name: string; + /** HubStatusEntry count. */ + public count: number; + + /** HubStatusEntry groupBy. */ + public groupBy: string; + + /** HubStatusEntry pscPropagationStatus. */ + public pscPropagationStatus?: (google.cloud.networkconnectivity.v1.IPscPropagationStatus|null); /** - * Creates a new GetSpokeRequest instance using the specified properties. + * Creates a new HubStatusEntry instance using the specified properties. * @param [properties] Properties to set - * @returns GetSpokeRequest instance + * @returns HubStatusEntry instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IGetSpokeRequest): google.cloud.networkconnectivity.v1.GetSpokeRequest; + public static create(properties?: google.cloud.networkconnectivity.v1.IHubStatusEntry): google.cloud.networkconnectivity.v1.HubStatusEntry; /** - * Encodes the specified GetSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetSpokeRequest.verify|verify} messages. - * @param message GetSpokeRequest message or plain object to encode + * Encodes the specified HubStatusEntry message. Does not implicitly {@link google.cloud.networkconnectivity.v1.HubStatusEntry.verify|verify} messages. + * @param message HubStatusEntry message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IGetSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IHubStatusEntry, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetSpokeRequest.verify|verify} messages. - * @param message GetSpokeRequest message or plain object to encode + * Encodes the specified HubStatusEntry message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.HubStatusEntry.verify|verify} messages. + * @param message HubStatusEntry message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IGetSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IHubStatusEntry, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSpokeRequest message from the specified reader or buffer. + * Decodes a HubStatusEntry message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSpokeRequest + * @returns HubStatusEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.GetSpokeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.HubStatusEntry; /** - * Decodes a GetSpokeRequest message from the specified reader or buffer, length delimited. + * Decodes a HubStatusEntry message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSpokeRequest + * @returns HubStatusEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.GetSpokeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.HubStatusEntry; /** - * Verifies a GetSpokeRequest message. + * Verifies a HubStatusEntry message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetSpokeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a HubStatusEntry message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSpokeRequest + * @returns HubStatusEntry */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.GetSpokeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.HubStatusEntry; /** - * Creates a plain object from a GetSpokeRequest message. Also converts values to other types if specified. - * @param message GetSpokeRequest + * Creates a plain object from a HubStatusEntry message. Also converts values to other types if specified. + * @param message HubStatusEntry * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.GetSpokeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.HubStatusEntry, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSpokeRequest to JSON. + * Converts this HubStatusEntry to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSpokeRequest + * Gets the default type url for HubStatusEntry * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateSpokeRequest. */ - interface ICreateSpokeRequest { + /** Properties of a PscPropagationStatus. */ + interface IPscPropagationStatus { - /** CreateSpokeRequest parent */ - parent?: (string|null); + /** PscPropagationStatus sourceSpoke */ + sourceSpoke?: (string|null); - /** CreateSpokeRequest spokeId */ - spokeId?: (string|null); + /** PscPropagationStatus sourceGroup */ + sourceGroup?: (string|null); - /** CreateSpokeRequest spoke */ - spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); + /** PscPropagationStatus sourceForwardingRule */ + sourceForwardingRule?: (string|null); - /** CreateSpokeRequest requestId */ - requestId?: (string|null); + /** PscPropagationStatus targetSpoke */ + targetSpoke?: (string|null); + + /** PscPropagationStatus targetGroup */ + targetGroup?: (string|null); + + /** PscPropagationStatus code */ + code?: (google.cloud.networkconnectivity.v1.PscPropagationStatus.Code|keyof typeof google.cloud.networkconnectivity.v1.PscPropagationStatus.Code|null); + + /** PscPropagationStatus message */ + message?: (string|null); } - /** Represents a CreateSpokeRequest. */ - class CreateSpokeRequest implements ICreateSpokeRequest { + /** Represents a PscPropagationStatus. */ + class PscPropagationStatus implements IPscPropagationStatus { /** - * Constructs a new CreateSpokeRequest. + * Constructs a new PscPropagationStatus. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.ICreateSpokeRequest); + constructor(properties?: google.cloud.networkconnectivity.v1.IPscPropagationStatus); - /** CreateSpokeRequest parent. */ - public parent: string; + /** PscPropagationStatus sourceSpoke. */ + public sourceSpoke: string; - /** CreateSpokeRequest spokeId. */ - public spokeId: string; + /** PscPropagationStatus sourceGroup. */ + public sourceGroup: string; - /** CreateSpokeRequest spoke. */ - public spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); + /** PscPropagationStatus sourceForwardingRule. */ + public sourceForwardingRule: string; - /** CreateSpokeRequest requestId. */ - public requestId: string; + /** PscPropagationStatus targetSpoke. */ + public targetSpoke: string; + + /** PscPropagationStatus targetGroup. */ + public targetGroup: string; + + /** PscPropagationStatus code. */ + public code: (google.cloud.networkconnectivity.v1.PscPropagationStatus.Code|keyof typeof google.cloud.networkconnectivity.v1.PscPropagationStatus.Code); + + /** PscPropagationStatus message. */ + public message: string; /** - * Creates a new CreateSpokeRequest instance using the specified properties. + * Creates a new PscPropagationStatus instance using the specified properties. * @param [properties] Properties to set - * @returns CreateSpokeRequest instance + * @returns PscPropagationStatus instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.ICreateSpokeRequest): google.cloud.networkconnectivity.v1.CreateSpokeRequest; + public static create(properties?: google.cloud.networkconnectivity.v1.IPscPropagationStatus): google.cloud.networkconnectivity.v1.PscPropagationStatus; /** - * Encodes the specified CreateSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.CreateSpokeRequest.verify|verify} messages. - * @param message CreateSpokeRequest message or plain object to encode + * Encodes the specified PscPropagationStatus message. Does not implicitly {@link google.cloud.networkconnectivity.v1.PscPropagationStatus.verify|verify} messages. + * @param message PscPropagationStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.ICreateSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IPscPropagationStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.CreateSpokeRequest.verify|verify} messages. - * @param message CreateSpokeRequest message or plain object to encode + * Encodes the specified PscPropagationStatus message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.PscPropagationStatus.verify|verify} messages. + * @param message PscPropagationStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.ICreateSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IPscPropagationStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateSpokeRequest message from the specified reader or buffer. + * Decodes a PscPropagationStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateSpokeRequest + * @returns PscPropagationStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.CreateSpokeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.PscPropagationStatus; /** - * Decodes a CreateSpokeRequest message from the specified reader or buffer, length delimited. + * Decodes a PscPropagationStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateSpokeRequest + * @returns PscPropagationStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.CreateSpokeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.PscPropagationStatus; /** - * Verifies a CreateSpokeRequest message. + * Verifies a PscPropagationStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateSpokeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PscPropagationStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateSpokeRequest + * @returns PscPropagationStatus */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.CreateSpokeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.PscPropagationStatus; /** - * Creates a plain object from a CreateSpokeRequest message. Also converts values to other types if specified. - * @param message CreateSpokeRequest + * Creates a plain object from a PscPropagationStatus message. Also converts values to other types if specified. + * @param message PscPropagationStatus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.CreateSpokeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.PscPropagationStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateSpokeRequest to JSON. + * Converts this PscPropagationStatus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateSpokeRequest + * Gets the default type url for PscPropagationStatus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateSpokeRequest. */ - interface IUpdateSpokeRequest { + namespace PscPropagationStatus { + + /** Code enum. */ + enum Code { + CODE_UNSPECIFIED = 0, + READY = 1, + PROPAGATING = 2, + ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED = 3, + ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED = 4, + ERROR_PRODUCER_QUOTA_EXCEEDED = 5, + ERROR_CONSUMER_QUOTA_EXCEEDED = 6 + } + } - /** UpdateSpokeRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a ListSpokesRequest. */ + interface IListSpokesRequest { - /** UpdateSpokeRequest spoke */ - spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); + /** ListSpokesRequest parent */ + parent?: (string|null); - /** UpdateSpokeRequest requestId */ - requestId?: (string|null); + /** ListSpokesRequest pageSize */ + pageSize?: (number|null); + + /** ListSpokesRequest pageToken */ + pageToken?: (string|null); + + /** ListSpokesRequest filter */ + filter?: (string|null); + + /** ListSpokesRequest orderBy */ + orderBy?: (string|null); } - /** Represents an UpdateSpokeRequest. */ - class UpdateSpokeRequest implements IUpdateSpokeRequest { + /** Represents a ListSpokesRequest. */ + class ListSpokesRequest implements IListSpokesRequest { /** - * Constructs a new UpdateSpokeRequest. + * Constructs a new ListSpokesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IUpdateSpokeRequest); + constructor(properties?: google.cloud.networkconnectivity.v1.IListSpokesRequest); - /** UpdateSpokeRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListSpokesRequest parent. */ + public parent: string; - /** UpdateSpokeRequest spoke. */ - public spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); + /** ListSpokesRequest pageSize. */ + public pageSize: number; - /** UpdateSpokeRequest requestId. */ - public requestId: string; + /** ListSpokesRequest pageToken. */ + public pageToken: string; + + /** ListSpokesRequest filter. */ + public filter: string; + + /** ListSpokesRequest orderBy. */ + public orderBy: string; /** - * Creates a new UpdateSpokeRequest instance using the specified properties. + * Creates a new ListSpokesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateSpokeRequest instance + * @returns ListSpokesRequest instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IUpdateSpokeRequest): google.cloud.networkconnectivity.v1.UpdateSpokeRequest; + public static create(properties?: google.cloud.networkconnectivity.v1.IListSpokesRequest): google.cloud.networkconnectivity.v1.ListSpokesRequest; /** - * Encodes the specified UpdateSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.UpdateSpokeRequest.verify|verify} messages. - * @param message UpdateSpokeRequest message or plain object to encode + * Encodes the specified ListSpokesRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesRequest.verify|verify} messages. + * @param message ListSpokesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IUpdateSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IListSpokesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.UpdateSpokeRequest.verify|verify} messages. - * @param message UpdateSpokeRequest message or plain object to encode + * Encodes the specified ListSpokesRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesRequest.verify|verify} messages. + * @param message ListSpokesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IUpdateSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListSpokesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateSpokeRequest message from the specified reader or buffer. + * Decodes a ListSpokesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateSpokeRequest + * @returns ListSpokesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.UpdateSpokeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListSpokesRequest; /** - * Decodes an UpdateSpokeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSpokesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateSpokeRequest + * @returns ListSpokesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.UpdateSpokeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListSpokesRequest; /** - * Verifies an UpdateSpokeRequest message. + * Verifies a ListSpokesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateSpokeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSpokesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateSpokeRequest + * @returns ListSpokesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.UpdateSpokeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListSpokesRequest; /** - * Creates a plain object from an UpdateSpokeRequest message. Also converts values to other types if specified. - * @param message UpdateSpokeRequest + * Creates a plain object from a ListSpokesRequest message. Also converts values to other types if specified. + * @param message ListSpokesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.UpdateSpokeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.ListSpokesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateSpokeRequest to JSON. + * Converts this ListSpokesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateSpokeRequest + * Gets the default type url for ListSpokesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteSpokeRequest. */ - interface IDeleteSpokeRequest { + /** Properties of a ListSpokesResponse. */ + interface IListSpokesResponse { - /** DeleteSpokeRequest name */ - name?: (string|null); + /** ListSpokesResponse spokes */ + spokes?: (google.cloud.networkconnectivity.v1.ISpoke[]|null); - /** DeleteSpokeRequest requestId */ - requestId?: (string|null); + /** ListSpokesResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListSpokesResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a DeleteSpokeRequest. */ - class DeleteSpokeRequest implements IDeleteSpokeRequest { + /** Represents a ListSpokesResponse. */ + class ListSpokesResponse implements IListSpokesResponse { /** - * Constructs a new DeleteSpokeRequest. + * Constructs a new ListSpokesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IDeleteSpokeRequest); + constructor(properties?: google.cloud.networkconnectivity.v1.IListSpokesResponse); - /** DeleteSpokeRequest name. */ - public name: string; + /** ListSpokesResponse spokes. */ + public spokes: google.cloud.networkconnectivity.v1.ISpoke[]; - /** DeleteSpokeRequest requestId. */ - public requestId: string; + /** ListSpokesResponse nextPageToken. */ + public nextPageToken: string; + + /** ListSpokesResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new DeleteSpokeRequest instance using the specified properties. + * Creates a new ListSpokesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteSpokeRequest instance + * @returns ListSpokesResponse instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IDeleteSpokeRequest): google.cloud.networkconnectivity.v1.DeleteSpokeRequest; + public static create(properties?: google.cloud.networkconnectivity.v1.IListSpokesResponse): google.cloud.networkconnectivity.v1.ListSpokesResponse; /** - * Encodes the specified DeleteSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.DeleteSpokeRequest.verify|verify} messages. - * @param message DeleteSpokeRequest message or plain object to encode + * Encodes the specified ListSpokesResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesResponse.verify|verify} messages. + * @param message ListSpokesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IDeleteSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IListSpokesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.DeleteSpokeRequest.verify|verify} messages. - * @param message DeleteSpokeRequest message or plain object to encode + * Encodes the specified ListSpokesResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesResponse.verify|verify} messages. + * @param message ListSpokesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IDeleteSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListSpokesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteSpokeRequest message from the specified reader or buffer. + * Decodes a ListSpokesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteSpokeRequest + * @returns ListSpokesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.DeleteSpokeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListSpokesResponse; /** - * Decodes a DeleteSpokeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSpokesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteSpokeRequest + * @returns ListSpokesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.DeleteSpokeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListSpokesResponse; /** - * Verifies a DeleteSpokeRequest message. + * Verifies a ListSpokesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteSpokeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSpokesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteSpokeRequest + * @returns ListSpokesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.DeleteSpokeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListSpokesResponse; /** - * Creates a plain object from a DeleteSpokeRequest message. Also converts values to other types if specified. - * @param message DeleteSpokeRequest + * Creates a plain object from a ListSpokesResponse message. Also converts values to other types if specified. + * @param message ListSpokesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.DeleteSpokeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.ListSpokesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteSpokeRequest to JSON. + * Converts this ListSpokesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteSpokeRequest + * Gets the default type url for ListSpokesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AcceptHubSpokeRequest. */ - interface IAcceptHubSpokeRequest { + /** Properties of a GetSpokeRequest. */ + interface IGetSpokeRequest { - /** AcceptHubSpokeRequest name */ + /** GetSpokeRequest name */ name?: (string|null); - - /** AcceptHubSpokeRequest spokeUri */ - spokeUri?: (string|null); - - /** AcceptHubSpokeRequest requestId */ - requestId?: (string|null); } - /** Represents an AcceptHubSpokeRequest. */ - class AcceptHubSpokeRequest implements IAcceptHubSpokeRequest { + /** Represents a GetSpokeRequest. */ + class GetSpokeRequest implements IGetSpokeRequest { /** - * Constructs a new AcceptHubSpokeRequest. + * Constructs a new GetSpokeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest); + constructor(properties?: google.cloud.networkconnectivity.v1.IGetSpokeRequest); - /** AcceptHubSpokeRequest name. */ + /** GetSpokeRequest name. */ public name: string; - /** AcceptHubSpokeRequest spokeUri. */ - public spokeUri: string; - - /** AcceptHubSpokeRequest requestId. */ - public requestId: string; - /** - * Creates a new AcceptHubSpokeRequest instance using the specified properties. + * Creates a new GetSpokeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AcceptHubSpokeRequest instance + * @returns GetSpokeRequest instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest): google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest; + public static create(properties?: google.cloud.networkconnectivity.v1.IGetSpokeRequest): google.cloud.networkconnectivity.v1.GetSpokeRequest; /** - * Encodes the specified AcceptHubSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest.verify|verify} messages. - * @param message AcceptHubSpokeRequest message or plain object to encode + * Encodes the specified GetSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetSpokeRequest.verify|verify} messages. + * @param message GetSpokeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IGetSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AcceptHubSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest.verify|verify} messages. - * @param message AcceptHubSpokeRequest message or plain object to encode + * Encodes the specified GetSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetSpokeRequest.verify|verify} messages. + * @param message GetSpokeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IGetSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AcceptHubSpokeRequest message from the specified reader or buffer. + * Decodes a GetSpokeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AcceptHubSpokeRequest + * @returns GetSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.GetSpokeRequest; /** - * Decodes an AcceptHubSpokeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSpokeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AcceptHubSpokeRequest + * @returns GetSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.GetSpokeRequest; /** - * Verifies an AcceptHubSpokeRequest message. + * Verifies a GetSpokeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AcceptHubSpokeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSpokeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AcceptHubSpokeRequest + * @returns GetSpokeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.GetSpokeRequest; /** - * Creates a plain object from an AcceptHubSpokeRequest message. Also converts values to other types if specified. - * @param message AcceptHubSpokeRequest + * Creates a plain object from a GetSpokeRequest message. Also converts values to other types if specified. + * @param message GetSpokeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.GetSpokeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AcceptHubSpokeRequest to JSON. + * Converts this GetSpokeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AcceptHubSpokeRequest + * Gets the default type url for GetSpokeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AcceptHubSpokeResponse. */ - interface IAcceptHubSpokeResponse { + /** Properties of a CreateSpokeRequest. */ + interface ICreateSpokeRequest { - /** AcceptHubSpokeResponse spoke */ + /** CreateSpokeRequest parent */ + parent?: (string|null); + + /** CreateSpokeRequest spokeId */ + spokeId?: (string|null); + + /** CreateSpokeRequest spoke */ spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); + + /** CreateSpokeRequest requestId */ + requestId?: (string|null); } - /** Represents an AcceptHubSpokeResponse. */ - class AcceptHubSpokeResponse implements IAcceptHubSpokeResponse { + /** Represents a CreateSpokeRequest. */ + class CreateSpokeRequest implements ICreateSpokeRequest { /** - * Constructs a new AcceptHubSpokeResponse. + * Constructs a new CreateSpokeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse); + constructor(properties?: google.cloud.networkconnectivity.v1.ICreateSpokeRequest); - /** AcceptHubSpokeResponse spoke. */ + /** CreateSpokeRequest parent. */ + public parent: string; + + /** CreateSpokeRequest spokeId. */ + public spokeId: string; + + /** CreateSpokeRequest spoke. */ public spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); + /** CreateSpokeRequest requestId. */ + public requestId: string; + /** - * Creates a new AcceptHubSpokeResponse instance using the specified properties. + * Creates a new CreateSpokeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AcceptHubSpokeResponse instance + * @returns CreateSpokeRequest instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse): google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse; + public static create(properties?: google.cloud.networkconnectivity.v1.ICreateSpokeRequest): google.cloud.networkconnectivity.v1.CreateSpokeRequest; /** - * Encodes the specified AcceptHubSpokeResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse.verify|verify} messages. - * @param message AcceptHubSpokeResponse message or plain object to encode + * Encodes the specified CreateSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.CreateSpokeRequest.verify|verify} messages. + * @param message CreateSpokeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.ICreateSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AcceptHubSpokeResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse.verify|verify} messages. - * @param message AcceptHubSpokeResponse message or plain object to encode + * Encodes the specified CreateSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.CreateSpokeRequest.verify|verify} messages. + * @param message CreateSpokeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.ICreateSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AcceptHubSpokeResponse message from the specified reader or buffer. + * Decodes a CreateSpokeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AcceptHubSpokeResponse + * @returns CreateSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.CreateSpokeRequest; /** - * Decodes an AcceptHubSpokeResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateSpokeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AcceptHubSpokeResponse + * @returns CreateSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.CreateSpokeRequest; /** - * Verifies an AcceptHubSpokeResponse message. + * Verifies a CreateSpokeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AcceptHubSpokeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSpokeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AcceptHubSpokeResponse + * @returns CreateSpokeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.CreateSpokeRequest; /** - * Creates a plain object from an AcceptHubSpokeResponse message. Also converts values to other types if specified. - * @param message AcceptHubSpokeResponse + * Creates a plain object from a CreateSpokeRequest message. Also converts values to other types if specified. + * @param message CreateSpokeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.CreateSpokeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AcceptHubSpokeResponse to JSON. + * Converts this CreateSpokeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AcceptHubSpokeResponse + * Gets the default type url for CreateSpokeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RejectHubSpokeRequest. */ - interface IRejectHubSpokeRequest { + /** Properties of an UpdateSpokeRequest. */ + interface IUpdateSpokeRequest { - /** RejectHubSpokeRequest name */ - name?: (string|null); + /** UpdateSpokeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** RejectHubSpokeRequest spokeUri */ - spokeUri?: (string|null); + /** UpdateSpokeRequest spoke */ + spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); - /** RejectHubSpokeRequest requestId */ + /** UpdateSpokeRequest requestId */ requestId?: (string|null); - - /** RejectHubSpokeRequest details */ - details?: (string|null); } - /** Represents a RejectHubSpokeRequest. */ - class RejectHubSpokeRequest implements IRejectHubSpokeRequest { + /** Represents an UpdateSpokeRequest. */ + class UpdateSpokeRequest implements IUpdateSpokeRequest { /** - * Constructs a new RejectHubSpokeRequest. + * Constructs a new UpdateSpokeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest); + constructor(properties?: google.cloud.networkconnectivity.v1.IUpdateSpokeRequest); - /** RejectHubSpokeRequest name. */ - public name: string; + /** UpdateSpokeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** RejectHubSpokeRequest spokeUri. */ - public spokeUri: string; + /** UpdateSpokeRequest spoke. */ + public spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); - /** RejectHubSpokeRequest requestId. */ + /** UpdateSpokeRequest requestId. */ public requestId: string; - /** RejectHubSpokeRequest details. */ - public details: string; - /** - * Creates a new RejectHubSpokeRequest instance using the specified properties. + * Creates a new UpdateSpokeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RejectHubSpokeRequest instance + * @returns UpdateSpokeRequest instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest): google.cloud.networkconnectivity.v1.RejectHubSpokeRequest; + public static create(properties?: google.cloud.networkconnectivity.v1.IUpdateSpokeRequest): google.cloud.networkconnectivity.v1.UpdateSpokeRequest; /** - * Encodes the specified RejectHubSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeRequest.verify|verify} messages. - * @param message RejectHubSpokeRequest message or plain object to encode + * Encodes the specified UpdateSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.UpdateSpokeRequest.verify|verify} messages. + * @param message UpdateSpokeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IUpdateSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RejectHubSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeRequest.verify|verify} messages. - * @param message RejectHubSpokeRequest message or plain object to encode + * Encodes the specified UpdateSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.UpdateSpokeRequest.verify|verify} messages. + * @param message UpdateSpokeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IUpdateSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RejectHubSpokeRequest message from the specified reader or buffer. + * Decodes an UpdateSpokeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RejectHubSpokeRequest + * @returns UpdateSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.RejectHubSpokeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.UpdateSpokeRequest; /** - * Decodes a RejectHubSpokeRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateSpokeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RejectHubSpokeRequest + * @returns UpdateSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.RejectHubSpokeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.UpdateSpokeRequest; /** - * Verifies a RejectHubSpokeRequest message. + * Verifies an UpdateSpokeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RejectHubSpokeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSpokeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RejectHubSpokeRequest + * @returns UpdateSpokeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.RejectHubSpokeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.UpdateSpokeRequest; /** - * Creates a plain object from a RejectHubSpokeRequest message. Also converts values to other types if specified. - * @param message RejectHubSpokeRequest + * Creates a plain object from an UpdateSpokeRequest message. Also converts values to other types if specified. + * @param message UpdateSpokeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.RejectHubSpokeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.UpdateSpokeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RejectHubSpokeRequest to JSON. + * Converts this UpdateSpokeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RejectHubSpokeRequest + * Gets the default type url for UpdateSpokeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RejectHubSpokeResponse. */ - interface IRejectHubSpokeResponse { + /** Properties of a DeleteSpokeRequest. */ + interface IDeleteSpokeRequest { - /** RejectHubSpokeResponse spoke */ - spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); + /** DeleteSpokeRequest name */ + name?: (string|null); + + /** DeleteSpokeRequest requestId */ + requestId?: (string|null); } - /** Represents a RejectHubSpokeResponse. */ - class RejectHubSpokeResponse implements IRejectHubSpokeResponse { + /** Represents a DeleteSpokeRequest. */ + class DeleteSpokeRequest implements IDeleteSpokeRequest { /** - * Constructs a new RejectHubSpokeResponse. + * Constructs a new DeleteSpokeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse); + constructor(properties?: google.cloud.networkconnectivity.v1.IDeleteSpokeRequest); - /** RejectHubSpokeResponse spoke. */ - public spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); + /** DeleteSpokeRequest name. */ + public name: string; + + /** DeleteSpokeRequest requestId. */ + public requestId: string; /** - * Creates a new RejectHubSpokeResponse instance using the specified properties. + * Creates a new DeleteSpokeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RejectHubSpokeResponse instance + * @returns DeleteSpokeRequest instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse): google.cloud.networkconnectivity.v1.RejectHubSpokeResponse; + public static create(properties?: google.cloud.networkconnectivity.v1.IDeleteSpokeRequest): google.cloud.networkconnectivity.v1.DeleteSpokeRequest; /** - * Encodes the specified RejectHubSpokeResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeResponse.verify|verify} messages. - * @param message RejectHubSpokeResponse message or plain object to encode + * Encodes the specified DeleteSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.DeleteSpokeRequest.verify|verify} messages. + * @param message DeleteSpokeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IDeleteSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RejectHubSpokeResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeResponse.verify|verify} messages. - * @param message RejectHubSpokeResponse message or plain object to encode + * Encodes the specified DeleteSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.DeleteSpokeRequest.verify|verify} messages. + * @param message DeleteSpokeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IDeleteSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RejectHubSpokeResponse message from the specified reader or buffer. + * Decodes a DeleteSpokeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RejectHubSpokeResponse + * @returns DeleteSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.RejectHubSpokeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.DeleteSpokeRequest; /** - * Decodes a RejectHubSpokeResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteSpokeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RejectHubSpokeResponse + * @returns DeleteSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.RejectHubSpokeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.DeleteSpokeRequest; /** - * Verifies a RejectHubSpokeResponse message. + * Verifies a DeleteSpokeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RejectHubSpokeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSpokeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RejectHubSpokeResponse + * @returns DeleteSpokeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.RejectHubSpokeResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.DeleteSpokeRequest; /** - * Creates a plain object from a RejectHubSpokeResponse message. Also converts values to other types if specified. - * @param message RejectHubSpokeResponse + * Creates a plain object from a DeleteSpokeRequest message. Also converts values to other types if specified. + * @param message DeleteSpokeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.RejectHubSpokeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.DeleteSpokeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RejectHubSpokeResponse to JSON. + * Converts this DeleteSpokeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RejectHubSpokeResponse + * Gets the default type url for DeleteSpokeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetRouteTableRequest. */ - interface IGetRouteTableRequest { + /** Properties of an AcceptHubSpokeRequest. */ + interface IAcceptHubSpokeRequest { - /** GetRouteTableRequest name */ + /** AcceptHubSpokeRequest name */ name?: (string|null); + + /** AcceptHubSpokeRequest spokeUri */ + spokeUri?: (string|null); + + /** AcceptHubSpokeRequest requestId */ + requestId?: (string|null); } - /** Represents a GetRouteTableRequest. */ - class GetRouteTableRequest implements IGetRouteTableRequest { + /** Represents an AcceptHubSpokeRequest. */ + class AcceptHubSpokeRequest implements IAcceptHubSpokeRequest { /** - * Constructs a new GetRouteTableRequest. + * Constructs a new AcceptHubSpokeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IGetRouteTableRequest); + constructor(properties?: google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest); - /** GetRouteTableRequest name. */ + /** AcceptHubSpokeRequest name. */ public name: string; + /** AcceptHubSpokeRequest spokeUri. */ + public spokeUri: string; + + /** AcceptHubSpokeRequest requestId. */ + public requestId: string; + /** - * Creates a new GetRouteTableRequest instance using the specified properties. + * Creates a new AcceptHubSpokeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetRouteTableRequest instance + * @returns AcceptHubSpokeRequest instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IGetRouteTableRequest): google.cloud.networkconnectivity.v1.GetRouteTableRequest; + public static create(properties?: google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest): google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest; /** - * Encodes the specified GetRouteTableRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteTableRequest.verify|verify} messages. - * @param message GetRouteTableRequest message or plain object to encode + * Encodes the specified AcceptHubSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest.verify|verify} messages. + * @param message AcceptHubSpokeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IGetRouteTableRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetRouteTableRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteTableRequest.verify|verify} messages. - * @param message GetRouteTableRequest message or plain object to encode + * Encodes the specified AcceptHubSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest.verify|verify} messages. + * @param message AcceptHubSpokeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IGetRouteTableRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetRouteTableRequest message from the specified reader or buffer. + * Decodes an AcceptHubSpokeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetRouteTableRequest + * @returns AcceptHubSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.GetRouteTableRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest; /** - * Decodes a GetRouteTableRequest message from the specified reader or buffer, length delimited. + * Decodes an AcceptHubSpokeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetRouteTableRequest + * @returns AcceptHubSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.GetRouteTableRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest; /** - * Verifies a GetRouteTableRequest message. + * Verifies an AcceptHubSpokeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetRouteTableRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AcceptHubSpokeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetRouteTableRequest + * @returns AcceptHubSpokeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.GetRouteTableRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest; /** - * Creates a plain object from a GetRouteTableRequest message. Also converts values to other types if specified. - * @param message GetRouteTableRequest + * Creates a plain object from an AcceptHubSpokeRequest message. Also converts values to other types if specified. + * @param message AcceptHubSpokeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.GetRouteTableRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetRouteTableRequest to JSON. + * Converts this AcceptHubSpokeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetRouteTableRequest + * Gets the default type url for AcceptHubSpokeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetRouteRequest. */ - interface IGetRouteRequest { + /** Properties of an AcceptHubSpokeResponse. */ + interface IAcceptHubSpokeResponse { - /** GetRouteRequest name */ - name?: (string|null); + /** AcceptHubSpokeResponse spoke */ + spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); } - /** Represents a GetRouteRequest. */ - class GetRouteRequest implements IGetRouteRequest { + /** Represents an AcceptHubSpokeResponse. */ + class AcceptHubSpokeResponse implements IAcceptHubSpokeResponse { /** - * Constructs a new GetRouteRequest. + * Constructs a new AcceptHubSpokeResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IGetRouteRequest); + constructor(properties?: google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse); - /** GetRouteRequest name. */ - public name: string; + /** AcceptHubSpokeResponse spoke. */ + public spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); /** - * Creates a new GetRouteRequest instance using the specified properties. + * Creates a new AcceptHubSpokeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetRouteRequest instance + * @returns AcceptHubSpokeResponse instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IGetRouteRequest): google.cloud.networkconnectivity.v1.GetRouteRequest; + public static create(properties?: google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse): google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse; /** - * Encodes the specified GetRouteRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteRequest.verify|verify} messages. - * @param message GetRouteRequest message or plain object to encode + * Encodes the specified AcceptHubSpokeResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse.verify|verify} messages. + * @param message AcceptHubSpokeResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IGetRouteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetRouteRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteRequest.verify|verify} messages. - * @param message GetRouteRequest message or plain object to encode + * Encodes the specified AcceptHubSpokeResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse.verify|verify} messages. + * @param message AcceptHubSpokeResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IGetRouteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetRouteRequest message from the specified reader or buffer. + * Decodes an AcceptHubSpokeResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetRouteRequest + * @returns AcceptHubSpokeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.GetRouteRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse; /** - * Decodes a GetRouteRequest message from the specified reader or buffer, length delimited. + * Decodes an AcceptHubSpokeResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetRouteRequest + * @returns AcceptHubSpokeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.GetRouteRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse; /** - * Verifies a GetRouteRequest message. + * Verifies an AcceptHubSpokeResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetRouteRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AcceptHubSpokeResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetRouteRequest + * @returns AcceptHubSpokeResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.GetRouteRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse; /** - * Creates a plain object from a GetRouteRequest message. Also converts values to other types if specified. - * @param message GetRouteRequest + * Creates a plain object from an AcceptHubSpokeResponse message. Also converts values to other types if specified. + * @param message AcceptHubSpokeResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.GetRouteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetRouteRequest to JSON. + * Converts this AcceptHubSpokeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetRouteRequest + * Gets the default type url for AcceptHubSpokeResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListRoutesRequest. */ - interface IListRoutesRequest { - - /** ListRoutesRequest parent */ - parent?: (string|null); + /** Properties of a RejectHubSpokeRequest. */ + interface IRejectHubSpokeRequest { - /** ListRoutesRequest pageSize */ - pageSize?: (number|null); + /** RejectHubSpokeRequest name */ + name?: (string|null); - /** ListRoutesRequest pageToken */ - pageToken?: (string|null); + /** RejectHubSpokeRequest spokeUri */ + spokeUri?: (string|null); - /** ListRoutesRequest filter */ - filter?: (string|null); + /** RejectHubSpokeRequest requestId */ + requestId?: (string|null); - /** ListRoutesRequest orderBy */ - orderBy?: (string|null); + /** RejectHubSpokeRequest details */ + details?: (string|null); } - /** Represents a ListRoutesRequest. */ - class ListRoutesRequest implements IListRoutesRequest { + /** Represents a RejectHubSpokeRequest. */ + class RejectHubSpokeRequest implements IRejectHubSpokeRequest { /** - * Constructs a new ListRoutesRequest. + * Constructs a new RejectHubSpokeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IListRoutesRequest); - - /** ListRoutesRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest); - /** ListRoutesRequest pageSize. */ - public pageSize: number; + /** RejectHubSpokeRequest name. */ + public name: string; - /** ListRoutesRequest pageToken. */ - public pageToken: string; + /** RejectHubSpokeRequest spokeUri. */ + public spokeUri: string; - /** ListRoutesRequest filter. */ - public filter: string; + /** RejectHubSpokeRequest requestId. */ + public requestId: string; - /** ListRoutesRequest orderBy. */ - public orderBy: string; + /** RejectHubSpokeRequest details. */ + public details: string; /** - * Creates a new ListRoutesRequest instance using the specified properties. + * Creates a new RejectHubSpokeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListRoutesRequest instance + * @returns RejectHubSpokeRequest instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IListRoutesRequest): google.cloud.networkconnectivity.v1.ListRoutesRequest; + public static create(properties?: google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest): google.cloud.networkconnectivity.v1.RejectHubSpokeRequest; /** - * Encodes the specified ListRoutesRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesRequest.verify|verify} messages. - * @param message ListRoutesRequest message or plain object to encode + * Encodes the specified RejectHubSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeRequest.verify|verify} messages. + * @param message RejectHubSpokeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IListRoutesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesRequest.verify|verify} messages. - * @param message ListRoutesRequest message or plain object to encode + * Encodes the specified RejectHubSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeRequest.verify|verify} messages. + * @param message RejectHubSpokeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListRoutesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListRoutesRequest message from the specified reader or buffer. + * Decodes a RejectHubSpokeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListRoutesRequest + * @returns RejectHubSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListRoutesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.RejectHubSpokeRequest; /** - * Decodes a ListRoutesRequest message from the specified reader or buffer, length delimited. + * Decodes a RejectHubSpokeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListRoutesRequest + * @returns RejectHubSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListRoutesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.RejectHubSpokeRequest; /** - * Verifies a ListRoutesRequest message. + * Verifies a RejectHubSpokeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListRoutesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RejectHubSpokeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListRoutesRequest + * @returns RejectHubSpokeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListRoutesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.RejectHubSpokeRequest; /** - * Creates a plain object from a ListRoutesRequest message. Also converts values to other types if specified. - * @param message ListRoutesRequest - * @param [options] Conversion options + * Creates a plain object from a RejectHubSpokeRequest message. Also converts values to other types if specified. + * @param message RejectHubSpokeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.networkconnectivity.v1.RejectHubSpokeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RejectHubSpokeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RejectHubSpokeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RejectHubSpokeResponse. */ + interface IRejectHubSpokeResponse { + + /** RejectHubSpokeResponse spoke */ + spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); + } + + /** Represents a RejectHubSpokeResponse. */ + class RejectHubSpokeResponse implements IRejectHubSpokeResponse { + + /** + * Constructs a new RejectHubSpokeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse); + + /** RejectHubSpokeResponse spoke. */ + public spoke?: (google.cloud.networkconnectivity.v1.ISpoke|null); + + /** + * Creates a new RejectHubSpokeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RejectHubSpokeResponse instance + */ + public static create(properties?: google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse): google.cloud.networkconnectivity.v1.RejectHubSpokeResponse; + + /** + * Encodes the specified RejectHubSpokeResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeResponse.verify|verify} messages. + * @param message RejectHubSpokeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RejectHubSpokeResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeResponse.verify|verify} messages. + * @param message RejectHubSpokeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RejectHubSpokeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RejectHubSpokeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.RejectHubSpokeResponse; + + /** + * Decodes a RejectHubSpokeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RejectHubSpokeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.RejectHubSpokeResponse; + + /** + * Verifies a RejectHubSpokeResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RejectHubSpokeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RejectHubSpokeResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.RejectHubSpokeResponse; + + /** + * Creates a plain object from a RejectHubSpokeResponse message. Also converts values to other types if specified. + * @param message RejectHubSpokeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.networkconnectivity.v1.RejectHubSpokeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RejectHubSpokeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RejectHubSpokeResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetRouteTableRequest. */ + interface IGetRouteTableRequest { + + /** GetRouteTableRequest name */ + name?: (string|null); + } + + /** Represents a GetRouteTableRequest. */ + class GetRouteTableRequest implements IGetRouteTableRequest { + + /** + * Constructs a new GetRouteTableRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.networkconnectivity.v1.IGetRouteTableRequest); + + /** GetRouteTableRequest name. */ + public name: string; + + /** + * Creates a new GetRouteTableRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRouteTableRequest instance + */ + public static create(properties?: google.cloud.networkconnectivity.v1.IGetRouteTableRequest): google.cloud.networkconnectivity.v1.GetRouteTableRequest; + + /** + * Encodes the specified GetRouteTableRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteTableRequest.verify|verify} messages. + * @param message GetRouteTableRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.networkconnectivity.v1.IGetRouteTableRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRouteTableRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteTableRequest.verify|verify} messages. + * @param message GetRouteTableRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IGetRouteTableRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRouteTableRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRouteTableRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.GetRouteTableRequest; + + /** + * Decodes a GetRouteTableRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRouteTableRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.GetRouteTableRequest; + + /** + * Verifies a GetRouteTableRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRouteTableRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRouteTableRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.GetRouteTableRequest; + + /** + * Creates a plain object from a GetRouteTableRequest message. Also converts values to other types if specified. + * @param message GetRouteTableRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.networkconnectivity.v1.GetRouteTableRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRouteTableRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRouteTableRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetRouteRequest. */ + interface IGetRouteRequest { + + /** GetRouteRequest name */ + name?: (string|null); + } + + /** Represents a GetRouteRequest. */ + class GetRouteRequest implements IGetRouteRequest { + + /** + * Constructs a new GetRouteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.networkconnectivity.v1.IGetRouteRequest); + + /** GetRouteRequest name. */ + public name: string; + + /** + * Creates a new GetRouteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRouteRequest instance + */ + public static create(properties?: google.cloud.networkconnectivity.v1.IGetRouteRequest): google.cloud.networkconnectivity.v1.GetRouteRequest; + + /** + * Encodes the specified GetRouteRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteRequest.verify|verify} messages. + * @param message GetRouteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.networkconnectivity.v1.IGetRouteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRouteRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteRequest.verify|verify} messages. + * @param message GetRouteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IGetRouteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRouteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRouteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.GetRouteRequest; + + /** + * Decodes a GetRouteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRouteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.GetRouteRequest; + + /** + * Verifies a GetRouteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRouteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRouteRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.GetRouteRequest; + + /** + * Creates a plain object from a GetRouteRequest message. Also converts values to other types if specified. + * @param message GetRouteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.networkconnectivity.v1.GetRouteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRouteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRouteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListRoutesRequest. */ + interface IListRoutesRequest { + + /** ListRoutesRequest parent */ + parent?: (string|null); + + /** ListRoutesRequest pageSize */ + pageSize?: (number|null); + + /** ListRoutesRequest pageToken */ + pageToken?: (string|null); + + /** ListRoutesRequest filter */ + filter?: (string|null); + + /** ListRoutesRequest orderBy */ + orderBy?: (string|null); + } + + /** Represents a ListRoutesRequest. */ + class ListRoutesRequest implements IListRoutesRequest { + + /** + * Constructs a new ListRoutesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.networkconnectivity.v1.IListRoutesRequest); + + /** ListRoutesRequest parent. */ + public parent: string; + + /** ListRoutesRequest pageSize. */ + public pageSize: number; + + /** ListRoutesRequest pageToken. */ + public pageToken: string; + + /** ListRoutesRequest filter. */ + public filter: string; + + /** ListRoutesRequest orderBy. */ + public orderBy: string; + + /** + * Creates a new ListRoutesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRoutesRequest instance + */ + public static create(properties?: google.cloud.networkconnectivity.v1.IListRoutesRequest): google.cloud.networkconnectivity.v1.ListRoutesRequest; + + /** + * Encodes the specified ListRoutesRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesRequest.verify|verify} messages. + * @param message ListRoutesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.networkconnectivity.v1.IListRoutesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesRequest.verify|verify} messages. + * @param message ListRoutesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListRoutesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRoutesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRoutesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListRoutesRequest; + + /** + * Decodes a ListRoutesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRoutesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListRoutesRequest; + + /** + * Verifies a ListRoutesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListRoutesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRoutesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListRoutesRequest; + + /** + * Creates a plain object from a ListRoutesRequest message. Also converts values to other types if specified. + * @param message ListRoutesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.networkconnectivity.v1.ListRoutesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRoutesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRoutesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListRoutesResponse. */ + interface IListRoutesResponse { + + /** ListRoutesResponse routes */ + routes?: (google.cloud.networkconnectivity.v1.IRoute[]|null); + + /** ListRoutesResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListRoutesResponse unreachable */ + unreachable?: (string[]|null); + } + + /** Represents a ListRoutesResponse. */ + class ListRoutesResponse implements IListRoutesResponse { + + /** + * Constructs a new ListRoutesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.networkconnectivity.v1.IListRoutesResponse); + + /** ListRoutesResponse routes. */ + public routes: google.cloud.networkconnectivity.v1.IRoute[]; + + /** ListRoutesResponse nextPageToken. */ + public nextPageToken: string; + + /** ListRoutesResponse unreachable. */ + public unreachable: string[]; + + /** + * Creates a new ListRoutesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRoutesResponse instance + */ + public static create(properties?: google.cloud.networkconnectivity.v1.IListRoutesResponse): google.cloud.networkconnectivity.v1.ListRoutesResponse; + + /** + * Encodes the specified ListRoutesResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesResponse.verify|verify} messages. + * @param message ListRoutesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.networkconnectivity.v1.IListRoutesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRoutesResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesResponse.verify|verify} messages. + * @param message ListRoutesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListRoutesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRoutesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRoutesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListRoutesResponse; + + /** + * Decodes a ListRoutesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRoutesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListRoutesResponse; + + /** + * Verifies a ListRoutesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListRoutesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRoutesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListRoutesResponse; + + /** + * Creates a plain object from a ListRoutesResponse message. Also converts values to other types if specified. + * @param message ListRoutesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.networkconnectivity.v1.ListRoutesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRoutesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRoutesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListRouteTablesRequest. */ + interface IListRouteTablesRequest { + + /** ListRouteTablesRequest parent */ + parent?: (string|null); + + /** ListRouteTablesRequest pageSize */ + pageSize?: (number|null); + + /** ListRouteTablesRequest pageToken */ + pageToken?: (string|null); + + /** ListRouteTablesRequest filter */ + filter?: (string|null); + + /** ListRouteTablesRequest orderBy */ + orderBy?: (string|null); + } + + /** Represents a ListRouteTablesRequest. */ + class ListRouteTablesRequest implements IListRouteTablesRequest { + + /** + * Constructs a new ListRouteTablesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.networkconnectivity.v1.IListRouteTablesRequest); + + /** ListRouteTablesRequest parent. */ + public parent: string; + + /** ListRouteTablesRequest pageSize. */ + public pageSize: number; + + /** ListRouteTablesRequest pageToken. */ + public pageToken: string; + + /** ListRouteTablesRequest filter. */ + public filter: string; + + /** ListRouteTablesRequest orderBy. */ + public orderBy: string; + + /** + * Creates a new ListRouteTablesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRouteTablesRequest instance + */ + public static create(properties?: google.cloud.networkconnectivity.v1.IListRouteTablesRequest): google.cloud.networkconnectivity.v1.ListRouteTablesRequest; + + /** + * Encodes the specified ListRouteTablesRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesRequest.verify|verify} messages. + * @param message ListRouteTablesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.networkconnectivity.v1.IListRouteTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRouteTablesRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesRequest.verify|verify} messages. + * @param message ListRouteTablesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListRouteTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRouteTablesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRouteTablesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListRouteTablesRequest; + + /** + * Decodes a ListRouteTablesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRouteTablesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListRouteTablesRequest; + + /** + * Verifies a ListRouteTablesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListRouteTablesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRouteTablesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListRouteTablesRequest; + + /** + * Creates a plain object from a ListRouteTablesRequest message. Also converts values to other types if specified. + * @param message ListRouteTablesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.networkconnectivity.v1.ListRouteTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRouteTablesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRouteTablesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListRouteTablesResponse. */ + interface IListRouteTablesResponse { + + /** ListRouteTablesResponse routeTables */ + routeTables?: (google.cloud.networkconnectivity.v1.IRouteTable[]|null); + + /** ListRouteTablesResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListRouteTablesResponse unreachable */ + unreachable?: (string[]|null); + } + + /** Represents a ListRouteTablesResponse. */ + class ListRouteTablesResponse implements IListRouteTablesResponse { + + /** + * Constructs a new ListRouteTablesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.networkconnectivity.v1.IListRouteTablesResponse); + + /** ListRouteTablesResponse routeTables. */ + public routeTables: google.cloud.networkconnectivity.v1.IRouteTable[]; + + /** ListRouteTablesResponse nextPageToken. */ + public nextPageToken: string; + + /** ListRouteTablesResponse unreachable. */ + public unreachable: string[]; + + /** + * Creates a new ListRouteTablesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRouteTablesResponse instance + */ + public static create(properties?: google.cloud.networkconnectivity.v1.IListRouteTablesResponse): google.cloud.networkconnectivity.v1.ListRouteTablesResponse; + + /** + * Encodes the specified ListRouteTablesResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesResponse.verify|verify} messages. + * @param message ListRouteTablesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.networkconnectivity.v1.IListRouteTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRouteTablesResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesResponse.verify|verify} messages. + * @param message ListRouteTablesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListRouteTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRouteTablesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRouteTablesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListRouteTablesResponse; + + /** + * Decodes a ListRouteTablesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRouteTablesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListRouteTablesResponse; + + /** + * Verifies a ListRouteTablesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListRouteTablesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRouteTablesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListRouteTablesResponse; + + /** + * Creates a plain object from a ListRouteTablesResponse message. Also converts values to other types if specified. + * @param message ListRouteTablesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.networkconnectivity.v1.ListRouteTablesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRouteTablesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRouteTablesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListGroupsRequest. */ + interface IListGroupsRequest { + + /** ListGroupsRequest parent */ + parent?: (string|null); + + /** ListGroupsRequest pageSize */ + pageSize?: (number|null); + + /** ListGroupsRequest pageToken */ + pageToken?: (string|null); + + /** ListGroupsRequest filter */ + filter?: (string|null); + + /** ListGroupsRequest orderBy */ + orderBy?: (string|null); + } + + /** Represents a ListGroupsRequest. */ + class ListGroupsRequest implements IListGroupsRequest { + + /** + * Constructs a new ListGroupsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.networkconnectivity.v1.IListGroupsRequest); + + /** ListGroupsRequest parent. */ + public parent: string; + + /** ListGroupsRequest pageSize. */ + public pageSize: number; + + /** ListGroupsRequest pageToken. */ + public pageToken: string; + + /** ListGroupsRequest filter. */ + public filter: string; + + /** ListGroupsRequest orderBy. */ + public orderBy: string; + + /** + * Creates a new ListGroupsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListGroupsRequest instance + */ + public static create(properties?: google.cloud.networkconnectivity.v1.IListGroupsRequest): google.cloud.networkconnectivity.v1.ListGroupsRequest; + + /** + * Encodes the specified ListGroupsRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsRequest.verify|verify} messages. + * @param message ListGroupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.networkconnectivity.v1.IListGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsRequest.verify|verify} messages. + * @param message ListGroupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListGroupsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListGroupsRequest; + + /** + * Decodes a ListGroupsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListGroupsRequest; + + /** + * Verifies a ListGroupsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListGroupsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListGroupsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListGroupsRequest; + + /** + * Creates a plain object from a ListGroupsRequest message. Also converts values to other types if specified. + * @param message ListGroupsRequest + * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.ListRoutesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.ListGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListRoutesRequest to JSON. + * Converts this ListGroupsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListRoutesRequest + * Gets the default type url for ListGroupsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListRoutesResponse. */ - interface IListRoutesResponse { + /** Properties of a ListGroupsResponse. */ + interface IListGroupsResponse { - /** ListRoutesResponse routes */ - routes?: (google.cloud.networkconnectivity.v1.IRoute[]|null); + /** ListGroupsResponse groups */ + groups?: (google.cloud.networkconnectivity.v1.IGroup[]|null); - /** ListRoutesResponse nextPageToken */ + /** ListGroupsResponse nextPageToken */ nextPageToken?: (string|null); - /** ListRoutesResponse unreachable */ + /** ListGroupsResponse unreachable */ unreachable?: (string[]|null); } - /** Represents a ListRoutesResponse. */ - class ListRoutesResponse implements IListRoutesResponse { + /** Represents a ListGroupsResponse. */ + class ListGroupsResponse implements IListGroupsResponse { /** - * Constructs a new ListRoutesResponse. + * Constructs a new ListGroupsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IListRoutesResponse); + constructor(properties?: google.cloud.networkconnectivity.v1.IListGroupsResponse); - /** ListRoutesResponse routes. */ - public routes: google.cloud.networkconnectivity.v1.IRoute[]; + /** ListGroupsResponse groups. */ + public groups: google.cloud.networkconnectivity.v1.IGroup[]; - /** ListRoutesResponse nextPageToken. */ + /** ListGroupsResponse nextPageToken. */ public nextPageToken: string; - /** ListRoutesResponse unreachable. */ + /** ListGroupsResponse unreachable. */ public unreachable: string[]; /** - * Creates a new ListRoutesResponse instance using the specified properties. + * Creates a new ListGroupsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListRoutesResponse instance + * @returns ListGroupsResponse instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IListRoutesResponse): google.cloud.networkconnectivity.v1.ListRoutesResponse; + public static create(properties?: google.cloud.networkconnectivity.v1.IListGroupsResponse): google.cloud.networkconnectivity.v1.ListGroupsResponse; /** - * Encodes the specified ListRoutesResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesResponse.verify|verify} messages. - * @param message ListRoutesResponse message or plain object to encode + * Encodes the specified ListGroupsResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsResponse.verify|verify} messages. + * @param message ListGroupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IListRoutesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IListGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListRoutesResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesResponse.verify|verify} messages. - * @param message ListRoutesResponse message or plain object to encode + * Encodes the specified ListGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsResponse.verify|verify} messages. + * @param message ListGroupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListRoutesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListRoutesResponse message from the specified reader or buffer. + * Decodes a ListGroupsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListRoutesResponse + * @returns ListGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListRoutesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListGroupsResponse; /** - * Decodes a ListRoutesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListGroupsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListRoutesResponse + * @returns ListGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListRoutesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListGroupsResponse; /** - * Verifies a ListRoutesResponse message. + * Verifies a ListGroupsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListRoutesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListGroupsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListRoutesResponse + * @returns ListGroupsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListRoutesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListGroupsResponse; /** - * Creates a plain object from a ListRoutesResponse message. Also converts values to other types if specified. - * @param message ListRoutesResponse + * Creates a plain object from a ListGroupsResponse message. Also converts values to other types if specified. + * @param message ListGroupsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.ListRoutesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.ListGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListRoutesResponse to JSON. + * Converts this ListGroupsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListRoutesResponse + * Gets the default type url for ListGroupsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListRouteTablesRequest. */ - interface IListRouteTablesRequest { - - /** ListRouteTablesRequest parent */ - parent?: (string|null); + /** Properties of a LinkedVpnTunnels. */ + interface ILinkedVpnTunnels { - /** ListRouteTablesRequest pageSize */ - pageSize?: (number|null); + /** LinkedVpnTunnels uris */ + uris?: (string[]|null); - /** ListRouteTablesRequest pageToken */ - pageToken?: (string|null); + /** LinkedVpnTunnels siteToSiteDataTransfer */ + siteToSiteDataTransfer?: (boolean|null); - /** ListRouteTablesRequest filter */ - filter?: (string|null); + /** LinkedVpnTunnels vpcNetwork */ + vpcNetwork?: (string|null); - /** ListRouteTablesRequest orderBy */ - orderBy?: (string|null); + /** LinkedVpnTunnels includeImportRanges */ + includeImportRanges?: (string[]|null); } - /** Represents a ListRouteTablesRequest. */ - class ListRouteTablesRequest implements IListRouteTablesRequest { + /** Represents a LinkedVpnTunnels. */ + class LinkedVpnTunnels implements ILinkedVpnTunnels { /** - * Constructs a new ListRouteTablesRequest. + * Constructs a new LinkedVpnTunnels. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IListRouteTablesRequest); - - /** ListRouteTablesRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.networkconnectivity.v1.ILinkedVpnTunnels); - /** ListRouteTablesRequest pageSize. */ - public pageSize: number; + /** LinkedVpnTunnels uris. */ + public uris: string[]; - /** ListRouteTablesRequest pageToken. */ - public pageToken: string; + /** LinkedVpnTunnels siteToSiteDataTransfer. */ + public siteToSiteDataTransfer: boolean; - /** ListRouteTablesRequest filter. */ - public filter: string; + /** LinkedVpnTunnels vpcNetwork. */ + public vpcNetwork: string; - /** ListRouteTablesRequest orderBy. */ - public orderBy: string; + /** LinkedVpnTunnels includeImportRanges. */ + public includeImportRanges: string[]; /** - * Creates a new ListRouteTablesRequest instance using the specified properties. + * Creates a new LinkedVpnTunnels instance using the specified properties. * @param [properties] Properties to set - * @returns ListRouteTablesRequest instance + * @returns LinkedVpnTunnels instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IListRouteTablesRequest): google.cloud.networkconnectivity.v1.ListRouteTablesRequest; + public static create(properties?: google.cloud.networkconnectivity.v1.ILinkedVpnTunnels): google.cloud.networkconnectivity.v1.LinkedVpnTunnels; /** - * Encodes the specified ListRouteTablesRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesRequest.verify|verify} messages. - * @param message ListRouteTablesRequest message or plain object to encode + * Encodes the specified LinkedVpnTunnels message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpnTunnels.verify|verify} messages. + * @param message LinkedVpnTunnels message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IListRouteTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.ILinkedVpnTunnels, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListRouteTablesRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesRequest.verify|verify} messages. - * @param message ListRouteTablesRequest message or plain object to encode + * Encodes the specified LinkedVpnTunnels message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpnTunnels.verify|verify} messages. + * @param message LinkedVpnTunnels message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListRouteTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.ILinkedVpnTunnels, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListRouteTablesRequest message from the specified reader or buffer. + * Decodes a LinkedVpnTunnels message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListRouteTablesRequest + * @returns LinkedVpnTunnels * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListRouteTablesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.LinkedVpnTunnels; /** - * Decodes a ListRouteTablesRequest message from the specified reader or buffer, length delimited. + * Decodes a LinkedVpnTunnels message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListRouteTablesRequest + * @returns LinkedVpnTunnels * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListRouteTablesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.LinkedVpnTunnels; /** - * Verifies a ListRouteTablesRequest message. + * Verifies a LinkedVpnTunnels message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListRouteTablesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LinkedVpnTunnels message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListRouteTablesRequest + * @returns LinkedVpnTunnels */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListRouteTablesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.LinkedVpnTunnels; /** - * Creates a plain object from a ListRouteTablesRequest message. Also converts values to other types if specified. - * @param message ListRouteTablesRequest + * Creates a plain object from a LinkedVpnTunnels message. Also converts values to other types if specified. + * @param message LinkedVpnTunnels * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.ListRouteTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.LinkedVpnTunnels, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListRouteTablesRequest to JSON. + * Converts this LinkedVpnTunnels to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListRouteTablesRequest + * Gets the default type url for LinkedVpnTunnels * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListRouteTablesResponse. */ - interface IListRouteTablesResponse { + /** Properties of a LinkedInterconnectAttachments. */ + interface ILinkedInterconnectAttachments { - /** ListRouteTablesResponse routeTables */ - routeTables?: (google.cloud.networkconnectivity.v1.IRouteTable[]|null); + /** LinkedInterconnectAttachments uris */ + uris?: (string[]|null); - /** ListRouteTablesResponse nextPageToken */ - nextPageToken?: (string|null); + /** LinkedInterconnectAttachments siteToSiteDataTransfer */ + siteToSiteDataTransfer?: (boolean|null); - /** ListRouteTablesResponse unreachable */ - unreachable?: (string[]|null); + /** LinkedInterconnectAttachments vpcNetwork */ + vpcNetwork?: (string|null); + + /** LinkedInterconnectAttachments includeImportRanges */ + includeImportRanges?: (string[]|null); } - /** Represents a ListRouteTablesResponse. */ - class ListRouteTablesResponse implements IListRouteTablesResponse { + /** Represents a LinkedInterconnectAttachments. */ + class LinkedInterconnectAttachments implements ILinkedInterconnectAttachments { /** - * Constructs a new ListRouteTablesResponse. + * Constructs a new LinkedInterconnectAttachments. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IListRouteTablesResponse); + constructor(properties?: google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments); - /** ListRouteTablesResponse routeTables. */ - public routeTables: google.cloud.networkconnectivity.v1.IRouteTable[]; + /** LinkedInterconnectAttachments uris. */ + public uris: string[]; - /** ListRouteTablesResponse nextPageToken. */ - public nextPageToken: string; + /** LinkedInterconnectAttachments siteToSiteDataTransfer. */ + public siteToSiteDataTransfer: boolean; - /** ListRouteTablesResponse unreachable. */ - public unreachable: string[]; + /** LinkedInterconnectAttachments vpcNetwork. */ + public vpcNetwork: string; + + /** LinkedInterconnectAttachments includeImportRanges. */ + public includeImportRanges: string[]; /** - * Creates a new ListRouteTablesResponse instance using the specified properties. + * Creates a new LinkedInterconnectAttachments instance using the specified properties. * @param [properties] Properties to set - * @returns ListRouteTablesResponse instance + * @returns LinkedInterconnectAttachments instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IListRouteTablesResponse): google.cloud.networkconnectivity.v1.ListRouteTablesResponse; + public static create(properties?: google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments): google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments; /** - * Encodes the specified ListRouteTablesResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesResponse.verify|verify} messages. - * @param message ListRouteTablesResponse message or plain object to encode + * Encodes the specified LinkedInterconnectAttachments message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.verify|verify} messages. + * @param message LinkedInterconnectAttachments message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IListRouteTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListRouteTablesResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesResponse.verify|verify} messages. - * @param message ListRouteTablesResponse message or plain object to encode + * Encodes the specified LinkedInterconnectAttachments message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.verify|verify} messages. + * @param message LinkedInterconnectAttachments message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListRouteTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListRouteTablesResponse message from the specified reader or buffer. + * Decodes a LinkedInterconnectAttachments message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListRouteTablesResponse + * @returns LinkedInterconnectAttachments * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListRouteTablesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments; /** - * Decodes a ListRouteTablesResponse message from the specified reader or buffer, length delimited. + * Decodes a LinkedInterconnectAttachments message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListRouteTablesResponse + * @returns LinkedInterconnectAttachments * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListRouteTablesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments; /** - * Verifies a ListRouteTablesResponse message. + * Verifies a LinkedInterconnectAttachments message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListRouteTablesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LinkedInterconnectAttachments message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListRouteTablesResponse + * @returns LinkedInterconnectAttachments */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListRouteTablesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments; /** - * Creates a plain object from a ListRouteTablesResponse message. Also converts values to other types if specified. - * @param message ListRouteTablesResponse + * Creates a plain object from a LinkedInterconnectAttachments message. Also converts values to other types if specified. + * @param message LinkedInterconnectAttachments * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.ListRouteTablesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListRouteTablesResponse to JSON. + * Converts this LinkedInterconnectAttachments to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListRouteTablesResponse + * Gets the default type url for LinkedInterconnectAttachments * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListGroupsRequest. */ - interface IListGroupsRequest { - - /** ListGroupsRequest parent */ - parent?: (string|null); + /** Properties of a LinkedRouterApplianceInstances. */ + interface ILinkedRouterApplianceInstances { - /** ListGroupsRequest pageSize */ - pageSize?: (number|null); + /** LinkedRouterApplianceInstances instances */ + instances?: (google.cloud.networkconnectivity.v1.IRouterApplianceInstance[]|null); - /** ListGroupsRequest pageToken */ - pageToken?: (string|null); + /** LinkedRouterApplianceInstances siteToSiteDataTransfer */ + siteToSiteDataTransfer?: (boolean|null); - /** ListGroupsRequest filter */ - filter?: (string|null); + /** LinkedRouterApplianceInstances vpcNetwork */ + vpcNetwork?: (string|null); - /** ListGroupsRequest orderBy */ - orderBy?: (string|null); + /** LinkedRouterApplianceInstances includeImportRanges */ + includeImportRanges?: (string[]|null); } - /** Represents a ListGroupsRequest. */ - class ListGroupsRequest implements IListGroupsRequest { + /** Represents a LinkedRouterApplianceInstances. */ + class LinkedRouterApplianceInstances implements ILinkedRouterApplianceInstances { /** - * Constructs a new ListGroupsRequest. + * Constructs a new LinkedRouterApplianceInstances. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IListGroupsRequest); - - /** ListGroupsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances); - /** ListGroupsRequest pageSize. */ - public pageSize: number; + /** LinkedRouterApplianceInstances instances. */ + public instances: google.cloud.networkconnectivity.v1.IRouterApplianceInstance[]; - /** ListGroupsRequest pageToken. */ - public pageToken: string; + /** LinkedRouterApplianceInstances siteToSiteDataTransfer. */ + public siteToSiteDataTransfer: boolean; - /** ListGroupsRequest filter. */ - public filter: string; + /** LinkedRouterApplianceInstances vpcNetwork. */ + public vpcNetwork: string; - /** ListGroupsRequest orderBy. */ - public orderBy: string; + /** LinkedRouterApplianceInstances includeImportRanges. */ + public includeImportRanges: string[]; /** - * Creates a new ListGroupsRequest instance using the specified properties. + * Creates a new LinkedRouterApplianceInstances instance using the specified properties. * @param [properties] Properties to set - * @returns ListGroupsRequest instance + * @returns LinkedRouterApplianceInstances instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IListGroupsRequest): google.cloud.networkconnectivity.v1.ListGroupsRequest; + public static create(properties?: google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances): google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances; /** - * Encodes the specified ListGroupsRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsRequest.verify|verify} messages. - * @param message ListGroupsRequest message or plain object to encode + * Encodes the specified LinkedRouterApplianceInstances message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.verify|verify} messages. + * @param message LinkedRouterApplianceInstances message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IListGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsRequest.verify|verify} messages. - * @param message ListGroupsRequest message or plain object to encode + * Encodes the specified LinkedRouterApplianceInstances message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.verify|verify} messages. + * @param message LinkedRouterApplianceInstances message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListGroupsRequest message from the specified reader or buffer. + * Decodes a LinkedRouterApplianceInstances message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListGroupsRequest + * @returns LinkedRouterApplianceInstances * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListGroupsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances; /** - * Decodes a ListGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a LinkedRouterApplianceInstances message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListGroupsRequest + * @returns LinkedRouterApplianceInstances * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListGroupsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances; /** - * Verifies a ListGroupsRequest message. + * Verifies a LinkedRouterApplianceInstances message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LinkedRouterApplianceInstances message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListGroupsRequest + * @returns LinkedRouterApplianceInstances */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListGroupsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances; /** - * Creates a plain object from a ListGroupsRequest message. Also converts values to other types if specified. - * @param message ListGroupsRequest + * Creates a plain object from a LinkedRouterApplianceInstances message. Also converts values to other types if specified. + * @param message LinkedRouterApplianceInstances * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.ListGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListGroupsRequest to JSON. + * Converts this LinkedRouterApplianceInstances to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListGroupsRequest + * Gets the default type url for LinkedRouterApplianceInstances * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListGroupsResponse. */ - interface IListGroupsResponse { + /** Properties of a LinkedVpcNetwork. */ + interface ILinkedVpcNetwork { - /** ListGroupsResponse groups */ - groups?: (google.cloud.networkconnectivity.v1.IGroup[]|null); + /** LinkedVpcNetwork uri */ + uri?: (string|null); - /** ListGroupsResponse nextPageToken */ - nextPageToken?: (string|null); + /** LinkedVpcNetwork excludeExportRanges */ + excludeExportRanges?: (string[]|null); - /** ListGroupsResponse unreachable */ - unreachable?: (string[]|null); + /** LinkedVpcNetwork includeExportRanges */ + includeExportRanges?: (string[]|null); + + /** LinkedVpcNetwork producerVpcSpokes */ + producerVpcSpokes?: (string[]|null); } - /** Represents a ListGroupsResponse. */ - class ListGroupsResponse implements IListGroupsResponse { + /** Represents a LinkedVpcNetwork. */ + class LinkedVpcNetwork implements ILinkedVpcNetwork { /** - * Constructs a new ListGroupsResponse. + * Constructs a new LinkedVpcNetwork. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IListGroupsResponse); + constructor(properties?: google.cloud.networkconnectivity.v1.ILinkedVpcNetwork); - /** ListGroupsResponse groups. */ - public groups: google.cloud.networkconnectivity.v1.IGroup[]; + /** LinkedVpcNetwork uri. */ + public uri: string; - /** ListGroupsResponse nextPageToken. */ - public nextPageToken: string; + /** LinkedVpcNetwork excludeExportRanges. */ + public excludeExportRanges: string[]; - /** ListGroupsResponse unreachable. */ - public unreachable: string[]; + /** LinkedVpcNetwork includeExportRanges. */ + public includeExportRanges: string[]; + + /** LinkedVpcNetwork producerVpcSpokes. */ + public producerVpcSpokes: string[]; /** - * Creates a new ListGroupsResponse instance using the specified properties. + * Creates a new LinkedVpcNetwork instance using the specified properties. * @param [properties] Properties to set - * @returns ListGroupsResponse instance + * @returns LinkedVpcNetwork instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IListGroupsResponse): google.cloud.networkconnectivity.v1.ListGroupsResponse; + public static create(properties?: google.cloud.networkconnectivity.v1.ILinkedVpcNetwork): google.cloud.networkconnectivity.v1.LinkedVpcNetwork; /** - * Encodes the specified ListGroupsResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsResponse.verify|verify} messages. - * @param message ListGroupsResponse message or plain object to encode + * Encodes the specified LinkedVpcNetwork message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpcNetwork.verify|verify} messages. + * @param message LinkedVpcNetwork message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IListGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.ILinkedVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsResponse.verify|verify} messages. - * @param message ListGroupsResponse message or plain object to encode + * Encodes the specified LinkedVpcNetwork message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpcNetwork.verify|verify} messages. + * @param message LinkedVpcNetwork message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IListGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.ILinkedVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListGroupsResponse message from the specified reader or buffer. + * Decodes a LinkedVpcNetwork message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListGroupsResponse + * @returns LinkedVpcNetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.ListGroupsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.LinkedVpcNetwork; /** - * Decodes a ListGroupsResponse message from the specified reader or buffer, length delimited. + * Decodes a LinkedVpcNetwork message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListGroupsResponse + * @returns LinkedVpcNetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.ListGroupsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.LinkedVpcNetwork; /** - * Verifies a ListGroupsResponse message. + * Verifies a LinkedVpcNetwork message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListGroupsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LinkedVpcNetwork message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListGroupsResponse + * @returns LinkedVpcNetwork */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.ListGroupsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.LinkedVpcNetwork; /** - * Creates a plain object from a ListGroupsResponse message. Also converts values to other types if specified. - * @param message ListGroupsResponse + * Creates a plain object from a LinkedVpcNetwork message. Also converts values to other types if specified. + * @param message LinkedVpcNetwork * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.ListGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.LinkedVpcNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListGroupsResponse to JSON. + * Converts this LinkedVpcNetwork to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListGroupsResponse + * Gets the default type url for LinkedVpcNetwork * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LinkedVpnTunnels. */ - interface ILinkedVpnTunnels { + /** Properties of a LinkedProducerVpcNetwork. */ + interface ILinkedProducerVpcNetwork { - /** LinkedVpnTunnels uris */ - uris?: (string[]|null); + /** LinkedProducerVpcNetwork network */ + network?: (string|null); - /** LinkedVpnTunnels siteToSiteDataTransfer */ - siteToSiteDataTransfer?: (boolean|null); + /** LinkedProducerVpcNetwork serviceConsumerVpcSpoke */ + serviceConsumerVpcSpoke?: (string|null); - /** LinkedVpnTunnels vpcNetwork */ - vpcNetwork?: (string|null); + /** LinkedProducerVpcNetwork peering */ + peering?: (string|null); + + /** LinkedProducerVpcNetwork producerNetwork */ + producerNetwork?: (string|null); + + /** LinkedProducerVpcNetwork excludeExportRanges */ + excludeExportRanges?: (string[]|null); + + /** LinkedProducerVpcNetwork includeExportRanges */ + includeExportRanges?: (string[]|null); } - /** Represents a LinkedVpnTunnels. */ - class LinkedVpnTunnels implements ILinkedVpnTunnels { + /** Represents a LinkedProducerVpcNetwork. */ + class LinkedProducerVpcNetwork implements ILinkedProducerVpcNetwork { /** - * Constructs a new LinkedVpnTunnels. + * Constructs a new LinkedProducerVpcNetwork. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.ILinkedVpnTunnels); + constructor(properties?: google.cloud.networkconnectivity.v1.ILinkedProducerVpcNetwork); - /** LinkedVpnTunnels uris. */ - public uris: string[]; + /** LinkedProducerVpcNetwork network. */ + public network: string; - /** LinkedVpnTunnels siteToSiteDataTransfer. */ - public siteToSiteDataTransfer: boolean; + /** LinkedProducerVpcNetwork serviceConsumerVpcSpoke. */ + public serviceConsumerVpcSpoke: string; - /** LinkedVpnTunnels vpcNetwork. */ - public vpcNetwork: string; + /** LinkedProducerVpcNetwork peering. */ + public peering: string; + + /** LinkedProducerVpcNetwork producerNetwork. */ + public producerNetwork: string; + + /** LinkedProducerVpcNetwork excludeExportRanges. */ + public excludeExportRanges: string[]; + + /** LinkedProducerVpcNetwork includeExportRanges. */ + public includeExportRanges: string[]; /** - * Creates a new LinkedVpnTunnels instance using the specified properties. + * Creates a new LinkedProducerVpcNetwork instance using the specified properties. * @param [properties] Properties to set - * @returns LinkedVpnTunnels instance + * @returns LinkedProducerVpcNetwork instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.ILinkedVpnTunnels): google.cloud.networkconnectivity.v1.LinkedVpnTunnels; + public static create(properties?: google.cloud.networkconnectivity.v1.ILinkedProducerVpcNetwork): google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork; /** - * Encodes the specified LinkedVpnTunnels message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpnTunnels.verify|verify} messages. - * @param message LinkedVpnTunnels message or plain object to encode + * Encodes the specified LinkedProducerVpcNetwork message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.verify|verify} messages. + * @param message LinkedProducerVpcNetwork message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.ILinkedVpnTunnels, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.ILinkedProducerVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LinkedVpnTunnels message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpnTunnels.verify|verify} messages. - * @param message LinkedVpnTunnels message or plain object to encode + * Encodes the specified LinkedProducerVpcNetwork message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.verify|verify} messages. + * @param message LinkedProducerVpcNetwork message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.ILinkedVpnTunnels, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.ILinkedProducerVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LinkedVpnTunnels message from the specified reader or buffer. + * Decodes a LinkedProducerVpcNetwork message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LinkedVpnTunnels + * @returns LinkedProducerVpcNetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.LinkedVpnTunnels; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork; /** - * Decodes a LinkedVpnTunnels message from the specified reader or buffer, length delimited. + * Decodes a LinkedProducerVpcNetwork message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LinkedVpnTunnels + * @returns LinkedProducerVpcNetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.LinkedVpnTunnels; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork; /** - * Verifies a LinkedVpnTunnels message. + * Verifies a LinkedProducerVpcNetwork message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LinkedVpnTunnels message from a plain object. Also converts values to their respective internal types. + * Creates a LinkedProducerVpcNetwork message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LinkedVpnTunnels + * @returns LinkedProducerVpcNetwork */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.LinkedVpnTunnels; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork; /** - * Creates a plain object from a LinkedVpnTunnels message. Also converts values to other types if specified. - * @param message LinkedVpnTunnels + * Creates a plain object from a LinkedProducerVpcNetwork message. Also converts values to other types if specified. + * @param message LinkedProducerVpcNetwork * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.LinkedVpnTunnels, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LinkedVpnTunnels to JSON. + * Converts this LinkedProducerVpcNetwork to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LinkedVpnTunnels + * Gets the default type url for LinkedProducerVpcNetwork * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LinkedInterconnectAttachments. */ - interface ILinkedInterconnectAttachments { - - /** LinkedInterconnectAttachments uris */ - uris?: (string[]|null); + /** Properties of a RouterApplianceInstance. */ + interface IRouterApplianceInstance { - /** LinkedInterconnectAttachments siteToSiteDataTransfer */ - siteToSiteDataTransfer?: (boolean|null); + /** RouterApplianceInstance virtualMachine */ + virtualMachine?: (string|null); - /** LinkedInterconnectAttachments vpcNetwork */ - vpcNetwork?: (string|null); + /** RouterApplianceInstance ipAddress */ + ipAddress?: (string|null); } - /** Represents a LinkedInterconnectAttachments. */ - class LinkedInterconnectAttachments implements ILinkedInterconnectAttachments { + /** Represents a RouterApplianceInstance. */ + class RouterApplianceInstance implements IRouterApplianceInstance { /** - * Constructs a new LinkedInterconnectAttachments. + * Constructs a new RouterApplianceInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments); - - /** LinkedInterconnectAttachments uris. */ - public uris: string[]; + constructor(properties?: google.cloud.networkconnectivity.v1.IRouterApplianceInstance); - /** LinkedInterconnectAttachments siteToSiteDataTransfer. */ - public siteToSiteDataTransfer: boolean; + /** RouterApplianceInstance virtualMachine. */ + public virtualMachine: string; - /** LinkedInterconnectAttachments vpcNetwork. */ - public vpcNetwork: string; + /** RouterApplianceInstance ipAddress. */ + public ipAddress: string; /** - * Creates a new LinkedInterconnectAttachments instance using the specified properties. + * Creates a new RouterApplianceInstance instance using the specified properties. * @param [properties] Properties to set - * @returns LinkedInterconnectAttachments instance + * @returns RouterApplianceInstance instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments): google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments; + public static create(properties?: google.cloud.networkconnectivity.v1.IRouterApplianceInstance): google.cloud.networkconnectivity.v1.RouterApplianceInstance; /** - * Encodes the specified LinkedInterconnectAttachments message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.verify|verify} messages. - * @param message LinkedInterconnectAttachments message or plain object to encode + * Encodes the specified RouterApplianceInstance message. Does not implicitly {@link google.cloud.networkconnectivity.v1.RouterApplianceInstance.verify|verify} messages. + * @param message RouterApplianceInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.IRouterApplianceInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LinkedInterconnectAttachments message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.verify|verify} messages. - * @param message LinkedInterconnectAttachments message or plain object to encode + * Encodes the specified RouterApplianceInstance message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.RouterApplianceInstance.verify|verify} messages. + * @param message RouterApplianceInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IRouterApplianceInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LinkedInterconnectAttachments message from the specified reader or buffer. + * Decodes a RouterApplianceInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LinkedInterconnectAttachments + * @returns RouterApplianceInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.RouterApplianceInstance; /** - * Decodes a LinkedInterconnectAttachments message from the specified reader or buffer, length delimited. + * Decodes a RouterApplianceInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LinkedInterconnectAttachments + * @returns RouterApplianceInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.RouterApplianceInstance; /** - * Verifies a LinkedInterconnectAttachments message. + * Verifies a RouterApplianceInstance message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LinkedInterconnectAttachments message from a plain object. Also converts values to their respective internal types. + * Creates a RouterApplianceInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LinkedInterconnectAttachments + * @returns RouterApplianceInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.RouterApplianceInstance; /** - * Creates a plain object from a LinkedInterconnectAttachments message. Also converts values to other types if specified. - * @param message LinkedInterconnectAttachments + * Creates a plain object from a RouterApplianceInstance message. Also converts values to other types if specified. + * @param message RouterApplianceInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.RouterApplianceInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LinkedInterconnectAttachments to JSON. + * Converts this RouterApplianceInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LinkedInterconnectAttachments + * Gets the default type url for RouterApplianceInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LinkedRouterApplianceInstances. */ - interface ILinkedRouterApplianceInstances { - - /** LinkedRouterApplianceInstances instances */ - instances?: (google.cloud.networkconnectivity.v1.IRouterApplianceInstance[]|null); - - /** LinkedRouterApplianceInstances siteToSiteDataTransfer */ - siteToSiteDataTransfer?: (boolean|null); + /** Properties of a LocationMetadata. */ + interface ILocationMetadata { - /** LinkedRouterApplianceInstances vpcNetwork */ - vpcNetwork?: (string|null); + /** LocationMetadata locationFeatures */ + locationFeatures?: (google.cloud.networkconnectivity.v1.LocationFeature[]|null); } - /** Represents a LinkedRouterApplianceInstances. */ - class LinkedRouterApplianceInstances implements ILinkedRouterApplianceInstances { + /** Represents a LocationMetadata. */ + class LocationMetadata implements ILocationMetadata { /** - * Constructs a new LinkedRouterApplianceInstances. + * Constructs a new LocationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances); - - /** LinkedRouterApplianceInstances instances. */ - public instances: google.cloud.networkconnectivity.v1.IRouterApplianceInstance[]; - - /** LinkedRouterApplianceInstances siteToSiteDataTransfer. */ - public siteToSiteDataTransfer: boolean; + constructor(properties?: google.cloud.networkconnectivity.v1.ILocationMetadata); - /** LinkedRouterApplianceInstances vpcNetwork. */ - public vpcNetwork: string; + /** LocationMetadata locationFeatures. */ + public locationFeatures: google.cloud.networkconnectivity.v1.LocationFeature[]; /** - * Creates a new LinkedRouterApplianceInstances instance using the specified properties. + * Creates a new LocationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns LinkedRouterApplianceInstances instance + * @returns LocationMetadata instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances): google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances; + public static create(properties?: google.cloud.networkconnectivity.v1.ILocationMetadata): google.cloud.networkconnectivity.v1.LocationMetadata; /** - * Encodes the specified LinkedRouterApplianceInstances message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.verify|verify} messages. - * @param message LinkedRouterApplianceInstances message or plain object to encode + * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LocationMetadata.verify|verify} messages. + * @param message LocationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LinkedRouterApplianceInstances message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.verify|verify} messages. - * @param message LinkedRouterApplianceInstances message or plain object to encode + * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LocationMetadata.verify|verify} messages. + * @param message LocationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LinkedRouterApplianceInstances message from the specified reader or buffer. + * Decodes a LocationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LinkedRouterApplianceInstances + * @returns LocationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.LocationMetadata; /** - * Decodes a LinkedRouterApplianceInstances message from the specified reader or buffer, length delimited. + * Decodes a LocationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LinkedRouterApplianceInstances + * @returns LocationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.LocationMetadata; /** - * Verifies a LinkedRouterApplianceInstances message. + * Verifies a LocationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LinkedRouterApplianceInstances message from a plain object. Also converts values to their respective internal types. + * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LinkedRouterApplianceInstances + * @returns LocationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.LocationMetadata; /** - * Creates a plain object from a LinkedRouterApplianceInstances message. Also converts values to other types if specified. - * @param message LinkedRouterApplianceInstances + * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified. + * @param message LocationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.LocationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LinkedRouterApplianceInstances to JSON. + * Converts this LocationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LinkedRouterApplianceInstances + * Gets the default type url for LocationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LinkedVpcNetwork. */ - interface ILinkedVpcNetwork { + /** Properties of a NextHopVpcNetwork. */ + interface INextHopVpcNetwork { - /** LinkedVpcNetwork uri */ + /** NextHopVpcNetwork uri */ uri?: (string|null); - - /** LinkedVpcNetwork excludeExportRanges */ - excludeExportRanges?: (string[]|null); } - /** Represents a LinkedVpcNetwork. */ - class LinkedVpcNetwork implements ILinkedVpcNetwork { + /** Represents a NextHopVpcNetwork. */ + class NextHopVpcNetwork implements INextHopVpcNetwork { /** - * Constructs a new LinkedVpcNetwork. + * Constructs a new NextHopVpcNetwork. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.ILinkedVpcNetwork); + constructor(properties?: google.cloud.networkconnectivity.v1.INextHopVpcNetwork); - /** LinkedVpcNetwork uri. */ + /** NextHopVpcNetwork uri. */ public uri: string; - /** LinkedVpcNetwork excludeExportRanges. */ - public excludeExportRanges: string[]; - /** - * Creates a new LinkedVpcNetwork instance using the specified properties. + * Creates a new NextHopVpcNetwork instance using the specified properties. * @param [properties] Properties to set - * @returns LinkedVpcNetwork instance + * @returns NextHopVpcNetwork instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.ILinkedVpcNetwork): google.cloud.networkconnectivity.v1.LinkedVpcNetwork; + public static create(properties?: google.cloud.networkconnectivity.v1.INextHopVpcNetwork): google.cloud.networkconnectivity.v1.NextHopVpcNetwork; /** - * Encodes the specified LinkedVpcNetwork message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpcNetwork.verify|verify} messages. - * @param message LinkedVpcNetwork message or plain object to encode + * Encodes the specified NextHopVpcNetwork message. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopVpcNetwork.verify|verify} messages. + * @param message NextHopVpcNetwork message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.ILinkedVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.INextHopVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LinkedVpcNetwork message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpcNetwork.verify|verify} messages. - * @param message LinkedVpcNetwork message or plain object to encode + * Encodes the specified NextHopVpcNetwork message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopVpcNetwork.verify|verify} messages. + * @param message NextHopVpcNetwork message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.ILinkedVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.INextHopVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LinkedVpcNetwork message from the specified reader or buffer. + * Decodes a NextHopVpcNetwork message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LinkedVpcNetwork + * @returns NextHopVpcNetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.LinkedVpcNetwork; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.NextHopVpcNetwork; /** - * Decodes a LinkedVpcNetwork message from the specified reader or buffer, length delimited. + * Decodes a NextHopVpcNetwork message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LinkedVpcNetwork + * @returns NextHopVpcNetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.LinkedVpcNetwork; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.NextHopVpcNetwork; /** - * Verifies a LinkedVpcNetwork message. + * Verifies a NextHopVpcNetwork message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LinkedVpcNetwork message from a plain object. Also converts values to their respective internal types. + * Creates a NextHopVpcNetwork message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LinkedVpcNetwork + * @returns NextHopVpcNetwork */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.LinkedVpcNetwork; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.NextHopVpcNetwork; /** - * Creates a plain object from a LinkedVpcNetwork message. Also converts values to other types if specified. - * @param message LinkedVpcNetwork + * Creates a plain object from a NextHopVpcNetwork message. Also converts values to other types if specified. + * @param message NextHopVpcNetwork * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.LinkedVpcNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.NextHopVpcNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LinkedVpcNetwork to JSON. + * Converts this NextHopVpcNetwork to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LinkedVpcNetwork + * Gets the default type url for NextHopVpcNetwork * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RouterApplianceInstance. */ - interface IRouterApplianceInstance { + /** Properties of a NextHopVPNTunnel. */ + interface INextHopVPNTunnel { - /** RouterApplianceInstance virtualMachine */ - virtualMachine?: (string|null); + /** NextHopVPNTunnel uri */ + uri?: (string|null); - /** RouterApplianceInstance ipAddress */ - ipAddress?: (string|null); + /** NextHopVPNTunnel vpcNetwork */ + vpcNetwork?: (string|null); + + /** NextHopVPNTunnel siteToSiteDataTransfer */ + siteToSiteDataTransfer?: (boolean|null); } - /** Represents a RouterApplianceInstance. */ - class RouterApplianceInstance implements IRouterApplianceInstance { + /** Represents a NextHopVPNTunnel. */ + class NextHopVPNTunnel implements INextHopVPNTunnel { /** - * Constructs a new RouterApplianceInstance. + * Constructs a new NextHopVPNTunnel. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.IRouterApplianceInstance); + constructor(properties?: google.cloud.networkconnectivity.v1.INextHopVPNTunnel); - /** RouterApplianceInstance virtualMachine. */ - public virtualMachine: string; + /** NextHopVPNTunnel uri. */ + public uri: string; - /** RouterApplianceInstance ipAddress. */ - public ipAddress: string; + /** NextHopVPNTunnel vpcNetwork. */ + public vpcNetwork: string; + + /** NextHopVPNTunnel siteToSiteDataTransfer. */ + public siteToSiteDataTransfer: boolean; /** - * Creates a new RouterApplianceInstance instance using the specified properties. + * Creates a new NextHopVPNTunnel instance using the specified properties. * @param [properties] Properties to set - * @returns RouterApplianceInstance instance + * @returns NextHopVPNTunnel instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.IRouterApplianceInstance): google.cloud.networkconnectivity.v1.RouterApplianceInstance; + public static create(properties?: google.cloud.networkconnectivity.v1.INextHopVPNTunnel): google.cloud.networkconnectivity.v1.NextHopVPNTunnel; /** - * Encodes the specified RouterApplianceInstance message. Does not implicitly {@link google.cloud.networkconnectivity.v1.RouterApplianceInstance.verify|verify} messages. - * @param message RouterApplianceInstance message or plain object to encode + * Encodes the specified NextHopVPNTunnel message. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopVPNTunnel.verify|verify} messages. + * @param message NextHopVPNTunnel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.IRouterApplianceInstance, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.INextHopVPNTunnel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RouterApplianceInstance message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.RouterApplianceInstance.verify|verify} messages. - * @param message RouterApplianceInstance message or plain object to encode + * Encodes the specified NextHopVPNTunnel message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopVPNTunnel.verify|verify} messages. + * @param message NextHopVPNTunnel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IRouterApplianceInstance, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.INextHopVPNTunnel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterApplianceInstance message from the specified reader or buffer. + * Decodes a NextHopVPNTunnel message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterApplianceInstance + * @returns NextHopVPNTunnel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.RouterApplianceInstance; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.NextHopVPNTunnel; /** - * Decodes a RouterApplianceInstance message from the specified reader or buffer, length delimited. + * Decodes a NextHopVPNTunnel message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RouterApplianceInstance + * @returns NextHopVPNTunnel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.RouterApplianceInstance; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.NextHopVPNTunnel; /** - * Verifies a RouterApplianceInstance message. + * Verifies a NextHopVPNTunnel message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RouterApplianceInstance message from a plain object. Also converts values to their respective internal types. + * Creates a NextHopVPNTunnel message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterApplianceInstance + * @returns NextHopVPNTunnel */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.RouterApplianceInstance; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.NextHopVPNTunnel; /** - * Creates a plain object from a RouterApplianceInstance message. Also converts values to other types if specified. - * @param message RouterApplianceInstance + * Creates a plain object from a NextHopVPNTunnel message. Also converts values to other types if specified. + * @param message NextHopVPNTunnel * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.RouterApplianceInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.NextHopVPNTunnel, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterApplianceInstance to JSON. + * Converts this NextHopVPNTunnel to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RouterApplianceInstance + * Gets the default type url for NextHopVPNTunnel * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LocationMetadata. */ - interface ILocationMetadata { + /** Properties of a NextHopRouterApplianceInstance. */ + interface INextHopRouterApplianceInstance { - /** LocationMetadata locationFeatures */ - locationFeatures?: (google.cloud.networkconnectivity.v1.LocationFeature[]|null); + /** NextHopRouterApplianceInstance uri */ + uri?: (string|null); + + /** NextHopRouterApplianceInstance vpcNetwork */ + vpcNetwork?: (string|null); + + /** NextHopRouterApplianceInstance siteToSiteDataTransfer */ + siteToSiteDataTransfer?: (boolean|null); } - /** Represents a LocationMetadata. */ - class LocationMetadata implements ILocationMetadata { + /** Represents a NextHopRouterApplianceInstance. */ + class NextHopRouterApplianceInstance implements INextHopRouterApplianceInstance { /** - * Constructs a new LocationMetadata. + * Constructs a new NextHopRouterApplianceInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.ILocationMetadata); + constructor(properties?: google.cloud.networkconnectivity.v1.INextHopRouterApplianceInstance); - /** LocationMetadata locationFeatures. */ - public locationFeatures: google.cloud.networkconnectivity.v1.LocationFeature[]; + /** NextHopRouterApplianceInstance uri. */ + public uri: string; + + /** NextHopRouterApplianceInstance vpcNetwork. */ + public vpcNetwork: string; + + /** NextHopRouterApplianceInstance siteToSiteDataTransfer. */ + public siteToSiteDataTransfer: boolean; /** - * Creates a new LocationMetadata instance using the specified properties. + * Creates a new NextHopRouterApplianceInstance instance using the specified properties. * @param [properties] Properties to set - * @returns LocationMetadata instance + * @returns NextHopRouterApplianceInstance instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.ILocationMetadata): google.cloud.networkconnectivity.v1.LocationMetadata; + public static create(properties?: google.cloud.networkconnectivity.v1.INextHopRouterApplianceInstance): google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance; /** - * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LocationMetadata.verify|verify} messages. - * @param message LocationMetadata message or plain object to encode + * Encodes the specified NextHopRouterApplianceInstance message. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.verify|verify} messages. + * @param message NextHopRouterApplianceInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.INextHopRouterApplianceInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LocationMetadata.verify|verify} messages. - * @param message LocationMetadata message or plain object to encode + * Encodes the specified NextHopRouterApplianceInstance message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.verify|verify} messages. + * @param message NextHopRouterApplianceInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.INextHopRouterApplianceInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LocationMetadata message from the specified reader or buffer. + * Decodes a NextHopRouterApplianceInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LocationMetadata + * @returns NextHopRouterApplianceInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.LocationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance; /** - * Decodes a LocationMetadata message from the specified reader or buffer, length delimited. + * Decodes a NextHopRouterApplianceInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LocationMetadata + * @returns NextHopRouterApplianceInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.LocationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance; /** - * Verifies a LocationMetadata message. + * Verifies a NextHopRouterApplianceInstance message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a NextHopRouterApplianceInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LocationMetadata + * @returns NextHopRouterApplianceInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.LocationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance; /** - * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified. - * @param message LocationMetadata + * Creates a plain object from a NextHopRouterApplianceInstance message. Also converts values to other types if specified. + * @param message NextHopRouterApplianceInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.LocationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LocationMetadata to JSON. + * Converts this NextHopRouterApplianceInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LocationMetadata + * Gets the default type url for NextHopRouterApplianceInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NextHopVpcNetwork. */ - interface INextHopVpcNetwork { + /** Properties of a NextHopInterconnectAttachment. */ + interface INextHopInterconnectAttachment { - /** NextHopVpcNetwork uri */ + /** NextHopInterconnectAttachment uri */ uri?: (string|null); + + /** NextHopInterconnectAttachment vpcNetwork */ + vpcNetwork?: (string|null); + + /** NextHopInterconnectAttachment siteToSiteDataTransfer */ + siteToSiteDataTransfer?: (boolean|null); } - /** Represents a NextHopVpcNetwork. */ - class NextHopVpcNetwork implements INextHopVpcNetwork { + /** Represents a NextHopInterconnectAttachment. */ + class NextHopInterconnectAttachment implements INextHopInterconnectAttachment { /** - * Constructs a new NextHopVpcNetwork. + * Constructs a new NextHopInterconnectAttachment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.networkconnectivity.v1.INextHopVpcNetwork); + constructor(properties?: google.cloud.networkconnectivity.v1.INextHopInterconnectAttachment); - /** NextHopVpcNetwork uri. */ + /** NextHopInterconnectAttachment uri. */ public uri: string; + /** NextHopInterconnectAttachment vpcNetwork. */ + public vpcNetwork: string; + + /** NextHopInterconnectAttachment siteToSiteDataTransfer. */ + public siteToSiteDataTransfer: boolean; + /** - * Creates a new NextHopVpcNetwork instance using the specified properties. + * Creates a new NextHopInterconnectAttachment instance using the specified properties. * @param [properties] Properties to set - * @returns NextHopVpcNetwork instance + * @returns NextHopInterconnectAttachment instance */ - public static create(properties?: google.cloud.networkconnectivity.v1.INextHopVpcNetwork): google.cloud.networkconnectivity.v1.NextHopVpcNetwork; + public static create(properties?: google.cloud.networkconnectivity.v1.INextHopInterconnectAttachment): google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment; /** - * Encodes the specified NextHopVpcNetwork message. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopVpcNetwork.verify|verify} messages. - * @param message NextHopVpcNetwork message or plain object to encode + * Encodes the specified NextHopInterconnectAttachment message. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.verify|verify} messages. + * @param message NextHopInterconnectAttachment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.networkconnectivity.v1.INextHopVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.networkconnectivity.v1.INextHopInterconnectAttachment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NextHopVpcNetwork message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopVpcNetwork.verify|verify} messages. - * @param message NextHopVpcNetwork message or plain object to encode + * Encodes the specified NextHopInterconnectAttachment message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.verify|verify} messages. + * @param message NextHopInterconnectAttachment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.networkconnectivity.v1.INextHopVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.INextHopInterconnectAttachment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NextHopVpcNetwork message from the specified reader or buffer. + * Decodes a NextHopInterconnectAttachment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NextHopVpcNetwork + * @returns NextHopInterconnectAttachment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.NextHopVpcNetwork; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment; /** - * Decodes a NextHopVpcNetwork message from the specified reader or buffer, length delimited. + * Decodes a NextHopInterconnectAttachment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NextHopVpcNetwork + * @returns NextHopInterconnectAttachment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.NextHopVpcNetwork; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment; /** - * Verifies a NextHopVpcNetwork message. + * Verifies a NextHopInterconnectAttachment message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NextHopVpcNetwork message from a plain object. Also converts values to their respective internal types. + * Creates a NextHopInterconnectAttachment message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NextHopVpcNetwork + * @returns NextHopInterconnectAttachment */ - public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.NextHopVpcNetwork; + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment; /** - * Creates a plain object from a NextHopVpcNetwork message. Also converts values to other types if specified. - * @param message NextHopVpcNetwork + * Creates a plain object from a NextHopInterconnectAttachment message. Also converts values to other types if specified. + * @param message NextHopInterconnectAttachment * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.networkconnectivity.v1.NextHopVpcNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NextHopVpcNetwork to JSON. + * Converts this NextHopInterconnectAttachment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NextHopVpcNetwork + * Gets the default type url for NextHopInterconnectAttachment * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -5713,6 +6900,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an UpdateGroupRequest. */ + interface IUpdateGroupRequest { + + /** UpdateGroupRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateGroupRequest group */ + group?: (google.cloud.networkconnectivity.v1.IGroup|null); + + /** UpdateGroupRequest requestId */ + requestId?: (string|null); + } + + /** Represents an UpdateGroupRequest. */ + class UpdateGroupRequest implements IUpdateGroupRequest { + + /** + * Constructs a new UpdateGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.networkconnectivity.v1.IUpdateGroupRequest); + + /** UpdateGroupRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateGroupRequest group. */ + public group?: (google.cloud.networkconnectivity.v1.IGroup|null); + + /** UpdateGroupRequest requestId. */ + public requestId: string; + + /** + * Creates a new UpdateGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateGroupRequest instance + */ + public static create(properties?: google.cloud.networkconnectivity.v1.IUpdateGroupRequest): google.cloud.networkconnectivity.v1.UpdateGroupRequest; + + /** + * Encodes the specified UpdateGroupRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.UpdateGroupRequest.verify|verify} messages. + * @param message UpdateGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.networkconnectivity.v1.IUpdateGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateGroupRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.UpdateGroupRequest.verify|verify} messages. + * @param message UpdateGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.networkconnectivity.v1.IUpdateGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkconnectivity.v1.UpdateGroupRequest; + + /** + * Decodes an UpdateGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkconnectivity.v1.UpdateGroupRequest; + + /** + * Verifies an UpdateGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.UpdateGroupRequest; + + /** + * Creates a plain object from an UpdateGroupRequest message. Also converts values to other types if specified. + * @param message UpdateGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.networkconnectivity.v1.UpdateGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Represents a PolicyBasedRoutingService */ class PolicyBasedRoutingService extends $protobuf.rpc.Service { @@ -11208,6 +12504,115 @@ export namespace google { GA = 4, DEPRECATED = 5 } + + /** Properties of a FieldInfo. */ + interface IFieldInfo { + + /** FieldInfo format */ + format?: (google.api.FieldInfo.Format|keyof typeof google.api.FieldInfo.Format|null); + } + + /** Represents a FieldInfo. */ + class FieldInfo implements IFieldInfo { + + /** + * Constructs a new FieldInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IFieldInfo); + + /** FieldInfo format. */ + public format: (google.api.FieldInfo.Format|keyof typeof google.api.FieldInfo.Format); + + /** + * Creates a new FieldInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldInfo instance + */ + public static create(properties?: google.api.IFieldInfo): google.api.FieldInfo; + + /** + * Encodes the specified FieldInfo message. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages. + * @param message FieldInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldInfo message, length delimited. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages. + * @param message FieldInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.FieldInfo; + + /** + * Decodes a FieldInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.FieldInfo; + + /** + * Verifies a FieldInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FieldInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldInfo + */ + public static fromObject(object: { [k: string]: any }): google.api.FieldInfo; + + /** + * Creates a plain object from a FieldInfo message. Also converts values to other types if specified. + * @param message FieldInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.FieldInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FieldInfo { + + /** Format enum. */ + enum Format { + FORMAT_UNSPECIFIED = 0, + UUID4 = 1, + IPV4 = 2, + IPV6 = 3, + IPV4_OR_IPV6 = 4 + } + } } /** Namespace protobuf. */ @@ -13382,6 +14787,9 @@ export namespace google { /** FieldOptions .google.api.resourceReference */ ".google.api.resourceReference"?: (google.api.IResourceReference|null); + + /** FieldOptions .google.api.fieldInfo */ + ".google.api.fieldInfo"?: (google.api.IFieldInfo|null); } /** Represents a FieldOptions. */ diff --git a/packages/google-cloud-networkconnectivity/protos/protos.js b/packages/google-cloud-networkconnectivity/protos/protos.js index ced96f8a49c..323e1758a0b 100644 --- a/packages/google-cloud-networkconnectivity/protos/protos.js +++ b/packages/google-cloud-networkconnectivity/protos/protos.js @@ -648,6 +648,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.networkconnectivity.v1.HubService|queryHubStatus}. + * @memberof google.cloud.networkconnectivity.v1.HubService + * @typedef QueryHubStatusCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.networkconnectivity.v1.QueryHubStatusResponse} [response] QueryHubStatusResponse + */ + + /** + * Calls QueryHubStatus. + * @function queryHubStatus + * @memberof google.cloud.networkconnectivity.v1.HubService + * @instance + * @param {google.cloud.networkconnectivity.v1.IQueryHubStatusRequest} request QueryHubStatusRequest message or plain object + * @param {google.cloud.networkconnectivity.v1.HubService.QueryHubStatusCallback} callback Node-style callback called with the error, if any, and QueryHubStatusResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(HubService.prototype.queryHubStatus = function queryHubStatus(request, callback) { + return this.rpcCall(queryHubStatus, $root.google.cloud.networkconnectivity.v1.QueryHubStatusRequest, $root.google.cloud.networkconnectivity.v1.QueryHubStatusResponse, request, callback); + }, "name", { value: "QueryHubStatus" }); + + /** + * Calls QueryHubStatus. + * @function queryHubStatus + * @memberof google.cloud.networkconnectivity.v1.HubService + * @instance + * @param {google.cloud.networkconnectivity.v1.IQueryHubStatusRequest} request QueryHubStatusRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.networkconnectivity.v1.HubService|listSpokes}. * @memberof google.cloud.networkconnectivity.v1.HubService @@ -1077,6 +1110,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.networkconnectivity.v1.HubService|updateGroup}. + * @memberof google.cloud.networkconnectivity.v1.HubService + * @typedef UpdateGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdateGroup. + * @function updateGroup + * @memberof google.cloud.networkconnectivity.v1.HubService + * @instance + * @param {google.cloud.networkconnectivity.v1.IUpdateGroupRequest} request UpdateGroupRequest message or plain object + * @param {google.cloud.networkconnectivity.v1.HubService.UpdateGroupCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(HubService.prototype.updateGroup = function updateGroup(request, callback) { + return this.rpcCall(updateGroup, $root.google.cloud.networkconnectivity.v1.UpdateGroupRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateGroup" }); + + /** + * Calls UpdateGroup. + * @function updateGroup + * @memberof google.cloud.networkconnectivity.v1.HubService + * @instance + * @param {google.cloud.networkconnectivity.v1.IUpdateGroupRequest} request UpdateGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return HubService; })(); @@ -1103,12 +1169,14 @@ * @property {number} ROUTE_TYPE_UNSPECIFIED=0 ROUTE_TYPE_UNSPECIFIED value * @property {number} VPC_PRIMARY_SUBNET=1 VPC_PRIMARY_SUBNET value * @property {number} VPC_SECONDARY_SUBNET=2 VPC_SECONDARY_SUBNET value + * @property {number} DYNAMIC_ROUTE=3 DYNAMIC_ROUTE value */ v1.RouteType = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "ROUTE_TYPE_UNSPECIFIED"] = 0; values[valuesById[1] = "VPC_PRIMARY_SUBNET"] = 1; values[valuesById[2] = "VPC_SECONDARY_SUBNET"] = 2; + values[valuesById[3] = "DYNAMIC_ROUTE"] = 3; return values; })(); @@ -1149,6 +1217,7 @@ * @property {number} INTERCONNECT_ATTACHMENT=2 INTERCONNECT_ATTACHMENT value * @property {number} ROUTER_APPLIANCE=3 ROUTER_APPLIANCE value * @property {number} VPC_NETWORK=4 VPC_NETWORK value + * @property {number} PRODUCER_VPC_NETWORK=7 PRODUCER_VPC_NETWORK value */ v1.SpokeType = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -1157,6 +1226,37 @@ values[valuesById[2] = "INTERCONNECT_ATTACHMENT"] = 2; values[valuesById[3] = "ROUTER_APPLIANCE"] = 3; values[valuesById[4] = "VPC_NETWORK"] = 4; + values[valuesById[7] = "PRODUCER_VPC_NETWORK"] = 7; + return values; + })(); + + /** + * PolicyMode enum. + * @name google.cloud.networkconnectivity.v1.PolicyMode + * @enum {number} + * @property {number} POLICY_MODE_UNSPECIFIED=0 POLICY_MODE_UNSPECIFIED value + * @property {number} PRESET=1 PRESET value + */ + v1.PolicyMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "POLICY_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PRESET"] = 1; + return values; + })(); + + /** + * PresetTopology enum. + * @name google.cloud.networkconnectivity.v1.PresetTopology + * @enum {number} + * @property {number} PRESET_TOPOLOGY_UNSPECIFIED=0 PRESET_TOPOLOGY_UNSPECIFIED value + * @property {number} MESH=2 MESH value + * @property {number} STAR=3 STAR value + */ + v1.PresetTopology = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PRESET_TOPOLOGY_UNSPECIFIED"] = 0; + values[valuesById[2] = "MESH"] = 2; + values[valuesById[3] = "STAR"] = 3; return values; })(); @@ -1176,6 +1276,9 @@ * @property {Array.|null} [routingVpcs] Hub routingVpcs * @property {Array.|null} [routeTables] Hub routeTables * @property {google.cloud.networkconnectivity.v1.ISpokeSummary|null} [spokeSummary] Hub spokeSummary + * @property {google.cloud.networkconnectivity.v1.PolicyMode|null} [policyMode] Hub policyMode + * @property {google.cloud.networkconnectivity.v1.PresetTopology|null} [presetTopology] Hub presetTopology + * @property {boolean|null} [exportPsc] Hub exportPsc */ /** @@ -1276,6 +1379,44 @@ */ Hub.prototype.spokeSummary = null; + /** + * Hub policyMode. + * @member {google.cloud.networkconnectivity.v1.PolicyMode} policyMode + * @memberof google.cloud.networkconnectivity.v1.Hub + * @instance + */ + Hub.prototype.policyMode = 0; + + /** + * Hub presetTopology. + * @member {google.cloud.networkconnectivity.v1.PresetTopology} presetTopology + * @memberof google.cloud.networkconnectivity.v1.Hub + * @instance + */ + Hub.prototype.presetTopology = 0; + + /** + * Hub exportPsc. + * @member {boolean|null|undefined} exportPsc + * @memberof google.cloud.networkconnectivity.v1.Hub + * @instance + */ + Hub.prototype.exportPsc = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Hub _exportPsc. + * @member {"exportPsc"|undefined} _exportPsc + * @memberof google.cloud.networkconnectivity.v1.Hub + * @instance + */ + Object.defineProperty(Hub.prototype, "_exportPsc", { + get: $util.oneOfGetter($oneOfFields = ["exportPsc"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new Hub instance using the specified properties. * @function create @@ -1323,6 +1464,12 @@ writer.uint32(/* id 11, wireType 2 =*/90).string(message.routeTables[i]); if (message.spokeSummary != null && Object.hasOwnProperty.call(message, "spokeSummary")) $root.google.cloud.networkconnectivity.v1.SpokeSummary.encode(message.spokeSummary, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.policyMode != null && Object.hasOwnProperty.call(message, "policyMode")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.policyMode); + if (message.presetTopology != null && Object.hasOwnProperty.call(message, "presetTopology")) + writer.uint32(/* id 14, wireType 0 =*/112).int32(message.presetTopology); + if (message.exportPsc != null && Object.hasOwnProperty.call(message, "exportPsc")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.exportPsc); return writer; }; @@ -1420,6 +1567,18 @@ message.spokeSummary = $root.google.cloud.networkconnectivity.v1.SpokeSummary.decode(reader, reader.uint32()); break; } + case 13: { + message.policyMode = reader.int32(); + break; + } + case 14: { + message.presetTopology = reader.int32(); + break; + } + case 15: { + message.exportPsc = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -1455,6 +1614,7 @@ Hub.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -1518,6 +1678,28 @@ if (error) return "spokeSummary." + error; } + if (message.policyMode != null && message.hasOwnProperty("policyMode")) + switch (message.policyMode) { + default: + return "policyMode: enum value expected"; + case 0: + case 1: + break; + } + if (message.presetTopology != null && message.hasOwnProperty("presetTopology")) + switch (message.presetTopology) { + default: + return "presetTopology: enum value expected"; + case 0: + case 2: + case 3: + break; + } + if (message.exportPsc != null && message.hasOwnProperty("exportPsc")) { + properties._exportPsc = 1; + if (typeof message.exportPsc !== "boolean") + return "exportPsc: boolean expected"; + } return null; }; @@ -1622,6 +1804,44 @@ throw TypeError(".google.cloud.networkconnectivity.v1.Hub.spokeSummary: object expected"); message.spokeSummary = $root.google.cloud.networkconnectivity.v1.SpokeSummary.fromObject(object.spokeSummary); } + switch (object.policyMode) { + default: + if (typeof object.policyMode === "number") { + message.policyMode = object.policyMode; + break; + } + break; + case "POLICY_MODE_UNSPECIFIED": + case 0: + message.policyMode = 0; + break; + case "PRESET": + case 1: + message.policyMode = 1; + break; + } + switch (object.presetTopology) { + default: + if (typeof object.presetTopology === "number") { + message.presetTopology = object.presetTopology; + break; + } + break; + case "PRESET_TOPOLOGY_UNSPECIFIED": + case 0: + message.presetTopology = 0; + break; + case "MESH": + case 2: + message.presetTopology = 2; + break; + case "STAR": + case 3: + message.presetTopology = 3; + break; + } + if (object.exportPsc != null) + message.exportPsc = Boolean(object.exportPsc); return message; }; @@ -1652,6 +1872,8 @@ object.uniqueId = ""; object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; object.spokeSummary = null; + object.policyMode = options.enums === String ? "POLICY_MODE_UNSPECIFIED" : 0; + object.presetTopology = options.enums === String ? "PRESET_TOPOLOGY_UNSPECIFIED" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -1683,6 +1905,15 @@ } if (message.spokeSummary != null && message.hasOwnProperty("spokeSummary")) object.spokeSummary = $root.google.cloud.networkconnectivity.v1.SpokeSummary.toObject(message.spokeSummary, options); + if (message.policyMode != null && message.hasOwnProperty("policyMode")) + object.policyMode = options.enums === String ? $root.google.cloud.networkconnectivity.v1.PolicyMode[message.policyMode] === undefined ? message.policyMode : $root.google.cloud.networkconnectivity.v1.PolicyMode[message.policyMode] : message.policyMode; + if (message.presetTopology != null && message.hasOwnProperty("presetTopology")) + object.presetTopology = options.enums === String ? $root.google.cloud.networkconnectivity.v1.PresetTopology[message.presetTopology] === undefined ? message.presetTopology : $root.google.cloud.networkconnectivity.v1.PresetTopology[message.presetTopology] : message.presetTopology; + if (message.exportPsc != null && message.hasOwnProperty("exportPsc")) { + object.exportPsc = message.exportPsc; + if (options.oneofs) + object._exportPsc = "exportPsc"; + } return object; }; @@ -1959,6 +2190,7 @@ * @property {google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments|null} [linkedInterconnectAttachments] Spoke linkedInterconnectAttachments * @property {google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances|null} [linkedRouterApplianceInstances] Spoke linkedRouterApplianceInstances * @property {google.cloud.networkconnectivity.v1.ILinkedVpcNetwork|null} [linkedVpcNetwork] Spoke linkedVpcNetwork + * @property {google.cloud.networkconnectivity.v1.ILinkedProducerVpcNetwork|null} [linkedProducerVpcNetwork] Spoke linkedProducerVpcNetwork * @property {string|null} [uniqueId] Spoke uniqueId * @property {google.cloud.networkconnectivity.v1.State|null} [state] Spoke state * @property {Array.|null} [reasons] Spoke reasons @@ -2070,6 +2302,14 @@ */ Spoke.prototype.linkedVpcNetwork = null; + /** + * Spoke linkedProducerVpcNetwork. + * @member {google.cloud.networkconnectivity.v1.ILinkedProducerVpcNetwork|null|undefined} linkedProducerVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.Spoke + * @instance + */ + Spoke.prototype.linkedProducerVpcNetwork = null; + /** * Spoke uniqueId. * @member {string} uniqueId @@ -2158,6 +2398,8 @@ writer.uint32(/* id 22, wireType 0 =*/176).int32(message.spokeType); if (message.group != null && Object.hasOwnProperty.call(message, "group")) writer.uint32(/* id 23, wireType 2 =*/186).string(message.group); + if (message.linkedProducerVpcNetwork != null && Object.hasOwnProperty.call(message, "linkedProducerVpcNetwork")) + $root.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.encode(message.linkedProducerVpcNetwork, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); return writer; }; @@ -2255,6 +2497,10 @@ message.linkedVpcNetwork = $root.google.cloud.networkconnectivity.v1.LinkedVpcNetwork.decode(reader, reader.uint32()); break; } + case 26: { + message.linkedProducerVpcNetwork = $root.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.decode(reader, reader.uint32()); + break; + } case 11: { message.uniqueId = reader.string(); break; @@ -2358,6 +2604,11 @@ if (error) return "linkedVpcNetwork." + error; } + if (message.linkedProducerVpcNetwork != null && message.hasOwnProperty("linkedProducerVpcNetwork")) { + var error = $root.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.verify(message.linkedProducerVpcNetwork); + if (error) + return "linkedProducerVpcNetwork." + error; + } if (message.uniqueId != null && message.hasOwnProperty("uniqueId")) if (!$util.isString(message.uniqueId)) return "uniqueId: string expected"; @@ -2394,6 +2645,7 @@ case 2: case 3: case 4: + case 7: break; } return null; @@ -2456,6 +2708,11 @@ throw TypeError(".google.cloud.networkconnectivity.v1.Spoke.linkedVpcNetwork: object expected"); message.linkedVpcNetwork = $root.google.cloud.networkconnectivity.v1.LinkedVpcNetwork.fromObject(object.linkedVpcNetwork); } + if (object.linkedProducerVpcNetwork != null) { + if (typeof object.linkedProducerVpcNetwork !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.Spoke.linkedProducerVpcNetwork: object expected"); + message.linkedProducerVpcNetwork = $root.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.fromObject(object.linkedProducerVpcNetwork); + } if (object.uniqueId != null) message.uniqueId = String(object.uniqueId); switch (object.state) { @@ -2539,6 +2796,10 @@ case 4: message.spokeType = 4; break; + case "PRODUCER_VPC_NETWORK": + case 7: + message.spokeType = 7; + break; } return message; }; @@ -2574,6 +2835,7 @@ object.linkedVpcNetwork = null; object.spokeType = options.enums === String ? "SPOKE_TYPE_UNSPECIFIED" : 0; object.group = ""; + object.linkedProducerVpcNetwork = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -2612,6 +2874,8 @@ object.spokeType = options.enums === String ? $root.google.cloud.networkconnectivity.v1.SpokeType[message.spokeType] === undefined ? message.spokeType : $root.google.cloud.networkconnectivity.v1.SpokeType[message.spokeType] : message.spokeType; if (message.group != null && message.hasOwnProperty("group")) object.group = message.group; + if (message.linkedProducerVpcNetwork != null && message.hasOwnProperty("linkedProducerVpcNetwork")) + object.linkedProducerVpcNetwork = $root.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.toObject(message.linkedProducerVpcNetwork, options); return object; }; @@ -3408,6 +3672,10 @@ * @property {google.cloud.networkconnectivity.v1.State|null} [state] Route state * @property {string|null} [spoke] Route spoke * @property {string|null} [location] Route location + * @property {number|Long|null} [priority] Route priority + * @property {google.cloud.networkconnectivity.v1.INextHopVPNTunnel|null} [nextHopVpnTunnel] Route nextHopVpnTunnel + * @property {google.cloud.networkconnectivity.v1.INextHopRouterApplianceInstance|null} [nextHopRouterApplianceInstance] Route nextHopRouterApplianceInstance + * @property {google.cloud.networkconnectivity.v1.INextHopInterconnectAttachment|null} [nextHopInterconnectAttachment] Route nextHopInterconnectAttachment */ /** @@ -3522,6 +3790,38 @@ */ Route.prototype.location = ""; + /** + * Route priority. + * @member {number|Long} priority + * @memberof google.cloud.networkconnectivity.v1.Route + * @instance + */ + Route.prototype.priority = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Route nextHopVpnTunnel. + * @member {google.cloud.networkconnectivity.v1.INextHopVPNTunnel|null|undefined} nextHopVpnTunnel + * @memberof google.cloud.networkconnectivity.v1.Route + * @instance + */ + Route.prototype.nextHopVpnTunnel = null; + + /** + * Route nextHopRouterApplianceInstance. + * @member {google.cloud.networkconnectivity.v1.INextHopRouterApplianceInstance|null|undefined} nextHopRouterApplianceInstance + * @memberof google.cloud.networkconnectivity.v1.Route + * @instance + */ + Route.prototype.nextHopRouterApplianceInstance = null; + + /** + * Route nextHopInterconnectAttachment. + * @member {google.cloud.networkconnectivity.v1.INextHopInterconnectAttachment|null|undefined} nextHopInterconnectAttachment + * @memberof google.cloud.networkconnectivity.v1.Route + * @instance + */ + Route.prototype.nextHopInterconnectAttachment = null; + /** * Creates a new Route instance using the specified properties. * @function create @@ -3571,6 +3871,14 @@ writer.uint32(/* id 11, wireType 2 =*/90).string(message.spoke); if (message.location != null && Object.hasOwnProperty.call(message, "location")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.location); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 13, wireType 0 =*/104).int64(message.priority); + if (message.nextHopVpnTunnel != null && Object.hasOwnProperty.call(message, "nextHopVpnTunnel")) + $root.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.encode(message.nextHopVpnTunnel, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.nextHopRouterApplianceInstance != null && Object.hasOwnProperty.call(message, "nextHopRouterApplianceInstance")) + $root.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.encode(message.nextHopRouterApplianceInstance, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.nextHopInterconnectAttachment != null && Object.hasOwnProperty.call(message, "nextHopInterconnectAttachment")) + $root.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.encode(message.nextHopInterconnectAttachment, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); return writer; }; @@ -3672,6 +3980,22 @@ message.location = reader.string(); break; } + case 13: { + message.priority = reader.int64(); + break; + } + case 14: { + message.nextHopVpnTunnel = $root.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.decode(reader, reader.uint32()); + break; + } + case 15: { + message.nextHopRouterApplianceInstance = $root.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.decode(reader, reader.uint32()); + break; + } + case 16: { + message.nextHopInterconnectAttachment = $root.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -3730,6 +4054,7 @@ case 0: case 1: case 2: + case 3: break; } if (message.nextHopVpcNetwork != null && message.hasOwnProperty("nextHopVpcNetwork")) { @@ -3772,6 +4097,24 @@ if (message.location != null && message.hasOwnProperty("location")) if (!$util.isString(message.location)) return "location: string expected"; + if (message.priority != null && message.hasOwnProperty("priority")) + if (!$util.isInteger(message.priority) && !(message.priority && $util.isInteger(message.priority.low) && $util.isInteger(message.priority.high))) + return "priority: integer|Long expected"; + if (message.nextHopVpnTunnel != null && message.hasOwnProperty("nextHopVpnTunnel")) { + var error = $root.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.verify(message.nextHopVpnTunnel); + if (error) + return "nextHopVpnTunnel." + error; + } + if (message.nextHopRouterApplianceInstance != null && message.hasOwnProperty("nextHopRouterApplianceInstance")) { + var error = $root.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.verify(message.nextHopRouterApplianceInstance); + if (error) + return "nextHopRouterApplianceInstance." + error; + } + if (message.nextHopInterconnectAttachment != null && message.hasOwnProperty("nextHopInterconnectAttachment")) { + var error = $root.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.verify(message.nextHopInterconnectAttachment); + if (error) + return "nextHopInterconnectAttachment." + error; + } return null; }; @@ -3820,6 +4163,10 @@ case 2: message.type = 2; break; + case "DYNAMIC_ROUTE": + case 3: + message.type = 3; + break; } if (object.nextHopVpcNetwork != null) { if (typeof object.nextHopVpcNetwork !== "object") @@ -3885,6 +4232,30 @@ message.spoke = String(object.spoke); if (object.location != null) message.location = String(object.location); + if (object.priority != null) + if ($util.Long) + (message.priority = $util.Long.fromValue(object.priority)).unsigned = false; + else if (typeof object.priority === "string") + message.priority = parseInt(object.priority, 10); + else if (typeof object.priority === "number") + message.priority = object.priority; + else if (typeof object.priority === "object") + message.priority = new $util.LongBits(object.priority.low >>> 0, object.priority.high >>> 0).toNumber(); + if (object.nextHopVpnTunnel != null) { + if (typeof object.nextHopVpnTunnel !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.Route.nextHopVpnTunnel: object expected"); + message.nextHopVpnTunnel = $root.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.fromObject(object.nextHopVpnTunnel); + } + if (object.nextHopRouterApplianceInstance != null) { + if (typeof object.nextHopRouterApplianceInstance !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.Route.nextHopRouterApplianceInstance: object expected"); + message.nextHopRouterApplianceInstance = $root.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.fromObject(object.nextHopRouterApplianceInstance); + } + if (object.nextHopInterconnectAttachment != null) { + if (typeof object.nextHopInterconnectAttachment !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.Route.nextHopInterconnectAttachment: object expected"); + message.nextHopInterconnectAttachment = $root.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.fromObject(object.nextHopInterconnectAttachment); + } return message; }; @@ -3915,6 +4286,14 @@ object.type = options.enums === String ? "ROUTE_TYPE_UNSPECIFIED" : 0; object.spoke = ""; object.location = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.priority = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.priority = options.longs === String ? "0" : 0; + object.nextHopVpnTunnel = null; + object.nextHopRouterApplianceInstance = null; + object.nextHopInterconnectAttachment = null; } if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) object.ipCidrRange = message.ipCidrRange; @@ -3944,6 +4323,17 @@ object.spoke = message.spoke; if (message.location != null && message.hasOwnProperty("location")) object.location = message.location; + if (message.priority != null && message.hasOwnProperty("priority")) + if (typeof message.priority === "number") + object.priority = options.longs === String ? String(message.priority) : message.priority; + else + object.priority = options.longs === String ? $util.Long.prototype.toString.call(message.priority) : options.longs === Number ? new $util.LongBits(message.priority.low >>> 0, message.priority.high >>> 0).toNumber() : message.priority; + if (message.nextHopVpnTunnel != null && message.hasOwnProperty("nextHopVpnTunnel")) + object.nextHopVpnTunnel = $root.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.toObject(message.nextHopVpnTunnel, options); + if (message.nextHopRouterApplianceInstance != null && message.hasOwnProperty("nextHopRouterApplianceInstance")) + object.nextHopRouterApplianceInstance = $root.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.toObject(message.nextHopRouterApplianceInstance, options); + if (message.nextHopInterconnectAttachment != null && message.hasOwnProperty("nextHopInterconnectAttachment")) + object.nextHopInterconnectAttachment = $root.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.toObject(message.nextHopInterconnectAttachment, options); return object; }; @@ -3989,6 +4379,8 @@ * @property {string|null} [description] Group description * @property {string|null} [uid] Group uid * @property {google.cloud.networkconnectivity.v1.State|null} [state] Group state + * @property {google.cloud.networkconnectivity.v1.IAutoAccept|null} [autoAccept] Group autoAccept + * @property {string|null} [routeTable] Group routeTable */ /** @@ -4063,6 +4455,22 @@ */ Group.prototype.state = 0; + /** + * Group autoAccept. + * @member {google.cloud.networkconnectivity.v1.IAutoAccept|null|undefined} autoAccept + * @memberof google.cloud.networkconnectivity.v1.Group + * @instance + */ + Group.prototype.autoAccept = null; + + /** + * Group routeTable. + * @member {string} routeTable + * @memberof google.cloud.networkconnectivity.v1.Group + * @instance + */ + Group.prototype.routeTable = ""; + /** * Creates a new Group instance using the specified properties. * @function create @@ -4102,6 +4510,10 @@ writer.uint32(/* id 6, wireType 2 =*/50).string(message.uid); if (message.state != null && Object.hasOwnProperty.call(message, "state")) writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); + if (message.autoAccept != null && Object.hasOwnProperty.call(message, "autoAccept")) + $root.google.cloud.networkconnectivity.v1.AutoAccept.encode(message.autoAccept, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.routeTable != null && Object.hasOwnProperty.call(message, "routeTable")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.routeTable); return writer; }; @@ -4183,6 +4595,14 @@ message.state = reader.int32(); break; } + case 8: { + message.autoAccept = $root.google.cloud.networkconnectivity.v1.AutoAccept.decode(reader, reader.uint32()); + break; + } + case 9: { + message.routeTable = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -4260,6 +4680,14 @@ case 10: break; } + if (message.autoAccept != null && message.hasOwnProperty("autoAccept")) { + var error = $root.google.cloud.networkconnectivity.v1.AutoAccept.verify(message.autoAccept); + if (error) + return "autoAccept." + error; + } + if (message.routeTable != null && message.hasOwnProperty("routeTable")) + if (!$util.isString(message.routeTable)) + return "routeTable: string expected"; return null; }; @@ -4342,6 +4770,13 @@ message.state = 10; break; } + if (object.autoAccept != null) { + if (typeof object.autoAccept !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.Group.autoAccept: object expected"); + message.autoAccept = $root.google.cloud.networkconnectivity.v1.AutoAccept.fromObject(object.autoAccept); + } + if (object.routeTable != null) + message.routeTable = String(object.routeTable); return message; }; @@ -4367,6 +4802,8 @@ object.description = ""; object.uid = ""; object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.autoAccept = null; + object.routeTable = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -4386,6 +4823,10 @@ object.uid = message.uid; if (message.state != null && message.hasOwnProperty("state")) object.state = options.enums === String ? $root.google.cloud.networkconnectivity.v1.State[message.state] === undefined ? message.state : $root.google.cloud.networkconnectivity.v1.State[message.state] : message.state; + if (message.autoAccept != null && message.hasOwnProperty("autoAccept")) + object.autoAccept = $root.google.cloud.networkconnectivity.v1.AutoAccept.toObject(message.autoAccept, options); + if (message.routeTable != null && message.hasOwnProperty("routeTable")) + object.routeTable = message.routeTable; return object; }; @@ -4418,6 +4859,225 @@ return Group; })(); + v1.AutoAccept = (function() { + + /** + * Properties of an AutoAccept. + * @memberof google.cloud.networkconnectivity.v1 + * @interface IAutoAccept + * @property {Array.|null} [autoAcceptProjects] AutoAccept autoAcceptProjects + */ + + /** + * Constructs a new AutoAccept. + * @memberof google.cloud.networkconnectivity.v1 + * @classdesc Represents an AutoAccept. + * @implements IAutoAccept + * @constructor + * @param {google.cloud.networkconnectivity.v1.IAutoAccept=} [properties] Properties to set + */ + function AutoAccept(properties) { + this.autoAcceptProjects = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AutoAccept autoAcceptProjects. + * @member {Array.} autoAcceptProjects + * @memberof google.cloud.networkconnectivity.v1.AutoAccept + * @instance + */ + AutoAccept.prototype.autoAcceptProjects = $util.emptyArray; + + /** + * Creates a new AutoAccept instance using the specified properties. + * @function create + * @memberof google.cloud.networkconnectivity.v1.AutoAccept + * @static + * @param {google.cloud.networkconnectivity.v1.IAutoAccept=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.AutoAccept} AutoAccept instance + */ + AutoAccept.create = function create(properties) { + return new AutoAccept(properties); + }; + + /** + * Encodes the specified AutoAccept message. Does not implicitly {@link google.cloud.networkconnectivity.v1.AutoAccept.verify|verify} messages. + * @function encode + * @memberof google.cloud.networkconnectivity.v1.AutoAccept + * @static + * @param {google.cloud.networkconnectivity.v1.IAutoAccept} message AutoAccept message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoAccept.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.autoAcceptProjects != null && message.autoAcceptProjects.length) + for (var i = 0; i < message.autoAcceptProjects.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.autoAcceptProjects[i]); + return writer; + }; + + /** + * Encodes the specified AutoAccept message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.AutoAccept.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.networkconnectivity.v1.AutoAccept + * @static + * @param {google.cloud.networkconnectivity.v1.IAutoAccept} message AutoAccept message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoAccept.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoAccept message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.networkconnectivity.v1.AutoAccept + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.networkconnectivity.v1.AutoAccept} AutoAccept + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoAccept.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.AutoAccept(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.autoAcceptProjects && message.autoAcceptProjects.length)) + message.autoAcceptProjects = []; + message.autoAcceptProjects.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoAccept message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.networkconnectivity.v1.AutoAccept + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.networkconnectivity.v1.AutoAccept} AutoAccept + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoAccept.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoAccept message. + * @function verify + * @memberof google.cloud.networkconnectivity.v1.AutoAccept + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoAccept.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.autoAcceptProjects != null && message.hasOwnProperty("autoAcceptProjects")) { + if (!Array.isArray(message.autoAcceptProjects)) + return "autoAcceptProjects: array expected"; + for (var i = 0; i < message.autoAcceptProjects.length; ++i) + if (!$util.isString(message.autoAcceptProjects[i])) + return "autoAcceptProjects: string[] expected"; + } + return null; + }; + + /** + * Creates an AutoAccept message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.networkconnectivity.v1.AutoAccept + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.networkconnectivity.v1.AutoAccept} AutoAccept + */ + AutoAccept.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.AutoAccept) + return object; + var message = new $root.google.cloud.networkconnectivity.v1.AutoAccept(); + if (object.autoAcceptProjects) { + if (!Array.isArray(object.autoAcceptProjects)) + throw TypeError(".google.cloud.networkconnectivity.v1.AutoAccept.autoAcceptProjects: array expected"); + message.autoAcceptProjects = []; + for (var i = 0; i < object.autoAcceptProjects.length; ++i) + message.autoAcceptProjects[i] = String(object.autoAcceptProjects[i]); + } + return message; + }; + + /** + * Creates a plain object from an AutoAccept message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.networkconnectivity.v1.AutoAccept + * @static + * @param {google.cloud.networkconnectivity.v1.AutoAccept} message AutoAccept + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoAccept.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.autoAcceptProjects = []; + if (message.autoAcceptProjects && message.autoAcceptProjects.length) { + object.autoAcceptProjects = []; + for (var j = 0; j < message.autoAcceptProjects.length; ++j) + object.autoAcceptProjects[j] = message.autoAcceptProjects[j]; + } + return object; + }; + + /** + * Converts this AutoAccept to JSON. + * @function toJSON + * @memberof google.cloud.networkconnectivity.v1.AutoAccept + * @instance + * @returns {Object.} JSON object + */ + AutoAccept.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AutoAccept + * @function getTypeUrl + * @memberof google.cloud.networkconnectivity.v1.AutoAccept + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutoAccept.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.AutoAccept"; + }; + + return AutoAccept; + })(); + v1.ListHubsRequest = (function() { /** @@ -6657,28 +7317,29 @@ return ListHubSpokesResponse; })(); - v1.ListSpokesRequest = (function() { + v1.QueryHubStatusRequest = (function() { /** - * Properties of a ListSpokesRequest. + * Properties of a QueryHubStatusRequest. * @memberof google.cloud.networkconnectivity.v1 - * @interface IListSpokesRequest - * @property {string|null} [parent] ListSpokesRequest parent - * @property {number|null} [pageSize] ListSpokesRequest pageSize - * @property {string|null} [pageToken] ListSpokesRequest pageToken - * @property {string|null} [filter] ListSpokesRequest filter - * @property {string|null} [orderBy] ListSpokesRequest orderBy + * @interface IQueryHubStatusRequest + * @property {string|null} [name] QueryHubStatusRequest name + * @property {number|null} [pageSize] QueryHubStatusRequest pageSize + * @property {string|null} [pageToken] QueryHubStatusRequest pageToken + * @property {string|null} [filter] QueryHubStatusRequest filter + * @property {string|null} [orderBy] QueryHubStatusRequest orderBy + * @property {string|null} [groupBy] QueryHubStatusRequest groupBy */ /** - * Constructs a new ListSpokesRequest. + * Constructs a new QueryHubStatusRequest. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a ListSpokesRequest. - * @implements IListSpokesRequest + * @classdesc Represents a QueryHubStatusRequest. + * @implements IQueryHubStatusRequest * @constructor - * @param {google.cloud.networkconnectivity.v1.IListSpokesRequest=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IQueryHubStatusRequest=} [properties] Properties to set */ - function ListSpokesRequest(properties) { + function QueryHubStatusRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6686,71 +7347,79 @@ } /** - * ListSpokesRequest parent. - * @member {string} parent - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * QueryHubStatusRequest name. + * @member {string} name + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @instance */ - ListSpokesRequest.prototype.parent = ""; + QueryHubStatusRequest.prototype.name = ""; /** - * ListSpokesRequest pageSize. + * QueryHubStatusRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @instance */ - ListSpokesRequest.prototype.pageSize = 0; + QueryHubStatusRequest.prototype.pageSize = 0; /** - * ListSpokesRequest pageToken. + * QueryHubStatusRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @instance */ - ListSpokesRequest.prototype.pageToken = ""; + QueryHubStatusRequest.prototype.pageToken = ""; /** - * ListSpokesRequest filter. + * QueryHubStatusRequest filter. * @member {string} filter - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @instance */ - ListSpokesRequest.prototype.filter = ""; + QueryHubStatusRequest.prototype.filter = ""; /** - * ListSpokesRequest orderBy. + * QueryHubStatusRequest orderBy. * @member {string} orderBy - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @instance */ - ListSpokesRequest.prototype.orderBy = ""; + QueryHubStatusRequest.prototype.orderBy = ""; /** - * Creates a new ListSpokesRequest instance using the specified properties. + * QueryHubStatusRequest groupBy. + * @member {string} groupBy + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest + * @instance + */ + QueryHubStatusRequest.prototype.groupBy = ""; + + /** + * Creates a new QueryHubStatusRequest instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @static - * @param {google.cloud.networkconnectivity.v1.IListSpokesRequest=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.ListSpokesRequest} ListSpokesRequest instance + * @param {google.cloud.networkconnectivity.v1.IQueryHubStatusRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.QueryHubStatusRequest} QueryHubStatusRequest instance */ - ListSpokesRequest.create = function create(properties) { - return new ListSpokesRequest(properties); + QueryHubStatusRequest.create = function create(properties) { + return new QueryHubStatusRequest(properties); }; /** - * Encodes the specified ListSpokesRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesRequest.verify|verify} messages. + * Encodes the specified QueryHubStatusRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.QueryHubStatusRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @static - * @param {google.cloud.networkconnectivity.v1.IListSpokesRequest} message ListSpokesRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IQueryHubStatusRequest} message QueryHubStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSpokesRequest.encode = function encode(message, writer) { + QueryHubStatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -6759,42 +7428,44 @@ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.groupBy != null && Object.hasOwnProperty.call(message, "groupBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.groupBy); return writer; }; /** - * Encodes the specified ListSpokesRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesRequest.verify|verify} messages. + * Encodes the specified QueryHubStatusRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.QueryHubStatusRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @static - * @param {google.cloud.networkconnectivity.v1.IListSpokesRequest} message ListSpokesRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IQueryHubStatusRequest} message QueryHubStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSpokesRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryHubStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSpokesRequest message from the specified reader or buffer. + * Decodes a QueryHubStatusRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.ListSpokesRequest} ListSpokesRequest + * @returns {google.cloud.networkconnectivity.v1.QueryHubStatusRequest} QueryHubStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSpokesRequest.decode = function decode(reader, length) { + QueryHubStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListSpokesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.QueryHubStatusRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { @@ -6813,6 +7484,10 @@ message.orderBy = reader.string(); break; } + case 6: { + message.groupBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -6822,35 +7497,35 @@ }; /** - * Decodes a ListSpokesRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryHubStatusRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.ListSpokesRequest} ListSpokesRequest + * @returns {google.cloud.networkconnectivity.v1.QueryHubStatusRequest} QueryHubStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSpokesRequest.decodeDelimited = function decodeDelimited(reader) { + QueryHubStatusRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSpokesRequest message. + * Verifies a QueryHubStatusRequest message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSpokesRequest.verify = function verify(message) { + QueryHubStatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; if (message.pageSize != null && message.hasOwnProperty("pageSize")) if (!$util.isInteger(message.pageSize)) return "pageSize: integer expected"; @@ -6863,23 +7538,26 @@ if (message.orderBy != null && message.hasOwnProperty("orderBy")) if (!$util.isString(message.orderBy)) return "orderBy: string expected"; + if (message.groupBy != null && message.hasOwnProperty("groupBy")) + if (!$util.isString(message.groupBy)) + return "groupBy: string expected"; return null; }; /** - * Creates a ListSpokesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryHubStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.ListSpokesRequest} ListSpokesRequest + * @returns {google.cloud.networkconnectivity.v1.QueryHubStatusRequest} QueryHubStatusRequest */ - ListSpokesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.ListSpokesRequest) + QueryHubStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.QueryHubStatusRequest) return object; - var message = new $root.google.cloud.networkconnectivity.v1.ListSpokesRequest(); - if (object.parent != null) - message.parent = String(object.parent); + var message = new $root.google.cloud.networkconnectivity.v1.QueryHubStatusRequest(); + if (object.name != null) + message.name = String(object.name); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) @@ -6888,31 +7566,34 @@ message.filter = String(object.filter); if (object.orderBy != null) message.orderBy = String(object.orderBy); + if (object.groupBy != null) + message.groupBy = String(object.groupBy); return message; }; /** - * Creates a plain object from a ListSpokesRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryHubStatusRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @static - * @param {google.cloud.networkconnectivity.v1.ListSpokesRequest} message ListSpokesRequest + * @param {google.cloud.networkconnectivity.v1.QueryHubStatusRequest} message QueryHubStatusRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSpokesRequest.toObject = function toObject(message, options) { + QueryHubStatusRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; + object.name = ""; object.pageSize = 0; object.pageToken = ""; object.filter = ""; object.orderBy = ""; + object.groupBy = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) @@ -6921,60 +7602,60 @@ object.filter = message.filter; if (message.orderBy != null && message.hasOwnProperty("orderBy")) object.orderBy = message.orderBy; + if (message.groupBy != null && message.hasOwnProperty("groupBy")) + object.groupBy = message.groupBy; return object; }; /** - * Converts this ListSpokesRequest to JSON. + * Converts this QueryHubStatusRequest to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @instance * @returns {Object.} JSON object */ - ListSpokesRequest.prototype.toJSON = function toJSON() { + QueryHubStatusRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSpokesRequest + * Gets the default type url for QueryHubStatusRequest * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSpokesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryHubStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListSpokesRequest"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.QueryHubStatusRequest"; }; - return ListSpokesRequest; + return QueryHubStatusRequest; })(); - v1.ListSpokesResponse = (function() { + v1.QueryHubStatusResponse = (function() { /** - * Properties of a ListSpokesResponse. + * Properties of a QueryHubStatusResponse. * @memberof google.cloud.networkconnectivity.v1 - * @interface IListSpokesResponse - * @property {Array.|null} [spokes] ListSpokesResponse spokes - * @property {string|null} [nextPageToken] ListSpokesResponse nextPageToken - * @property {Array.|null} [unreachable] ListSpokesResponse unreachable + * @interface IQueryHubStatusResponse + * @property {Array.|null} [hubStatusEntries] QueryHubStatusResponse hubStatusEntries + * @property {string|null} [nextPageToken] QueryHubStatusResponse nextPageToken */ /** - * Constructs a new ListSpokesResponse. + * Constructs a new QueryHubStatusResponse. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a ListSpokesResponse. - * @implements IListSpokesResponse + * @classdesc Represents a QueryHubStatusResponse. + * @implements IQueryHubStatusResponse * @constructor - * @param {google.cloud.networkconnectivity.v1.IListSpokesResponse=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IQueryHubStatusResponse=} [properties] Properties to set */ - function ListSpokesResponse(properties) { - this.spokes = []; - this.unreachable = []; + function QueryHubStatusResponse(properties) { + this.hubStatusEntries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6982,111 +7663,94 @@ } /** - * ListSpokesResponse spokes. - * @member {Array.} spokes - * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse + * QueryHubStatusResponse hubStatusEntries. + * @member {Array.} hubStatusEntries + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusResponse * @instance */ - ListSpokesResponse.prototype.spokes = $util.emptyArray; + QueryHubStatusResponse.prototype.hubStatusEntries = $util.emptyArray; /** - * ListSpokesResponse nextPageToken. + * QueryHubStatusResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse - * @instance - */ - ListSpokesResponse.prototype.nextPageToken = ""; - - /** - * ListSpokesResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusResponse * @instance */ - ListSpokesResponse.prototype.unreachable = $util.emptyArray; + QueryHubStatusResponse.prototype.nextPageToken = ""; /** - * Creates a new ListSpokesResponse instance using the specified properties. + * Creates a new QueryHubStatusResponse instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusResponse * @static - * @param {google.cloud.networkconnectivity.v1.IListSpokesResponse=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.ListSpokesResponse} ListSpokesResponse instance + * @param {google.cloud.networkconnectivity.v1.IQueryHubStatusResponse=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.QueryHubStatusResponse} QueryHubStatusResponse instance */ - ListSpokesResponse.create = function create(properties) { - return new ListSpokesResponse(properties); + QueryHubStatusResponse.create = function create(properties) { + return new QueryHubStatusResponse(properties); }; /** - * Encodes the specified ListSpokesResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesResponse.verify|verify} messages. + * Encodes the specified QueryHubStatusResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.QueryHubStatusResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusResponse * @static - * @param {google.cloud.networkconnectivity.v1.IListSpokesResponse} message ListSpokesResponse message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IQueryHubStatusResponse} message QueryHubStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSpokesResponse.encode = function encode(message, writer) { + QueryHubStatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.spokes != null && message.spokes.length) - for (var i = 0; i < message.spokes.length; ++i) - $root.google.cloud.networkconnectivity.v1.Spoke.encode(message.spokes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.hubStatusEntries != null && message.hubStatusEntries.length) + for (var i = 0; i < message.hubStatusEntries.length; ++i) + $root.google.cloud.networkconnectivity.v1.HubStatusEntry.encode(message.hubStatusEntries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified ListSpokesResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesResponse.verify|verify} messages. + * Encodes the specified QueryHubStatusResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.QueryHubStatusResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusResponse * @static - * @param {google.cloud.networkconnectivity.v1.IListSpokesResponse} message ListSpokesResponse message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IQueryHubStatusResponse} message QueryHubStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSpokesResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryHubStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSpokesResponse message from the specified reader or buffer. + * Decodes a QueryHubStatusResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.ListSpokesResponse} ListSpokesResponse + * @returns {google.cloud.networkconnectivity.v1.QueryHubStatusResponse} QueryHubStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSpokesResponse.decode = function decode(reader, length) { + QueryHubStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListSpokesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.QueryHubStatusResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.spokes && message.spokes.length)) - message.spokes = []; - message.spokes.push($root.google.cloud.networkconnectivity.v1.Spoke.decode(reader, reader.uint32())); + if (!(message.hubStatusEntries && message.hubStatusEntries.length)) + message.hubStatusEntries = []; + message.hubStatusEntries.push($root.google.cloud.networkconnectivity.v1.HubStatusEntry.decode(reader, reader.uint32())); break; } case 2: { message.nextPageToken = reader.string(); break; } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); - break; - } default: reader.skipType(tag & 7); break; @@ -7096,169 +7760,150 @@ }; /** - * Decodes a ListSpokesResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryHubStatusResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.ListSpokesResponse} ListSpokesResponse + * @returns {google.cloud.networkconnectivity.v1.QueryHubStatusResponse} QueryHubStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSpokesResponse.decodeDelimited = function decodeDelimited(reader) { + QueryHubStatusResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSpokesResponse message. + * Verifies a QueryHubStatusResponse message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSpokesResponse.verify = function verify(message) { + QueryHubStatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.spokes != null && message.hasOwnProperty("spokes")) { - if (!Array.isArray(message.spokes)) - return "spokes: array expected"; - for (var i = 0; i < message.spokes.length; ++i) { - var error = $root.google.cloud.networkconnectivity.v1.Spoke.verify(message.spokes[i]); + if (message.hubStatusEntries != null && message.hasOwnProperty("hubStatusEntries")) { + if (!Array.isArray(message.hubStatusEntries)) + return "hubStatusEntries: array expected"; + for (var i = 0; i < message.hubStatusEntries.length; ++i) { + var error = $root.google.cloud.networkconnectivity.v1.HubStatusEntry.verify(message.hubStatusEntries[i]); if (error) - return "spokes." + error; + return "hubStatusEntries." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) if (!$util.isString(message.nextPageToken)) return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } return null; }; /** - * Creates a ListSpokesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryHubStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.ListSpokesResponse} ListSpokesResponse + * @returns {google.cloud.networkconnectivity.v1.QueryHubStatusResponse} QueryHubStatusResponse */ - ListSpokesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.ListSpokesResponse) + QueryHubStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.QueryHubStatusResponse) return object; - var message = new $root.google.cloud.networkconnectivity.v1.ListSpokesResponse(); - if (object.spokes) { - if (!Array.isArray(object.spokes)) - throw TypeError(".google.cloud.networkconnectivity.v1.ListSpokesResponse.spokes: array expected"); - message.spokes = []; - for (var i = 0; i < object.spokes.length; ++i) { - if (typeof object.spokes[i] !== "object") - throw TypeError(".google.cloud.networkconnectivity.v1.ListSpokesResponse.spokes: object expected"); - message.spokes[i] = $root.google.cloud.networkconnectivity.v1.Spoke.fromObject(object.spokes[i]); + var message = new $root.google.cloud.networkconnectivity.v1.QueryHubStatusResponse(); + if (object.hubStatusEntries) { + if (!Array.isArray(object.hubStatusEntries)) + throw TypeError(".google.cloud.networkconnectivity.v1.QueryHubStatusResponse.hubStatusEntries: array expected"); + message.hubStatusEntries = []; + for (var i = 0; i < object.hubStatusEntries.length; ++i) { + if (typeof object.hubStatusEntries[i] !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.QueryHubStatusResponse.hubStatusEntries: object expected"); + message.hubStatusEntries[i] = $root.google.cloud.networkconnectivity.v1.HubStatusEntry.fromObject(object.hubStatusEntries[i]); } } if (object.nextPageToken != null) message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.networkconnectivity.v1.ListSpokesResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } return message; }; /** - * Creates a plain object from a ListSpokesResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryHubStatusResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusResponse * @static - * @param {google.cloud.networkconnectivity.v1.ListSpokesResponse} message ListSpokesResponse + * @param {google.cloud.networkconnectivity.v1.QueryHubStatusResponse} message QueryHubStatusResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSpokesResponse.toObject = function toObject(message, options) { + QueryHubStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.spokes = []; - object.unreachable = []; - } + if (options.arrays || options.defaults) + object.hubStatusEntries = []; if (options.defaults) object.nextPageToken = ""; - if (message.spokes && message.spokes.length) { - object.spokes = []; - for (var j = 0; j < message.spokes.length; ++j) - object.spokes[j] = $root.google.cloud.networkconnectivity.v1.Spoke.toObject(message.spokes[j], options); + if (message.hubStatusEntries && message.hubStatusEntries.length) { + object.hubStatusEntries = []; + for (var j = 0; j < message.hubStatusEntries.length; ++j) + object.hubStatusEntries[j] = $root.google.cloud.networkconnectivity.v1.HubStatusEntry.toObject(message.hubStatusEntries[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; - } return object; }; /** - * Converts this ListSpokesResponse to JSON. + * Converts this QueryHubStatusResponse to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusResponse * @instance * @returns {Object.} JSON object */ - ListSpokesResponse.prototype.toJSON = function toJSON() { + QueryHubStatusResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSpokesResponse + * Gets the default type url for QueryHubStatusResponse * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse + * @memberof google.cloud.networkconnectivity.v1.QueryHubStatusResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSpokesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryHubStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListSpokesResponse"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.QueryHubStatusResponse"; }; - return ListSpokesResponse; + return QueryHubStatusResponse; })(); - v1.GetSpokeRequest = (function() { + v1.HubStatusEntry = (function() { /** - * Properties of a GetSpokeRequest. + * Properties of a HubStatusEntry. * @memberof google.cloud.networkconnectivity.v1 - * @interface IGetSpokeRequest - * @property {string|null} [name] GetSpokeRequest name + * @interface IHubStatusEntry + * @property {number|null} [count] HubStatusEntry count + * @property {string|null} [groupBy] HubStatusEntry groupBy + * @property {google.cloud.networkconnectivity.v1.IPscPropagationStatus|null} [pscPropagationStatus] HubStatusEntry pscPropagationStatus */ /** - * Constructs a new GetSpokeRequest. + * Constructs a new HubStatusEntry. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a GetSpokeRequest. - * @implements IGetSpokeRequest + * @classdesc Represents a HubStatusEntry. + * @implements IHubStatusEntry * @constructor - * @param {google.cloud.networkconnectivity.v1.IGetSpokeRequest=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IHubStatusEntry=} [properties] Properties to set */ - function GetSpokeRequest(properties) { + function HubStatusEntry(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7266,75 +7911,103 @@ } /** - * GetSpokeRequest name. - * @member {string} name - * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest + * HubStatusEntry count. + * @member {number} count + * @memberof google.cloud.networkconnectivity.v1.HubStatusEntry * @instance */ - GetSpokeRequest.prototype.name = ""; + HubStatusEntry.prototype.count = 0; /** - * Creates a new GetSpokeRequest instance using the specified properties. + * HubStatusEntry groupBy. + * @member {string} groupBy + * @memberof google.cloud.networkconnectivity.v1.HubStatusEntry + * @instance + */ + HubStatusEntry.prototype.groupBy = ""; + + /** + * HubStatusEntry pscPropagationStatus. + * @member {google.cloud.networkconnectivity.v1.IPscPropagationStatus|null|undefined} pscPropagationStatus + * @memberof google.cloud.networkconnectivity.v1.HubStatusEntry + * @instance + */ + HubStatusEntry.prototype.pscPropagationStatus = null; + + /** + * Creates a new HubStatusEntry instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.HubStatusEntry * @static - * @param {google.cloud.networkconnectivity.v1.IGetSpokeRequest=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.GetSpokeRequest} GetSpokeRequest instance + * @param {google.cloud.networkconnectivity.v1.IHubStatusEntry=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.HubStatusEntry} HubStatusEntry instance */ - GetSpokeRequest.create = function create(properties) { - return new GetSpokeRequest(properties); + HubStatusEntry.create = function create(properties) { + return new HubStatusEntry(properties); }; /** - * Encodes the specified GetSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetSpokeRequest.verify|verify} messages. + * Encodes the specified HubStatusEntry message. Does not implicitly {@link google.cloud.networkconnectivity.v1.HubStatusEntry.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.HubStatusEntry * @static - * @param {google.cloud.networkconnectivity.v1.IGetSpokeRequest} message GetSpokeRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IHubStatusEntry} message HubStatusEntry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSpokeRequest.encode = function encode(message, writer) { + HubStatusEntry.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.count); + if (message.groupBy != null && Object.hasOwnProperty.call(message, "groupBy")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.groupBy); + if (message.pscPropagationStatus != null && Object.hasOwnProperty.call(message, "pscPropagationStatus")) + $root.google.cloud.networkconnectivity.v1.PscPropagationStatus.encode(message.pscPropagationStatus, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetSpokeRequest.verify|verify} messages. + * Encodes the specified HubStatusEntry message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.HubStatusEntry.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.HubStatusEntry * @static - * @param {google.cloud.networkconnectivity.v1.IGetSpokeRequest} message GetSpokeRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IHubStatusEntry} message HubStatusEntry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSpokeRequest.encodeDelimited = function encodeDelimited(message, writer) { + HubStatusEntry.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSpokeRequest message from the specified reader or buffer. + * Decodes a HubStatusEntry message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.HubStatusEntry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.GetSpokeRequest} GetSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.HubStatusEntry} HubStatusEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSpokeRequest.decode = function decode(reader, length) { + HubStatusEntry.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.GetSpokeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.HubStatusEntry(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.count = reader.int32(); + break; + } + case 2: { + message.groupBy = reader.string(); + break; + } + case 3: { + message.pscPropagationStatus = $root.google.cloud.networkconnectivity.v1.PscPropagationStatus.decode(reader, reader.uint32()); break; } default: @@ -7346,125 +8019,150 @@ }; /** - * Decodes a GetSpokeRequest message from the specified reader or buffer, length delimited. + * Decodes a HubStatusEntry message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.HubStatusEntry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.GetSpokeRequest} GetSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.HubStatusEntry} HubStatusEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSpokeRequest.decodeDelimited = function decodeDelimited(reader) { + HubStatusEntry.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSpokeRequest message. + * Verifies a HubStatusEntry message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.HubStatusEntry * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSpokeRequest.verify = function verify(message) { + HubStatusEntry.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count)) + return "count: integer expected"; + if (message.groupBy != null && message.hasOwnProperty("groupBy")) + if (!$util.isString(message.groupBy)) + return "groupBy: string expected"; + if (message.pscPropagationStatus != null && message.hasOwnProperty("pscPropagationStatus")) { + var error = $root.google.cloud.networkconnectivity.v1.PscPropagationStatus.verify(message.pscPropagationStatus); + if (error) + return "pscPropagationStatus." + error; + } return null; }; /** - * Creates a GetSpokeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a HubStatusEntry message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.HubStatusEntry * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.GetSpokeRequest} GetSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.HubStatusEntry} HubStatusEntry */ - GetSpokeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.GetSpokeRequest) + HubStatusEntry.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.HubStatusEntry) return object; - var message = new $root.google.cloud.networkconnectivity.v1.GetSpokeRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.networkconnectivity.v1.HubStatusEntry(); + if (object.count != null) + message.count = object.count | 0; + if (object.groupBy != null) + message.groupBy = String(object.groupBy); + if (object.pscPropagationStatus != null) { + if (typeof object.pscPropagationStatus !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.HubStatusEntry.pscPropagationStatus: object expected"); + message.pscPropagationStatus = $root.google.cloud.networkconnectivity.v1.PscPropagationStatus.fromObject(object.pscPropagationStatus); + } return message; }; /** - * Creates a plain object from a GetSpokeRequest message. Also converts values to other types if specified. + * Creates a plain object from a HubStatusEntry message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.HubStatusEntry * @static - * @param {google.cloud.networkconnectivity.v1.GetSpokeRequest} message GetSpokeRequest + * @param {google.cloud.networkconnectivity.v1.HubStatusEntry} message HubStatusEntry * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSpokeRequest.toObject = function toObject(message, options) { + HubStatusEntry.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.count = 0; + object.groupBy = ""; + object.pscPropagationStatus = null; + } + if (message.count != null && message.hasOwnProperty("count")) + object.count = message.count; + if (message.groupBy != null && message.hasOwnProperty("groupBy")) + object.groupBy = message.groupBy; + if (message.pscPropagationStatus != null && message.hasOwnProperty("pscPropagationStatus")) + object.pscPropagationStatus = $root.google.cloud.networkconnectivity.v1.PscPropagationStatus.toObject(message.pscPropagationStatus, options); return object; }; /** - * Converts this GetSpokeRequest to JSON. + * Converts this HubStatusEntry to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.HubStatusEntry * @instance * @returns {Object.} JSON object */ - GetSpokeRequest.prototype.toJSON = function toJSON() { + HubStatusEntry.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSpokeRequest + * Gets the default type url for HubStatusEntry * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.HubStatusEntry * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSpokeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + HubStatusEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.GetSpokeRequest"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.HubStatusEntry"; }; - return GetSpokeRequest; + return HubStatusEntry; })(); - v1.CreateSpokeRequest = (function() { + v1.PscPropagationStatus = (function() { /** - * Properties of a CreateSpokeRequest. + * Properties of a PscPropagationStatus. * @memberof google.cloud.networkconnectivity.v1 - * @interface ICreateSpokeRequest - * @property {string|null} [parent] CreateSpokeRequest parent - * @property {string|null} [spokeId] CreateSpokeRequest spokeId - * @property {google.cloud.networkconnectivity.v1.ISpoke|null} [spoke] CreateSpokeRequest spoke - * @property {string|null} [requestId] CreateSpokeRequest requestId + * @interface IPscPropagationStatus + * @property {string|null} [sourceSpoke] PscPropagationStatus sourceSpoke + * @property {string|null} [sourceGroup] PscPropagationStatus sourceGroup + * @property {string|null} [sourceForwardingRule] PscPropagationStatus sourceForwardingRule + * @property {string|null} [targetSpoke] PscPropagationStatus targetSpoke + * @property {string|null} [targetGroup] PscPropagationStatus targetGroup + * @property {google.cloud.networkconnectivity.v1.PscPropagationStatus.Code|null} [code] PscPropagationStatus code + * @property {string|null} [message] PscPropagationStatus message */ /** - * Constructs a new CreateSpokeRequest. + * Constructs a new PscPropagationStatus. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a CreateSpokeRequest. - * @implements ICreateSpokeRequest + * @classdesc Represents a PscPropagationStatus. + * @implements IPscPropagationStatus * @constructor - * @param {google.cloud.networkconnectivity.v1.ICreateSpokeRequest=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IPscPropagationStatus=} [properties] Properties to set */ - function CreateSpokeRequest(properties) { + function PscPropagationStatus(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7472,117 +8170,159 @@ } /** - * CreateSpokeRequest parent. - * @member {string} parent - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * PscPropagationStatus sourceSpoke. + * @member {string} sourceSpoke + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @instance */ - CreateSpokeRequest.prototype.parent = ""; + PscPropagationStatus.prototype.sourceSpoke = ""; /** - * CreateSpokeRequest spokeId. - * @member {string} spokeId - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * PscPropagationStatus sourceGroup. + * @member {string} sourceGroup + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @instance */ - CreateSpokeRequest.prototype.spokeId = ""; + PscPropagationStatus.prototype.sourceGroup = ""; /** - * CreateSpokeRequest spoke. - * @member {google.cloud.networkconnectivity.v1.ISpoke|null|undefined} spoke - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * PscPropagationStatus sourceForwardingRule. + * @member {string} sourceForwardingRule + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @instance */ - CreateSpokeRequest.prototype.spoke = null; + PscPropagationStatus.prototype.sourceForwardingRule = ""; /** - * CreateSpokeRequest requestId. - * @member {string} requestId - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * PscPropagationStatus targetSpoke. + * @member {string} targetSpoke + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @instance */ - CreateSpokeRequest.prototype.requestId = ""; + PscPropagationStatus.prototype.targetSpoke = ""; /** - * Creates a new CreateSpokeRequest instance using the specified properties. + * PscPropagationStatus targetGroup. + * @member {string} targetGroup + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus + * @instance + */ + PscPropagationStatus.prototype.targetGroup = ""; + + /** + * PscPropagationStatus code. + * @member {google.cloud.networkconnectivity.v1.PscPropagationStatus.Code} code + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus + * @instance + */ + PscPropagationStatus.prototype.code = 0; + + /** + * PscPropagationStatus message. + * @member {string} message + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus + * @instance + */ + PscPropagationStatus.prototype.message = ""; + + /** + * Creates a new PscPropagationStatus instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @static - * @param {google.cloud.networkconnectivity.v1.ICreateSpokeRequest=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.CreateSpokeRequest} CreateSpokeRequest instance + * @param {google.cloud.networkconnectivity.v1.IPscPropagationStatus=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.PscPropagationStatus} PscPropagationStatus instance */ - CreateSpokeRequest.create = function create(properties) { - return new CreateSpokeRequest(properties); + PscPropagationStatus.create = function create(properties) { + return new PscPropagationStatus(properties); }; /** - * Encodes the specified CreateSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.CreateSpokeRequest.verify|verify} messages. + * Encodes the specified PscPropagationStatus message. Does not implicitly {@link google.cloud.networkconnectivity.v1.PscPropagationStatus.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @static - * @param {google.cloud.networkconnectivity.v1.ICreateSpokeRequest} message CreateSpokeRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IPscPropagationStatus} message PscPropagationStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSpokeRequest.encode = function encode(message, writer) { + PscPropagationStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.spokeId != null && Object.hasOwnProperty.call(message, "spokeId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.spokeId); - if (message.spoke != null && Object.hasOwnProperty.call(message, "spoke")) - $root.google.cloud.networkconnectivity.v1.Spoke.encode(message.spoke, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.sourceSpoke != null && Object.hasOwnProperty.call(message, "sourceSpoke")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceSpoke); + if (message.sourceGroup != null && Object.hasOwnProperty.call(message, "sourceGroup")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceGroup); + if (message.sourceForwardingRule != null && Object.hasOwnProperty.call(message, "sourceForwardingRule")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceForwardingRule); + if (message.targetSpoke != null && Object.hasOwnProperty.call(message, "targetSpoke")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.targetSpoke); + if (message.targetGroup != null && Object.hasOwnProperty.call(message, "targetGroup")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetGroup); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.message); return writer; }; /** - * Encodes the specified CreateSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.CreateSpokeRequest.verify|verify} messages. + * Encodes the specified PscPropagationStatus message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.PscPropagationStatus.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @static - * @param {google.cloud.networkconnectivity.v1.ICreateSpokeRequest} message CreateSpokeRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IPscPropagationStatus} message PscPropagationStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSpokeRequest.encodeDelimited = function encodeDelimited(message, writer) { + PscPropagationStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateSpokeRequest message from the specified reader or buffer. + * Decodes a PscPropagationStatus message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.CreateSpokeRequest} CreateSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.PscPropagationStatus} PscPropagationStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSpokeRequest.decode = function decode(reader, length) { + PscPropagationStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.CreateSpokeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.PscPropagationStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.sourceSpoke = reader.string(); break; } case 2: { - message.spokeId = reader.string(); + message.sourceGroup = reader.string(); break; } case 3: { - message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.decode(reader, reader.uint32()); + message.sourceForwardingRule = reader.string(); break; } case 4: { - message.requestId = reader.string(); + message.targetSpoke = reader.string(); + break; + } + case 5: { + message.targetGroup = reader.string(); + break; + } + case 6: { + message.code = reader.int32(); + break; + } + case 7: { + message.message = reader.string(); break; } default: @@ -7594,154 +8334,243 @@ }; /** - * Decodes a CreateSpokeRequest message from the specified reader or buffer, length delimited. + * Decodes a PscPropagationStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.CreateSpokeRequest} CreateSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.PscPropagationStatus} PscPropagationStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSpokeRequest.decodeDelimited = function decodeDelimited(reader) { + PscPropagationStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateSpokeRequest message. + * Verifies a PscPropagationStatus message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateSpokeRequest.verify = function verify(message) { + PscPropagationStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.spokeId != null && message.hasOwnProperty("spokeId")) - if (!$util.isString(message.spokeId)) - return "spokeId: string expected"; - if (message.spoke != null && message.hasOwnProperty("spoke")) { - var error = $root.google.cloud.networkconnectivity.v1.Spoke.verify(message.spoke); - if (error) - return "spoke." + error; - } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.sourceSpoke != null && message.hasOwnProperty("sourceSpoke")) + if (!$util.isString(message.sourceSpoke)) + return "sourceSpoke: string expected"; + if (message.sourceGroup != null && message.hasOwnProperty("sourceGroup")) + if (!$util.isString(message.sourceGroup)) + return "sourceGroup: string expected"; + if (message.sourceForwardingRule != null && message.hasOwnProperty("sourceForwardingRule")) + if (!$util.isString(message.sourceForwardingRule)) + return "sourceForwardingRule: string expected"; + if (message.targetSpoke != null && message.hasOwnProperty("targetSpoke")) + if (!$util.isString(message.targetSpoke)) + return "targetSpoke: string expected"; + if (message.targetGroup != null && message.hasOwnProperty("targetGroup")) + if (!$util.isString(message.targetGroup)) + return "targetGroup: string expected"; + if (message.code != null && message.hasOwnProperty("code")) + switch (message.code) { + default: + return "code: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; return null; }; /** - * Creates a CreateSpokeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PscPropagationStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.CreateSpokeRequest} CreateSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.PscPropagationStatus} PscPropagationStatus */ - CreateSpokeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.CreateSpokeRequest) + PscPropagationStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.PscPropagationStatus) return object; - var message = new $root.google.cloud.networkconnectivity.v1.CreateSpokeRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.spokeId != null) - message.spokeId = String(object.spokeId); - if (object.spoke != null) { - if (typeof object.spoke !== "object") - throw TypeError(".google.cloud.networkconnectivity.v1.CreateSpokeRequest.spoke: object expected"); - message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.fromObject(object.spoke); + var message = new $root.google.cloud.networkconnectivity.v1.PscPropagationStatus(); + if (object.sourceSpoke != null) + message.sourceSpoke = String(object.sourceSpoke); + if (object.sourceGroup != null) + message.sourceGroup = String(object.sourceGroup); + if (object.sourceForwardingRule != null) + message.sourceForwardingRule = String(object.sourceForwardingRule); + if (object.targetSpoke != null) + message.targetSpoke = String(object.targetSpoke); + if (object.targetGroup != null) + message.targetGroup = String(object.targetGroup); + switch (object.code) { + default: + if (typeof object.code === "number") { + message.code = object.code; + break; + } + break; + case "CODE_UNSPECIFIED": + case 0: + message.code = 0; + break; + case "READY": + case 1: + message.code = 1; + break; + case "PROPAGATING": + case 2: + message.code = 2; + break; + case "ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED": + case 3: + message.code = 3; + break; + case "ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED": + case 4: + message.code = 4; + break; + case "ERROR_PRODUCER_QUOTA_EXCEEDED": + case 5: + message.code = 5; + break; + case "ERROR_CONSUMER_QUOTA_EXCEEDED": + case 6: + message.code = 6; + break; } - if (object.requestId != null) - message.requestId = String(object.requestId); + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a CreateSpokeRequest message. Also converts values to other types if specified. + * Creates a plain object from a PscPropagationStatus message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @static - * @param {google.cloud.networkconnectivity.v1.CreateSpokeRequest} message CreateSpokeRequest + * @param {google.cloud.networkconnectivity.v1.PscPropagationStatus} message PscPropagationStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateSpokeRequest.toObject = function toObject(message, options) { + PscPropagationStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.spokeId = ""; - object.spoke = null; - object.requestId = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.spokeId != null && message.hasOwnProperty("spokeId")) - object.spokeId = message.spokeId; - if (message.spoke != null && message.hasOwnProperty("spoke")) - object.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.toObject(message.spoke, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + object.sourceSpoke = ""; + object.sourceGroup = ""; + object.sourceForwardingRule = ""; + object.targetSpoke = ""; + object.targetGroup = ""; + object.code = options.enums === String ? "CODE_UNSPECIFIED" : 0; + object.message = ""; + } + if (message.sourceSpoke != null && message.hasOwnProperty("sourceSpoke")) + object.sourceSpoke = message.sourceSpoke; + if (message.sourceGroup != null && message.hasOwnProperty("sourceGroup")) + object.sourceGroup = message.sourceGroup; + if (message.sourceForwardingRule != null && message.hasOwnProperty("sourceForwardingRule")) + object.sourceForwardingRule = message.sourceForwardingRule; + if (message.targetSpoke != null && message.hasOwnProperty("targetSpoke")) + object.targetSpoke = message.targetSpoke; + if (message.targetGroup != null && message.hasOwnProperty("targetGroup")) + object.targetGroup = message.targetGroup; + if (message.code != null && message.hasOwnProperty("code")) + object.code = options.enums === String ? $root.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code[message.code] === undefined ? message.code : $root.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code[message.code] : message.code; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; return object; }; /** - * Converts this CreateSpokeRequest to JSON. + * Converts this PscPropagationStatus to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @instance * @returns {Object.} JSON object */ - CreateSpokeRequest.prototype.toJSON = function toJSON() { + PscPropagationStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateSpokeRequest + * Gets the default type url for PscPropagationStatus * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.PscPropagationStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateSpokeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PscPropagationStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.CreateSpokeRequest"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.PscPropagationStatus"; }; - return CreateSpokeRequest; + /** + * Code enum. + * @name google.cloud.networkconnectivity.v1.PscPropagationStatus.Code + * @enum {number} + * @property {number} CODE_UNSPECIFIED=0 CODE_UNSPECIFIED value + * @property {number} READY=1 READY value + * @property {number} PROPAGATING=2 PROPAGATING value + * @property {number} ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED=3 ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED value + * @property {number} ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED=4 ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED value + * @property {number} ERROR_PRODUCER_QUOTA_EXCEEDED=5 ERROR_PRODUCER_QUOTA_EXCEEDED value + * @property {number} ERROR_CONSUMER_QUOTA_EXCEEDED=6 ERROR_CONSUMER_QUOTA_EXCEEDED value + */ + PscPropagationStatus.Code = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "READY"] = 1; + values[valuesById[2] = "PROPAGATING"] = 2; + values[valuesById[3] = "ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED"] = 3; + values[valuesById[4] = "ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED"] = 4; + values[valuesById[5] = "ERROR_PRODUCER_QUOTA_EXCEEDED"] = 5; + values[valuesById[6] = "ERROR_CONSUMER_QUOTA_EXCEEDED"] = 6; + return values; + })(); + + return PscPropagationStatus; })(); - v1.UpdateSpokeRequest = (function() { + v1.ListSpokesRequest = (function() { /** - * Properties of an UpdateSpokeRequest. + * Properties of a ListSpokesRequest. * @memberof google.cloud.networkconnectivity.v1 - * @interface IUpdateSpokeRequest - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSpokeRequest updateMask - * @property {google.cloud.networkconnectivity.v1.ISpoke|null} [spoke] UpdateSpokeRequest spoke - * @property {string|null} [requestId] UpdateSpokeRequest requestId + * @interface IListSpokesRequest + * @property {string|null} [parent] ListSpokesRequest parent + * @property {number|null} [pageSize] ListSpokesRequest pageSize + * @property {string|null} [pageToken] ListSpokesRequest pageToken + * @property {string|null} [filter] ListSpokesRequest filter + * @property {string|null} [orderBy] ListSpokesRequest orderBy */ /** - * Constructs a new UpdateSpokeRequest. + * Constructs a new ListSpokesRequest. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents an UpdateSpokeRequest. - * @implements IUpdateSpokeRequest + * @classdesc Represents a ListSpokesRequest. + * @implements IListSpokesRequest * @constructor - * @param {google.cloud.networkconnectivity.v1.IUpdateSpokeRequest=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IListSpokesRequest=} [properties] Properties to set */ - function UpdateSpokeRequest(properties) { + function ListSpokesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7749,103 +8578,131 @@ } /** - * UpdateSpokeRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest + * ListSpokesRequest parent. + * @member {string} parent + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest * @instance */ - UpdateSpokeRequest.prototype.updateMask = null; + ListSpokesRequest.prototype.parent = ""; /** - * UpdateSpokeRequest spoke. - * @member {google.cloud.networkconnectivity.v1.ISpoke|null|undefined} spoke - * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest + * ListSpokesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest * @instance */ - UpdateSpokeRequest.prototype.spoke = null; + ListSpokesRequest.prototype.pageSize = 0; /** - * UpdateSpokeRequest requestId. - * @member {string} requestId - * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest + * ListSpokesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest * @instance */ - UpdateSpokeRequest.prototype.requestId = ""; + ListSpokesRequest.prototype.pageToken = ""; /** - * Creates a new UpdateSpokeRequest instance using the specified properties. + * ListSpokesRequest filter. + * @member {string} filter + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @instance + */ + ListSpokesRequest.prototype.filter = ""; + + /** + * ListSpokesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest + * @instance + */ + ListSpokesRequest.prototype.orderBy = ""; + + /** + * Creates a new ListSpokesRequest instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest * @static - * @param {google.cloud.networkconnectivity.v1.IUpdateSpokeRequest=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.UpdateSpokeRequest} UpdateSpokeRequest instance + * @param {google.cloud.networkconnectivity.v1.IListSpokesRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.ListSpokesRequest} ListSpokesRequest instance */ - UpdateSpokeRequest.create = function create(properties) { - return new UpdateSpokeRequest(properties); + ListSpokesRequest.create = function create(properties) { + return new ListSpokesRequest(properties); }; /** - * Encodes the specified UpdateSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.UpdateSpokeRequest.verify|verify} messages. + * Encodes the specified ListSpokesRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest * @static - * @param {google.cloud.networkconnectivity.v1.IUpdateSpokeRequest} message UpdateSpokeRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IListSpokesRequest} message ListSpokesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSpokeRequest.encode = function encode(message, writer) { + ListSpokesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.spoke != null && Object.hasOwnProperty.call(message, "spoke")) - $root.google.cloud.networkconnectivity.v1.Spoke.encode(message.spoke, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified UpdateSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.UpdateSpokeRequest.verify|verify} messages. + * Encodes the specified ListSpokesRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest * @static - * @param {google.cloud.networkconnectivity.v1.IUpdateSpokeRequest} message UpdateSpokeRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IListSpokesRequest} message ListSpokesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSpokeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSpokesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateSpokeRequest message from the specified reader or buffer. + * Decodes a ListSpokesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.UpdateSpokeRequest} UpdateSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.ListSpokesRequest} ListSpokesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSpokeRequest.decode = function decode(reader, length) { + ListSpokesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListSpokesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; } case 3: { - message.requestId = reader.string(); + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -7857,150 +8714,159 @@ }; /** - * Decodes an UpdateSpokeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSpokesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.UpdateSpokeRequest} UpdateSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.ListSpokesRequest} ListSpokesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSpokeRequest.decodeDelimited = function decodeDelimited(reader) { + ListSpokesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateSpokeRequest message. + * Verifies a ListSpokesRequest message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateSpokeRequest.verify = function verify(message) { + ListSpokesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.spoke != null && message.hasOwnProperty("spoke")) { - var error = $root.google.cloud.networkconnectivity.v1.Spoke.verify(message.spoke); - if (error) - return "spoke." + error; - } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates an UpdateSpokeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSpokesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.UpdateSpokeRequest} UpdateSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.ListSpokesRequest} ListSpokesRequest */ - UpdateSpokeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) + ListSpokesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.ListSpokesRequest) return object; - var message = new $root.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.networkconnectivity.v1.UpdateSpokeRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.spoke != null) { - if (typeof object.spoke !== "object") - throw TypeError(".google.cloud.networkconnectivity.v1.UpdateSpokeRequest.spoke: object expected"); - message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.fromObject(object.spoke); - } - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.networkconnectivity.v1.ListSpokesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from an UpdateSpokeRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSpokesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest * @static - * @param {google.cloud.networkconnectivity.v1.UpdateSpokeRequest} message UpdateSpokeRequest + * @param {google.cloud.networkconnectivity.v1.ListSpokesRequest} message ListSpokesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateSpokeRequest.toObject = function toObject(message, options) { + ListSpokesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.updateMask = null; - object.spoke = null; - object.requestId = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.spoke != null && message.hasOwnProperty("spoke")) - object.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.toObject(message.spoke, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this UpdateSpokeRequest to JSON. + * Converts this ListSpokesRequest to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest * @instance * @returns {Object.} JSON object */ - UpdateSpokeRequest.prototype.toJSON = function toJSON() { + ListSpokesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateSpokeRequest + * Gets the default type url for ListSpokesRequest * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateSpokeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSpokesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.UpdateSpokeRequest"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListSpokesRequest"; }; - return UpdateSpokeRequest; + return ListSpokesRequest; })(); - v1.DeleteSpokeRequest = (function() { + v1.ListSpokesResponse = (function() { /** - * Properties of a DeleteSpokeRequest. + * Properties of a ListSpokesResponse. * @memberof google.cloud.networkconnectivity.v1 - * @interface IDeleteSpokeRequest - * @property {string|null} [name] DeleteSpokeRequest name - * @property {string|null} [requestId] DeleteSpokeRequest requestId + * @interface IListSpokesResponse + * @property {Array.|null} [spokes] ListSpokesResponse spokes + * @property {string|null} [nextPageToken] ListSpokesResponse nextPageToken + * @property {Array.|null} [unreachable] ListSpokesResponse unreachable */ /** - * Constructs a new DeleteSpokeRequest. + * Constructs a new ListSpokesResponse. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a DeleteSpokeRequest. - * @implements IDeleteSpokeRequest + * @classdesc Represents a ListSpokesResponse. + * @implements IListSpokesResponse * @constructor - * @param {google.cloud.networkconnectivity.v1.IDeleteSpokeRequest=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IListSpokesResponse=} [properties] Properties to set */ - function DeleteSpokeRequest(properties) { + function ListSpokesResponse(properties) { + this.spokes = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8008,89 +8874,109 @@ } /** - * DeleteSpokeRequest name. - * @member {string} name - * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest + * ListSpokesResponse spokes. + * @member {Array.} spokes + * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse * @instance */ - DeleteSpokeRequest.prototype.name = ""; + ListSpokesResponse.prototype.spokes = $util.emptyArray; /** - * DeleteSpokeRequest requestId. - * @member {string} requestId - * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest + * ListSpokesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse * @instance */ - DeleteSpokeRequest.prototype.requestId = ""; + ListSpokesResponse.prototype.nextPageToken = ""; /** - * Creates a new DeleteSpokeRequest instance using the specified properties. + * ListSpokesResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse + * @instance + */ + ListSpokesResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListSpokesResponse instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse * @static - * @param {google.cloud.networkconnectivity.v1.IDeleteSpokeRequest=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.DeleteSpokeRequest} DeleteSpokeRequest instance + * @param {google.cloud.networkconnectivity.v1.IListSpokesResponse=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.ListSpokesResponse} ListSpokesResponse instance */ - DeleteSpokeRequest.create = function create(properties) { - return new DeleteSpokeRequest(properties); + ListSpokesResponse.create = function create(properties) { + return new ListSpokesResponse(properties); }; /** - * Encodes the specified DeleteSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.DeleteSpokeRequest.verify|verify} messages. + * Encodes the specified ListSpokesResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse * @static - * @param {google.cloud.networkconnectivity.v1.IDeleteSpokeRequest} message DeleteSpokeRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IListSpokesResponse} message ListSpokesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSpokeRequest.encode = function encode(message, writer) { + ListSpokesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.spokes != null && message.spokes.length) + for (var i = 0; i < message.spokes.length; ++i) + $root.google.cloud.networkconnectivity.v1.Spoke.encode(message.spokes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified DeleteSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.DeleteSpokeRequest.verify|verify} messages. + * Encodes the specified ListSpokesResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListSpokesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse * @static - * @param {google.cloud.networkconnectivity.v1.IDeleteSpokeRequest} message DeleteSpokeRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IListSpokesResponse} message ListSpokesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSpokeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSpokesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSpokeRequest message from the specified reader or buffer. + * Decodes a ListSpokesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.DeleteSpokeRequest} DeleteSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.ListSpokesResponse} ListSpokesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSpokeRequest.decode = function decode(reader, length) { + ListSpokesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListSpokesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.spokes && message.spokes.length)) + message.spokes = []; + message.spokes.push($root.google.cloud.networkconnectivity.v1.Spoke.decode(reader, reader.uint32())); break; } case 2: { - message.requestId = reader.string(); + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -8102,133 +8988,169 @@ }; /** - * Decodes a DeleteSpokeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSpokesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.DeleteSpokeRequest} DeleteSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.ListSpokesResponse} ListSpokesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSpokeRequest.decodeDelimited = function decodeDelimited(reader) { + ListSpokesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteSpokeRequest message. + * Verifies a ListSpokesResponse message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteSpokeRequest.verify = function verify(message) { + ListSpokesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.spokes != null && message.hasOwnProperty("spokes")) { + if (!Array.isArray(message.spokes)) + return "spokes: array expected"; + for (var i = 0; i < message.spokes.length; ++i) { + var error = $root.google.cloud.networkconnectivity.v1.Spoke.verify(message.spokes[i]); + if (error) + return "spokes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } return null; }; /** - * Creates a DeleteSpokeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSpokesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.DeleteSpokeRequest} DeleteSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.ListSpokesResponse} ListSpokesResponse */ - DeleteSpokeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) + ListSpokesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.ListSpokesResponse) return object; - var message = new $root.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.networkconnectivity.v1.ListSpokesResponse(); + if (object.spokes) { + if (!Array.isArray(object.spokes)) + throw TypeError(".google.cloud.networkconnectivity.v1.ListSpokesResponse.spokes: array expected"); + message.spokes = []; + for (var i = 0; i < object.spokes.length; ++i) { + if (typeof object.spokes[i] !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.ListSpokesResponse.spokes: object expected"); + message.spokes[i] = $root.google.cloud.networkconnectivity.v1.Spoke.fromObject(object.spokes[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.networkconnectivity.v1.ListSpokesResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from a DeleteSpokeRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSpokesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse * @static - * @param {google.cloud.networkconnectivity.v1.DeleteSpokeRequest} message DeleteSpokeRequest + * @param {google.cloud.networkconnectivity.v1.ListSpokesResponse} message ListSpokesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSpokeRequest.toObject = function toObject(message, options) { + ListSpokesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.requestId = ""; + if (options.arrays || options.defaults) { + object.spokes = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.spokes && message.spokes.length) { + object.spokes = []; + for (var j = 0; j < message.spokes.length; ++j) + object.spokes[j] = $root.google.cloud.networkconnectivity.v1.Spoke.toObject(message.spokes[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; return object; }; /** - * Converts this DeleteSpokeRequest to JSON. + * Converts this ListSpokesResponse to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse * @instance * @returns {Object.} JSON object */ - DeleteSpokeRequest.prototype.toJSON = function toJSON() { + ListSpokesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteSpokeRequest + * Gets the default type url for ListSpokesResponse * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.ListSpokesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteSpokeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSpokesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.DeleteSpokeRequest"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListSpokesResponse"; }; - return DeleteSpokeRequest; + return ListSpokesResponse; })(); - v1.AcceptHubSpokeRequest = (function() { + v1.GetSpokeRequest = (function() { /** - * Properties of an AcceptHubSpokeRequest. + * Properties of a GetSpokeRequest. * @memberof google.cloud.networkconnectivity.v1 - * @interface IAcceptHubSpokeRequest - * @property {string|null} [name] AcceptHubSpokeRequest name - * @property {string|null} [spokeUri] AcceptHubSpokeRequest spokeUri - * @property {string|null} [requestId] AcceptHubSpokeRequest requestId + * @interface IGetSpokeRequest + * @property {string|null} [name] GetSpokeRequest name */ /** - * Constructs a new AcceptHubSpokeRequest. + * Constructs a new GetSpokeRequest. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents an AcceptHubSpokeRequest. - * @implements IAcceptHubSpokeRequest + * @classdesc Represents a GetSpokeRequest. + * @implements IGetSpokeRequest * @constructor - * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IGetSpokeRequest=} [properties] Properties to set */ - function AcceptHubSpokeRequest(properties) { + function GetSpokeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8236,90 +9158,70 @@ } /** - * AcceptHubSpokeRequest name. + * GetSpokeRequest name. * @member {string} name - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest * @instance */ - AcceptHubSpokeRequest.prototype.name = ""; + GetSpokeRequest.prototype.name = ""; /** - * AcceptHubSpokeRequest spokeUri. - * @member {string} spokeUri - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest - * @instance + * Creates a new GetSpokeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IGetSpokeRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.GetSpokeRequest} GetSpokeRequest instance */ - AcceptHubSpokeRequest.prototype.spokeUri = ""; + GetSpokeRequest.create = function create(properties) { + return new GetSpokeRequest(properties); + }; /** - * AcceptHubSpokeRequest requestId. - * @member {string} requestId - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest - * @instance - */ - AcceptHubSpokeRequest.prototype.requestId = ""; - - /** - * Creates a new AcceptHubSpokeRequest instance using the specified properties. - * @function create - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest - * @static - * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest} AcceptHubSpokeRequest instance - */ - AcceptHubSpokeRequest.create = function create(properties) { - return new AcceptHubSpokeRequest(properties); - }; - - /** - * Encodes the specified AcceptHubSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest.verify|verify} messages. + * Encodes the specified GetSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetSpokeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest} message AcceptHubSpokeRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IGetSpokeRequest} message GetSpokeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcceptHubSpokeRequest.encode = function encode(message, writer) { + GetSpokeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.spokeUri != null && Object.hasOwnProperty.call(message, "spokeUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.spokeUri); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); return writer; }; /** - * Encodes the specified AcceptHubSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest.verify|verify} messages. + * Encodes the specified GetSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetSpokeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest} message AcceptHubSpokeRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IGetSpokeRequest} message GetSpokeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcceptHubSpokeRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSpokeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AcceptHubSpokeRequest message from the specified reader or buffer. + * Decodes a GetSpokeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest} AcceptHubSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.GetSpokeRequest} GetSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcceptHubSpokeRequest.decode = function decode(reader, length) { + GetSpokeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.GetSpokeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8327,14 +9229,6 @@ message.name = reader.string(); break; } - case 2: { - message.spokeUri = reader.string(); - break; - } - case 3: { - message.requestId = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -8344,139 +9238,125 @@ }; /** - * Decodes an AcceptHubSpokeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSpokeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest} AcceptHubSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.GetSpokeRequest} GetSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcceptHubSpokeRequest.decodeDelimited = function decodeDelimited(reader) { + GetSpokeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AcceptHubSpokeRequest message. + * Verifies a GetSpokeRequest message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AcceptHubSpokeRequest.verify = function verify(message) { + GetSpokeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.spokeUri != null && message.hasOwnProperty("spokeUri")) - if (!$util.isString(message.spokeUri)) - return "spokeUri: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; return null; }; /** - * Creates an AcceptHubSpokeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSpokeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest} AcceptHubSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.GetSpokeRequest} GetSpokeRequest */ - AcceptHubSpokeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest) + GetSpokeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.GetSpokeRequest) return object; - var message = new $root.google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest(); + var message = new $root.google.cloud.networkconnectivity.v1.GetSpokeRequest(); if (object.name != null) message.name = String(object.name); - if (object.spokeUri != null) - message.spokeUri = String(object.spokeUri); - if (object.requestId != null) - message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from an AcceptHubSpokeRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSpokeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest} message AcceptHubSpokeRequest + * @param {google.cloud.networkconnectivity.v1.GetSpokeRequest} message GetSpokeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AcceptHubSpokeRequest.toObject = function toObject(message, options) { + GetSpokeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.spokeUri = ""; - object.requestId = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.spokeUri != null && message.hasOwnProperty("spokeUri")) - object.spokeUri = message.spokeUri; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; return object; }; /** - * Converts this AcceptHubSpokeRequest to JSON. + * Converts this GetSpokeRequest to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest * @instance * @returns {Object.} JSON object */ - AcceptHubSpokeRequest.prototype.toJSON = function toJSON() { + GetSpokeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AcceptHubSpokeRequest + * Gets the default type url for GetSpokeRequest * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.GetSpokeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AcceptHubSpokeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSpokeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.GetSpokeRequest"; }; - return AcceptHubSpokeRequest; + return GetSpokeRequest; })(); - v1.AcceptHubSpokeResponse = (function() { + v1.CreateSpokeRequest = (function() { /** - * Properties of an AcceptHubSpokeResponse. + * Properties of a CreateSpokeRequest. * @memberof google.cloud.networkconnectivity.v1 - * @interface IAcceptHubSpokeResponse - * @property {google.cloud.networkconnectivity.v1.ISpoke|null} [spoke] AcceptHubSpokeResponse spoke + * @interface ICreateSpokeRequest + * @property {string|null} [parent] CreateSpokeRequest parent + * @property {string|null} [spokeId] CreateSpokeRequest spokeId + * @property {google.cloud.networkconnectivity.v1.ISpoke|null} [spoke] CreateSpokeRequest spoke + * @property {string|null} [requestId] CreateSpokeRequest requestId */ /** - * Constructs a new AcceptHubSpokeResponse. + * Constructs a new CreateSpokeRequest. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents an AcceptHubSpokeResponse. - * @implements IAcceptHubSpokeResponse + * @classdesc Represents a CreateSpokeRequest. + * @implements ICreateSpokeRequest * @constructor - * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.ICreateSpokeRequest=} [properties] Properties to set */ - function AcceptHubSpokeResponse(properties) { + function CreateSpokeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8484,77 +9364,119 @@ } /** - * AcceptHubSpokeResponse spoke. + * CreateSpokeRequest parent. + * @member {string} parent + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * @instance + */ + CreateSpokeRequest.prototype.parent = ""; + + /** + * CreateSpokeRequest spokeId. + * @member {string} spokeId + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * @instance + */ + CreateSpokeRequest.prototype.spokeId = ""; + + /** + * CreateSpokeRequest spoke. * @member {google.cloud.networkconnectivity.v1.ISpoke|null|undefined} spoke - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest * @instance */ - AcceptHubSpokeResponse.prototype.spoke = null; + CreateSpokeRequest.prototype.spoke = null; /** - * Creates a new AcceptHubSpokeResponse instance using the specified properties. + * CreateSpokeRequest requestId. + * @member {string} requestId + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest + * @instance + */ + CreateSpokeRequest.prototype.requestId = ""; + + /** + * Creates a new CreateSpokeRequest instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse} AcceptHubSpokeResponse instance + * @param {google.cloud.networkconnectivity.v1.ICreateSpokeRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.CreateSpokeRequest} CreateSpokeRequest instance */ - AcceptHubSpokeResponse.create = function create(properties) { - return new AcceptHubSpokeResponse(properties); + CreateSpokeRequest.create = function create(properties) { + return new CreateSpokeRequest(properties); }; /** - * Encodes the specified AcceptHubSpokeResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse.verify|verify} messages. + * Encodes the specified CreateSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.CreateSpokeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse} message AcceptHubSpokeResponse message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ICreateSpokeRequest} message CreateSpokeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcceptHubSpokeResponse.encode = function encode(message, writer) { + CreateSpokeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.spokeId != null && Object.hasOwnProperty.call(message, "spokeId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.spokeId); if (message.spoke != null && Object.hasOwnProperty.call(message, "spoke")) - $root.google.cloud.networkconnectivity.v1.Spoke.encode(message.spoke, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.networkconnectivity.v1.Spoke.encode(message.spoke, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); return writer; }; /** - * Encodes the specified AcceptHubSpokeResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse.verify|verify} messages. + * Encodes the specified CreateSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.CreateSpokeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse} message AcceptHubSpokeResponse message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ICreateSpokeRequest} message CreateSpokeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcceptHubSpokeResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateSpokeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AcceptHubSpokeResponse message from the specified reader or buffer. + * Decodes a CreateSpokeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse} AcceptHubSpokeResponse + * @returns {google.cloud.networkconnectivity.v1.CreateSpokeRequest} CreateSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcceptHubSpokeResponse.decode = function decode(reader, length) { + CreateSpokeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.CreateSpokeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.spokeId = reader.string(); + break; + } + case 3: { message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.decode(reader, reader.uint32()); break; } + case 4: { + message.requestId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -8564,130 +9486,154 @@ }; /** - * Decodes an AcceptHubSpokeResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateSpokeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse} AcceptHubSpokeResponse + * @returns {google.cloud.networkconnectivity.v1.CreateSpokeRequest} CreateSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcceptHubSpokeResponse.decodeDelimited = function decodeDelimited(reader) { + CreateSpokeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AcceptHubSpokeResponse message. + * Verifies a CreateSpokeRequest message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AcceptHubSpokeResponse.verify = function verify(message) { + CreateSpokeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.spokeId != null && message.hasOwnProperty("spokeId")) + if (!$util.isString(message.spokeId)) + return "spokeId: string expected"; if (message.spoke != null && message.hasOwnProperty("spoke")) { var error = $root.google.cloud.networkconnectivity.v1.Spoke.verify(message.spoke); if (error) return "spoke." + error; } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates an AcceptHubSpokeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSpokeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse} AcceptHubSpokeResponse + * @returns {google.cloud.networkconnectivity.v1.CreateSpokeRequest} CreateSpokeRequest */ - AcceptHubSpokeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse) + CreateSpokeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.CreateSpokeRequest) return object; - var message = new $root.google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse(); + var message = new $root.google.cloud.networkconnectivity.v1.CreateSpokeRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.spokeId != null) + message.spokeId = String(object.spokeId); if (object.spoke != null) { if (typeof object.spoke !== "object") - throw TypeError(".google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse.spoke: object expected"); + throw TypeError(".google.cloud.networkconnectivity.v1.CreateSpokeRequest.spoke: object expected"); message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.fromObject(object.spoke); } + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from an AcceptHubSpokeResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateSpokeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse} message AcceptHubSpokeResponse + * @param {google.cloud.networkconnectivity.v1.CreateSpokeRequest} message CreateSpokeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AcceptHubSpokeResponse.toObject = function toObject(message, options) { + CreateSpokeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.parent = ""; + object.spokeId = ""; object.spoke = null; + object.requestId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.spokeId != null && message.hasOwnProperty("spokeId")) + object.spokeId = message.spokeId; if (message.spoke != null && message.hasOwnProperty("spoke")) object.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.toObject(message.spoke, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this AcceptHubSpokeResponse to JSON. + * Converts this CreateSpokeRequest to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest * @instance * @returns {Object.} JSON object */ - AcceptHubSpokeResponse.prototype.toJSON = function toJSON() { + CreateSpokeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AcceptHubSpokeResponse + * Gets the default type url for CreateSpokeRequest * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.CreateSpokeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AcceptHubSpokeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateSpokeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.CreateSpokeRequest"; }; - return AcceptHubSpokeResponse; + return CreateSpokeRequest; })(); - v1.RejectHubSpokeRequest = (function() { + v1.UpdateSpokeRequest = (function() { /** - * Properties of a RejectHubSpokeRequest. + * Properties of an UpdateSpokeRequest. * @memberof google.cloud.networkconnectivity.v1 - * @interface IRejectHubSpokeRequest - * @property {string|null} [name] RejectHubSpokeRequest name - * @property {string|null} [spokeUri] RejectHubSpokeRequest spokeUri - * @property {string|null} [requestId] RejectHubSpokeRequest requestId - * @property {string|null} [details] RejectHubSpokeRequest details + * @interface IUpdateSpokeRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSpokeRequest updateMask + * @property {google.cloud.networkconnectivity.v1.ISpoke|null} [spoke] UpdateSpokeRequest spoke + * @property {string|null} [requestId] UpdateSpokeRequest requestId */ /** - * Constructs a new RejectHubSpokeRequest. + * Constructs a new UpdateSpokeRequest. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a RejectHubSpokeRequest. - * @implements IRejectHubSpokeRequest + * @classdesc Represents an UpdateSpokeRequest. + * @implements IUpdateSpokeRequest * @constructor - * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IUpdateSpokeRequest=} [properties] Properties to set */ - function RejectHubSpokeRequest(properties) { + function UpdateSpokeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8695,119 +9641,105 @@ } /** - * RejectHubSpokeRequest name. - * @member {string} name - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * UpdateSpokeRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest * @instance */ - RejectHubSpokeRequest.prototype.name = ""; + UpdateSpokeRequest.prototype.updateMask = null; /** - * RejectHubSpokeRequest spokeUri. - * @member {string} spokeUri - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * UpdateSpokeRequest spoke. + * @member {google.cloud.networkconnectivity.v1.ISpoke|null|undefined} spoke + * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest * @instance */ - RejectHubSpokeRequest.prototype.spokeUri = ""; + UpdateSpokeRequest.prototype.spoke = null; /** - * RejectHubSpokeRequest requestId. + * UpdateSpokeRequest requestId. * @member {string} requestId - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest - * @instance - */ - RejectHubSpokeRequest.prototype.requestId = ""; - - /** - * RejectHubSpokeRequest details. - * @member {string} details - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest * @instance */ - RejectHubSpokeRequest.prototype.details = ""; + UpdateSpokeRequest.prototype.requestId = ""; /** - * Creates a new RejectHubSpokeRequest instance using the specified properties. + * Creates a new UpdateSpokeRequest instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeRequest} RejectHubSpokeRequest instance + * @param {google.cloud.networkconnectivity.v1.IUpdateSpokeRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.UpdateSpokeRequest} UpdateSpokeRequest instance */ - RejectHubSpokeRequest.create = function create(properties) { - return new RejectHubSpokeRequest(properties); + UpdateSpokeRequest.create = function create(properties) { + return new UpdateSpokeRequest(properties); }; /** - * Encodes the specified RejectHubSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeRequest.verify|verify} messages. + * Encodes the specified UpdateSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.UpdateSpokeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest} message RejectHubSpokeRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IUpdateSpokeRequest} message UpdateSpokeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RejectHubSpokeRequest.encode = function encode(message, writer) { + UpdateSpokeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.spokeUri != null && Object.hasOwnProperty.call(message, "spokeUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.spokeUri); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spoke != null && Object.hasOwnProperty.call(message, "spoke")) + $root.google.cloud.networkconnectivity.v1.Spoke.encode(message.spoke, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); - if (message.details != null && Object.hasOwnProperty.call(message, "details")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.details); return writer; }; /** - * Encodes the specified RejectHubSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeRequest.verify|verify} messages. + * Encodes the specified UpdateSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.UpdateSpokeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest} message RejectHubSpokeRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IUpdateSpokeRequest} message UpdateSpokeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RejectHubSpokeRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSpokeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RejectHubSpokeRequest message from the specified reader or buffer. + * Decodes an UpdateSpokeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeRequest} RejectHubSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.UpdateSpokeRequest} UpdateSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RejectHubSpokeRequest.decode = function decode(reader, length) { + UpdateSpokeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.RejectHubSpokeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 2: { - message.spokeUri = reader.string(); + message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.decode(reader, reader.uint32()); break; } case 3: { message.requestId = reader.string(); break; } - case 4: { - message.details = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -8817,147 +9749,150 @@ }; /** - * Decodes a RejectHubSpokeRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateSpokeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeRequest} RejectHubSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.UpdateSpokeRequest} UpdateSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RejectHubSpokeRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateSpokeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RejectHubSpokeRequest message. + * Verifies an UpdateSpokeRequest message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RejectHubSpokeRequest.verify = function verify(message) { + UpdateSpokeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.spokeUri != null && message.hasOwnProperty("spokeUri")) - if (!$util.isString(message.spokeUri)) - return "spokeUri: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.spoke != null && message.hasOwnProperty("spoke")) { + var error = $root.google.cloud.networkconnectivity.v1.Spoke.verify(message.spoke); + if (error) + return "spoke." + error; + } if (message.requestId != null && message.hasOwnProperty("requestId")) if (!$util.isString(message.requestId)) return "requestId: string expected"; - if (message.details != null && message.hasOwnProperty("details")) - if (!$util.isString(message.details)) - return "details: string expected"; return null; }; /** - * Creates a RejectHubSpokeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSpokeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeRequest} RejectHubSpokeRequest + * @returns {google.cloud.networkconnectivity.v1.UpdateSpokeRequest} UpdateSpokeRequest */ - RejectHubSpokeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.RejectHubSpokeRequest) + UpdateSpokeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) return object; - var message = new $root.google.cloud.networkconnectivity.v1.RejectHubSpokeRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.spokeUri != null) - message.spokeUri = String(object.spokeUri); + var message = new $root.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.UpdateSpokeRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.spoke != null) { + if (typeof object.spoke !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.UpdateSpokeRequest.spoke: object expected"); + message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.fromObject(object.spoke); + } if (object.requestId != null) message.requestId = String(object.requestId); - if (object.details != null) - message.details = String(object.details); return message; }; /** - * Creates a plain object from a RejectHubSpokeRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSpokeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.RejectHubSpokeRequest} message RejectHubSpokeRequest + * @param {google.cloud.networkconnectivity.v1.UpdateSpokeRequest} message UpdateSpokeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RejectHubSpokeRequest.toObject = function toObject(message, options) { + UpdateSpokeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.spokeUri = ""; + object.updateMask = null; + object.spoke = null; object.requestId = ""; - object.details = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.spokeUri != null && message.hasOwnProperty("spokeUri")) - object.spokeUri = message.spokeUri; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.spoke != null && message.hasOwnProperty("spoke")) + object.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.toObject(message.spoke, options); if (message.requestId != null && message.hasOwnProperty("requestId")) object.requestId = message.requestId; - if (message.details != null && message.hasOwnProperty("details")) - object.details = message.details; return object; }; /** - * Converts this RejectHubSpokeRequest to JSON. + * Converts this UpdateSpokeRequest to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest * @instance * @returns {Object.} JSON object */ - RejectHubSpokeRequest.prototype.toJSON = function toJSON() { + UpdateSpokeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RejectHubSpokeRequest + * Gets the default type url for UpdateSpokeRequest * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @memberof google.cloud.networkconnectivity.v1.UpdateSpokeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RejectHubSpokeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateSpokeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.RejectHubSpokeRequest"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.UpdateSpokeRequest"; }; - return RejectHubSpokeRequest; + return UpdateSpokeRequest; })(); - v1.RejectHubSpokeResponse = (function() { + v1.DeleteSpokeRequest = (function() { /** - * Properties of a RejectHubSpokeResponse. + * Properties of a DeleteSpokeRequest. * @memberof google.cloud.networkconnectivity.v1 - * @interface IRejectHubSpokeResponse - * @property {google.cloud.networkconnectivity.v1.ISpoke|null} [spoke] RejectHubSpokeResponse spoke + * @interface IDeleteSpokeRequest + * @property {string|null} [name] DeleteSpokeRequest name + * @property {string|null} [requestId] DeleteSpokeRequest requestId */ /** - * Constructs a new RejectHubSpokeResponse. + * Constructs a new DeleteSpokeRequest. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a RejectHubSpokeResponse. - * @implements IRejectHubSpokeResponse + * @classdesc Represents a DeleteSpokeRequest. + * @implements IDeleteSpokeRequest * @constructor - * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IDeleteSpokeRequest=} [properties] Properties to set */ - function RejectHubSpokeResponse(properties) { + function DeleteSpokeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8965,75 +9900,89 @@ } /** - * RejectHubSpokeResponse spoke. - * @member {google.cloud.networkconnectivity.v1.ISpoke|null|undefined} spoke - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * DeleteSpokeRequest name. + * @member {string} name + * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest * @instance */ - RejectHubSpokeResponse.prototype.spoke = null; + DeleteSpokeRequest.prototype.name = ""; /** - * Creates a new RejectHubSpokeResponse instance using the specified properties. + * DeleteSpokeRequest requestId. + * @member {string} requestId + * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest + * @instance + */ + DeleteSpokeRequest.prototype.requestId = ""; + + /** + * Creates a new DeleteSpokeRequest instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeResponse} RejectHubSpokeResponse instance + * @param {google.cloud.networkconnectivity.v1.IDeleteSpokeRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.DeleteSpokeRequest} DeleteSpokeRequest instance */ - RejectHubSpokeResponse.create = function create(properties) { - return new RejectHubSpokeResponse(properties); + DeleteSpokeRequest.create = function create(properties) { + return new DeleteSpokeRequest(properties); }; /** - * Encodes the specified RejectHubSpokeResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeResponse.verify|verify} messages. + * Encodes the specified DeleteSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.DeleteSpokeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse} message RejectHubSpokeResponse message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IDeleteSpokeRequest} message DeleteSpokeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RejectHubSpokeResponse.encode = function encode(message, writer) { + DeleteSpokeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.spoke != null && Object.hasOwnProperty.call(message, "spoke")) - $root.google.cloud.networkconnectivity.v1.Spoke.encode(message.spoke, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); return writer; }; /** - * Encodes the specified RejectHubSpokeResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeResponse.verify|verify} messages. + * Encodes the specified DeleteSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.DeleteSpokeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse} message RejectHubSpokeResponse message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IDeleteSpokeRequest} message DeleteSpokeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RejectHubSpokeResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSpokeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RejectHubSpokeResponse message from the specified reader or buffer. + * Decodes a DeleteSpokeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeResponse} RejectHubSpokeResponse + * @returns {google.cloud.networkconnectivity.v1.DeleteSpokeRequest} DeleteSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RejectHubSpokeResponse.decode = function decode(reader, length) { + DeleteSpokeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.RejectHubSpokeResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.decode(reader, reader.uint32()); + message.name = reader.string(); + break; + } + case 2: { + message.requestId = reader.string(); break; } default: @@ -9045,127 +9994,133 @@ }; /** - * Decodes a RejectHubSpokeResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteSpokeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeResponse} RejectHubSpokeResponse + * @returns {google.cloud.networkconnectivity.v1.DeleteSpokeRequest} DeleteSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RejectHubSpokeResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteSpokeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RejectHubSpokeResponse message. + * Verifies a DeleteSpokeRequest message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RejectHubSpokeResponse.verify = function verify(message) { + DeleteSpokeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.spoke != null && message.hasOwnProperty("spoke")) { - var error = $root.google.cloud.networkconnectivity.v1.Spoke.verify(message.spoke); - if (error) - return "spoke." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a RejectHubSpokeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSpokeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeResponse} RejectHubSpokeResponse + * @returns {google.cloud.networkconnectivity.v1.DeleteSpokeRequest} DeleteSpokeRequest */ - RejectHubSpokeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.RejectHubSpokeResponse) + DeleteSpokeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) return object; - var message = new $root.google.cloud.networkconnectivity.v1.RejectHubSpokeResponse(); - if (object.spoke != null) { - if (typeof object.spoke !== "object") - throw TypeError(".google.cloud.networkconnectivity.v1.RejectHubSpokeResponse.spoke: object expected"); - message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.fromObject(object.spoke); - } + var message = new $root.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a RejectHubSpokeResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteSpokeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.RejectHubSpokeResponse} message RejectHubSpokeResponse + * @param {google.cloud.networkconnectivity.v1.DeleteSpokeRequest} message DeleteSpokeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RejectHubSpokeResponse.toObject = function toObject(message, options) { + DeleteSpokeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.spoke = null; - if (message.spoke != null && message.hasOwnProperty("spoke")) - object.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.toObject(message.spoke, options); + if (options.defaults) { + object.name = ""; + object.requestId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this RejectHubSpokeResponse to JSON. + * Converts this DeleteSpokeRequest to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest * @instance * @returns {Object.} JSON object */ - RejectHubSpokeResponse.prototype.toJSON = function toJSON() { + DeleteSpokeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RejectHubSpokeResponse + * Gets the default type url for DeleteSpokeRequest * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @memberof google.cloud.networkconnectivity.v1.DeleteSpokeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RejectHubSpokeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteSpokeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.RejectHubSpokeResponse"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.DeleteSpokeRequest"; }; - return RejectHubSpokeResponse; + return DeleteSpokeRequest; })(); - v1.GetRouteTableRequest = (function() { + v1.AcceptHubSpokeRequest = (function() { /** - * Properties of a GetRouteTableRequest. + * Properties of an AcceptHubSpokeRequest. * @memberof google.cloud.networkconnectivity.v1 - * @interface IGetRouteTableRequest - * @property {string|null} [name] GetRouteTableRequest name + * @interface IAcceptHubSpokeRequest + * @property {string|null} [name] AcceptHubSpokeRequest name + * @property {string|null} [spokeUri] AcceptHubSpokeRequest spokeUri + * @property {string|null} [requestId] AcceptHubSpokeRequest requestId */ /** - * Constructs a new GetRouteTableRequest. + * Constructs a new AcceptHubSpokeRequest. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a GetRouteTableRequest. - * @implements IGetRouteTableRequest + * @classdesc Represents an AcceptHubSpokeRequest. + * @implements IAcceptHubSpokeRequest * @constructor - * @param {google.cloud.networkconnectivity.v1.IGetRouteTableRequest=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest=} [properties] Properties to set */ - function GetRouteTableRequest(properties) { + function AcceptHubSpokeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9173,70 +10128,90 @@ } /** - * GetRouteTableRequest name. + * AcceptHubSpokeRequest name. * @member {string} name - * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest * @instance */ - GetRouteTableRequest.prototype.name = ""; + AcceptHubSpokeRequest.prototype.name = ""; /** - * Creates a new GetRouteTableRequest instance using the specified properties. + * AcceptHubSpokeRequest spokeUri. + * @member {string} spokeUri + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest + * @instance + */ + AcceptHubSpokeRequest.prototype.spokeUri = ""; + + /** + * AcceptHubSpokeRequest requestId. + * @member {string} requestId + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest + * @instance + */ + AcceptHubSpokeRequest.prototype.requestId = ""; + + /** + * Creates a new AcceptHubSpokeRequest instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IGetRouteTableRequest=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.GetRouteTableRequest} GetRouteTableRequest instance + * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest} AcceptHubSpokeRequest instance */ - GetRouteTableRequest.create = function create(properties) { - return new GetRouteTableRequest(properties); + AcceptHubSpokeRequest.create = function create(properties) { + return new AcceptHubSpokeRequest(properties); }; /** - * Encodes the specified GetRouteTableRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteTableRequest.verify|verify} messages. + * Encodes the specified AcceptHubSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IGetRouteTableRequest} message GetRouteTableRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest} message AcceptHubSpokeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRouteTableRequest.encode = function encode(message, writer) { + AcceptHubSpokeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.spokeUri != null && Object.hasOwnProperty.call(message, "spokeUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.spokeUri); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); return writer; }; /** - * Encodes the specified GetRouteTableRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteTableRequest.verify|verify} messages. + * Encodes the specified AcceptHubSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.IGetRouteTableRequest} message GetRouteTableRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeRequest} message AcceptHubSpokeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRouteTableRequest.encodeDelimited = function encodeDelimited(message, writer) { + AcceptHubSpokeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetRouteTableRequest message from the specified reader or buffer. + * Decodes an AcceptHubSpokeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.GetRouteTableRequest} GetRouteTableRequest + * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest} AcceptHubSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRouteTableRequest.decode = function decode(reader, length) { + AcceptHubSpokeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.GetRouteTableRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9244,6 +10219,14 @@ message.name = reader.string(); break; } + case 2: { + message.spokeUri = reader.string(); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -9253,122 +10236,139 @@ }; /** - * Decodes a GetRouteTableRequest message from the specified reader or buffer, length delimited. + * Decodes an AcceptHubSpokeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.GetRouteTableRequest} GetRouteTableRequest + * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest} AcceptHubSpokeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRouteTableRequest.decodeDelimited = function decodeDelimited(reader) { + AcceptHubSpokeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetRouteTableRequest message. + * Verifies an AcceptHubSpokeRequest message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetRouteTableRequest.verify = function verify(message) { + AcceptHubSpokeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.spokeUri != null && message.hasOwnProperty("spokeUri")) + if (!$util.isString(message.spokeUri)) + return "spokeUri: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a GetRouteTableRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AcceptHubSpokeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.GetRouteTableRequest} GetRouteTableRequest + * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest} AcceptHubSpokeRequest */ - GetRouteTableRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.GetRouteTableRequest) + AcceptHubSpokeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest) return object; - var message = new $root.google.cloud.networkconnectivity.v1.GetRouteTableRequest(); + var message = new $root.google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest(); if (object.name != null) message.name = String(object.name); + if (object.spokeUri != null) + message.spokeUri = String(object.spokeUri); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a GetRouteTableRequest message. Also converts values to other types if specified. + * Creates a plain object from an AcceptHubSpokeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest * @static - * @param {google.cloud.networkconnectivity.v1.GetRouteTableRequest} message GetRouteTableRequest + * @param {google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest} message AcceptHubSpokeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRouteTableRequest.toObject = function toObject(message, options) { + AcceptHubSpokeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.spokeUri = ""; + object.requestId = ""; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.spokeUri != null && message.hasOwnProperty("spokeUri")) + object.spokeUri = message.spokeUri; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this GetRouteTableRequest to JSON. + * Converts this AcceptHubSpokeRequest to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest * @instance * @returns {Object.} JSON object */ - GetRouteTableRequest.prototype.toJSON = function toJSON() { + AcceptHubSpokeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetRouteTableRequest + * Gets the default type url for AcceptHubSpokeRequest * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetRouteTableRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AcceptHubSpokeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.GetRouteTableRequest"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest"; }; - return GetRouteTableRequest; + return AcceptHubSpokeRequest; })(); - v1.GetRouteRequest = (function() { + v1.AcceptHubSpokeResponse = (function() { /** - * Properties of a GetRouteRequest. + * Properties of an AcceptHubSpokeResponse. * @memberof google.cloud.networkconnectivity.v1 - * @interface IGetRouteRequest - * @property {string|null} [name] GetRouteRequest name + * @interface IAcceptHubSpokeResponse + * @property {google.cloud.networkconnectivity.v1.ISpoke|null} [spoke] AcceptHubSpokeResponse spoke */ /** - * Constructs a new GetRouteRequest. + * Constructs a new AcceptHubSpokeResponse. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a GetRouteRequest. - * @implements IGetRouteRequest + * @classdesc Represents an AcceptHubSpokeResponse. + * @implements IAcceptHubSpokeResponse * @constructor - * @param {google.cloud.networkconnectivity.v1.IGetRouteRequest=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse=} [properties] Properties to set */ - function GetRouteRequest(properties) { + function AcceptHubSpokeResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9376,75 +10376,75 @@ } /** - * GetRouteRequest name. - * @member {string} name - * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * AcceptHubSpokeResponse spoke. + * @member {google.cloud.networkconnectivity.v1.ISpoke|null|undefined} spoke + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse * @instance */ - GetRouteRequest.prototype.name = ""; + AcceptHubSpokeResponse.prototype.spoke = null; /** - * Creates a new GetRouteRequest instance using the specified properties. + * Creates a new AcceptHubSpokeResponse instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse * @static - * @param {google.cloud.networkconnectivity.v1.IGetRouteRequest=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.GetRouteRequest} GetRouteRequest instance + * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse} AcceptHubSpokeResponse instance */ - GetRouteRequest.create = function create(properties) { - return new GetRouteRequest(properties); + AcceptHubSpokeResponse.create = function create(properties) { + return new AcceptHubSpokeResponse(properties); }; /** - * Encodes the specified GetRouteRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteRequest.verify|verify} messages. + * Encodes the specified AcceptHubSpokeResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse * @static - * @param {google.cloud.networkconnectivity.v1.IGetRouteRequest} message GetRouteRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse} message AcceptHubSpokeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRouteRequest.encode = function encode(message, writer) { + AcceptHubSpokeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.spoke != null && Object.hasOwnProperty.call(message, "spoke")) + $root.google.cloud.networkconnectivity.v1.Spoke.encode(message.spoke, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetRouteRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteRequest.verify|verify} messages. + * Encodes the specified AcceptHubSpokeResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse * @static - * @param {google.cloud.networkconnectivity.v1.IGetRouteRequest} message GetRouteRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IAcceptHubSpokeResponse} message AcceptHubSpokeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRouteRequest.encodeDelimited = function encodeDelimited(message, writer) { + AcceptHubSpokeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetRouteRequest message from the specified reader or buffer. + * Decodes an AcceptHubSpokeResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.GetRouteRequest} GetRouteRequest + * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse} AcceptHubSpokeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRouteRequest.decode = function decode(reader, length) { + AcceptHubSpokeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.GetRouteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.decode(reader, reader.uint32()); break; } default: @@ -9456,126 +10456,130 @@ }; /** - * Decodes a GetRouteRequest message from the specified reader or buffer, length delimited. + * Decodes an AcceptHubSpokeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.GetRouteRequest} GetRouteRequest + * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse} AcceptHubSpokeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRouteRequest.decodeDelimited = function decodeDelimited(reader) { + AcceptHubSpokeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetRouteRequest message. + * Verifies an AcceptHubSpokeResponse message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetRouteRequest.verify = function verify(message) { + AcceptHubSpokeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.spoke != null && message.hasOwnProperty("spoke")) { + var error = $root.google.cloud.networkconnectivity.v1.Spoke.verify(message.spoke); + if (error) + return "spoke." + error; + } return null; }; /** - * Creates a GetRouteRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AcceptHubSpokeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.GetRouteRequest} GetRouteRequest + * @returns {google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse} AcceptHubSpokeResponse */ - GetRouteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.GetRouteRequest) + AcceptHubSpokeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse) return object; - var message = new $root.google.cloud.networkconnectivity.v1.GetRouteRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse(); + if (object.spoke != null) { + if (typeof object.spoke !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse.spoke: object expected"); + message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.fromObject(object.spoke); + } return message; }; /** - * Creates a plain object from a GetRouteRequest message. Also converts values to other types if specified. + * Creates a plain object from an AcceptHubSpokeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse * @static - * @param {google.cloud.networkconnectivity.v1.GetRouteRequest} message GetRouteRequest + * @param {google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse} message AcceptHubSpokeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRouteRequest.toObject = function toObject(message, options) { + AcceptHubSpokeResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.spoke = null; + if (message.spoke != null && message.hasOwnProperty("spoke")) + object.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.toObject(message.spoke, options); return object; }; /** - * Converts this GetRouteRequest to JSON. + * Converts this AcceptHubSpokeResponse to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse * @instance * @returns {Object.} JSON object */ - GetRouteRequest.prototype.toJSON = function toJSON() { + AcceptHubSpokeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetRouteRequest + * Gets the default type url for AcceptHubSpokeResponse * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @memberof google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetRouteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AcceptHubSpokeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.GetRouteRequest"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse"; }; - return GetRouteRequest; + return AcceptHubSpokeResponse; })(); - v1.ListRoutesRequest = (function() { + v1.RejectHubSpokeRequest = (function() { /** - * Properties of a ListRoutesRequest. + * Properties of a RejectHubSpokeRequest. * @memberof google.cloud.networkconnectivity.v1 - * @interface IListRoutesRequest - * @property {string|null} [parent] ListRoutesRequest parent - * @property {number|null} [pageSize] ListRoutesRequest pageSize - * @property {string|null} [pageToken] ListRoutesRequest pageToken - * @property {string|null} [filter] ListRoutesRequest filter - * @property {string|null} [orderBy] ListRoutesRequest orderBy + * @interface IRejectHubSpokeRequest + * @property {string|null} [name] RejectHubSpokeRequest name + * @property {string|null} [spokeUri] RejectHubSpokeRequest spokeUri + * @property {string|null} [requestId] RejectHubSpokeRequest requestId + * @property {string|null} [details] RejectHubSpokeRequest details */ /** - * Constructs a new ListRoutesRequest. + * Constructs a new RejectHubSpokeRequest. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a ListRoutesRequest. - * @implements IListRoutesRequest + * @classdesc Represents a RejectHubSpokeRequest. + * @implements IRejectHubSpokeRequest * @constructor - * @param {google.cloud.networkconnectivity.v1.IListRoutesRequest=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest=} [properties] Properties to set */ - function ListRoutesRequest(properties) { + function RejectHubSpokeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9583,67 +10587,2123 @@ } /** - * ListRoutesRequest parent. - * @member {string} parent - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * RejectHubSpokeRequest name. + * @member {string} name + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest * @instance */ - ListRoutesRequest.prototype.parent = ""; + RejectHubSpokeRequest.prototype.name = ""; /** - * ListRoutesRequest pageSize. + * RejectHubSpokeRequest spokeUri. + * @member {string} spokeUri + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @instance + */ + RejectHubSpokeRequest.prototype.spokeUri = ""; + + /** + * RejectHubSpokeRequest requestId. + * @member {string} requestId + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @instance + */ + RejectHubSpokeRequest.prototype.requestId = ""; + + /** + * RejectHubSpokeRequest details. + * @member {string} details + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @instance + */ + RejectHubSpokeRequest.prototype.details = ""; + + /** + * Creates a new RejectHubSpokeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeRequest} RejectHubSpokeRequest instance + */ + RejectHubSpokeRequest.create = function create(properties) { + return new RejectHubSpokeRequest(properties); + }; + + /** + * Encodes the specified RejectHubSpokeRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest} message RejectHubSpokeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RejectHubSpokeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.spokeUri != null && Object.hasOwnProperty.call(message, "spokeUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.spokeUri); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + if (message.details != null && Object.hasOwnProperty.call(message, "details")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.details); + return writer; + }; + + /** + * Encodes the specified RejectHubSpokeRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeRequest} message RejectHubSpokeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RejectHubSpokeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RejectHubSpokeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeRequest} RejectHubSpokeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RejectHubSpokeRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.RejectHubSpokeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.spokeUri = reader.string(); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } + case 4: { + message.details = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RejectHubSpokeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeRequest} RejectHubSpokeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RejectHubSpokeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RejectHubSpokeRequest message. + * @function verify + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RejectHubSpokeRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.spokeUri != null && message.hasOwnProperty("spokeUri")) + if (!$util.isString(message.spokeUri)) + return "spokeUri: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.details != null && message.hasOwnProperty("details")) + if (!$util.isString(message.details)) + return "details: string expected"; + return null; + }; + + /** + * Creates a RejectHubSpokeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeRequest} RejectHubSpokeRequest + */ + RejectHubSpokeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.RejectHubSpokeRequest) + return object; + var message = new $root.google.cloud.networkconnectivity.v1.RejectHubSpokeRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.spokeUri != null) + message.spokeUri = String(object.spokeUri); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.details != null) + message.details = String(object.details); + return message; + }; + + /** + * Creates a plain object from a RejectHubSpokeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @static + * @param {google.cloud.networkconnectivity.v1.RejectHubSpokeRequest} message RejectHubSpokeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RejectHubSpokeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.spokeUri = ""; + object.requestId = ""; + object.details = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.spokeUri != null && message.hasOwnProperty("spokeUri")) + object.spokeUri = message.spokeUri; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + if (message.details != null && message.hasOwnProperty("details")) + object.details = message.details; + return object; + }; + + /** + * Converts this RejectHubSpokeRequest to JSON. + * @function toJSON + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @instance + * @returns {Object.} JSON object + */ + RejectHubSpokeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RejectHubSpokeRequest + * @function getTypeUrl + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RejectHubSpokeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.RejectHubSpokeRequest"; + }; + + return RejectHubSpokeRequest; + })(); + + v1.RejectHubSpokeResponse = (function() { + + /** + * Properties of a RejectHubSpokeResponse. + * @memberof google.cloud.networkconnectivity.v1 + * @interface IRejectHubSpokeResponse + * @property {google.cloud.networkconnectivity.v1.ISpoke|null} [spoke] RejectHubSpokeResponse spoke + */ + + /** + * Constructs a new RejectHubSpokeResponse. + * @memberof google.cloud.networkconnectivity.v1 + * @classdesc Represents a RejectHubSpokeResponse. + * @implements IRejectHubSpokeResponse + * @constructor + * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse=} [properties] Properties to set + */ + function RejectHubSpokeResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RejectHubSpokeResponse spoke. + * @member {google.cloud.networkconnectivity.v1.ISpoke|null|undefined} spoke + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @instance + */ + RejectHubSpokeResponse.prototype.spoke = null; + + /** + * Creates a new RejectHubSpokeResponse instance using the specified properties. + * @function create + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @static + * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeResponse} RejectHubSpokeResponse instance + */ + RejectHubSpokeResponse.create = function create(properties) { + return new RejectHubSpokeResponse(properties); + }; + + /** + * Encodes the specified RejectHubSpokeResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @static + * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse} message RejectHubSpokeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RejectHubSpokeResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.spoke != null && Object.hasOwnProperty.call(message, "spoke")) + $root.google.cloud.networkconnectivity.v1.Spoke.encode(message.spoke, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RejectHubSpokeResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.RejectHubSpokeResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @static + * @param {google.cloud.networkconnectivity.v1.IRejectHubSpokeResponse} message RejectHubSpokeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RejectHubSpokeResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RejectHubSpokeResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeResponse} RejectHubSpokeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RejectHubSpokeResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.RejectHubSpokeResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RejectHubSpokeResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeResponse} RejectHubSpokeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RejectHubSpokeResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RejectHubSpokeResponse message. + * @function verify + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RejectHubSpokeResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.spoke != null && message.hasOwnProperty("spoke")) { + var error = $root.google.cloud.networkconnectivity.v1.Spoke.verify(message.spoke); + if (error) + return "spoke." + error; + } + return null; + }; + + /** + * Creates a RejectHubSpokeResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.networkconnectivity.v1.RejectHubSpokeResponse} RejectHubSpokeResponse + */ + RejectHubSpokeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.RejectHubSpokeResponse) + return object; + var message = new $root.google.cloud.networkconnectivity.v1.RejectHubSpokeResponse(); + if (object.spoke != null) { + if (typeof object.spoke !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.RejectHubSpokeResponse.spoke: object expected"); + message.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.fromObject(object.spoke); + } + return message; + }; + + /** + * Creates a plain object from a RejectHubSpokeResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @static + * @param {google.cloud.networkconnectivity.v1.RejectHubSpokeResponse} message RejectHubSpokeResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RejectHubSpokeResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.spoke = null; + if (message.spoke != null && message.hasOwnProperty("spoke")) + object.spoke = $root.google.cloud.networkconnectivity.v1.Spoke.toObject(message.spoke, options); + return object; + }; + + /** + * Converts this RejectHubSpokeResponse to JSON. + * @function toJSON + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @instance + * @returns {Object.} JSON object + */ + RejectHubSpokeResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RejectHubSpokeResponse + * @function getTypeUrl + * @memberof google.cloud.networkconnectivity.v1.RejectHubSpokeResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RejectHubSpokeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.RejectHubSpokeResponse"; + }; + + return RejectHubSpokeResponse; + })(); + + v1.GetRouteTableRequest = (function() { + + /** + * Properties of a GetRouteTableRequest. + * @memberof google.cloud.networkconnectivity.v1 + * @interface IGetRouteTableRequest + * @property {string|null} [name] GetRouteTableRequest name + */ + + /** + * Constructs a new GetRouteTableRequest. + * @memberof google.cloud.networkconnectivity.v1 + * @classdesc Represents a GetRouteTableRequest. + * @implements IGetRouteTableRequest + * @constructor + * @param {google.cloud.networkconnectivity.v1.IGetRouteTableRequest=} [properties] Properties to set + */ + function GetRouteTableRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetRouteTableRequest name. + * @member {string} name + * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @instance + */ + GetRouteTableRequest.prototype.name = ""; + + /** + * Creates a new GetRouteTableRequest instance using the specified properties. + * @function create + * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IGetRouteTableRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.GetRouteTableRequest} GetRouteTableRequest instance + */ + GetRouteTableRequest.create = function create(properties) { + return new GetRouteTableRequest(properties); + }; + + /** + * Encodes the specified GetRouteTableRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteTableRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IGetRouteTableRequest} message GetRouteTableRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRouteTableRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetRouteTableRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteTableRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IGetRouteTableRequest} message GetRouteTableRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRouteTableRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRouteTableRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.networkconnectivity.v1.GetRouteTableRequest} GetRouteTableRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRouteTableRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.GetRouteTableRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRouteTableRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.networkconnectivity.v1.GetRouteTableRequest} GetRouteTableRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRouteTableRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRouteTableRequest message. + * @function verify + * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRouteTableRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetRouteTableRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.networkconnectivity.v1.GetRouteTableRequest} GetRouteTableRequest + */ + GetRouteTableRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.GetRouteTableRequest) + return object; + var message = new $root.google.cloud.networkconnectivity.v1.GetRouteTableRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetRouteTableRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @static + * @param {google.cloud.networkconnectivity.v1.GetRouteTableRequest} message GetRouteTableRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRouteTableRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetRouteTableRequest to JSON. + * @function toJSON + * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @instance + * @returns {Object.} JSON object + */ + GetRouteTableRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRouteTableRequest + * @function getTypeUrl + * @memberof google.cloud.networkconnectivity.v1.GetRouteTableRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRouteTableRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.GetRouteTableRequest"; + }; + + return GetRouteTableRequest; + })(); + + v1.GetRouteRequest = (function() { + + /** + * Properties of a GetRouteRequest. + * @memberof google.cloud.networkconnectivity.v1 + * @interface IGetRouteRequest + * @property {string|null} [name] GetRouteRequest name + */ + + /** + * Constructs a new GetRouteRequest. + * @memberof google.cloud.networkconnectivity.v1 + * @classdesc Represents a GetRouteRequest. + * @implements IGetRouteRequest + * @constructor + * @param {google.cloud.networkconnectivity.v1.IGetRouteRequest=} [properties] Properties to set + */ + function GetRouteRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetRouteRequest name. + * @member {string} name + * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @instance + */ + GetRouteRequest.prototype.name = ""; + + /** + * Creates a new GetRouteRequest instance using the specified properties. + * @function create + * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IGetRouteRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.GetRouteRequest} GetRouteRequest instance + */ + GetRouteRequest.create = function create(properties) { + return new GetRouteRequest(properties); + }; + + /** + * Encodes the specified GetRouteRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IGetRouteRequest} message GetRouteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRouteRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetRouteRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.GetRouteRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IGetRouteRequest} message GetRouteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRouteRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRouteRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.networkconnectivity.v1.GetRouteRequest} GetRouteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRouteRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.GetRouteRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRouteRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.networkconnectivity.v1.GetRouteRequest} GetRouteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRouteRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRouteRequest message. + * @function verify + * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRouteRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetRouteRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.networkconnectivity.v1.GetRouteRequest} GetRouteRequest + */ + GetRouteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.GetRouteRequest) + return object; + var message = new $root.google.cloud.networkconnectivity.v1.GetRouteRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetRouteRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @static + * @param {google.cloud.networkconnectivity.v1.GetRouteRequest} message GetRouteRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRouteRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetRouteRequest to JSON. + * @function toJSON + * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @instance + * @returns {Object.} JSON object + */ + GetRouteRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRouteRequest + * @function getTypeUrl + * @memberof google.cloud.networkconnectivity.v1.GetRouteRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRouteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.GetRouteRequest"; + }; + + return GetRouteRequest; + })(); + + v1.ListRoutesRequest = (function() { + + /** + * Properties of a ListRoutesRequest. + * @memberof google.cloud.networkconnectivity.v1 + * @interface IListRoutesRequest + * @property {string|null} [parent] ListRoutesRequest parent + * @property {number|null} [pageSize] ListRoutesRequest pageSize + * @property {string|null} [pageToken] ListRoutesRequest pageToken + * @property {string|null} [filter] ListRoutesRequest filter + * @property {string|null} [orderBy] ListRoutesRequest orderBy + */ + + /** + * Constructs a new ListRoutesRequest. + * @memberof google.cloud.networkconnectivity.v1 + * @classdesc Represents a ListRoutesRequest. + * @implements IListRoutesRequest + * @constructor + * @param {google.cloud.networkconnectivity.v1.IListRoutesRequest=} [properties] Properties to set + */ + function ListRoutesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListRoutesRequest parent. + * @member {string} parent + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @instance + */ + ListRoutesRequest.prototype.parent = ""; + + /** + * ListRoutesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @instance + */ + ListRoutesRequest.prototype.pageSize = 0; + + /** + * ListRoutesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @instance + */ + ListRoutesRequest.prototype.pageToken = ""; + + /** + * ListRoutesRequest filter. + * @member {string} filter + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @instance + */ + ListRoutesRequest.prototype.filter = ""; + + /** + * ListRoutesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @instance + */ + ListRoutesRequest.prototype.orderBy = ""; + + /** + * Creates a new ListRoutesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IListRoutesRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.ListRoutesRequest} ListRoutesRequest instance + */ + ListRoutesRequest.create = function create(properties) { + return new ListRoutesRequest(properties); + }; + + /** + * Encodes the specified ListRoutesRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IListRoutesRequest} message ListRoutesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRoutesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + return writer; + }; + + /** + * Encodes the specified ListRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IListRoutesRequest} message ListRoutesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRoutesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRoutesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.networkconnectivity.v1.ListRoutesRequest} ListRoutesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRoutesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListRoutesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRoutesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.networkconnectivity.v1.ListRoutesRequest} ListRoutesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRoutesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRoutesRequest message. + * @function verify + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRoutesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + return null; + }; + + /** + * Creates a ListRoutesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.networkconnectivity.v1.ListRoutesRequest} ListRoutesRequest + */ + ListRoutesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.ListRoutesRequest) + return object; + var message = new $root.google.cloud.networkconnectivity.v1.ListRoutesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; + }; + + /** + * Creates a plain object from a ListRoutesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @static + * @param {google.cloud.networkconnectivity.v1.ListRoutesRequest} message ListRoutesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRoutesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; + + /** + * Converts this ListRoutesRequest to JSON. + * @function toJSON + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @instance + * @returns {Object.} JSON object + */ + ListRoutesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRoutesRequest + * @function getTypeUrl + * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRoutesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListRoutesRequest"; + }; + + return ListRoutesRequest; + })(); + + v1.ListRoutesResponse = (function() { + + /** + * Properties of a ListRoutesResponse. + * @memberof google.cloud.networkconnectivity.v1 + * @interface IListRoutesResponse + * @property {Array.|null} [routes] ListRoutesResponse routes + * @property {string|null} [nextPageToken] ListRoutesResponse nextPageToken + * @property {Array.|null} [unreachable] ListRoutesResponse unreachable + */ + + /** + * Constructs a new ListRoutesResponse. + * @memberof google.cloud.networkconnectivity.v1 + * @classdesc Represents a ListRoutesResponse. + * @implements IListRoutesResponse + * @constructor + * @param {google.cloud.networkconnectivity.v1.IListRoutesResponse=} [properties] Properties to set + */ + function ListRoutesResponse(properties) { + this.routes = []; + this.unreachable = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListRoutesResponse routes. + * @member {Array.} routes + * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @instance + */ + ListRoutesResponse.prototype.routes = $util.emptyArray; + + /** + * ListRoutesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @instance + */ + ListRoutesResponse.prototype.nextPageToken = ""; + + /** + * ListRoutesResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @instance + */ + ListRoutesResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListRoutesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @static + * @param {google.cloud.networkconnectivity.v1.IListRoutesResponse=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.ListRoutesResponse} ListRoutesResponse instance + */ + ListRoutesResponse.create = function create(properties) { + return new ListRoutesResponse(properties); + }; + + /** + * Encodes the specified ListRoutesResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @static + * @param {google.cloud.networkconnectivity.v1.IListRoutesResponse} message ListRoutesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRoutesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.routes != null && message.routes.length) + for (var i = 0; i < message.routes.length; ++i) + $root.google.cloud.networkconnectivity.v1.Route.encode(message.routes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; + + /** + * Encodes the specified ListRoutesResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @static + * @param {google.cloud.networkconnectivity.v1.IListRoutesResponse} message ListRoutesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRoutesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRoutesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.networkconnectivity.v1.ListRoutesResponse} ListRoutesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRoutesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListRoutesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.routes && message.routes.length)) + message.routes = []; + message.routes.push($root.google.cloud.networkconnectivity.v1.Route.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRoutesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.networkconnectivity.v1.ListRoutesResponse} ListRoutesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRoutesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRoutesResponse message. + * @function verify + * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRoutesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.routes != null && message.hasOwnProperty("routes")) { + if (!Array.isArray(message.routes)) + return "routes: array expected"; + for (var i = 0; i < message.routes.length; ++i) { + var error = $root.google.cloud.networkconnectivity.v1.Route.verify(message.routes[i]); + if (error) + return "routes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; + + /** + * Creates a ListRoutesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.networkconnectivity.v1.ListRoutesResponse} ListRoutesResponse + */ + ListRoutesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.ListRoutesResponse) + return object; + var message = new $root.google.cloud.networkconnectivity.v1.ListRoutesResponse(); + if (object.routes) { + if (!Array.isArray(object.routes)) + throw TypeError(".google.cloud.networkconnectivity.v1.ListRoutesResponse.routes: array expected"); + message.routes = []; + for (var i = 0; i < object.routes.length; ++i) { + if (typeof object.routes[i] !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.ListRoutesResponse.routes: object expected"); + message.routes[i] = $root.google.cloud.networkconnectivity.v1.Route.fromObject(object.routes[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.networkconnectivity.v1.ListRoutesResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } + return message; + }; + + /** + * Creates a plain object from a ListRoutesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @static + * @param {google.cloud.networkconnectivity.v1.ListRoutesResponse} message ListRoutesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRoutesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.routes = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.routes && message.routes.length) { + object.routes = []; + for (var j = 0; j < message.routes.length; ++j) + object.routes[j] = $root.google.cloud.networkconnectivity.v1.Route.toObject(message.routes[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } + return object; + }; + + /** + * Converts this ListRoutesResponse to JSON. + * @function toJSON + * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @instance + * @returns {Object.} JSON object + */ + ListRoutesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRoutesResponse + * @function getTypeUrl + * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRoutesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListRoutesResponse"; + }; + + return ListRoutesResponse; + })(); + + v1.ListRouteTablesRequest = (function() { + + /** + * Properties of a ListRouteTablesRequest. + * @memberof google.cloud.networkconnectivity.v1 + * @interface IListRouteTablesRequest + * @property {string|null} [parent] ListRouteTablesRequest parent + * @property {number|null} [pageSize] ListRouteTablesRequest pageSize + * @property {string|null} [pageToken] ListRouteTablesRequest pageToken + * @property {string|null} [filter] ListRouteTablesRequest filter + * @property {string|null} [orderBy] ListRouteTablesRequest orderBy + */ + + /** + * Constructs a new ListRouteTablesRequest. + * @memberof google.cloud.networkconnectivity.v1 + * @classdesc Represents a ListRouteTablesRequest. + * @implements IListRouteTablesRequest + * @constructor + * @param {google.cloud.networkconnectivity.v1.IListRouteTablesRequest=} [properties] Properties to set + */ + function ListRouteTablesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListRouteTablesRequest parent. + * @member {string} parent + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @instance + */ + ListRouteTablesRequest.prototype.parent = ""; + + /** + * ListRouteTablesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @instance + */ + ListRouteTablesRequest.prototype.pageSize = 0; + + /** + * ListRouteTablesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @instance + */ + ListRouteTablesRequest.prototype.pageToken = ""; + + /** + * ListRouteTablesRequest filter. + * @member {string} filter + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @instance + */ + ListRouteTablesRequest.prototype.filter = ""; + + /** + * ListRouteTablesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @instance + */ + ListRouteTablesRequest.prototype.orderBy = ""; + + /** + * Creates a new ListRouteTablesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IListRouteTablesRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesRequest} ListRouteTablesRequest instance + */ + ListRouteTablesRequest.create = function create(properties) { + return new ListRouteTablesRequest(properties); + }; + + /** + * Encodes the specified ListRouteTablesRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IListRouteTablesRequest} message ListRouteTablesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRouteTablesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + return writer; + }; + + /** + * Encodes the specified ListRouteTablesRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IListRouteTablesRequest} message ListRouteTablesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRouteTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRouteTablesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesRequest} ListRouteTablesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRouteTablesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListRouteTablesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRouteTablesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesRequest} ListRouteTablesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRouteTablesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRouteTablesRequest message. + * @function verify + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRouteTablesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + return null; + }; + + /** + * Creates a ListRouteTablesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesRequest} ListRouteTablesRequest + */ + ListRouteTablesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.ListRouteTablesRequest) + return object; + var message = new $root.google.cloud.networkconnectivity.v1.ListRouteTablesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; + }; + + /** + * Creates a plain object from a ListRouteTablesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @static + * @param {google.cloud.networkconnectivity.v1.ListRouteTablesRequest} message ListRouteTablesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRouteTablesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; + + /** + * Converts this ListRouteTablesRequest to JSON. + * @function toJSON + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @instance + * @returns {Object.} JSON object + */ + ListRouteTablesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRouteTablesRequest + * @function getTypeUrl + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRouteTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListRouteTablesRequest"; + }; + + return ListRouteTablesRequest; + })(); + + v1.ListRouteTablesResponse = (function() { + + /** + * Properties of a ListRouteTablesResponse. + * @memberof google.cloud.networkconnectivity.v1 + * @interface IListRouteTablesResponse + * @property {Array.|null} [routeTables] ListRouteTablesResponse routeTables + * @property {string|null} [nextPageToken] ListRouteTablesResponse nextPageToken + * @property {Array.|null} [unreachable] ListRouteTablesResponse unreachable + */ + + /** + * Constructs a new ListRouteTablesResponse. + * @memberof google.cloud.networkconnectivity.v1 + * @classdesc Represents a ListRouteTablesResponse. + * @implements IListRouteTablesResponse + * @constructor + * @param {google.cloud.networkconnectivity.v1.IListRouteTablesResponse=} [properties] Properties to set + */ + function ListRouteTablesResponse(properties) { + this.routeTables = []; + this.unreachable = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListRouteTablesResponse routeTables. + * @member {Array.} routeTables + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @instance + */ + ListRouteTablesResponse.prototype.routeTables = $util.emptyArray; + + /** + * ListRouteTablesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @instance + */ + ListRouteTablesResponse.prototype.nextPageToken = ""; + + /** + * ListRouteTablesResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @instance + */ + ListRouteTablesResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListRouteTablesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @static + * @param {google.cloud.networkconnectivity.v1.IListRouteTablesResponse=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesResponse} ListRouteTablesResponse instance + */ + ListRouteTablesResponse.create = function create(properties) { + return new ListRouteTablesResponse(properties); + }; + + /** + * Encodes the specified ListRouteTablesResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @static + * @param {google.cloud.networkconnectivity.v1.IListRouteTablesResponse} message ListRouteTablesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRouteTablesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.routeTables != null && message.routeTables.length) + for (var i = 0; i < message.routeTables.length; ++i) + $root.google.cloud.networkconnectivity.v1.RouteTable.encode(message.routeTables[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; + + /** + * Encodes the specified ListRouteTablesResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @static + * @param {google.cloud.networkconnectivity.v1.IListRouteTablesResponse} message ListRouteTablesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRouteTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRouteTablesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesResponse} ListRouteTablesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRouteTablesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListRouteTablesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.routeTables && message.routeTables.length)) + message.routeTables = []; + message.routeTables.push($root.google.cloud.networkconnectivity.v1.RouteTable.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRouteTablesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesResponse} ListRouteTablesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRouteTablesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRouteTablesResponse message. + * @function verify + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRouteTablesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.routeTables != null && message.hasOwnProperty("routeTables")) { + if (!Array.isArray(message.routeTables)) + return "routeTables: array expected"; + for (var i = 0; i < message.routeTables.length; ++i) { + var error = $root.google.cloud.networkconnectivity.v1.RouteTable.verify(message.routeTables[i]); + if (error) + return "routeTables." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; + + /** + * Creates a ListRouteTablesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesResponse} ListRouteTablesResponse + */ + ListRouteTablesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.ListRouteTablesResponse) + return object; + var message = new $root.google.cloud.networkconnectivity.v1.ListRouteTablesResponse(); + if (object.routeTables) { + if (!Array.isArray(object.routeTables)) + throw TypeError(".google.cloud.networkconnectivity.v1.ListRouteTablesResponse.routeTables: array expected"); + message.routeTables = []; + for (var i = 0; i < object.routeTables.length; ++i) { + if (typeof object.routeTables[i] !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.ListRouteTablesResponse.routeTables: object expected"); + message.routeTables[i] = $root.google.cloud.networkconnectivity.v1.RouteTable.fromObject(object.routeTables[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.networkconnectivity.v1.ListRouteTablesResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } + return message; + }; + + /** + * Creates a plain object from a ListRouteTablesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @static + * @param {google.cloud.networkconnectivity.v1.ListRouteTablesResponse} message ListRouteTablesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRouteTablesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.routeTables = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.routeTables && message.routeTables.length) { + object.routeTables = []; + for (var j = 0; j < message.routeTables.length; ++j) + object.routeTables[j] = $root.google.cloud.networkconnectivity.v1.RouteTable.toObject(message.routeTables[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } + return object; + }; + + /** + * Converts this ListRouteTablesResponse to JSON. + * @function toJSON + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @instance + * @returns {Object.} JSON object + */ + ListRouteTablesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRouteTablesResponse + * @function getTypeUrl + * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRouteTablesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListRouteTablesResponse"; + }; + + return ListRouteTablesResponse; + })(); + + v1.ListGroupsRequest = (function() { + + /** + * Properties of a ListGroupsRequest. + * @memberof google.cloud.networkconnectivity.v1 + * @interface IListGroupsRequest + * @property {string|null} [parent] ListGroupsRequest parent + * @property {number|null} [pageSize] ListGroupsRequest pageSize + * @property {string|null} [pageToken] ListGroupsRequest pageToken + * @property {string|null} [filter] ListGroupsRequest filter + * @property {string|null} [orderBy] ListGroupsRequest orderBy + */ + + /** + * Constructs a new ListGroupsRequest. + * @memberof google.cloud.networkconnectivity.v1 + * @classdesc Represents a ListGroupsRequest. + * @implements IListGroupsRequest + * @constructor + * @param {google.cloud.networkconnectivity.v1.IListGroupsRequest=} [properties] Properties to set + */ + function ListGroupsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListGroupsRequest parent. + * @member {string} parent + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * @instance + */ + ListGroupsRequest.prototype.parent = ""; + + /** + * ListGroupsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @instance */ - ListRoutesRequest.prototype.pageSize = 0; + ListGroupsRequest.prototype.pageSize = 0; /** - * ListRoutesRequest pageToken. + * ListGroupsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @instance */ - ListRoutesRequest.prototype.pageToken = ""; + ListGroupsRequest.prototype.pageToken = ""; /** - * ListRoutesRequest filter. + * ListGroupsRequest filter. * @member {string} filter - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @instance */ - ListRoutesRequest.prototype.filter = ""; + ListGroupsRequest.prototype.filter = ""; /** - * ListRoutesRequest orderBy. + * ListGroupsRequest orderBy. * @member {string} orderBy - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @instance */ - ListRoutesRequest.prototype.orderBy = ""; + ListGroupsRequest.prototype.orderBy = ""; /** - * Creates a new ListRoutesRequest instance using the specified properties. + * Creates a new ListGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @static - * @param {google.cloud.networkconnectivity.v1.IListRoutesRequest=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.ListRoutesRequest} ListRoutesRequest instance + * @param {google.cloud.networkconnectivity.v1.IListGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.ListGroupsRequest} ListGroupsRequest instance */ - ListRoutesRequest.create = function create(properties) { - return new ListRoutesRequest(properties); + ListGroupsRequest.create = function create(properties) { + return new ListGroupsRequest(properties); }; /** - * Encodes the specified ListRoutesRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesRequest.verify|verify} messages. + * Encodes the specified ListGroupsRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @static - * @param {google.cloud.networkconnectivity.v1.IListRoutesRequest} message ListRoutesRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IListGroupsRequest} message ListGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutesRequest.encode = function encode(message, writer) { + ListGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -9660,33 +12720,33 @@ }; /** - * Encodes the specified ListRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesRequest.verify|verify} messages. + * Encodes the specified ListGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @static - * @param {google.cloud.networkconnectivity.v1.IListRoutesRequest} message ListRoutesRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IListGroupsRequest} message ListGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRoutesRequest message from the specified reader or buffer. + * Decodes a ListGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.ListRoutesRequest} ListRoutesRequest + * @returns {google.cloud.networkconnectivity.v1.ListGroupsRequest} ListGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutesRequest.decode = function decode(reader, length) { + ListGroupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListRoutesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9719,30 +12779,30 @@ }; /** - * Decodes a ListRoutesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.ListRoutesRequest} ListRoutesRequest + * @returns {google.cloud.networkconnectivity.v1.ListGroupsRequest} ListGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutesRequest.decodeDelimited = function decodeDelimited(reader) { + ListGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRoutesRequest message. + * Verifies a ListGroupsRequest message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRoutesRequest.verify = function verify(message) { + ListGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -9764,17 +12824,17 @@ }; /** - * Creates a ListRoutesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.ListRoutesRequest} ListRoutesRequest + * @returns {google.cloud.networkconnectivity.v1.ListGroupsRequest} ListGroupsRequest */ - ListRoutesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.ListRoutesRequest) + ListGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.ListGroupsRequest) return object; - var message = new $root.google.cloud.networkconnectivity.v1.ListRoutesRequest(); + var message = new $root.google.cloud.networkconnectivity.v1.ListGroupsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -9789,15 +12849,15 @@ }; /** - * Creates a plain object from a ListRoutesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @static - * @param {google.cloud.networkconnectivity.v1.ListRoutesRequest} message ListRoutesRequest + * @param {google.cloud.networkconnectivity.v1.ListGroupsRequest} message ListGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRoutesRequest.toObject = function toObject(message, options) { + ListGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -9822,55 +12882,55 @@ }; /** - * Converts this ListRoutesRequest to JSON. + * Converts this ListGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @instance * @returns {Object.} JSON object */ - ListRoutesRequest.prototype.toJSON = function toJSON() { + ListGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRoutesRequest + * Gets the default type url for ListGroupsRequest * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.ListRoutesRequest + * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRoutesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListRoutesRequest"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListGroupsRequest"; }; - return ListRoutesRequest; + return ListGroupsRequest; })(); - v1.ListRoutesResponse = (function() { + v1.ListGroupsResponse = (function() { /** - * Properties of a ListRoutesResponse. + * Properties of a ListGroupsResponse. * @memberof google.cloud.networkconnectivity.v1 - * @interface IListRoutesResponse - * @property {Array.|null} [routes] ListRoutesResponse routes - * @property {string|null} [nextPageToken] ListRoutesResponse nextPageToken - * @property {Array.|null} [unreachable] ListRoutesResponse unreachable + * @interface IListGroupsResponse + * @property {Array.|null} [groups] ListGroupsResponse groups + * @property {string|null} [nextPageToken] ListGroupsResponse nextPageToken + * @property {Array.|null} [unreachable] ListGroupsResponse unreachable */ /** - * Constructs a new ListRoutesResponse. + * Constructs a new ListGroupsResponse. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a ListRoutesResponse. - * @implements IListRoutesResponse + * @classdesc Represents a ListGroupsResponse. + * @implements IListGroupsResponse * @constructor - * @param {google.cloud.networkconnectivity.v1.IListRoutesResponse=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IListGroupsResponse=} [properties] Properties to set */ - function ListRoutesResponse(properties) { - this.routes = []; + function ListGroupsResponse(properties) { + this.groups = []; this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -9879,56 +12939,56 @@ } /** - * ListRoutesResponse routes. - * @member {Array.} routes - * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * ListGroupsResponse groups. + * @member {Array.} groups + * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse * @instance */ - ListRoutesResponse.prototype.routes = $util.emptyArray; + ListGroupsResponse.prototype.groups = $util.emptyArray; /** - * ListRoutesResponse nextPageToken. + * ListGroupsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse * @instance */ - ListRoutesResponse.prototype.nextPageToken = ""; + ListGroupsResponse.prototype.nextPageToken = ""; /** - * ListRoutesResponse unreachable. + * ListGroupsResponse unreachable. * @member {Array.} unreachable - * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse * @instance */ - ListRoutesResponse.prototype.unreachable = $util.emptyArray; + ListGroupsResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new ListRoutesResponse instance using the specified properties. + * Creates a new ListGroupsResponse instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse * @static - * @param {google.cloud.networkconnectivity.v1.IListRoutesResponse=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.ListRoutesResponse} ListRoutesResponse instance + * @param {google.cloud.networkconnectivity.v1.IListGroupsResponse=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.ListGroupsResponse} ListGroupsResponse instance */ - ListRoutesResponse.create = function create(properties) { - return new ListRoutesResponse(properties); + ListGroupsResponse.create = function create(properties) { + return new ListGroupsResponse(properties); }; /** - * Encodes the specified ListRoutesResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesResponse.verify|verify} messages. + * Encodes the specified ListGroupsResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse * @static - * @param {google.cloud.networkconnectivity.v1.IListRoutesResponse} message ListRoutesResponse message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IListGroupsResponse} message ListGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutesResponse.encode = function encode(message, writer) { + ListGroupsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.routes != null && message.routes.length) - for (var i = 0; i < message.routes.length; ++i) - $root.google.cloud.networkconnectivity.v1.Route.encode(message.routes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.groups != null && message.groups.length) + for (var i = 0; i < message.groups.length; ++i) + $root.google.cloud.networkconnectivity.v1.Group.encode(message.groups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); if (message.unreachable != null && message.unreachable.length) @@ -9938,40 +12998,40 @@ }; /** - * Encodes the specified ListRoutesResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRoutesResponse.verify|verify} messages. + * Encodes the specified ListGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse * @static - * @param {google.cloud.networkconnectivity.v1.IListRoutesResponse} message ListRoutesResponse message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IListGroupsResponse} message ListGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRoutesResponse message from the specified reader or buffer. + * Decodes a ListGroupsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.ListRoutesResponse} ListRoutesResponse + * @returns {google.cloud.networkconnectivity.v1.ListGroupsResponse} ListGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutesResponse.decode = function decode(reader, length) { + ListGroupsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListRoutesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListGroupsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.routes && message.routes.length)) - message.routes = []; - message.routes.push($root.google.cloud.networkconnectivity.v1.Route.decode(reader, reader.uint32())); + if (!(message.groups && message.groups.length)) + message.groups = []; + message.groups.push($root.google.cloud.networkconnectivity.v1.Group.decode(reader, reader.uint32())); break; } case 2: { @@ -9993,39 +13053,39 @@ }; /** - * Decodes a ListRoutesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListGroupsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.ListRoutesResponse} ListRoutesResponse + * @returns {google.cloud.networkconnectivity.v1.ListGroupsResponse} ListGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutesResponse.decodeDelimited = function decodeDelimited(reader) { + ListGroupsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRoutesResponse message. + * Verifies a ListGroupsResponse message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRoutesResponse.verify = function verify(message) { + ListGroupsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.routes != null && message.hasOwnProperty("routes")) { - if (!Array.isArray(message.routes)) - return "routes: array expected"; - for (var i = 0; i < message.routes.length; ++i) { - var error = $root.google.cloud.networkconnectivity.v1.Route.verify(message.routes[i]); + if (message.groups != null && message.hasOwnProperty("groups")) { + if (!Array.isArray(message.groups)) + return "groups: array expected"; + for (var i = 0; i < message.groups.length; ++i) { + var error = $root.google.cloud.networkconnectivity.v1.Group.verify(message.groups[i]); if (error) - return "routes." + error; + return "groups." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -10042,32 +13102,32 @@ }; /** - * Creates a ListRoutesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListGroupsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.ListRoutesResponse} ListRoutesResponse + * @returns {google.cloud.networkconnectivity.v1.ListGroupsResponse} ListGroupsResponse */ - ListRoutesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.ListRoutesResponse) + ListGroupsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.ListGroupsResponse) return object; - var message = new $root.google.cloud.networkconnectivity.v1.ListRoutesResponse(); - if (object.routes) { - if (!Array.isArray(object.routes)) - throw TypeError(".google.cloud.networkconnectivity.v1.ListRoutesResponse.routes: array expected"); - message.routes = []; - for (var i = 0; i < object.routes.length; ++i) { - if (typeof object.routes[i] !== "object") - throw TypeError(".google.cloud.networkconnectivity.v1.ListRoutesResponse.routes: object expected"); - message.routes[i] = $root.google.cloud.networkconnectivity.v1.Route.fromObject(object.routes[i]); + var message = new $root.google.cloud.networkconnectivity.v1.ListGroupsResponse(); + if (object.groups) { + if (!Array.isArray(object.groups)) + throw TypeError(".google.cloud.networkconnectivity.v1.ListGroupsResponse.groups: array expected"); + message.groups = []; + for (var i = 0; i < object.groups.length; ++i) { + if (typeof object.groups[i] !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.ListGroupsResponse.groups: object expected"); + message.groups[i] = $root.google.cloud.networkconnectivity.v1.Group.fromObject(object.groups[i]); } } if (object.nextPageToken != null) message.nextPageToken = String(object.nextPageToken); if (object.unreachable) { if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.networkconnectivity.v1.ListRoutesResponse.unreachable: array expected"); + throw TypeError(".google.cloud.networkconnectivity.v1.ListGroupsResponse.unreachable: array expected"); message.unreachable = []; for (var i = 0; i < object.unreachable.length; ++i) message.unreachable[i] = String(object.unreachable[i]); @@ -10076,28 +13136,28 @@ }; /** - * Creates a plain object from a ListRoutesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListGroupsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse * @static - * @param {google.cloud.networkconnectivity.v1.ListRoutesResponse} message ListRoutesResponse + * @param {google.cloud.networkconnectivity.v1.ListGroupsResponse} message ListGroupsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRoutesResponse.toObject = function toObject(message, options) { + ListGroupsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.routes = []; + object.groups = []; object.unreachable = []; } if (options.defaults) object.nextPageToken = ""; - if (message.routes && message.routes.length) { - object.routes = []; - for (var j = 0; j < message.routes.length; ++j) - object.routes[j] = $root.google.cloud.networkconnectivity.v1.Route.toObject(message.routes[j], options); + if (message.groups && message.groups.length) { + object.groups = []; + for (var j = 0; j < message.groups.length; ++j) + object.groups[j] = $root.google.cloud.networkconnectivity.v1.Group.toObject(message.groups[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -10110,56 +13170,57 @@ }; /** - * Converts this ListRoutesResponse to JSON. + * Converts this ListGroupsResponse to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse * @instance * @returns {Object.} JSON object */ - ListRoutesResponse.prototype.toJSON = function toJSON() { + ListGroupsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRoutesResponse + * Gets the default type url for ListGroupsResponse * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.ListRoutesResponse + * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRoutesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListGroupsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListRoutesResponse"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListGroupsResponse"; }; - return ListRoutesResponse; + return ListGroupsResponse; })(); - v1.ListRouteTablesRequest = (function() { + v1.LinkedVpnTunnels = (function() { /** - * Properties of a ListRouteTablesRequest. + * Properties of a LinkedVpnTunnels. * @memberof google.cloud.networkconnectivity.v1 - * @interface IListRouteTablesRequest - * @property {string|null} [parent] ListRouteTablesRequest parent - * @property {number|null} [pageSize] ListRouteTablesRequest pageSize - * @property {string|null} [pageToken] ListRouteTablesRequest pageToken - * @property {string|null} [filter] ListRouteTablesRequest filter - * @property {string|null} [orderBy] ListRouteTablesRequest orderBy + * @interface ILinkedVpnTunnels + * @property {Array.|null} [uris] LinkedVpnTunnels uris + * @property {boolean|null} [siteToSiteDataTransfer] LinkedVpnTunnels siteToSiteDataTransfer + * @property {string|null} [vpcNetwork] LinkedVpnTunnels vpcNetwork + * @property {Array.|null} [includeImportRanges] LinkedVpnTunnels includeImportRanges */ /** - * Constructs a new ListRouteTablesRequest. + * Constructs a new LinkedVpnTunnels. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a ListRouteTablesRequest. - * @implements IListRouteTablesRequest + * @classdesc Represents a LinkedVpnTunnels. + * @implements ILinkedVpnTunnels * @constructor - * @param {google.cloud.networkconnectivity.v1.IListRouteTablesRequest=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.ILinkedVpnTunnels=} [properties] Properties to set */ - function ListRouteTablesRequest(properties) { + function LinkedVpnTunnels(properties) { + this.uris = []; + this.includeImportRanges = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10167,131 +13228,123 @@ } /** - * ListRouteTablesRequest parent. - * @member {string} parent - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest - * @instance - */ - ListRouteTablesRequest.prototype.parent = ""; - - /** - * ListRouteTablesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * LinkedVpnTunnels uris. + * @member {Array.} uris + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @instance */ - ListRouteTablesRequest.prototype.pageSize = 0; + LinkedVpnTunnels.prototype.uris = $util.emptyArray; /** - * ListRouteTablesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * LinkedVpnTunnels siteToSiteDataTransfer. + * @member {boolean} siteToSiteDataTransfer + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @instance */ - ListRouteTablesRequest.prototype.pageToken = ""; + LinkedVpnTunnels.prototype.siteToSiteDataTransfer = false; /** - * ListRouteTablesRequest filter. - * @member {string} filter - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * LinkedVpnTunnels vpcNetwork. + * @member {string} vpcNetwork + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @instance */ - ListRouteTablesRequest.prototype.filter = ""; + LinkedVpnTunnels.prototype.vpcNetwork = ""; /** - * ListRouteTablesRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * LinkedVpnTunnels includeImportRanges. + * @member {Array.} includeImportRanges + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @instance */ - ListRouteTablesRequest.prototype.orderBy = ""; + LinkedVpnTunnels.prototype.includeImportRanges = $util.emptyArray; /** - * Creates a new ListRouteTablesRequest instance using the specified properties. + * Creates a new LinkedVpnTunnels instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @static - * @param {google.cloud.networkconnectivity.v1.IListRouteTablesRequest=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesRequest} ListRouteTablesRequest instance + * @param {google.cloud.networkconnectivity.v1.ILinkedVpnTunnels=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.LinkedVpnTunnels} LinkedVpnTunnels instance */ - ListRouteTablesRequest.create = function create(properties) { - return new ListRouteTablesRequest(properties); + LinkedVpnTunnels.create = function create(properties) { + return new LinkedVpnTunnels(properties); }; /** - * Encodes the specified ListRouteTablesRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesRequest.verify|verify} messages. + * Encodes the specified LinkedVpnTunnels message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpnTunnels.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @static - * @param {google.cloud.networkconnectivity.v1.IListRouteTablesRequest} message ListRouteTablesRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ILinkedVpnTunnels} message LinkedVpnTunnels message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRouteTablesRequest.encode = function encode(message, writer) { + LinkedVpnTunnels.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.uris != null && message.uris.length) + for (var i = 0; i < message.uris.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uris[i]); + if (message.siteToSiteDataTransfer != null && Object.hasOwnProperty.call(message, "siteToSiteDataTransfer")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.siteToSiteDataTransfer); + if (message.vpcNetwork != null && Object.hasOwnProperty.call(message, "vpcNetwork")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.vpcNetwork); + if (message.includeImportRanges != null && message.includeImportRanges.length) + for (var i = 0; i < message.includeImportRanges.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.includeImportRanges[i]); return writer; }; /** - * Encodes the specified ListRouteTablesRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesRequest.verify|verify} messages. + * Encodes the specified LinkedVpnTunnels message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpnTunnels.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @static - * @param {google.cloud.networkconnectivity.v1.IListRouteTablesRequest} message ListRouteTablesRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ILinkedVpnTunnels} message LinkedVpnTunnels message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRouteTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { + LinkedVpnTunnels.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRouteTablesRequest message from the specified reader or buffer. + * Decodes a LinkedVpnTunnels message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesRequest} ListRouteTablesRequest + * @returns {google.cloud.networkconnectivity.v1.LinkedVpnTunnels} LinkedVpnTunnels * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRouteTablesRequest.decode = function decode(reader, length) { + LinkedVpnTunnels.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListRouteTablesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.uris && message.uris.length)) + message.uris = []; + message.uris.push(reader.string()); break; } case 2: { - message.pageSize = reader.int32(); + message.siteToSiteDataTransfer = reader.bool(); break; } case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); + message.vpcNetwork = reader.string(); break; } case 5: { - message.orderBy = reader.string(); + if (!(message.includeImportRanges && message.includeImportRanges.length)) + message.includeImportRanges = []; + message.includeImportRanges.push(reader.string()); break; } default: @@ -10303,159 +13356,178 @@ }; /** - * Decodes a ListRouteTablesRequest message from the specified reader or buffer, length delimited. + * Decodes a LinkedVpnTunnels message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesRequest} ListRouteTablesRequest + * @returns {google.cloud.networkconnectivity.v1.LinkedVpnTunnels} LinkedVpnTunnels * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRouteTablesRequest.decodeDelimited = function decodeDelimited(reader) { + LinkedVpnTunnels.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRouteTablesRequest message. + * Verifies a LinkedVpnTunnels message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRouteTablesRequest.verify = function verify(message) { + LinkedVpnTunnels.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.uris != null && message.hasOwnProperty("uris")) { + if (!Array.isArray(message.uris)) + return "uris: array expected"; + for (var i = 0; i < message.uris.length; ++i) + if (!$util.isString(message.uris[i])) + return "uris: string[] expected"; + } + if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) + if (typeof message.siteToSiteDataTransfer !== "boolean") + return "siteToSiteDataTransfer: boolean expected"; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) + if (!$util.isString(message.vpcNetwork)) + return "vpcNetwork: string expected"; + if (message.includeImportRanges != null && message.hasOwnProperty("includeImportRanges")) { + if (!Array.isArray(message.includeImportRanges)) + return "includeImportRanges: array expected"; + for (var i = 0; i < message.includeImportRanges.length; ++i) + if (!$util.isString(message.includeImportRanges[i])) + return "includeImportRanges: string[] expected"; + } return null; }; /** - * Creates a ListRouteTablesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LinkedVpnTunnels message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesRequest} ListRouteTablesRequest + * @returns {google.cloud.networkconnectivity.v1.LinkedVpnTunnels} LinkedVpnTunnels */ - ListRouteTablesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.ListRouteTablesRequest) + LinkedVpnTunnels.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) return object; - var message = new $root.google.cloud.networkconnectivity.v1.ListRouteTablesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(); + if (object.uris) { + if (!Array.isArray(object.uris)) + throw TypeError(".google.cloud.networkconnectivity.v1.LinkedVpnTunnels.uris: array expected"); + message.uris = []; + for (var i = 0; i < object.uris.length; ++i) + message.uris[i] = String(object.uris[i]); + } + if (object.siteToSiteDataTransfer != null) + message.siteToSiteDataTransfer = Boolean(object.siteToSiteDataTransfer); + if (object.vpcNetwork != null) + message.vpcNetwork = String(object.vpcNetwork); + if (object.includeImportRanges) { + if (!Array.isArray(object.includeImportRanges)) + throw TypeError(".google.cloud.networkconnectivity.v1.LinkedVpnTunnels.includeImportRanges: array expected"); + message.includeImportRanges = []; + for (var i = 0; i < object.includeImportRanges.length; ++i) + message.includeImportRanges[i] = String(object.includeImportRanges[i]); + } return message; }; /** - * Creates a plain object from a ListRouteTablesRequest message. Also converts values to other types if specified. + * Creates a plain object from a LinkedVpnTunnels message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @static - * @param {google.cloud.networkconnectivity.v1.ListRouteTablesRequest} message ListRouteTablesRequest + * @param {google.cloud.networkconnectivity.v1.LinkedVpnTunnels} message LinkedVpnTunnels * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRouteTablesRequest.toObject = function toObject(message, options) { + LinkedVpnTunnels.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.uris = []; + object.includeImportRanges = []; + } if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; + object.siteToSiteDataTransfer = false; + object.vpcNetwork = ""; + } + if (message.uris && message.uris.length) { + object.uris = []; + for (var j = 0; j < message.uris.length; ++j) + object.uris[j] = message.uris[j]; + } + if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) + object.siteToSiteDataTransfer = message.siteToSiteDataTransfer; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) + object.vpcNetwork = message.vpcNetwork; + if (message.includeImportRanges && message.includeImportRanges.length) { + object.includeImportRanges = []; + for (var j = 0; j < message.includeImportRanges.length; ++j) + object.includeImportRanges[j] = message.includeImportRanges[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; return object; }; /** - * Converts this ListRouteTablesRequest to JSON. + * Converts this LinkedVpnTunnels to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @instance * @returns {Object.} JSON object */ - ListRouteTablesRequest.prototype.toJSON = function toJSON() { + LinkedVpnTunnels.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRouteTablesRequest + * Gets the default type url for LinkedVpnTunnels * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRouteTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LinkedVpnTunnels.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListRouteTablesRequest"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.LinkedVpnTunnels"; }; - return ListRouteTablesRequest; + return LinkedVpnTunnels; })(); - v1.ListRouteTablesResponse = (function() { + v1.LinkedInterconnectAttachments = (function() { /** - * Properties of a ListRouteTablesResponse. + * Properties of a LinkedInterconnectAttachments. * @memberof google.cloud.networkconnectivity.v1 - * @interface IListRouteTablesResponse - * @property {Array.|null} [routeTables] ListRouteTablesResponse routeTables - * @property {string|null} [nextPageToken] ListRouteTablesResponse nextPageToken - * @property {Array.|null} [unreachable] ListRouteTablesResponse unreachable + * @interface ILinkedInterconnectAttachments + * @property {Array.|null} [uris] LinkedInterconnectAttachments uris + * @property {boolean|null} [siteToSiteDataTransfer] LinkedInterconnectAttachments siteToSiteDataTransfer + * @property {string|null} [vpcNetwork] LinkedInterconnectAttachments vpcNetwork + * @property {Array.|null} [includeImportRanges] LinkedInterconnectAttachments includeImportRanges */ /** - * Constructs a new ListRouteTablesResponse. + * Constructs a new LinkedInterconnectAttachments. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a ListRouteTablesResponse. - * @implements IListRouteTablesResponse + * @classdesc Represents a LinkedInterconnectAttachments. + * @implements ILinkedInterconnectAttachments * @constructor - * @param {google.cloud.networkconnectivity.v1.IListRouteTablesResponse=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments=} [properties] Properties to set */ - function ListRouteTablesResponse(properties) { - this.routeTables = []; - this.unreachable = []; + function LinkedInterconnectAttachments(properties) { + this.uris = []; + this.includeImportRanges = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10463,109 +13535,123 @@ } /** - * ListRouteTablesResponse routeTables. - * @member {Array.} routeTables - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * LinkedInterconnectAttachments uris. + * @member {Array.} uris + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments * @instance */ - ListRouteTablesResponse.prototype.routeTables = $util.emptyArray; + LinkedInterconnectAttachments.prototype.uris = $util.emptyArray; /** - * ListRouteTablesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * LinkedInterconnectAttachments siteToSiteDataTransfer. + * @member {boolean} siteToSiteDataTransfer + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments * @instance */ - ListRouteTablesResponse.prototype.nextPageToken = ""; + LinkedInterconnectAttachments.prototype.siteToSiteDataTransfer = false; /** - * ListRouteTablesResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * LinkedInterconnectAttachments vpcNetwork. + * @member {string} vpcNetwork + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments * @instance */ - ListRouteTablesResponse.prototype.unreachable = $util.emptyArray; + LinkedInterconnectAttachments.prototype.vpcNetwork = ""; /** - * Creates a new ListRouteTablesResponse instance using the specified properties. + * LinkedInterconnectAttachments includeImportRanges. + * @member {Array.} includeImportRanges + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + * @instance + */ + LinkedInterconnectAttachments.prototype.includeImportRanges = $util.emptyArray; + + /** + * Creates a new LinkedInterconnectAttachments instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments * @static - * @param {google.cloud.networkconnectivity.v1.IListRouteTablesResponse=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesResponse} ListRouteTablesResponse instance + * @param {google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments} LinkedInterconnectAttachments instance */ - ListRouteTablesResponse.create = function create(properties) { - return new ListRouteTablesResponse(properties); + LinkedInterconnectAttachments.create = function create(properties) { + return new LinkedInterconnectAttachments(properties); }; /** - * Encodes the specified ListRouteTablesResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesResponse.verify|verify} messages. + * Encodes the specified LinkedInterconnectAttachments message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments * @static - * @param {google.cloud.networkconnectivity.v1.IListRouteTablesResponse} message ListRouteTablesResponse message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments} message LinkedInterconnectAttachments message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRouteTablesResponse.encode = function encode(message, writer) { + LinkedInterconnectAttachments.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.routeTables != null && message.routeTables.length) - for (var i = 0; i < message.routeTables.length; ++i) - $root.google.cloud.networkconnectivity.v1.RouteTable.encode(message.routeTables[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.uris != null && message.uris.length) + for (var i = 0; i < message.uris.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uris[i]); + if (message.siteToSiteDataTransfer != null && Object.hasOwnProperty.call(message, "siteToSiteDataTransfer")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.siteToSiteDataTransfer); + if (message.vpcNetwork != null && Object.hasOwnProperty.call(message, "vpcNetwork")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.vpcNetwork); + if (message.includeImportRanges != null && message.includeImportRanges.length) + for (var i = 0; i < message.includeImportRanges.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.includeImportRanges[i]); return writer; }; /** - * Encodes the specified ListRouteTablesResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListRouteTablesResponse.verify|verify} messages. + * Encodes the specified LinkedInterconnectAttachments message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments * @static - * @param {google.cloud.networkconnectivity.v1.IListRouteTablesResponse} message ListRouteTablesResponse message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments} message LinkedInterconnectAttachments message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRouteTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { + LinkedInterconnectAttachments.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRouteTablesResponse message from the specified reader or buffer. + * Decodes a LinkedInterconnectAttachments message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesResponse} ListRouteTablesResponse + * @returns {google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments} LinkedInterconnectAttachments * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRouteTablesResponse.decode = function decode(reader, length) { + LinkedInterconnectAttachments.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListRouteTablesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.routeTables && message.routeTables.length)) - message.routeTables = []; - message.routeTables.push($root.google.cloud.networkconnectivity.v1.RouteTable.decode(reader, reader.uint32())); + if (!(message.uris && message.uris.length)) + message.uris = []; + message.uris.push(reader.string()); break; } case 2: { - message.nextPageToken = reader.string(); + message.siteToSiteDataTransfer = reader.bool(); break; } case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.vpcNetwork = reader.string(); + break; + } + case 5: { + if (!(message.includeImportRanges && message.includeImportRanges.length)) + message.includeImportRanges = []; + message.includeImportRanges.push(reader.string()); break; } default: @@ -10577,173 +13663,178 @@ }; /** - * Decodes a ListRouteTablesResponse message from the specified reader or buffer, length delimited. + * Decodes a LinkedInterconnectAttachments message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesResponse} ListRouteTablesResponse + * @returns {google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments} LinkedInterconnectAttachments * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRouteTablesResponse.decodeDelimited = function decodeDelimited(reader) { + LinkedInterconnectAttachments.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRouteTablesResponse message. + * Verifies a LinkedInterconnectAttachments message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRouteTablesResponse.verify = function verify(message) { + LinkedInterconnectAttachments.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.routeTables != null && message.hasOwnProperty("routeTables")) { - if (!Array.isArray(message.routeTables)) - return "routeTables: array expected"; - for (var i = 0; i < message.routeTables.length; ++i) { - var error = $root.google.cloud.networkconnectivity.v1.RouteTable.verify(message.routeTables[i]); - if (error) - return "routeTables." + error; - } + if (message.uris != null && message.hasOwnProperty("uris")) { + if (!Array.isArray(message.uris)) + return "uris: array expected"; + for (var i = 0; i < message.uris.length; ++i) + if (!$util.isString(message.uris[i])) + return "uris: string[] expected"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; + if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) + if (typeof message.siteToSiteDataTransfer !== "boolean") + return "siteToSiteDataTransfer: boolean expected"; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) + if (!$util.isString(message.vpcNetwork)) + return "vpcNetwork: string expected"; + if (message.includeImportRanges != null && message.hasOwnProperty("includeImportRanges")) { + if (!Array.isArray(message.includeImportRanges)) + return "includeImportRanges: array expected"; + for (var i = 0; i < message.includeImportRanges.length; ++i) + if (!$util.isString(message.includeImportRanges[i])) + return "includeImportRanges: string[] expected"; } return null; }; /** - * Creates a ListRouteTablesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LinkedInterconnectAttachments message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.ListRouteTablesResponse} ListRouteTablesResponse + * @returns {google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments} LinkedInterconnectAttachments */ - ListRouteTablesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.ListRouteTablesResponse) + LinkedInterconnectAttachments.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) return object; - var message = new $root.google.cloud.networkconnectivity.v1.ListRouteTablesResponse(); - if (object.routeTables) { - if (!Array.isArray(object.routeTables)) - throw TypeError(".google.cloud.networkconnectivity.v1.ListRouteTablesResponse.routeTables: array expected"); - message.routeTables = []; - for (var i = 0; i < object.routeTables.length; ++i) { - if (typeof object.routeTables[i] !== "object") - throw TypeError(".google.cloud.networkconnectivity.v1.ListRouteTablesResponse.routeTables: object expected"); - message.routeTables[i] = $root.google.cloud.networkconnectivity.v1.RouteTable.fromObject(object.routeTables[i]); - } + var message = new $root.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(); + if (object.uris) { + if (!Array.isArray(object.uris)) + throw TypeError(".google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.uris: array expected"); + message.uris = []; + for (var i = 0; i < object.uris.length; ++i) + message.uris[i] = String(object.uris[i]); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.networkconnectivity.v1.ListRouteTablesResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); + if (object.siteToSiteDataTransfer != null) + message.siteToSiteDataTransfer = Boolean(object.siteToSiteDataTransfer); + if (object.vpcNetwork != null) + message.vpcNetwork = String(object.vpcNetwork); + if (object.includeImportRanges) { + if (!Array.isArray(object.includeImportRanges)) + throw TypeError(".google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.includeImportRanges: array expected"); + message.includeImportRanges = []; + for (var i = 0; i < object.includeImportRanges.length; ++i) + message.includeImportRanges[i] = String(object.includeImportRanges[i]); } return message; }; /** - * Creates a plain object from a ListRouteTablesResponse message. Also converts values to other types if specified. + * Creates a plain object from a LinkedInterconnectAttachments message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments * @static - * @param {google.cloud.networkconnectivity.v1.ListRouteTablesResponse} message ListRouteTablesResponse + * @param {google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments} message LinkedInterconnectAttachments * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRouteTablesResponse.toObject = function toObject(message, options) { + LinkedInterconnectAttachments.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.routeTables = []; - object.unreachable = []; + object.uris = []; + object.includeImportRanges = []; } - if (options.defaults) - object.nextPageToken = ""; - if (message.routeTables && message.routeTables.length) { - object.routeTables = []; - for (var j = 0; j < message.routeTables.length; ++j) - object.routeTables[j] = $root.google.cloud.networkconnectivity.v1.RouteTable.toObject(message.routeTables[j], options); + if (options.defaults) { + object.siteToSiteDataTransfer = false; + object.vpcNetwork = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (message.uris && message.uris.length) { + object.uris = []; + for (var j = 0; j < message.uris.length; ++j) + object.uris[j] = message.uris[j]; + } + if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) + object.siteToSiteDataTransfer = message.siteToSiteDataTransfer; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) + object.vpcNetwork = message.vpcNetwork; + if (message.includeImportRanges && message.includeImportRanges.length) { + object.includeImportRanges = []; + for (var j = 0; j < message.includeImportRanges.length; ++j) + object.includeImportRanges[j] = message.includeImportRanges[j]; } return object; }; /** - * Converts this ListRouteTablesResponse to JSON. + * Converts this LinkedInterconnectAttachments to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments * @instance * @returns {Object.} JSON object */ - ListRouteTablesResponse.prototype.toJSON = function toJSON() { + LinkedInterconnectAttachments.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRouteTablesResponse + * Gets the default type url for LinkedInterconnectAttachments * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.ListRouteTablesResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRouteTablesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LinkedInterconnectAttachments.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListRouteTablesResponse"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments"; }; - return ListRouteTablesResponse; + return LinkedInterconnectAttachments; })(); - v1.ListGroupsRequest = (function() { + v1.LinkedRouterApplianceInstances = (function() { /** - * Properties of a ListGroupsRequest. + * Properties of a LinkedRouterApplianceInstances. * @memberof google.cloud.networkconnectivity.v1 - * @interface IListGroupsRequest - * @property {string|null} [parent] ListGroupsRequest parent - * @property {number|null} [pageSize] ListGroupsRequest pageSize - * @property {string|null} [pageToken] ListGroupsRequest pageToken - * @property {string|null} [filter] ListGroupsRequest filter - * @property {string|null} [orderBy] ListGroupsRequest orderBy + * @interface ILinkedRouterApplianceInstances + * @property {Array.|null} [instances] LinkedRouterApplianceInstances instances + * @property {boolean|null} [siteToSiteDataTransfer] LinkedRouterApplianceInstances siteToSiteDataTransfer + * @property {string|null} [vpcNetwork] LinkedRouterApplianceInstances vpcNetwork + * @property {Array.|null} [includeImportRanges] LinkedRouterApplianceInstances includeImportRanges */ /** - * Constructs a new ListGroupsRequest. + * Constructs a new LinkedRouterApplianceInstances. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a ListGroupsRequest. - * @implements IListGroupsRequest + * @classdesc Represents a LinkedRouterApplianceInstances. + * @implements ILinkedRouterApplianceInstances * @constructor - * @param {google.cloud.networkconnectivity.v1.IListGroupsRequest=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances=} [properties] Properties to set */ - function ListGroupsRequest(properties) { + function LinkedRouterApplianceInstances(properties) { + this.instances = []; + this.includeImportRanges = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10751,131 +13842,123 @@ } /** - * ListGroupsRequest parent. - * @member {string} parent - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest - * @instance - */ - ListGroupsRequest.prototype.parent = ""; - - /** - * ListGroupsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * LinkedRouterApplianceInstances instances. + * @member {Array.} instances + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances * @instance */ - ListGroupsRequest.prototype.pageSize = 0; + LinkedRouterApplianceInstances.prototype.instances = $util.emptyArray; /** - * ListGroupsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * LinkedRouterApplianceInstances siteToSiteDataTransfer. + * @member {boolean} siteToSiteDataTransfer + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances * @instance */ - ListGroupsRequest.prototype.pageToken = ""; + LinkedRouterApplianceInstances.prototype.siteToSiteDataTransfer = false; /** - * ListGroupsRequest filter. - * @member {string} filter - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * LinkedRouterApplianceInstances vpcNetwork. + * @member {string} vpcNetwork + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances * @instance */ - ListGroupsRequest.prototype.filter = ""; + LinkedRouterApplianceInstances.prototype.vpcNetwork = ""; /** - * ListGroupsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * LinkedRouterApplianceInstances includeImportRanges. + * @member {Array.} includeImportRanges + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances * @instance */ - ListGroupsRequest.prototype.orderBy = ""; + LinkedRouterApplianceInstances.prototype.includeImportRanges = $util.emptyArray; /** - * Creates a new ListGroupsRequest instance using the specified properties. + * Creates a new LinkedRouterApplianceInstances instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances * @static - * @param {google.cloud.networkconnectivity.v1.IListGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.ListGroupsRequest} ListGroupsRequest instance + * @param {google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances} LinkedRouterApplianceInstances instance */ - ListGroupsRequest.create = function create(properties) { - return new ListGroupsRequest(properties); + LinkedRouterApplianceInstances.create = function create(properties) { + return new LinkedRouterApplianceInstances(properties); }; /** - * Encodes the specified ListGroupsRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsRequest.verify|verify} messages. + * Encodes the specified LinkedRouterApplianceInstances message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances * @static - * @param {google.cloud.networkconnectivity.v1.IListGroupsRequest} message ListGroupsRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances} message LinkedRouterApplianceInstances message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGroupsRequest.encode = function encode(message, writer) { + LinkedRouterApplianceInstances.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance.encode(message.instances[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.siteToSiteDataTransfer != null && Object.hasOwnProperty.call(message, "siteToSiteDataTransfer")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.siteToSiteDataTransfer); + if (message.vpcNetwork != null && Object.hasOwnProperty.call(message, "vpcNetwork")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.vpcNetwork); + if (message.includeImportRanges != null && message.includeImportRanges.length) + for (var i = 0; i < message.includeImportRanges.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.includeImportRanges[i]); return writer; }; /** - * Encodes the specified ListGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsRequest.verify|verify} messages. + * Encodes the specified LinkedRouterApplianceInstances message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances * @static - * @param {google.cloud.networkconnectivity.v1.IListGroupsRequest} message ListGroupsRequest message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances} message LinkedRouterApplianceInstances message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + LinkedRouterApplianceInstances.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListGroupsRequest message from the specified reader or buffer. + * Decodes a LinkedRouterApplianceInstances message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.ListGroupsRequest} ListGroupsRequest + * @returns {google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances} LinkedRouterApplianceInstances * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGroupsRequest.decode = function decode(reader, length) { + LinkedRouterApplianceInstances.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.cloud.networkconnectivity.v1.RouterApplianceInstance.decode(reader, reader.uint32())); break; } case 2: { - message.pageSize = reader.int32(); + message.siteToSiteDataTransfer = reader.bool(); break; } case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); + message.vpcNetwork = reader.string(); break; } case 5: { - message.orderBy = reader.string(); + if (!(message.includeImportRanges && message.includeImportRanges.length)) + message.includeImportRanges = []; + message.includeImportRanges.push(reader.string()); break; } default: @@ -10887,159 +13970,184 @@ }; /** - * Decodes a ListGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a LinkedRouterApplianceInstances message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.ListGroupsRequest} ListGroupsRequest + * @returns {google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances} LinkedRouterApplianceInstances * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + LinkedRouterApplianceInstances.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListGroupsRequest message. - * @function verify - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListGroupsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LinkedRouterApplianceInstances message. + * @function verify + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LinkedRouterApplianceInstances.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) + if (typeof message.siteToSiteDataTransfer !== "boolean") + return "siteToSiteDataTransfer: boolean expected"; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) + if (!$util.isString(message.vpcNetwork)) + return "vpcNetwork: string expected"; + if (message.includeImportRanges != null && message.hasOwnProperty("includeImportRanges")) { + if (!Array.isArray(message.includeImportRanges)) + return "includeImportRanges: array expected"; + for (var i = 0; i < message.includeImportRanges.length; ++i) + if (!$util.isString(message.includeImportRanges[i])) + return "includeImportRanges: string[] expected"; + } return null; }; /** - * Creates a ListGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LinkedRouterApplianceInstances message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.ListGroupsRequest} ListGroupsRequest + * @returns {google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances} LinkedRouterApplianceInstances */ - ListGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.ListGroupsRequest) + LinkedRouterApplianceInstances.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) return object; - var message = new $root.google.cloud.networkconnectivity.v1.ListGroupsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(); + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.instances: object expected"); + message.instances[i] = $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance.fromObject(object.instances[i]); + } + } + if (object.siteToSiteDataTransfer != null) + message.siteToSiteDataTransfer = Boolean(object.siteToSiteDataTransfer); + if (object.vpcNetwork != null) + message.vpcNetwork = String(object.vpcNetwork); + if (object.includeImportRanges) { + if (!Array.isArray(object.includeImportRanges)) + throw TypeError(".google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.includeImportRanges: array expected"); + message.includeImportRanges = []; + for (var i = 0; i < object.includeImportRanges.length; ++i) + message.includeImportRanges[i] = String(object.includeImportRanges[i]); + } return message; }; /** - * Creates a plain object from a ListGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a LinkedRouterApplianceInstances message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances * @static - * @param {google.cloud.networkconnectivity.v1.ListGroupsRequest} message ListGroupsRequest + * @param {google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances} message LinkedRouterApplianceInstances * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListGroupsRequest.toObject = function toObject(message, options) { + LinkedRouterApplianceInstances.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.instances = []; + object.includeImportRanges = []; + } if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; + object.siteToSiteDataTransfer = false; + object.vpcNetwork = ""; + } + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance.toObject(message.instances[j], options); + } + if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) + object.siteToSiteDataTransfer = message.siteToSiteDataTransfer; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) + object.vpcNetwork = message.vpcNetwork; + if (message.includeImportRanges && message.includeImportRanges.length) { + object.includeImportRanges = []; + for (var j = 0; j < message.includeImportRanges.length; ++j) + object.includeImportRanges[j] = message.includeImportRanges[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; return object; }; /** - * Converts this ListGroupsRequest to JSON. + * Converts this LinkedRouterApplianceInstances to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances * @instance * @returns {Object.} JSON object */ - ListGroupsRequest.prototype.toJSON = function toJSON() { + LinkedRouterApplianceInstances.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListGroupsRequest + * Gets the default type url for LinkedRouterApplianceInstances * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.ListGroupsRequest + * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LinkedRouterApplianceInstances.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListGroupsRequest"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances"; }; - return ListGroupsRequest; + return LinkedRouterApplianceInstances; })(); - v1.ListGroupsResponse = (function() { + v1.LinkedVpcNetwork = (function() { /** - * Properties of a ListGroupsResponse. + * Properties of a LinkedVpcNetwork. * @memberof google.cloud.networkconnectivity.v1 - * @interface IListGroupsResponse - * @property {Array.|null} [groups] ListGroupsResponse groups - * @property {string|null} [nextPageToken] ListGroupsResponse nextPageToken - * @property {Array.|null} [unreachable] ListGroupsResponse unreachable + * @interface ILinkedVpcNetwork + * @property {string|null} [uri] LinkedVpcNetwork uri + * @property {Array.|null} [excludeExportRanges] LinkedVpcNetwork excludeExportRanges + * @property {Array.|null} [includeExportRanges] LinkedVpcNetwork includeExportRanges + * @property {Array.|null} [producerVpcSpokes] LinkedVpcNetwork producerVpcSpokes */ /** - * Constructs a new ListGroupsResponse. + * Constructs a new LinkedVpcNetwork. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a ListGroupsResponse. - * @implements IListGroupsResponse + * @classdesc Represents a LinkedVpcNetwork. + * @implements ILinkedVpcNetwork * @constructor - * @param {google.cloud.networkconnectivity.v1.IListGroupsResponse=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.ILinkedVpcNetwork=} [properties] Properties to set */ - function ListGroupsResponse(properties) { - this.groups = []; - this.unreachable = []; + function LinkedVpcNetwork(properties) { + this.excludeExportRanges = []; + this.includeExportRanges = []; + this.producerVpcSpokes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11047,109 +14155,126 @@ } /** - * ListGroupsResponse groups. - * @member {Array.} groups - * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse + * LinkedVpcNetwork uri. + * @member {string} uri + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork * @instance */ - ListGroupsResponse.prototype.groups = $util.emptyArray; + LinkedVpcNetwork.prototype.uri = ""; /** - * ListGroupsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse + * LinkedVpcNetwork excludeExportRanges. + * @member {Array.} excludeExportRanges + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork * @instance */ - ListGroupsResponse.prototype.nextPageToken = ""; + LinkedVpcNetwork.prototype.excludeExportRanges = $util.emptyArray; /** - * ListGroupsResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse + * LinkedVpcNetwork includeExportRanges. + * @member {Array.} includeExportRanges + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork * @instance */ - ListGroupsResponse.prototype.unreachable = $util.emptyArray; + LinkedVpcNetwork.prototype.includeExportRanges = $util.emptyArray; /** - * Creates a new ListGroupsResponse instance using the specified properties. + * LinkedVpcNetwork producerVpcSpokes. + * @member {Array.} producerVpcSpokes + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork + * @instance + */ + LinkedVpcNetwork.prototype.producerVpcSpokes = $util.emptyArray; + + /** + * Creates a new LinkedVpcNetwork instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork * @static - * @param {google.cloud.networkconnectivity.v1.IListGroupsResponse=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.ListGroupsResponse} ListGroupsResponse instance + * @param {google.cloud.networkconnectivity.v1.ILinkedVpcNetwork=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.LinkedVpcNetwork} LinkedVpcNetwork instance */ - ListGroupsResponse.create = function create(properties) { - return new ListGroupsResponse(properties); + LinkedVpcNetwork.create = function create(properties) { + return new LinkedVpcNetwork(properties); }; /** - * Encodes the specified ListGroupsResponse message. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsResponse.verify|verify} messages. + * Encodes the specified LinkedVpcNetwork message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpcNetwork.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork * @static - * @param {google.cloud.networkconnectivity.v1.IListGroupsResponse} message ListGroupsResponse message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ILinkedVpcNetwork} message LinkedVpcNetwork message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGroupsResponse.encode = function encode(message, writer) { + LinkedVpcNetwork.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.groups != null && message.groups.length) - for (var i = 0; i < message.groups.length; ++i) - $root.google.cloud.networkconnectivity.v1.Group.encode(message.groups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.excludeExportRanges != null && message.excludeExportRanges.length) + for (var i = 0; i < message.excludeExportRanges.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.excludeExportRanges[i]); + if (message.includeExportRanges != null && message.includeExportRanges.length) + for (var i = 0; i < message.includeExportRanges.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.includeExportRanges[i]); + if (message.producerVpcSpokes != null && message.producerVpcSpokes.length) + for (var i = 0; i < message.producerVpcSpokes.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.producerVpcSpokes[i]); return writer; }; /** - * Encodes the specified ListGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.ListGroupsResponse.verify|verify} messages. + * Encodes the specified LinkedVpcNetwork message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpcNetwork.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork * @static - * @param {google.cloud.networkconnectivity.v1.IListGroupsResponse} message ListGroupsResponse message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ILinkedVpcNetwork} message LinkedVpcNetwork message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) { + LinkedVpcNetwork.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListGroupsResponse message from the specified reader or buffer. + * Decodes a LinkedVpcNetwork message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.ListGroupsResponse} ListGroupsResponse + * @returns {google.cloud.networkconnectivity.v1.LinkedVpcNetwork} LinkedVpcNetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGroupsResponse.decode = function decode(reader, length) { + LinkedVpcNetwork.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.ListGroupsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.LinkedVpcNetwork(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.groups && message.groups.length)) - message.groups = []; - message.groups.push($root.google.cloud.networkconnectivity.v1.Group.decode(reader, reader.uint32())); + message.uri = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + if (!(message.excludeExportRanges && message.excludeExportRanges.length)) + message.excludeExportRanges = []; + message.excludeExportRanges.push(reader.string()); break; } case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + if (!(message.includeExportRanges && message.includeExportRanges.length)) + message.includeExportRanges = []; + message.includeExportRanges.push(reader.string()); + break; + } + case 4: { + if (!(message.producerVpcSpokes && message.producerVpcSpokes.length)) + message.producerVpcSpokes = []; + message.producerVpcSpokes.push(reader.string()); break; } default: @@ -11161,172 +14286,191 @@ }; /** - * Decodes a ListGroupsResponse message from the specified reader or buffer, length delimited. + * Decodes a LinkedVpcNetwork message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.ListGroupsResponse} ListGroupsResponse + * @returns {google.cloud.networkconnectivity.v1.LinkedVpcNetwork} LinkedVpcNetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListGroupsResponse.decodeDelimited = function decodeDelimited(reader) { + LinkedVpcNetwork.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListGroupsResponse message. + * Verifies a LinkedVpcNetwork message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListGroupsResponse.verify = function verify(message) { + LinkedVpcNetwork.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.groups != null && message.hasOwnProperty("groups")) { - if (!Array.isArray(message.groups)) - return "groups: array expected"; - for (var i = 0; i < message.groups.length; ++i) { - var error = $root.google.cloud.networkconnectivity.v1.Group.verify(message.groups[i]); - if (error) - return "groups." + error; - } + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.excludeExportRanges != null && message.hasOwnProperty("excludeExportRanges")) { + if (!Array.isArray(message.excludeExportRanges)) + return "excludeExportRanges: array expected"; + for (var i = 0; i < message.excludeExportRanges.length; ++i) + if (!$util.isString(message.excludeExportRanges[i])) + return "excludeExportRanges: string[] expected"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; + if (message.includeExportRanges != null && message.hasOwnProperty("includeExportRanges")) { + if (!Array.isArray(message.includeExportRanges)) + return "includeExportRanges: array expected"; + for (var i = 0; i < message.includeExportRanges.length; ++i) + if (!$util.isString(message.includeExportRanges[i])) + return "includeExportRanges: string[] expected"; + } + if (message.producerVpcSpokes != null && message.hasOwnProperty("producerVpcSpokes")) { + if (!Array.isArray(message.producerVpcSpokes)) + return "producerVpcSpokes: array expected"; + for (var i = 0; i < message.producerVpcSpokes.length; ++i) + if (!$util.isString(message.producerVpcSpokes[i])) + return "producerVpcSpokes: string[] expected"; } return null; }; /** - * Creates a ListGroupsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LinkedVpcNetwork message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.ListGroupsResponse} ListGroupsResponse + * @returns {google.cloud.networkconnectivity.v1.LinkedVpcNetwork} LinkedVpcNetwork */ - ListGroupsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.ListGroupsResponse) + LinkedVpcNetwork.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.LinkedVpcNetwork) return object; - var message = new $root.google.cloud.networkconnectivity.v1.ListGroupsResponse(); - if (object.groups) { - if (!Array.isArray(object.groups)) - throw TypeError(".google.cloud.networkconnectivity.v1.ListGroupsResponse.groups: array expected"); - message.groups = []; - for (var i = 0; i < object.groups.length; ++i) { - if (typeof object.groups[i] !== "object") - throw TypeError(".google.cloud.networkconnectivity.v1.ListGroupsResponse.groups: object expected"); - message.groups[i] = $root.google.cloud.networkconnectivity.v1.Group.fromObject(object.groups[i]); - } + var message = new $root.google.cloud.networkconnectivity.v1.LinkedVpcNetwork(); + if (object.uri != null) + message.uri = String(object.uri); + if (object.excludeExportRanges) { + if (!Array.isArray(object.excludeExportRanges)) + throw TypeError(".google.cloud.networkconnectivity.v1.LinkedVpcNetwork.excludeExportRanges: array expected"); + message.excludeExportRanges = []; + for (var i = 0; i < object.excludeExportRanges.length; ++i) + message.excludeExportRanges[i] = String(object.excludeExportRanges[i]); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.networkconnectivity.v1.ListGroupsResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); + if (object.includeExportRanges) { + if (!Array.isArray(object.includeExportRanges)) + throw TypeError(".google.cloud.networkconnectivity.v1.LinkedVpcNetwork.includeExportRanges: array expected"); + message.includeExportRanges = []; + for (var i = 0; i < object.includeExportRanges.length; ++i) + message.includeExportRanges[i] = String(object.includeExportRanges[i]); + } + if (object.producerVpcSpokes) { + if (!Array.isArray(object.producerVpcSpokes)) + throw TypeError(".google.cloud.networkconnectivity.v1.LinkedVpcNetwork.producerVpcSpokes: array expected"); + message.producerVpcSpokes = []; + for (var i = 0; i < object.producerVpcSpokes.length; ++i) + message.producerVpcSpokes[i] = String(object.producerVpcSpokes[i]); } return message; }; /** - * Creates a plain object from a ListGroupsResponse message. Also converts values to other types if specified. + * Creates a plain object from a LinkedVpcNetwork message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork * @static - * @param {google.cloud.networkconnectivity.v1.ListGroupsResponse} message ListGroupsResponse + * @param {google.cloud.networkconnectivity.v1.LinkedVpcNetwork} message LinkedVpcNetwork * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListGroupsResponse.toObject = function toObject(message, options) { + LinkedVpcNetwork.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.groups = []; - object.unreachable = []; + object.excludeExportRanges = []; + object.includeExportRanges = []; + object.producerVpcSpokes = []; } if (options.defaults) - object.nextPageToken = ""; - if (message.groups && message.groups.length) { - object.groups = []; - for (var j = 0; j < message.groups.length; ++j) - object.groups[j] = $root.google.cloud.networkconnectivity.v1.Group.toObject(message.groups[j], options); + object.uri = ""; + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + if (message.excludeExportRanges && message.excludeExportRanges.length) { + object.excludeExportRanges = []; + for (var j = 0; j < message.excludeExportRanges.length; ++j) + object.excludeExportRanges[j] = message.excludeExportRanges[j]; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (message.includeExportRanges && message.includeExportRanges.length) { + object.includeExportRanges = []; + for (var j = 0; j < message.includeExportRanges.length; ++j) + object.includeExportRanges[j] = message.includeExportRanges[j]; + } + if (message.producerVpcSpokes && message.producerVpcSpokes.length) { + object.producerVpcSpokes = []; + for (var j = 0; j < message.producerVpcSpokes.length; ++j) + object.producerVpcSpokes[j] = message.producerVpcSpokes[j]; } return object; }; /** - * Converts this ListGroupsResponse to JSON. + * Converts this LinkedVpcNetwork to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork * @instance * @returns {Object.} JSON object */ - ListGroupsResponse.prototype.toJSON = function toJSON() { + LinkedVpcNetwork.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListGroupsResponse + * Gets the default type url for LinkedVpcNetwork * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.ListGroupsResponse + * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListGroupsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LinkedVpcNetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.ListGroupsResponse"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.LinkedVpcNetwork"; }; - return ListGroupsResponse; + return LinkedVpcNetwork; })(); - v1.LinkedVpnTunnels = (function() { + v1.LinkedProducerVpcNetwork = (function() { /** - * Properties of a LinkedVpnTunnels. + * Properties of a LinkedProducerVpcNetwork. * @memberof google.cloud.networkconnectivity.v1 - * @interface ILinkedVpnTunnels - * @property {Array.|null} [uris] LinkedVpnTunnels uris - * @property {boolean|null} [siteToSiteDataTransfer] LinkedVpnTunnels siteToSiteDataTransfer - * @property {string|null} [vpcNetwork] LinkedVpnTunnels vpcNetwork + * @interface ILinkedProducerVpcNetwork + * @property {string|null} [network] LinkedProducerVpcNetwork network + * @property {string|null} [serviceConsumerVpcSpoke] LinkedProducerVpcNetwork serviceConsumerVpcSpoke + * @property {string|null} [peering] LinkedProducerVpcNetwork peering + * @property {string|null} [producerNetwork] LinkedProducerVpcNetwork producerNetwork + * @property {Array.|null} [excludeExportRanges] LinkedProducerVpcNetwork excludeExportRanges + * @property {Array.|null} [includeExportRanges] LinkedProducerVpcNetwork includeExportRanges */ /** - * Constructs a new LinkedVpnTunnels. + * Constructs a new LinkedProducerVpcNetwork. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a LinkedVpnTunnels. - * @implements ILinkedVpnTunnels + * @classdesc Represents a LinkedProducerVpcNetwork. + * @implements ILinkedProducerVpcNetwork * @constructor - * @param {google.cloud.networkconnectivity.v1.ILinkedVpnTunnels=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.ILinkedProducerVpcNetwork=} [properties] Properties to set */ - function LinkedVpnTunnels(properties) { - this.uris = []; + function LinkedProducerVpcNetwork(properties) { + this.excludeExportRanges = []; + this.includeExportRanges = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11334,106 +14478,151 @@ } /** - * LinkedVpnTunnels uris. - * @member {Array.} uris - * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels + * LinkedProducerVpcNetwork network. + * @member {string} network + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork * @instance */ - LinkedVpnTunnels.prototype.uris = $util.emptyArray; + LinkedProducerVpcNetwork.prototype.network = ""; /** - * LinkedVpnTunnels siteToSiteDataTransfer. - * @member {boolean} siteToSiteDataTransfer - * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels + * LinkedProducerVpcNetwork serviceConsumerVpcSpoke. + * @member {string} serviceConsumerVpcSpoke + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork * @instance */ - LinkedVpnTunnels.prototype.siteToSiteDataTransfer = false; + LinkedProducerVpcNetwork.prototype.serviceConsumerVpcSpoke = ""; /** - * LinkedVpnTunnels vpcNetwork. - * @member {string} vpcNetwork - * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels + * LinkedProducerVpcNetwork peering. + * @member {string} peering + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork * @instance */ - LinkedVpnTunnels.prototype.vpcNetwork = ""; + LinkedProducerVpcNetwork.prototype.peering = ""; /** - * Creates a new LinkedVpnTunnels instance using the specified properties. + * LinkedProducerVpcNetwork producerNetwork. + * @member {string} producerNetwork + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork + * @instance + */ + LinkedProducerVpcNetwork.prototype.producerNetwork = ""; + + /** + * LinkedProducerVpcNetwork excludeExportRanges. + * @member {Array.} excludeExportRanges + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork + * @instance + */ + LinkedProducerVpcNetwork.prototype.excludeExportRanges = $util.emptyArray; + + /** + * LinkedProducerVpcNetwork includeExportRanges. + * @member {Array.} includeExportRanges + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork + * @instance + */ + LinkedProducerVpcNetwork.prototype.includeExportRanges = $util.emptyArray; + + /** + * Creates a new LinkedProducerVpcNetwork instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork * @static - * @param {google.cloud.networkconnectivity.v1.ILinkedVpnTunnels=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.LinkedVpnTunnels} LinkedVpnTunnels instance + * @param {google.cloud.networkconnectivity.v1.ILinkedProducerVpcNetwork=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork} LinkedProducerVpcNetwork instance */ - LinkedVpnTunnels.create = function create(properties) { - return new LinkedVpnTunnels(properties); + LinkedProducerVpcNetwork.create = function create(properties) { + return new LinkedProducerVpcNetwork(properties); }; /** - * Encodes the specified LinkedVpnTunnels message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpnTunnels.verify|verify} messages. + * Encodes the specified LinkedProducerVpcNetwork message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork * @static - * @param {google.cloud.networkconnectivity.v1.ILinkedVpnTunnels} message LinkedVpnTunnels message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ILinkedProducerVpcNetwork} message LinkedProducerVpcNetwork message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LinkedVpnTunnels.encode = function encode(message, writer) { + LinkedProducerVpcNetwork.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uris != null && message.uris.length) - for (var i = 0; i < message.uris.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uris[i]); - if (message.siteToSiteDataTransfer != null && Object.hasOwnProperty.call(message, "siteToSiteDataTransfer")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.siteToSiteDataTransfer); - if (message.vpcNetwork != null && Object.hasOwnProperty.call(message, "vpcNetwork")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.vpcNetwork); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); + if (message.peering != null && Object.hasOwnProperty.call(message, "peering")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.peering); + if (message.excludeExportRanges != null && message.excludeExportRanges.length) + for (var i = 0; i < message.excludeExportRanges.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.excludeExportRanges[i]); + if (message.includeExportRanges != null && message.includeExportRanges.length) + for (var i = 0; i < message.includeExportRanges.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.includeExportRanges[i]); + if (message.producerNetwork != null && Object.hasOwnProperty.call(message, "producerNetwork")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.producerNetwork); + if (message.serviceConsumerVpcSpoke != null && Object.hasOwnProperty.call(message, "serviceConsumerVpcSpoke")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.serviceConsumerVpcSpoke); return writer; }; /** - * Encodes the specified LinkedVpnTunnels message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpnTunnels.verify|verify} messages. + * Encodes the specified LinkedProducerVpcNetwork message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork * @static - * @param {google.cloud.networkconnectivity.v1.ILinkedVpnTunnels} message LinkedVpnTunnels message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ILinkedProducerVpcNetwork} message LinkedProducerVpcNetwork message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LinkedVpnTunnels.encodeDelimited = function encodeDelimited(message, writer) { + LinkedProducerVpcNetwork.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LinkedVpnTunnels message from the specified reader or buffer. + * Decodes a LinkedProducerVpcNetwork message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.LinkedVpnTunnels} LinkedVpnTunnels + * @returns {google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork} LinkedProducerVpcNetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LinkedVpnTunnels.decode = function decode(reader, length) { + LinkedProducerVpcNetwork.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.uris && message.uris.length)) - message.uris = []; - message.uris.push(reader.string()); + message.network = reader.string(); + break; + } + case 6: { + message.serviceConsumerVpcSpoke = reader.string(); break; } case 2: { - message.siteToSiteDataTransfer = reader.bool(); + message.peering = reader.string(); + break; + } + case 5: { + message.producerNetwork = reader.string(); break; } case 3: { - message.vpcNetwork = reader.string(); + if (!(message.excludeExportRanges && message.excludeExportRanges.length)) + message.excludeExportRanges = []; + message.excludeExportRanges.push(reader.string()); + break; + } + case 4: { + if (!(message.includeExportRanges && message.includeExportRanges.length)) + message.includeExportRanges = []; + message.includeExportRanges.push(reader.string()); break; } default: @@ -11445,155 +14634,190 @@ }; /** - * Decodes a LinkedVpnTunnels message from the specified reader or buffer, length delimited. + * Decodes a LinkedProducerVpcNetwork message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.LinkedVpnTunnels} LinkedVpnTunnels + * @returns {google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork} LinkedProducerVpcNetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LinkedVpnTunnels.decodeDelimited = function decodeDelimited(reader) { + LinkedProducerVpcNetwork.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LinkedVpnTunnels message. + * Verifies a LinkedProducerVpcNetwork message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LinkedVpnTunnels.verify = function verify(message) { + LinkedProducerVpcNetwork.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uris != null && message.hasOwnProperty("uris")) { - if (!Array.isArray(message.uris)) - return "uris: array expected"; - for (var i = 0; i < message.uris.length; ++i) - if (!$util.isString(message.uris[i])) - return "uris: string[] expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.serviceConsumerVpcSpoke != null && message.hasOwnProperty("serviceConsumerVpcSpoke")) + if (!$util.isString(message.serviceConsumerVpcSpoke)) + return "serviceConsumerVpcSpoke: string expected"; + if (message.peering != null && message.hasOwnProperty("peering")) + if (!$util.isString(message.peering)) + return "peering: string expected"; + if (message.producerNetwork != null && message.hasOwnProperty("producerNetwork")) + if (!$util.isString(message.producerNetwork)) + return "producerNetwork: string expected"; + if (message.excludeExportRanges != null && message.hasOwnProperty("excludeExportRanges")) { + if (!Array.isArray(message.excludeExportRanges)) + return "excludeExportRanges: array expected"; + for (var i = 0; i < message.excludeExportRanges.length; ++i) + if (!$util.isString(message.excludeExportRanges[i])) + return "excludeExportRanges: string[] expected"; + } + if (message.includeExportRanges != null && message.hasOwnProperty("includeExportRanges")) { + if (!Array.isArray(message.includeExportRanges)) + return "includeExportRanges: array expected"; + for (var i = 0; i < message.includeExportRanges.length; ++i) + if (!$util.isString(message.includeExportRanges[i])) + return "includeExportRanges: string[] expected"; } - if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) - if (typeof message.siteToSiteDataTransfer !== "boolean") - return "siteToSiteDataTransfer: boolean expected"; - if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) - if (!$util.isString(message.vpcNetwork)) - return "vpcNetwork: string expected"; return null; }; /** - * Creates a LinkedVpnTunnels message from a plain object. Also converts values to their respective internal types. + * Creates a LinkedProducerVpcNetwork message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.LinkedVpnTunnels} LinkedVpnTunnels + * @returns {google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork} LinkedProducerVpcNetwork */ - LinkedVpnTunnels.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) + LinkedProducerVpcNetwork.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork) return object; - var message = new $root.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(); - if (object.uris) { - if (!Array.isArray(object.uris)) - throw TypeError(".google.cloud.networkconnectivity.v1.LinkedVpnTunnels.uris: array expected"); - message.uris = []; - for (var i = 0; i < object.uris.length; ++i) - message.uris[i] = String(object.uris[i]); + var message = new $root.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork(); + if (object.network != null) + message.network = String(object.network); + if (object.serviceConsumerVpcSpoke != null) + message.serviceConsumerVpcSpoke = String(object.serviceConsumerVpcSpoke); + if (object.peering != null) + message.peering = String(object.peering); + if (object.producerNetwork != null) + message.producerNetwork = String(object.producerNetwork); + if (object.excludeExportRanges) { + if (!Array.isArray(object.excludeExportRanges)) + throw TypeError(".google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.excludeExportRanges: array expected"); + message.excludeExportRanges = []; + for (var i = 0; i < object.excludeExportRanges.length; ++i) + message.excludeExportRanges[i] = String(object.excludeExportRanges[i]); + } + if (object.includeExportRanges) { + if (!Array.isArray(object.includeExportRanges)) + throw TypeError(".google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.includeExportRanges: array expected"); + message.includeExportRanges = []; + for (var i = 0; i < object.includeExportRanges.length; ++i) + message.includeExportRanges[i] = String(object.includeExportRanges[i]); } - if (object.siteToSiteDataTransfer != null) - message.siteToSiteDataTransfer = Boolean(object.siteToSiteDataTransfer); - if (object.vpcNetwork != null) - message.vpcNetwork = String(object.vpcNetwork); return message; }; /** - * Creates a plain object from a LinkedVpnTunnels message. Also converts values to other types if specified. + * Creates a plain object from a LinkedProducerVpcNetwork message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork * @static - * @param {google.cloud.networkconnectivity.v1.LinkedVpnTunnels} message LinkedVpnTunnels + * @param {google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork} message LinkedProducerVpcNetwork * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LinkedVpnTunnels.toObject = function toObject(message, options) { + LinkedProducerVpcNetwork.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uris = []; - if (options.defaults) { - object.siteToSiteDataTransfer = false; - object.vpcNetwork = ""; + if (options.arrays || options.defaults) { + object.excludeExportRanges = []; + object.includeExportRanges = []; + } + if (options.defaults) { + object.network = ""; + object.peering = ""; + object.producerNetwork = ""; + object.serviceConsumerVpcSpoke = ""; } - if (message.uris && message.uris.length) { - object.uris = []; - for (var j = 0; j < message.uris.length; ++j) - object.uris[j] = message.uris[j]; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.peering != null && message.hasOwnProperty("peering")) + object.peering = message.peering; + if (message.excludeExportRanges && message.excludeExportRanges.length) { + object.excludeExportRanges = []; + for (var j = 0; j < message.excludeExportRanges.length; ++j) + object.excludeExportRanges[j] = message.excludeExportRanges[j]; } - if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) - object.siteToSiteDataTransfer = message.siteToSiteDataTransfer; - if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) - object.vpcNetwork = message.vpcNetwork; + if (message.includeExportRanges && message.includeExportRanges.length) { + object.includeExportRanges = []; + for (var j = 0; j < message.includeExportRanges.length; ++j) + object.includeExportRanges[j] = message.includeExportRanges[j]; + } + if (message.producerNetwork != null && message.hasOwnProperty("producerNetwork")) + object.producerNetwork = message.producerNetwork; + if (message.serviceConsumerVpcSpoke != null && message.hasOwnProperty("serviceConsumerVpcSpoke")) + object.serviceConsumerVpcSpoke = message.serviceConsumerVpcSpoke; return object; }; /** - * Converts this LinkedVpnTunnels to JSON. + * Converts this LinkedProducerVpcNetwork to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork * @instance * @returns {Object.} JSON object */ - LinkedVpnTunnels.prototype.toJSON = function toJSON() { + LinkedProducerVpcNetwork.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LinkedVpnTunnels + * Gets the default type url for LinkedProducerVpcNetwork * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.LinkedVpnTunnels + * @memberof google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LinkedVpnTunnels.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LinkedProducerVpcNetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.LinkedVpnTunnels"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork"; }; - return LinkedVpnTunnels; + return LinkedProducerVpcNetwork; })(); - v1.LinkedInterconnectAttachments = (function() { + v1.RouterApplianceInstance = (function() { /** - * Properties of a LinkedInterconnectAttachments. + * Properties of a RouterApplianceInstance. * @memberof google.cloud.networkconnectivity.v1 - * @interface ILinkedInterconnectAttachments - * @property {Array.|null} [uris] LinkedInterconnectAttachments uris - * @property {boolean|null} [siteToSiteDataTransfer] LinkedInterconnectAttachments siteToSiteDataTransfer - * @property {string|null} [vpcNetwork] LinkedInterconnectAttachments vpcNetwork + * @interface IRouterApplianceInstance + * @property {string|null} [virtualMachine] RouterApplianceInstance virtualMachine + * @property {string|null} [ipAddress] RouterApplianceInstance ipAddress */ /** - * Constructs a new LinkedInterconnectAttachments. + * Constructs a new RouterApplianceInstance. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a LinkedInterconnectAttachments. - * @implements ILinkedInterconnectAttachments + * @classdesc Represents a RouterApplianceInstance. + * @implements IRouterApplianceInstance * @constructor - * @param {google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.IRouterApplianceInstance=} [properties] Properties to set */ - function LinkedInterconnectAttachments(properties) { - this.uris = []; + function RouterApplianceInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11601,106 +14825,89 @@ } /** - * LinkedInterconnectAttachments uris. - * @member {Array.} uris - * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - * @instance - */ - LinkedInterconnectAttachments.prototype.uris = $util.emptyArray; - - /** - * LinkedInterconnectAttachments siteToSiteDataTransfer. - * @member {boolean} siteToSiteDataTransfer - * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + * RouterApplianceInstance virtualMachine. + * @member {string} virtualMachine + * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance * @instance */ - LinkedInterconnectAttachments.prototype.siteToSiteDataTransfer = false; + RouterApplianceInstance.prototype.virtualMachine = ""; /** - * LinkedInterconnectAttachments vpcNetwork. - * @member {string} vpcNetwork - * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + * RouterApplianceInstance ipAddress. + * @member {string} ipAddress + * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance * @instance */ - LinkedInterconnectAttachments.prototype.vpcNetwork = ""; + RouterApplianceInstance.prototype.ipAddress = ""; /** - * Creates a new LinkedInterconnectAttachments instance using the specified properties. + * Creates a new RouterApplianceInstance instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance * @static - * @param {google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments} LinkedInterconnectAttachments instance + * @param {google.cloud.networkconnectivity.v1.IRouterApplianceInstance=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.RouterApplianceInstance} RouterApplianceInstance instance */ - LinkedInterconnectAttachments.create = function create(properties) { - return new LinkedInterconnectAttachments(properties); + RouterApplianceInstance.create = function create(properties) { + return new RouterApplianceInstance(properties); }; /** - * Encodes the specified LinkedInterconnectAttachments message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.verify|verify} messages. + * Encodes the specified RouterApplianceInstance message. Does not implicitly {@link google.cloud.networkconnectivity.v1.RouterApplianceInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance * @static - * @param {google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments} message LinkedInterconnectAttachments message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IRouterApplianceInstance} message RouterApplianceInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LinkedInterconnectAttachments.encode = function encode(message, writer) { + RouterApplianceInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uris != null && message.uris.length) - for (var i = 0; i < message.uris.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uris[i]); - if (message.siteToSiteDataTransfer != null && Object.hasOwnProperty.call(message, "siteToSiteDataTransfer")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.siteToSiteDataTransfer); - if (message.vpcNetwork != null && Object.hasOwnProperty.call(message, "vpcNetwork")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.vpcNetwork); + if (message.virtualMachine != null && Object.hasOwnProperty.call(message, "virtualMachine")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.virtualMachine); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.ipAddress); return writer; }; /** - * Encodes the specified LinkedInterconnectAttachments message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.verify|verify} messages. + * Encodes the specified RouterApplianceInstance message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.RouterApplianceInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance * @static - * @param {google.cloud.networkconnectivity.v1.ILinkedInterconnectAttachments} message LinkedInterconnectAttachments message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.IRouterApplianceInstance} message RouterApplianceInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LinkedInterconnectAttachments.encodeDelimited = function encodeDelimited(message, writer) { + RouterApplianceInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LinkedInterconnectAttachments message from the specified reader or buffer. + * Decodes a RouterApplianceInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments} LinkedInterconnectAttachments + * @returns {google.cloud.networkconnectivity.v1.RouterApplianceInstance} RouterApplianceInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LinkedInterconnectAttachments.decode = function decode(reader, length) { + RouterApplianceInstance.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.uris && message.uris.length)) - message.uris = []; - message.uris.push(reader.string()); - break; - } - case 2: { - message.siteToSiteDataTransfer = reader.bool(); + message.virtualMachine = reader.string(); break; } case 3: { - message.vpcNetwork = reader.string(); + message.ipAddress = reader.string(); break; } default: @@ -11712,155 +14919,132 @@ }; /** - * Decodes a LinkedInterconnectAttachments message from the specified reader or buffer, length delimited. + * Decodes a RouterApplianceInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments} LinkedInterconnectAttachments + * @returns {google.cloud.networkconnectivity.v1.RouterApplianceInstance} RouterApplianceInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LinkedInterconnectAttachments.decodeDelimited = function decodeDelimited(reader) { + RouterApplianceInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LinkedInterconnectAttachments message. + * Verifies a RouterApplianceInstance message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LinkedInterconnectAttachments.verify = function verify(message) { + RouterApplianceInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uris != null && message.hasOwnProperty("uris")) { - if (!Array.isArray(message.uris)) - return "uris: array expected"; - for (var i = 0; i < message.uris.length; ++i) - if (!$util.isString(message.uris[i])) - return "uris: string[] expected"; - } - if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) - if (typeof message.siteToSiteDataTransfer !== "boolean") - return "siteToSiteDataTransfer: boolean expected"; - if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) - if (!$util.isString(message.vpcNetwork)) - return "vpcNetwork: string expected"; + if (message.virtualMachine != null && message.hasOwnProperty("virtualMachine")) + if (!$util.isString(message.virtualMachine)) + return "virtualMachine: string expected"; + if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) + if (!$util.isString(message.ipAddress)) + return "ipAddress: string expected"; return null; }; /** - * Creates a LinkedInterconnectAttachments message from a plain object. Also converts values to their respective internal types. + * Creates a RouterApplianceInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments} LinkedInterconnectAttachments + * @returns {google.cloud.networkconnectivity.v1.RouterApplianceInstance} RouterApplianceInstance */ - LinkedInterconnectAttachments.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) + RouterApplianceInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance) return object; - var message = new $root.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(); - if (object.uris) { - if (!Array.isArray(object.uris)) - throw TypeError(".google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.uris: array expected"); - message.uris = []; - for (var i = 0; i < object.uris.length; ++i) - message.uris[i] = String(object.uris[i]); - } - if (object.siteToSiteDataTransfer != null) - message.siteToSiteDataTransfer = Boolean(object.siteToSiteDataTransfer); - if (object.vpcNetwork != null) - message.vpcNetwork = String(object.vpcNetwork); + var message = new $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance(); + if (object.virtualMachine != null) + message.virtualMachine = String(object.virtualMachine); + if (object.ipAddress != null) + message.ipAddress = String(object.ipAddress); return message; }; /** - * Creates a plain object from a LinkedInterconnectAttachments message. Also converts values to other types if specified. + * Creates a plain object from a RouterApplianceInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance * @static - * @param {google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments} message LinkedInterconnectAttachments + * @param {google.cloud.networkconnectivity.v1.RouterApplianceInstance} message RouterApplianceInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LinkedInterconnectAttachments.toObject = function toObject(message, options) { + RouterApplianceInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uris = []; if (options.defaults) { - object.siteToSiteDataTransfer = false; - object.vpcNetwork = ""; - } - if (message.uris && message.uris.length) { - object.uris = []; - for (var j = 0; j < message.uris.length; ++j) - object.uris[j] = message.uris[j]; + object.virtualMachine = ""; + object.ipAddress = ""; } - if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) - object.siteToSiteDataTransfer = message.siteToSiteDataTransfer; - if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) - object.vpcNetwork = message.vpcNetwork; + if (message.virtualMachine != null && message.hasOwnProperty("virtualMachine")) + object.virtualMachine = message.virtualMachine; + if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) + object.ipAddress = message.ipAddress; return object; }; /** - * Converts this LinkedInterconnectAttachments to JSON. + * Converts this RouterApplianceInstance to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance * @instance * @returns {Object.} JSON object */ - LinkedInterconnectAttachments.prototype.toJSON = function toJSON() { + RouterApplianceInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LinkedInterconnectAttachments + * Gets the default type url for RouterApplianceInstance * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LinkedInterconnectAttachments.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RouterApplianceInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.RouterApplianceInstance"; }; - return LinkedInterconnectAttachments; + return RouterApplianceInstance; })(); - v1.LinkedRouterApplianceInstances = (function() { + v1.LocationMetadata = (function() { /** - * Properties of a LinkedRouterApplianceInstances. + * Properties of a LocationMetadata. * @memberof google.cloud.networkconnectivity.v1 - * @interface ILinkedRouterApplianceInstances - * @property {Array.|null} [instances] LinkedRouterApplianceInstances instances - * @property {boolean|null} [siteToSiteDataTransfer] LinkedRouterApplianceInstances siteToSiteDataTransfer - * @property {string|null} [vpcNetwork] LinkedRouterApplianceInstances vpcNetwork + * @interface ILocationMetadata + * @property {Array.|null} [locationFeatures] LocationMetadata locationFeatures */ /** - * Constructs a new LinkedRouterApplianceInstances. + * Constructs a new LocationMetadata. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a LinkedRouterApplianceInstances. - * @implements ILinkedRouterApplianceInstances + * @classdesc Represents a LocationMetadata. + * @implements ILocationMetadata * @constructor - * @param {google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.ILocationMetadata=} [properties] Properties to set */ - function LinkedRouterApplianceInstances(properties) { - this.instances = []; + function LocationMetadata(properties) { + this.locationFeatures = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11868,106 +15052,86 @@ } /** - * LinkedRouterApplianceInstances instances. - * @member {Array.} instances - * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - * @instance - */ - LinkedRouterApplianceInstances.prototype.instances = $util.emptyArray; - - /** - * LinkedRouterApplianceInstances siteToSiteDataTransfer. - * @member {boolean} siteToSiteDataTransfer - * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - * @instance - */ - LinkedRouterApplianceInstances.prototype.siteToSiteDataTransfer = false; - - /** - * LinkedRouterApplianceInstances vpcNetwork. - * @member {string} vpcNetwork - * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + * LocationMetadata locationFeatures. + * @member {Array.} locationFeatures + * @memberof google.cloud.networkconnectivity.v1.LocationMetadata * @instance */ - LinkedRouterApplianceInstances.prototype.vpcNetwork = ""; + LocationMetadata.prototype.locationFeatures = $util.emptyArray; /** - * Creates a new LinkedRouterApplianceInstances instance using the specified properties. + * Creates a new LocationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + * @memberof google.cloud.networkconnectivity.v1.LocationMetadata * @static - * @param {google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances} LinkedRouterApplianceInstances instance + * @param {google.cloud.networkconnectivity.v1.ILocationMetadata=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.LocationMetadata} LocationMetadata instance */ - LinkedRouterApplianceInstances.create = function create(properties) { - return new LinkedRouterApplianceInstances(properties); + LocationMetadata.create = function create(properties) { + return new LocationMetadata(properties); }; /** - * Encodes the specified LinkedRouterApplianceInstances message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.verify|verify} messages. + * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LocationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + * @memberof google.cloud.networkconnectivity.v1.LocationMetadata * @static - * @param {google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances} message LinkedRouterApplianceInstances message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ILocationMetadata} message LocationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LinkedRouterApplianceInstances.encode = function encode(message, writer) { + LocationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance.encode(message.instances[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.siteToSiteDataTransfer != null && Object.hasOwnProperty.call(message, "siteToSiteDataTransfer")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.siteToSiteDataTransfer); - if (message.vpcNetwork != null && Object.hasOwnProperty.call(message, "vpcNetwork")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.vpcNetwork); + if (message.locationFeatures != null && message.locationFeatures.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.locationFeatures.length; ++i) + writer.int32(message.locationFeatures[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified LinkedRouterApplianceInstances message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.verify|verify} messages. + * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LocationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + * @memberof google.cloud.networkconnectivity.v1.LocationMetadata * @static - * @param {google.cloud.networkconnectivity.v1.ILinkedRouterApplianceInstances} message LinkedRouterApplianceInstances message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.ILocationMetadata} message LocationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LinkedRouterApplianceInstances.encodeDelimited = function encodeDelimited(message, writer) { + LocationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LinkedRouterApplianceInstances message from the specified reader or buffer. + * Decodes a LocationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + * @memberof google.cloud.networkconnectivity.v1.LocationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances} LinkedRouterApplianceInstances + * @returns {google.cloud.networkconnectivity.v1.LocationMetadata} LocationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LinkedRouterApplianceInstances.decode = function decode(reader, length) { + LocationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.LocationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.cloud.networkconnectivity.v1.RouterApplianceInstance.decode(reader, reader.uint32())); - break; - } - case 2: { - message.siteToSiteDataTransfer = reader.bool(); - break; - } - case 3: { - message.vpcNetwork = reader.string(); + if (!(message.locationFeatures && message.locationFeatures.length)) + message.locationFeatures = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.locationFeatures.push(reader.int32()); + } else + message.locationFeatures.push(reader.int32()); break; } default: @@ -11979,241 +15143,229 @@ }; /** - * Decodes a LinkedRouterApplianceInstances message from the specified reader or buffer, length delimited. + * Decodes a LocationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + * @memberof google.cloud.networkconnectivity.v1.LocationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances} LinkedRouterApplianceInstances + * @returns {google.cloud.networkconnectivity.v1.LocationMetadata} LocationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LinkedRouterApplianceInstances.decodeDelimited = function decodeDelimited(reader) { + LocationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LinkedRouterApplianceInstances message. + * Verifies a LocationMetadata message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + * @memberof google.cloud.networkconnectivity.v1.LocationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LinkedRouterApplianceInstances.verify = function verify(message) { + LocationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.instances != null && message.hasOwnProperty("instances")) { - if (!Array.isArray(message.instances)) - return "instances: array expected"; - for (var i = 0; i < message.instances.length; ++i) { - var error = $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance.verify(message.instances[i]); - if (error) - return "instances." + error; - } + if (message.locationFeatures != null && message.hasOwnProperty("locationFeatures")) { + if (!Array.isArray(message.locationFeatures)) + return "locationFeatures: array expected"; + for (var i = 0; i < message.locationFeatures.length; ++i) + switch (message.locationFeatures[i]) { + default: + return "locationFeatures: enum value[] expected"; + case 0: + case 1: + case 2: + break; + } } - if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) - if (typeof message.siteToSiteDataTransfer !== "boolean") - return "siteToSiteDataTransfer: boolean expected"; - if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) - if (!$util.isString(message.vpcNetwork)) - return "vpcNetwork: string expected"; return null; }; /** - * Creates a LinkedRouterApplianceInstances message from a plain object. Also converts values to their respective internal types. + * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + * @memberof google.cloud.networkconnectivity.v1.LocationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances} LinkedRouterApplianceInstances + * @returns {google.cloud.networkconnectivity.v1.LocationMetadata} LocationMetadata */ - LinkedRouterApplianceInstances.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) + LocationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.LocationMetadata) return object; - var message = new $root.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(); - if (object.instances) { - if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.instances: array expected"); - message.instances = []; - for (var i = 0; i < object.instances.length; ++i) { - if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.instances: object expected"); - message.instances[i] = $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance.fromObject(object.instances[i]); - } + var message = new $root.google.cloud.networkconnectivity.v1.LocationMetadata(); + if (object.locationFeatures) { + if (!Array.isArray(object.locationFeatures)) + throw TypeError(".google.cloud.networkconnectivity.v1.LocationMetadata.locationFeatures: array expected"); + message.locationFeatures = []; + for (var i = 0; i < object.locationFeatures.length; ++i) + switch (object.locationFeatures[i]) { + default: + if (typeof object.locationFeatures[i] === "number") { + message.locationFeatures[i] = object.locationFeatures[i]; + break; + } + case "LOCATION_FEATURE_UNSPECIFIED": + case 0: + message.locationFeatures[i] = 0; + break; + case "SITE_TO_CLOUD_SPOKES": + case 1: + message.locationFeatures[i] = 1; + break; + case "SITE_TO_SITE_SPOKES": + case 2: + message.locationFeatures[i] = 2; + break; + } } - if (object.siteToSiteDataTransfer != null) - message.siteToSiteDataTransfer = Boolean(object.siteToSiteDataTransfer); - if (object.vpcNetwork != null) - message.vpcNetwork = String(object.vpcNetwork); return message; }; /** - * Creates a plain object from a LinkedRouterApplianceInstances message. Also converts values to other types if specified. + * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + * @memberof google.cloud.networkconnectivity.v1.LocationMetadata * @static - * @param {google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances} message LinkedRouterApplianceInstances + * @param {google.cloud.networkconnectivity.v1.LocationMetadata} message LocationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LinkedRouterApplianceInstances.toObject = function toObject(message, options) { + LocationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.instances = []; - if (options.defaults) { - object.siteToSiteDataTransfer = false; - object.vpcNetwork = ""; - } - if (message.instances && message.instances.length) { - object.instances = []; - for (var j = 0; j < message.instances.length; ++j) - object.instances[j] = $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance.toObject(message.instances[j], options); + object.locationFeatures = []; + if (message.locationFeatures && message.locationFeatures.length) { + object.locationFeatures = []; + for (var j = 0; j < message.locationFeatures.length; ++j) + object.locationFeatures[j] = options.enums === String ? $root.google.cloud.networkconnectivity.v1.LocationFeature[message.locationFeatures[j]] === undefined ? message.locationFeatures[j] : $root.google.cloud.networkconnectivity.v1.LocationFeature[message.locationFeatures[j]] : message.locationFeatures[j]; } - if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) - object.siteToSiteDataTransfer = message.siteToSiteDataTransfer; - if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) - object.vpcNetwork = message.vpcNetwork; return object; }; /** - * Converts this LinkedRouterApplianceInstances to JSON. + * Converts this LocationMetadata to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + * @memberof google.cloud.networkconnectivity.v1.LocationMetadata * @instance * @returns {Object.} JSON object */ - LinkedRouterApplianceInstances.prototype.toJSON = function toJSON() { + LocationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LinkedRouterApplianceInstances + * Gets the default type url for LocationMetadata * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + * @memberof google.cloud.networkconnectivity.v1.LocationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LinkedRouterApplianceInstances.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LocationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.LocationMetadata"; }; - return LinkedRouterApplianceInstances; + return LocationMetadata; })(); - v1.LinkedVpcNetwork = (function() { + v1.NextHopVpcNetwork = (function() { /** - * Properties of a LinkedVpcNetwork. + * Properties of a NextHopVpcNetwork. * @memberof google.cloud.networkconnectivity.v1 - * @interface ILinkedVpcNetwork - * @property {string|null} [uri] LinkedVpcNetwork uri - * @property {Array.|null} [excludeExportRanges] LinkedVpcNetwork excludeExportRanges + * @interface INextHopVpcNetwork + * @property {string|null} [uri] NextHopVpcNetwork uri */ /** - * Constructs a new LinkedVpcNetwork. + * Constructs a new NextHopVpcNetwork. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a LinkedVpcNetwork. - * @implements ILinkedVpcNetwork + * @classdesc Represents a NextHopVpcNetwork. + * @implements INextHopVpcNetwork * @constructor - * @param {google.cloud.networkconnectivity.v1.ILinkedVpcNetwork=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.INextHopVpcNetwork=} [properties] Properties to set */ - function LinkedVpcNetwork(properties) { - this.excludeExportRanges = []; + function NextHopVpcNetwork(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - /** - * LinkedVpcNetwork uri. - * @member {string} uri - * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork - * @instance - */ - LinkedVpcNetwork.prototype.uri = ""; - - /** - * LinkedVpcNetwork excludeExportRanges. - * @member {Array.} excludeExportRanges - * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork + /** + * NextHopVpcNetwork uri. + * @member {string} uri + * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork * @instance */ - LinkedVpcNetwork.prototype.excludeExportRanges = $util.emptyArray; + NextHopVpcNetwork.prototype.uri = ""; /** - * Creates a new LinkedVpcNetwork instance using the specified properties. + * Creates a new NextHopVpcNetwork instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork * @static - * @param {google.cloud.networkconnectivity.v1.ILinkedVpcNetwork=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.LinkedVpcNetwork} LinkedVpcNetwork instance + * @param {google.cloud.networkconnectivity.v1.INextHopVpcNetwork=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.NextHopVpcNetwork} NextHopVpcNetwork instance */ - LinkedVpcNetwork.create = function create(properties) { - return new LinkedVpcNetwork(properties); + NextHopVpcNetwork.create = function create(properties) { + return new NextHopVpcNetwork(properties); }; /** - * Encodes the specified LinkedVpcNetwork message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpcNetwork.verify|verify} messages. + * Encodes the specified NextHopVpcNetwork message. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopVpcNetwork.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork * @static - * @param {google.cloud.networkconnectivity.v1.ILinkedVpcNetwork} message LinkedVpcNetwork message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.INextHopVpcNetwork} message NextHopVpcNetwork message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LinkedVpcNetwork.encode = function encode(message, writer) { + NextHopVpcNetwork.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.excludeExportRanges != null && message.excludeExportRanges.length) - for (var i = 0; i < message.excludeExportRanges.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.excludeExportRanges[i]); return writer; }; /** - * Encodes the specified LinkedVpcNetwork message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LinkedVpcNetwork.verify|verify} messages. + * Encodes the specified NextHopVpcNetwork message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopVpcNetwork.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork * @static - * @param {google.cloud.networkconnectivity.v1.ILinkedVpcNetwork} message LinkedVpcNetwork message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.INextHopVpcNetwork} message NextHopVpcNetwork message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LinkedVpcNetwork.encodeDelimited = function encodeDelimited(message, writer) { + NextHopVpcNetwork.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LinkedVpcNetwork message from the specified reader or buffer. + * Decodes a NextHopVpcNetwork message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.LinkedVpcNetwork} LinkedVpcNetwork + * @returns {google.cloud.networkconnectivity.v1.NextHopVpcNetwork} NextHopVpcNetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LinkedVpcNetwork.decode = function decode(reader, length) { + NextHopVpcNetwork.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.LinkedVpcNetwork(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.NextHopVpcNetwork(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12221,12 +15373,6 @@ message.uri = reader.string(); break; } - case 2: { - if (!(message.excludeExportRanges && message.excludeExportRanges.length)) - message.excludeExportRanges = []; - message.excludeExportRanges.push(reader.string()); - break; - } default: reader.skipType(tag & 7); break; @@ -12236,144 +15382,124 @@ }; /** - * Decodes a LinkedVpcNetwork message from the specified reader or buffer, length delimited. + * Decodes a NextHopVpcNetwork message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.LinkedVpcNetwork} LinkedVpcNetwork + * @returns {google.cloud.networkconnectivity.v1.NextHopVpcNetwork} NextHopVpcNetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LinkedVpcNetwork.decodeDelimited = function decodeDelimited(reader) { + NextHopVpcNetwork.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LinkedVpcNetwork message. + * Verifies a NextHopVpcNetwork message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LinkedVpcNetwork.verify = function verify(message) { + NextHopVpcNetwork.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.uri != null && message.hasOwnProperty("uri")) if (!$util.isString(message.uri)) return "uri: string expected"; - if (message.excludeExportRanges != null && message.hasOwnProperty("excludeExportRanges")) { - if (!Array.isArray(message.excludeExportRanges)) - return "excludeExportRanges: array expected"; - for (var i = 0; i < message.excludeExportRanges.length; ++i) - if (!$util.isString(message.excludeExportRanges[i])) - return "excludeExportRanges: string[] expected"; - } return null; }; /** - * Creates a LinkedVpcNetwork message from a plain object. Also converts values to their respective internal types. + * Creates a NextHopVpcNetwork message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.LinkedVpcNetwork} LinkedVpcNetwork + * @returns {google.cloud.networkconnectivity.v1.NextHopVpcNetwork} NextHopVpcNetwork */ - LinkedVpcNetwork.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.LinkedVpcNetwork) + NextHopVpcNetwork.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.NextHopVpcNetwork) return object; - var message = new $root.google.cloud.networkconnectivity.v1.LinkedVpcNetwork(); + var message = new $root.google.cloud.networkconnectivity.v1.NextHopVpcNetwork(); if (object.uri != null) message.uri = String(object.uri); - if (object.excludeExportRanges) { - if (!Array.isArray(object.excludeExportRanges)) - throw TypeError(".google.cloud.networkconnectivity.v1.LinkedVpcNetwork.excludeExportRanges: array expected"); - message.excludeExportRanges = []; - for (var i = 0; i < object.excludeExportRanges.length; ++i) - message.excludeExportRanges[i] = String(object.excludeExportRanges[i]); - } return message; }; /** - * Creates a plain object from a LinkedVpcNetwork message. Also converts values to other types if specified. + * Creates a plain object from a NextHopVpcNetwork message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork * @static - * @param {google.cloud.networkconnectivity.v1.LinkedVpcNetwork} message LinkedVpcNetwork + * @param {google.cloud.networkconnectivity.v1.NextHopVpcNetwork} message NextHopVpcNetwork * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LinkedVpcNetwork.toObject = function toObject(message, options) { + NextHopVpcNetwork.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.excludeExportRanges = []; if (options.defaults) object.uri = ""; if (message.uri != null && message.hasOwnProperty("uri")) object.uri = message.uri; - if (message.excludeExportRanges && message.excludeExportRanges.length) { - object.excludeExportRanges = []; - for (var j = 0; j < message.excludeExportRanges.length; ++j) - object.excludeExportRanges[j] = message.excludeExportRanges[j]; - } return object; }; /** - * Converts this LinkedVpcNetwork to JSON. + * Converts this NextHopVpcNetwork to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork * @instance * @returns {Object.} JSON object */ - LinkedVpcNetwork.prototype.toJSON = function toJSON() { + NextHopVpcNetwork.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LinkedVpcNetwork + * Gets the default type url for NextHopVpcNetwork * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.LinkedVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LinkedVpcNetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NextHopVpcNetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.LinkedVpcNetwork"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.NextHopVpcNetwork"; }; - return LinkedVpcNetwork; + return NextHopVpcNetwork; })(); - v1.RouterApplianceInstance = (function() { + v1.NextHopVPNTunnel = (function() { /** - * Properties of a RouterApplianceInstance. + * Properties of a NextHopVPNTunnel. * @memberof google.cloud.networkconnectivity.v1 - * @interface IRouterApplianceInstance - * @property {string|null} [virtualMachine] RouterApplianceInstance virtualMachine - * @property {string|null} [ipAddress] RouterApplianceInstance ipAddress + * @interface INextHopVPNTunnel + * @property {string|null} [uri] NextHopVPNTunnel uri + * @property {string|null} [vpcNetwork] NextHopVPNTunnel vpcNetwork + * @property {boolean|null} [siteToSiteDataTransfer] NextHopVPNTunnel siteToSiteDataTransfer */ /** - * Constructs a new RouterApplianceInstance. + * Constructs a new NextHopVPNTunnel. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a RouterApplianceInstance. - * @implements IRouterApplianceInstance + * @classdesc Represents a NextHopVPNTunnel. + * @implements INextHopVPNTunnel * @constructor - * @param {google.cloud.networkconnectivity.v1.IRouterApplianceInstance=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.INextHopVPNTunnel=} [properties] Properties to set */ - function RouterApplianceInstance(properties) { + function NextHopVPNTunnel(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12381,89 +15507,103 @@ } /** - * RouterApplianceInstance virtualMachine. - * @member {string} virtualMachine - * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance + * NextHopVPNTunnel uri. + * @member {string} uri + * @memberof google.cloud.networkconnectivity.v1.NextHopVPNTunnel * @instance */ - RouterApplianceInstance.prototype.virtualMachine = ""; + NextHopVPNTunnel.prototype.uri = ""; /** - * RouterApplianceInstance ipAddress. - * @member {string} ipAddress - * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance + * NextHopVPNTunnel vpcNetwork. + * @member {string} vpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopVPNTunnel * @instance */ - RouterApplianceInstance.prototype.ipAddress = ""; + NextHopVPNTunnel.prototype.vpcNetwork = ""; /** - * Creates a new RouterApplianceInstance instance using the specified properties. + * NextHopVPNTunnel siteToSiteDataTransfer. + * @member {boolean} siteToSiteDataTransfer + * @memberof google.cloud.networkconnectivity.v1.NextHopVPNTunnel + * @instance + */ + NextHopVPNTunnel.prototype.siteToSiteDataTransfer = false; + + /** + * Creates a new NextHopVPNTunnel instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance + * @memberof google.cloud.networkconnectivity.v1.NextHopVPNTunnel * @static - * @param {google.cloud.networkconnectivity.v1.IRouterApplianceInstance=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.RouterApplianceInstance} RouterApplianceInstance instance + * @param {google.cloud.networkconnectivity.v1.INextHopVPNTunnel=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.NextHopVPNTunnel} NextHopVPNTunnel instance */ - RouterApplianceInstance.create = function create(properties) { - return new RouterApplianceInstance(properties); + NextHopVPNTunnel.create = function create(properties) { + return new NextHopVPNTunnel(properties); }; /** - * Encodes the specified RouterApplianceInstance message. Does not implicitly {@link google.cloud.networkconnectivity.v1.RouterApplianceInstance.verify|verify} messages. + * Encodes the specified NextHopVPNTunnel message. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopVPNTunnel.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance + * @memberof google.cloud.networkconnectivity.v1.NextHopVPNTunnel * @static - * @param {google.cloud.networkconnectivity.v1.IRouterApplianceInstance} message RouterApplianceInstance message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.INextHopVPNTunnel} message NextHopVPNTunnel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterApplianceInstance.encode = function encode(message, writer) { + NextHopVPNTunnel.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.virtualMachine != null && Object.hasOwnProperty.call(message, "virtualMachine")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.virtualMachine); - if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.ipAddress); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.vpcNetwork != null && Object.hasOwnProperty.call(message, "vpcNetwork")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.vpcNetwork); + if (message.siteToSiteDataTransfer != null && Object.hasOwnProperty.call(message, "siteToSiteDataTransfer")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.siteToSiteDataTransfer); return writer; }; /** - * Encodes the specified RouterApplianceInstance message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.RouterApplianceInstance.verify|verify} messages. + * Encodes the specified NextHopVPNTunnel message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopVPNTunnel.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance + * @memberof google.cloud.networkconnectivity.v1.NextHopVPNTunnel * @static - * @param {google.cloud.networkconnectivity.v1.IRouterApplianceInstance} message RouterApplianceInstance message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.INextHopVPNTunnel} message NextHopVPNTunnel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterApplianceInstance.encodeDelimited = function encodeDelimited(message, writer) { + NextHopVPNTunnel.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RouterApplianceInstance message from the specified reader or buffer. + * Decodes a NextHopVPNTunnel message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance + * @memberof google.cloud.networkconnectivity.v1.NextHopVPNTunnel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.RouterApplianceInstance} RouterApplianceInstance + * @returns {google.cloud.networkconnectivity.v1.NextHopVPNTunnel} NextHopVPNTunnel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RouterApplianceInstance.decode = function decode(reader, length) { + NextHopVPNTunnel.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.NextHopVPNTunnel(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.virtualMachine = reader.string(); + message.uri = reader.string(); + break; + } + case 2: { + message.vpcNetwork = reader.string(); break; } case 3: { - message.ipAddress = reader.string(); + message.siteToSiteDataTransfer = reader.bool(); break; } default: @@ -12475,132 +15615,141 @@ }; /** - * Decodes a RouterApplianceInstance message from the specified reader or buffer, length delimited. + * Decodes a NextHopVPNTunnel message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance + * @memberof google.cloud.networkconnectivity.v1.NextHopVPNTunnel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.RouterApplianceInstance} RouterApplianceInstance + * @returns {google.cloud.networkconnectivity.v1.NextHopVPNTunnel} NextHopVPNTunnel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RouterApplianceInstance.decodeDelimited = function decodeDelimited(reader) { + NextHopVPNTunnel.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RouterApplianceInstance message. + * Verifies a NextHopVPNTunnel message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance + * @memberof google.cloud.networkconnectivity.v1.NextHopVPNTunnel * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RouterApplianceInstance.verify = function verify(message) { + NextHopVPNTunnel.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.virtualMachine != null && message.hasOwnProperty("virtualMachine")) - if (!$util.isString(message.virtualMachine)) - return "virtualMachine: string expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) + if (!$util.isString(message.vpcNetwork)) + return "vpcNetwork: string expected"; + if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) + if (typeof message.siteToSiteDataTransfer !== "boolean") + return "siteToSiteDataTransfer: boolean expected"; return null; }; /** - * Creates a RouterApplianceInstance message from a plain object. Also converts values to their respective internal types. + * Creates a NextHopVPNTunnel message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance + * @memberof google.cloud.networkconnectivity.v1.NextHopVPNTunnel * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.RouterApplianceInstance} RouterApplianceInstance + * @returns {google.cloud.networkconnectivity.v1.NextHopVPNTunnel} NextHopVPNTunnel */ - RouterApplianceInstance.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance) + NextHopVPNTunnel.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.NextHopVPNTunnel) return object; - var message = new $root.google.cloud.networkconnectivity.v1.RouterApplianceInstance(); - if (object.virtualMachine != null) - message.virtualMachine = String(object.virtualMachine); - if (object.ipAddress != null) - message.ipAddress = String(object.ipAddress); + var message = new $root.google.cloud.networkconnectivity.v1.NextHopVPNTunnel(); + if (object.uri != null) + message.uri = String(object.uri); + if (object.vpcNetwork != null) + message.vpcNetwork = String(object.vpcNetwork); + if (object.siteToSiteDataTransfer != null) + message.siteToSiteDataTransfer = Boolean(object.siteToSiteDataTransfer); return message; }; /** - * Creates a plain object from a RouterApplianceInstance message. Also converts values to other types if specified. + * Creates a plain object from a NextHopVPNTunnel message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance + * @memberof google.cloud.networkconnectivity.v1.NextHopVPNTunnel * @static - * @param {google.cloud.networkconnectivity.v1.RouterApplianceInstance} message RouterApplianceInstance + * @param {google.cloud.networkconnectivity.v1.NextHopVPNTunnel} message NextHopVPNTunnel * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterApplianceInstance.toObject = function toObject(message, options) { + NextHopVPNTunnel.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.virtualMachine = ""; - object.ipAddress = ""; + object.uri = ""; + object.vpcNetwork = ""; + object.siteToSiteDataTransfer = false; } - if (message.virtualMachine != null && message.hasOwnProperty("virtualMachine")) - object.virtualMachine = message.virtualMachine; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - object.ipAddress = message.ipAddress; + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) + object.vpcNetwork = message.vpcNetwork; + if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) + object.siteToSiteDataTransfer = message.siteToSiteDataTransfer; return object; }; /** - * Converts this RouterApplianceInstance to JSON. + * Converts this NextHopVPNTunnel to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance + * @memberof google.cloud.networkconnectivity.v1.NextHopVPNTunnel * @instance * @returns {Object.} JSON object */ - RouterApplianceInstance.prototype.toJSON = function toJSON() { + NextHopVPNTunnel.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RouterApplianceInstance + * Gets the default type url for NextHopVPNTunnel * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.RouterApplianceInstance + * @memberof google.cloud.networkconnectivity.v1.NextHopVPNTunnel * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RouterApplianceInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NextHopVPNTunnel.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.RouterApplianceInstance"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.NextHopVPNTunnel"; }; - return RouterApplianceInstance; + return NextHopVPNTunnel; })(); - v1.LocationMetadata = (function() { + v1.NextHopRouterApplianceInstance = (function() { /** - * Properties of a LocationMetadata. + * Properties of a NextHopRouterApplianceInstance. * @memberof google.cloud.networkconnectivity.v1 - * @interface ILocationMetadata - * @property {Array.|null} [locationFeatures] LocationMetadata locationFeatures + * @interface INextHopRouterApplianceInstance + * @property {string|null} [uri] NextHopRouterApplianceInstance uri + * @property {string|null} [vpcNetwork] NextHopRouterApplianceInstance vpcNetwork + * @property {boolean|null} [siteToSiteDataTransfer] NextHopRouterApplianceInstance siteToSiteDataTransfer */ /** - * Constructs a new LocationMetadata. + * Constructs a new NextHopRouterApplianceInstance. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a LocationMetadata. - * @implements ILocationMetadata + * @classdesc Represents a NextHopRouterApplianceInstance. + * @implements INextHopRouterApplianceInstance * @constructor - * @param {google.cloud.networkconnectivity.v1.ILocationMetadata=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.INextHopRouterApplianceInstance=} [properties] Properties to set */ - function LocationMetadata(properties) { - this.locationFeatures = []; + function NextHopRouterApplianceInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12608,86 +15757,103 @@ } /** - * LocationMetadata locationFeatures. - * @member {Array.} locationFeatures - * @memberof google.cloud.networkconnectivity.v1.LocationMetadata + * NextHopRouterApplianceInstance uri. + * @member {string} uri + * @memberof google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance * @instance */ - LocationMetadata.prototype.locationFeatures = $util.emptyArray; + NextHopRouterApplianceInstance.prototype.uri = ""; /** - * Creates a new LocationMetadata instance using the specified properties. + * NextHopRouterApplianceInstance vpcNetwork. + * @member {string} vpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + * @instance + */ + NextHopRouterApplianceInstance.prototype.vpcNetwork = ""; + + /** + * NextHopRouterApplianceInstance siteToSiteDataTransfer. + * @member {boolean} siteToSiteDataTransfer + * @memberof google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + * @instance + */ + NextHopRouterApplianceInstance.prototype.siteToSiteDataTransfer = false; + + /** + * Creates a new NextHopRouterApplianceInstance instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.LocationMetadata + * @memberof google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance * @static - * @param {google.cloud.networkconnectivity.v1.ILocationMetadata=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.LocationMetadata} LocationMetadata instance + * @param {google.cloud.networkconnectivity.v1.INextHopRouterApplianceInstance=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance} NextHopRouterApplianceInstance instance */ - LocationMetadata.create = function create(properties) { - return new LocationMetadata(properties); + NextHopRouterApplianceInstance.create = function create(properties) { + return new NextHopRouterApplianceInstance(properties); }; /** - * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.networkconnectivity.v1.LocationMetadata.verify|verify} messages. + * Encodes the specified NextHopRouterApplianceInstance message. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.LocationMetadata + * @memberof google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance * @static - * @param {google.cloud.networkconnectivity.v1.ILocationMetadata} message LocationMetadata message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.INextHopRouterApplianceInstance} message NextHopRouterApplianceInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LocationMetadata.encode = function encode(message, writer) { + NextHopRouterApplianceInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.locationFeatures != null && message.locationFeatures.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.locationFeatures.length; ++i) - writer.int32(message.locationFeatures[i]); - writer.ldelim(); - } + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.vpcNetwork != null && Object.hasOwnProperty.call(message, "vpcNetwork")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.vpcNetwork); + if (message.siteToSiteDataTransfer != null && Object.hasOwnProperty.call(message, "siteToSiteDataTransfer")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.siteToSiteDataTransfer); return writer; }; /** - * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.LocationMetadata.verify|verify} messages. + * Encodes the specified NextHopRouterApplianceInstance message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.LocationMetadata + * @memberof google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance * @static - * @param {google.cloud.networkconnectivity.v1.ILocationMetadata} message LocationMetadata message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.INextHopRouterApplianceInstance} message NextHopRouterApplianceInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LocationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + NextHopRouterApplianceInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LocationMetadata message from the specified reader or buffer. + * Decodes a NextHopRouterApplianceInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.LocationMetadata + * @memberof google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.LocationMetadata} LocationMetadata + * @returns {google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance} NextHopRouterApplianceInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LocationMetadata.decode = function decode(reader, length) { + NextHopRouterApplianceInstance.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.LocationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.locationFeatures && message.locationFeatures.length)) - message.locationFeatures = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.locationFeatures.push(reader.int32()); - } else - message.locationFeatures.push(reader.int32()); + message.uri = reader.string(); + break; + } + case 2: { + message.vpcNetwork = reader.string(); + break; + } + case 3: { + message.siteToSiteDataTransfer = reader.bool(); break; } default: @@ -12699,158 +15865,141 @@ }; /** - * Decodes a LocationMetadata message from the specified reader or buffer, length delimited. + * Decodes a NextHopRouterApplianceInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.LocationMetadata + * @memberof google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.LocationMetadata} LocationMetadata + * @returns {google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance} NextHopRouterApplianceInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LocationMetadata.decodeDelimited = function decodeDelimited(reader) { + NextHopRouterApplianceInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LocationMetadata message. + * Verifies a NextHopRouterApplianceInstance message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.LocationMetadata + * @memberof google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LocationMetadata.verify = function verify(message) { + NextHopRouterApplianceInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.locationFeatures != null && message.hasOwnProperty("locationFeatures")) { - if (!Array.isArray(message.locationFeatures)) - return "locationFeatures: array expected"; - for (var i = 0; i < message.locationFeatures.length; ++i) - switch (message.locationFeatures[i]) { - default: - return "locationFeatures: enum value[] expected"; - case 0: - case 1: - case 2: - break; - } - } + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) + if (!$util.isString(message.vpcNetwork)) + return "vpcNetwork: string expected"; + if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) + if (typeof message.siteToSiteDataTransfer !== "boolean") + return "siteToSiteDataTransfer: boolean expected"; return null; }; /** - * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a NextHopRouterApplianceInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.LocationMetadata + * @memberof google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.LocationMetadata} LocationMetadata + * @returns {google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance} NextHopRouterApplianceInstance */ - LocationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.LocationMetadata) + NextHopRouterApplianceInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance) return object; - var message = new $root.google.cloud.networkconnectivity.v1.LocationMetadata(); - if (object.locationFeatures) { - if (!Array.isArray(object.locationFeatures)) - throw TypeError(".google.cloud.networkconnectivity.v1.LocationMetadata.locationFeatures: array expected"); - message.locationFeatures = []; - for (var i = 0; i < object.locationFeatures.length; ++i) - switch (object.locationFeatures[i]) { - default: - if (typeof object.locationFeatures[i] === "number") { - message.locationFeatures[i] = object.locationFeatures[i]; - break; - } - case "LOCATION_FEATURE_UNSPECIFIED": - case 0: - message.locationFeatures[i] = 0; - break; - case "SITE_TO_CLOUD_SPOKES": - case 1: - message.locationFeatures[i] = 1; - break; - case "SITE_TO_SITE_SPOKES": - case 2: - message.locationFeatures[i] = 2; - break; - } - } + var message = new $root.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance(); + if (object.uri != null) + message.uri = String(object.uri); + if (object.vpcNetwork != null) + message.vpcNetwork = String(object.vpcNetwork); + if (object.siteToSiteDataTransfer != null) + message.siteToSiteDataTransfer = Boolean(object.siteToSiteDataTransfer); return message; }; /** - * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a NextHopRouterApplianceInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.LocationMetadata + * @memberof google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance * @static - * @param {google.cloud.networkconnectivity.v1.LocationMetadata} message LocationMetadata + * @param {google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance} message NextHopRouterApplianceInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LocationMetadata.toObject = function toObject(message, options) { + NextHopRouterApplianceInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.locationFeatures = []; - if (message.locationFeatures && message.locationFeatures.length) { - object.locationFeatures = []; - for (var j = 0; j < message.locationFeatures.length; ++j) - object.locationFeatures[j] = options.enums === String ? $root.google.cloud.networkconnectivity.v1.LocationFeature[message.locationFeatures[j]] === undefined ? message.locationFeatures[j] : $root.google.cloud.networkconnectivity.v1.LocationFeature[message.locationFeatures[j]] : message.locationFeatures[j]; + if (options.defaults) { + object.uri = ""; + object.vpcNetwork = ""; + object.siteToSiteDataTransfer = false; } + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) + object.vpcNetwork = message.vpcNetwork; + if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) + object.siteToSiteDataTransfer = message.siteToSiteDataTransfer; return object; }; /** - * Converts this LocationMetadata to JSON. + * Converts this NextHopRouterApplianceInstance to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.LocationMetadata + * @memberof google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance * @instance * @returns {Object.} JSON object */ - LocationMetadata.prototype.toJSON = function toJSON() { + NextHopRouterApplianceInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LocationMetadata + * Gets the default type url for NextHopRouterApplianceInstance * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.LocationMetadata + * @memberof google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LocationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NextHopRouterApplianceInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.LocationMetadata"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance"; }; - return LocationMetadata; + return NextHopRouterApplianceInstance; })(); - v1.NextHopVpcNetwork = (function() { + v1.NextHopInterconnectAttachment = (function() { /** - * Properties of a NextHopVpcNetwork. + * Properties of a NextHopInterconnectAttachment. * @memberof google.cloud.networkconnectivity.v1 - * @interface INextHopVpcNetwork - * @property {string|null} [uri] NextHopVpcNetwork uri + * @interface INextHopInterconnectAttachment + * @property {string|null} [uri] NextHopInterconnectAttachment uri + * @property {string|null} [vpcNetwork] NextHopInterconnectAttachment vpcNetwork + * @property {boolean|null} [siteToSiteDataTransfer] NextHopInterconnectAttachment siteToSiteDataTransfer */ /** - * Constructs a new NextHopVpcNetwork. + * Constructs a new NextHopInterconnectAttachment. * @memberof google.cloud.networkconnectivity.v1 - * @classdesc Represents a NextHopVpcNetwork. - * @implements INextHopVpcNetwork + * @classdesc Represents a NextHopInterconnectAttachment. + * @implements INextHopInterconnectAttachment * @constructor - * @param {google.cloud.networkconnectivity.v1.INextHopVpcNetwork=} [properties] Properties to set + * @param {google.cloud.networkconnectivity.v1.INextHopInterconnectAttachment=} [properties] Properties to set */ - function NextHopVpcNetwork(properties) { + function NextHopInterconnectAttachment(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12858,70 +16007,90 @@ } /** - * NextHopVpcNetwork uri. + * NextHopInterconnectAttachment uri. * @member {string} uri - * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment * @instance */ - NextHopVpcNetwork.prototype.uri = ""; + NextHopInterconnectAttachment.prototype.uri = ""; /** - * Creates a new NextHopVpcNetwork instance using the specified properties. + * NextHopInterconnectAttachment vpcNetwork. + * @member {string} vpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + * @instance + */ + NextHopInterconnectAttachment.prototype.vpcNetwork = ""; + + /** + * NextHopInterconnectAttachment siteToSiteDataTransfer. + * @member {boolean} siteToSiteDataTransfer + * @memberof google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + * @instance + */ + NextHopInterconnectAttachment.prototype.siteToSiteDataTransfer = false; + + /** + * Creates a new NextHopInterconnectAttachment instance using the specified properties. * @function create - * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment * @static - * @param {google.cloud.networkconnectivity.v1.INextHopVpcNetwork=} [properties] Properties to set - * @returns {google.cloud.networkconnectivity.v1.NextHopVpcNetwork} NextHopVpcNetwork instance + * @param {google.cloud.networkconnectivity.v1.INextHopInterconnectAttachment=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment} NextHopInterconnectAttachment instance */ - NextHopVpcNetwork.create = function create(properties) { - return new NextHopVpcNetwork(properties); + NextHopInterconnectAttachment.create = function create(properties) { + return new NextHopInterconnectAttachment(properties); }; /** - * Encodes the specified NextHopVpcNetwork message. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopVpcNetwork.verify|verify} messages. + * Encodes the specified NextHopInterconnectAttachment message. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.verify|verify} messages. * @function encode - * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment * @static - * @param {google.cloud.networkconnectivity.v1.INextHopVpcNetwork} message NextHopVpcNetwork message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.INextHopInterconnectAttachment} message NextHopInterconnectAttachment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NextHopVpcNetwork.encode = function encode(message, writer) { + NextHopInterconnectAttachment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.vpcNetwork != null && Object.hasOwnProperty.call(message, "vpcNetwork")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.vpcNetwork); + if (message.siteToSiteDataTransfer != null && Object.hasOwnProperty.call(message, "siteToSiteDataTransfer")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.siteToSiteDataTransfer); return writer; }; /** - * Encodes the specified NextHopVpcNetwork message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopVpcNetwork.verify|verify} messages. + * Encodes the specified NextHopInterconnectAttachment message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment * @static - * @param {google.cloud.networkconnectivity.v1.INextHopVpcNetwork} message NextHopVpcNetwork message or plain object to encode + * @param {google.cloud.networkconnectivity.v1.INextHopInterconnectAttachment} message NextHopInterconnectAttachment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NextHopVpcNetwork.encodeDelimited = function encodeDelimited(message, writer) { + NextHopInterconnectAttachment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NextHopVpcNetwork message from the specified reader or buffer. + * Decodes a NextHopInterconnectAttachment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.networkconnectivity.v1.NextHopVpcNetwork} NextHopVpcNetwork + * @returns {google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment} NextHopInterconnectAttachment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NextHopVpcNetwork.decode = function decode(reader, length) { + NextHopInterconnectAttachment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.NextHopVpcNetwork(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12929,6 +16098,14 @@ message.uri = reader.string(); break; } + case 2: { + message.vpcNetwork = reader.string(); + break; + } + case 3: { + message.siteToSiteDataTransfer = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -12938,102 +16115,119 @@ }; /** - * Decodes a NextHopVpcNetwork message from the specified reader or buffer, length delimited. + * Decodes a NextHopInterconnectAttachment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.networkconnectivity.v1.NextHopVpcNetwork} NextHopVpcNetwork + * @returns {google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment} NextHopInterconnectAttachment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NextHopVpcNetwork.decodeDelimited = function decodeDelimited(reader) { + NextHopInterconnectAttachment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NextHopVpcNetwork message. + * Verifies a NextHopInterconnectAttachment message. * @function verify - * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NextHopVpcNetwork.verify = function verify(message) { + NextHopInterconnectAttachment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.uri != null && message.hasOwnProperty("uri")) if (!$util.isString(message.uri)) return "uri: string expected"; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) + if (!$util.isString(message.vpcNetwork)) + return "vpcNetwork: string expected"; + if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) + if (typeof message.siteToSiteDataTransfer !== "boolean") + return "siteToSiteDataTransfer: boolean expected"; return null; }; /** - * Creates a NextHopVpcNetwork message from a plain object. Also converts values to their respective internal types. + * Creates a NextHopInterconnectAttachment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment * @static * @param {Object.} object Plain object - * @returns {google.cloud.networkconnectivity.v1.NextHopVpcNetwork} NextHopVpcNetwork + * @returns {google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment} NextHopInterconnectAttachment */ - NextHopVpcNetwork.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.networkconnectivity.v1.NextHopVpcNetwork) + NextHopInterconnectAttachment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment) return object; - var message = new $root.google.cloud.networkconnectivity.v1.NextHopVpcNetwork(); + var message = new $root.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment(); if (object.uri != null) message.uri = String(object.uri); + if (object.vpcNetwork != null) + message.vpcNetwork = String(object.vpcNetwork); + if (object.siteToSiteDataTransfer != null) + message.siteToSiteDataTransfer = Boolean(object.siteToSiteDataTransfer); return message; }; /** - * Creates a plain object from a NextHopVpcNetwork message. Also converts values to other types if specified. + * Creates a plain object from a NextHopInterconnectAttachment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment * @static - * @param {google.cloud.networkconnectivity.v1.NextHopVpcNetwork} message NextHopVpcNetwork + * @param {google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment} message NextHopInterconnectAttachment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NextHopVpcNetwork.toObject = function toObject(message, options) { + NextHopInterconnectAttachment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.uri = ""; + object.vpcNetwork = ""; + object.siteToSiteDataTransfer = false; + } if (message.uri != null && message.hasOwnProperty("uri")) object.uri = message.uri; + if (message.vpcNetwork != null && message.hasOwnProperty("vpcNetwork")) + object.vpcNetwork = message.vpcNetwork; + if (message.siteToSiteDataTransfer != null && message.hasOwnProperty("siteToSiteDataTransfer")) + object.siteToSiteDataTransfer = message.siteToSiteDataTransfer; return object; }; /** - * Converts this NextHopVpcNetwork to JSON. + * Converts this NextHopInterconnectAttachment to JSON. * @function toJSON - * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment * @instance * @returns {Object.} JSON object */ - NextHopVpcNetwork.prototype.toJSON = function toJSON() { + NextHopInterconnectAttachment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NextHopVpcNetwork + * Gets the default type url for NextHopInterconnectAttachment * @function getTypeUrl - * @memberof google.cloud.networkconnectivity.v1.NextHopVpcNetwork + * @memberof google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NextHopVpcNetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NextHopInterconnectAttachment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.NextHopVpcNetwork"; + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment"; }; - return NextHopVpcNetwork; + return NextHopInterconnectAttachment; })(); v1.SpokeSummary = (function() { @@ -13501,6 +16695,7 @@ case 2: case 3: case 4: + case 7: break; } if (message.count != null && message.hasOwnProperty("count")) @@ -13548,6 +16743,10 @@ case 4: message.spokeType = 4; break; + case "PRODUCER_VPC_NETWORK": + case 7: + message.spokeType = 7; + break; } if (object.count != null) if ($util.Long) @@ -14397,6 +17596,266 @@ return GetGroupRequest; })(); + v1.UpdateGroupRequest = (function() { + + /** + * Properties of an UpdateGroupRequest. + * @memberof google.cloud.networkconnectivity.v1 + * @interface IUpdateGroupRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGroupRequest updateMask + * @property {google.cloud.networkconnectivity.v1.IGroup|null} [group] UpdateGroupRequest group + * @property {string|null} [requestId] UpdateGroupRequest requestId + */ + + /** + * Constructs a new UpdateGroupRequest. + * @memberof google.cloud.networkconnectivity.v1 + * @classdesc Represents an UpdateGroupRequest. + * @implements IUpdateGroupRequest + * @constructor + * @param {google.cloud.networkconnectivity.v1.IUpdateGroupRequest=} [properties] Properties to set + */ + function UpdateGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateGroupRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.networkconnectivity.v1.UpdateGroupRequest + * @instance + */ + UpdateGroupRequest.prototype.updateMask = null; + + /** + * UpdateGroupRequest group. + * @member {google.cloud.networkconnectivity.v1.IGroup|null|undefined} group + * @memberof google.cloud.networkconnectivity.v1.UpdateGroupRequest + * @instance + */ + UpdateGroupRequest.prototype.group = null; + + /** + * UpdateGroupRequest requestId. + * @member {string} requestId + * @memberof google.cloud.networkconnectivity.v1.UpdateGroupRequest + * @instance + */ + UpdateGroupRequest.prototype.requestId = ""; + + /** + * Creates a new UpdateGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.networkconnectivity.v1.UpdateGroupRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IUpdateGroupRequest=} [properties] Properties to set + * @returns {google.cloud.networkconnectivity.v1.UpdateGroupRequest} UpdateGroupRequest instance + */ + UpdateGroupRequest.create = function create(properties) { + return new UpdateGroupRequest(properties); + }; + + /** + * Encodes the specified UpdateGroupRequest message. Does not implicitly {@link google.cloud.networkconnectivity.v1.UpdateGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.networkconnectivity.v1.UpdateGroupRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IUpdateGroupRequest} message UpdateGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.group != null && Object.hasOwnProperty.call(message, "group")) + $root.google.cloud.networkconnectivity.v1.Group.encode(message.group, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified UpdateGroupRequest message, length delimited. Does not implicitly {@link google.cloud.networkconnectivity.v1.UpdateGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.networkconnectivity.v1.UpdateGroupRequest + * @static + * @param {google.cloud.networkconnectivity.v1.IUpdateGroupRequest} message UpdateGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.networkconnectivity.v1.UpdateGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.networkconnectivity.v1.UpdateGroupRequest} UpdateGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateGroupRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.networkconnectivity.v1.UpdateGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 2: { + message.group = $root.google.cloud.networkconnectivity.v1.Group.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.networkconnectivity.v1.UpdateGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.networkconnectivity.v1.UpdateGroupRequest} UpdateGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateGroupRequest message. + * @function verify + * @memberof google.cloud.networkconnectivity.v1.UpdateGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.group != null && message.hasOwnProperty("group")) { + var error = $root.google.cloud.networkconnectivity.v1.Group.verify(message.group); + if (error) + return "group." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates an UpdateGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.networkconnectivity.v1.UpdateGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.networkconnectivity.v1.UpdateGroupRequest} UpdateGroupRequest + */ + UpdateGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.networkconnectivity.v1.UpdateGroupRequest) + return object; + var message = new $root.google.cloud.networkconnectivity.v1.UpdateGroupRequest(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.UpdateGroupRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.group != null) { + if (typeof object.group !== "object") + throw TypeError(".google.cloud.networkconnectivity.v1.UpdateGroupRequest.group: object expected"); + message.group = $root.google.cloud.networkconnectivity.v1.Group.fromObject(object.group); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an UpdateGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.networkconnectivity.v1.UpdateGroupRequest + * @static + * @param {google.cloud.networkconnectivity.v1.UpdateGroupRequest} message UpdateGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.updateMask = null; + object.group = null; + object.requestId = ""; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.group != null && message.hasOwnProperty("group")) + object.group = $root.google.cloud.networkconnectivity.v1.Group.toObject(message.group, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this UpdateGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.networkconnectivity.v1.UpdateGroupRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateGroupRequest + * @function getTypeUrl + * @memberof google.cloud.networkconnectivity.v1.UpdateGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.networkconnectivity.v1.UpdateGroupRequest"; + }; + + return UpdateGroupRequest; + })(); + v1.PolicyBasedRoutingService = (function() { /** @@ -28344,6 +31803,263 @@ return values; })(); + api.FieldInfo = (function() { + + /** + * Properties of a FieldInfo. + * @memberof google.api + * @interface IFieldInfo + * @property {google.api.FieldInfo.Format|null} [format] FieldInfo format + */ + + /** + * Constructs a new FieldInfo. + * @memberof google.api + * @classdesc Represents a FieldInfo. + * @implements IFieldInfo + * @constructor + * @param {google.api.IFieldInfo=} [properties] Properties to set + */ + function FieldInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldInfo format. + * @member {google.api.FieldInfo.Format} format + * @memberof google.api.FieldInfo + * @instance + */ + FieldInfo.prototype.format = 0; + + /** + * Creates a new FieldInfo instance using the specified properties. + * @function create + * @memberof google.api.FieldInfo + * @static + * @param {google.api.IFieldInfo=} [properties] Properties to set + * @returns {google.api.FieldInfo} FieldInfo instance + */ + FieldInfo.create = function create(properties) { + return new FieldInfo(properties); + }; + + /** + * Encodes the specified FieldInfo message. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages. + * @function encode + * @memberof google.api.FieldInfo + * @static + * @param {google.api.IFieldInfo} message FieldInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.format != null && Object.hasOwnProperty.call(message, "format")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.format); + return writer; + }; + + /** + * Encodes the specified FieldInfo message, length delimited. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.FieldInfo + * @static + * @param {google.api.IFieldInfo} message FieldInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldInfo message from the specified reader or buffer. + * @function decode + * @memberof google.api.FieldInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.FieldInfo} FieldInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.FieldInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.format = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.FieldInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.FieldInfo} FieldInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldInfo message. + * @function verify + * @memberof google.api.FieldInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.format != null && message.hasOwnProperty("format")) + switch (message.format) { + default: + return "format: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + return null; + }; + + /** + * Creates a FieldInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.FieldInfo + * @static + * @param {Object.} object Plain object + * @returns {google.api.FieldInfo} FieldInfo + */ + FieldInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.FieldInfo) + return object; + var message = new $root.google.api.FieldInfo(); + switch (object.format) { + default: + if (typeof object.format === "number") { + message.format = object.format; + break; + } + break; + case "FORMAT_UNSPECIFIED": + case 0: + message.format = 0; + break; + case "UUID4": + case 1: + message.format = 1; + break; + case "IPV4": + case 2: + message.format = 2; + break; + case "IPV6": + case 3: + message.format = 3; + break; + case "IPV4_OR_IPV6": + case 4: + message.format = 4; + break; + } + return message; + }; + + /** + * Creates a plain object from a FieldInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.FieldInfo + * @static + * @param {google.api.FieldInfo} message FieldInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0; + if (message.format != null && message.hasOwnProperty("format")) + object.format = options.enums === String ? $root.google.api.FieldInfo.Format[message.format] === undefined ? message.format : $root.google.api.FieldInfo.Format[message.format] : message.format; + return object; + }; + + /** + * Converts this FieldInfo to JSON. + * @function toJSON + * @memberof google.api.FieldInfo + * @instance + * @returns {Object.} JSON object + */ + FieldInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldInfo + * @function getTypeUrl + * @memberof google.api.FieldInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.FieldInfo"; + }; + + /** + * Format enum. + * @name google.api.FieldInfo.Format + * @enum {number} + * @property {number} FORMAT_UNSPECIFIED=0 FORMAT_UNSPECIFIED value + * @property {number} UUID4=1 UUID4 value + * @property {number} IPV4=2 IPV4 value + * @property {number} IPV6=3 IPV6 value + * @property {number} IPV4_OR_IPV6=4 IPV4_OR_IPV6 value + */ + FieldInfo.Format = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "UUID4"] = 1; + values[valuesById[2] = "IPV4"] = 2; + values[valuesById[3] = "IPV6"] = 3; + values[valuesById[4] = "IPV4_OR_IPV6"] = 4; + return values; + })(); + + return FieldInfo; + })(); + return api; })(); @@ -34518,6 +38234,7 @@ * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference + * @property {google.api.IFieldInfo|null} [".google.api.fieldInfo"] FieldOptions .google.api.fieldInfo */ /** @@ -34659,6 +38376,14 @@ */ FieldOptions.prototype[".google.api.resourceReference"] = null; + /** + * FieldOptions .google.api.fieldInfo. + * @member {google.api.IFieldInfo|null|undefined} .google.api.fieldInfo + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.fieldInfo"] = null; + /** * Creates a new FieldOptions instance using the specified properties. * @function create @@ -34720,6 +38445,8 @@ } if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); + if (message[".google.api.fieldInfo"] != null && Object.hasOwnProperty.call(message, ".google.api.fieldInfo")) + $root.google.api.FieldInfo.encode(message[".google.api.fieldInfo"], writer.uint32(/* id 291403980, wireType 2 =*/2331231842).fork()).ldelim(); return writer; }; @@ -34832,6 +38559,10 @@ message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); break; } + case 291403980: { + message[".google.api.fieldInfo"] = $root.google.api.FieldInfo.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -34979,6 +38710,11 @@ if (error) return ".google.api.resourceReference." + error; } + if (message[".google.api.fieldInfo"] != null && message.hasOwnProperty(".google.api.fieldInfo")) { + var error = $root.google.api.FieldInfo.verify(message[".google.api.fieldInfo"]); + if (error) + return ".google.api.fieldInfo." + error; + } return null; }; @@ -35198,6 +38934,11 @@ throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); } + if (object[".google.api.fieldInfo"] != null) { + if (typeof object[".google.api.fieldInfo"] !== "object") + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldInfo: object expected"); + message[".google.api.fieldInfo"] = $root.google.api.FieldInfo.fromObject(object[".google.api.fieldInfo"]); + } return message; }; @@ -35232,6 +38973,7 @@ object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0; object.features = null; object[".google.api.resourceReference"] = null; + object[".google.api.fieldInfo"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; @@ -35275,6 +39017,8 @@ } if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); + if (message[".google.api.fieldInfo"] != null && message.hasOwnProperty(".google.api.fieldInfo")) + object[".google.api.fieldInfo"] = $root.google.api.FieldInfo.toObject(message[".google.api.fieldInfo"], options); return object; }; diff --git a/packages/google-cloud-networkconnectivity/protos/protos.json b/packages/google-cloud-networkconnectivity/protos/protos.json index 18fc946cd9a..070ec305564 100644 --- a/packages/google-cloud-networkconnectivity/protos/protos.json +++ b/packages/google-cloud-networkconnectivity/protos/protos.json @@ -1,4 +1,7 @@ { + "options": { + "syntax": "proto3" + }, "nested": { "google": { "nested": { @@ -214,6 +217,24 @@ } ] }, + "QueryHubStatus": { + "requestType": "QueryHubStatusRequest", + "responseType": "QueryHubStatusResponse", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/global/hubs/*}:queryStatus", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/global/hubs/*}:queryStatus" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, "ListSpokes": { "requestType": "ListSpokesRequest", "responseType": "ListSpokesResponse", @@ -495,6 +516,34 @@ "(google.api.method_signature)": "parent" } ] + }, + "UpdateGroup": { + "requestType": "UpdateGroupRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).patch": "/v1/{group.name=projects/*/locations/global/hubs/*/groups/*}", + "(google.api.http).body": "group", + "(google.api.method_signature)": "group,update_mask", + "(google.longrunning.operation_info).response_type": "Group", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{group.name=projects/*/locations/global/hubs/*/groups/*}", + "body": "group" + } + }, + { + "(google.api.method_signature)": "group,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Group", + "metadata_type": "OperationMetadata" + } + } + ] } } }, @@ -509,7 +558,8 @@ "values": { "ROUTE_TYPE_UNSPECIFIED": 0, "VPC_PRIMARY_SUBNET": 1, - "VPC_SECONDARY_SUBNET": 2 + "VPC_SECONDARY_SUBNET": 2, + "DYNAMIC_ROUTE": 3 } }, "State": { @@ -531,7 +581,21 @@ "VPN_TUNNEL": 1, "INTERCONNECT_ATTACHMENT": 2, "ROUTER_APPLIANCE": 3, - "VPC_NETWORK": 4 + "VPC_NETWORK": 4, + "PRODUCER_VPC_NETWORK": 7 + } + }, + "PolicyMode": { + "values": { + "POLICY_MODE_UNSPECIFIED": 0, + "PRESET": 1 + } + }, + "PresetTopology": { + "values": { + "PRESET_TOPOLOGY_UNSPECIFIED": 0, + "MESH": 2, + "STAR": 3 } }, "Hub": { @@ -539,6 +603,13 @@ "(google.api.resource).type": "networkconnectivity.googleapis.com/Hub", "(google.api.resource).pattern": "projects/{project}/locations/global/hubs/{hub}" }, + "oneofs": { + "_exportPsc": { + "oneof": [ + "exportPsc" + ] + } + }, "fields": { "name": { "type": "string", @@ -603,6 +674,28 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "policyMode": { + "type": "PolicyMode", + "id": 13, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "presetTopology": { + "type": "PresetTopology", + "id": 14, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "exportPsc": { + "type": "bool", + "id": 15, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } } } }, @@ -695,6 +788,13 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "linkedProducerVpcNetwork": { + "type": "LinkedProducerVpcNetwork", + "id": 26, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "uniqueId": { "type": "string", "id": 11, @@ -889,6 +989,34 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "priority": { + "type": "int64", + "id": 13, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "nextHopVpnTunnel": { + "type": "NextHopVPNTunnel", + "id": 14, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "nextHopRouterApplianceInstance": { + "type": "NextHopRouterApplianceInstance", + "id": 15, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "nextHopInterconnectAttachment": { + "type": "NextHopInterconnectAttachment", + "id": 16, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } } } }, @@ -947,6 +1075,29 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "autoAccept": { + "type": "AutoAccept", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "routeTable": { + "type": "string", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "AutoAccept": { + "fields": { + "autoAcceptProjects": { + "rule": "repeated", + "type": "string", + "id": 1 } } }, @@ -1149,6 +1300,127 @@ } } }, + "QueryHubStatusRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "networkconnectivity.googleapis.com/Hub" + } + }, + "pageSize": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "filter": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "orderBy": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "groupBy": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "QueryHubStatusResponse": { + "fields": { + "hubStatusEntries": { + "rule": "repeated", + "type": "HubStatusEntry", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "HubStatusEntry": { + "fields": { + "count": { + "type": "int32", + "id": 1 + }, + "groupBy": { + "type": "string", + "id": 2 + }, + "pscPropagationStatus": { + "type": "PscPropagationStatus", + "id": 3 + } + } + }, + "PscPropagationStatus": { + "fields": { + "sourceSpoke": { + "type": "string", + "id": 1 + }, + "sourceGroup": { + "type": "string", + "id": 2 + }, + "sourceForwardingRule": { + "type": "string", + "id": 3 + }, + "targetSpoke": { + "type": "string", + "id": 4 + }, + "targetGroup": { + "type": "string", + "id": 5 + }, + "code": { + "type": "Code", + "id": 6 + }, + "message": { + "type": "string", + "id": 7 + } + }, + "nested": { + "Code": { + "values": { + "CODE_UNSPECIFIED": 0, + "READY": 1, + "PROPAGATING": 2, + "ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED": 3, + "ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED": 4, + "ERROR_PRODUCER_QUOTA_EXCEEDED": 5, + "ERROR_CONSUMER_QUOTA_EXCEEDED": 6 + } + } + } + }, "ListSpokesRequest": { "fields": { "parent": { @@ -1544,6 +1816,14 @@ "(google.api.field_behavior)": "OUTPUT_ONLY", "(google.api.resource_reference).type": "compute.googleapis.com/Network" } + }, + "includeImportRanges": { + "rule": "repeated", + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -1568,6 +1848,14 @@ "(google.api.field_behavior)": "OUTPUT_ONLY", "(google.api.resource_reference).type": "compute.googleapis.com/Network" } + }, + "includeImportRanges": { + "rule": "repeated", + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -1589,6 +1877,14 @@ "(google.api.field_behavior)": "OUTPUT_ONLY", "(google.api.resource_reference).type": "compute.googleapis.com/Network" } + }, + "includeImportRanges": { + "rule": "repeated", + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -1609,6 +1905,74 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "includeExportRanges": { + "rule": "repeated", + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "producerVpcSpokes": { + "rule": "repeated", + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "networkconnectivity.googleapis.com/Spoke" + } + } + } + }, + "LinkedProducerVpcNetwork": { + "fields": { + "network": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "IMMUTABLE", + "(google.api.resource_reference).type": "compute.googleapis.com/Network" + } + }, + "serviceConsumerVpcSpoke": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "networkconnectivity.googleapis.com/Spoke" + } + }, + "peering": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "producerNetwork": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "compute.googleapis.com/Network" + } + }, + "excludeExportRanges": { + "rule": "repeated", + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "includeExportRanges": { + "rule": "repeated", + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -1647,6 +2011,72 @@ } } }, + "NextHopVPNTunnel": { + "fields": { + "uri": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "compute.googleapis.com/VpnTunnel" + } + }, + "vpcNetwork": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "compute.googleapis.com/Network" + } + }, + "siteToSiteDataTransfer": { + "type": "bool", + "id": 3 + } + } + }, + "NextHopRouterApplianceInstance": { + "fields": { + "uri": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "compute.googleapis.com/Instance" + } + }, + "vpcNetwork": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "compute.googleapis.com/Network" + } + }, + "siteToSiteDataTransfer": { + "type": "bool", + "id": 3 + } + } + }, + "NextHopInterconnectAttachment": { + "fields": { + "uri": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "compute.googleapis.com/InterconnectAttachment" + } + }, + "vpcNetwork": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "compute.googleapis.com/Network" + } + }, + "siteToSiteDataTransfer": { + "type": "bool", + "id": 3 + } + } + }, "SpokeSummary": { "fields": { "spokeTypeCounts": { @@ -1743,6 +2173,31 @@ } } }, + "UpdateGroupRequest": { + "fields": { + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "group": { + "type": "Group", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, "PolicyBasedRoutingService": { "options": { "(google.api.default_host)": "networkconnectivity.googleapis.com", @@ -2933,9 +3388,9 @@ }, "api": { "options": { - "go_package": "google.golang.org/genproto/googleapis/api;api", + "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", "java_multiple_files": true, - "java_outer_classname": "LaunchStageProto", + "java_outer_classname": "FieldInfoProto", "java_package": "com.google.api", "objc_class_prefix": "GAPI", "cc_enable_arenas": true @@ -3418,6 +3873,30 @@ "GA": 4, "DEPRECATED": 5 } + }, + "fieldInfo": { + "type": "google.api.FieldInfo", + "id": 291403980, + "extend": "google.protobuf.FieldOptions" + }, + "FieldInfo": { + "fields": { + "format": { + "type": "Format", + "id": 1 + } + }, + "nested": { + "Format": { + "values": { + "FORMAT_UNSPECIFIED": 0, + "UUID4": 1, + "IPV4": 2, + "IPV6": 3, + "IPV4_OR_IPV6": 4 + } + } + } } } }, diff --git a/packages/google-cloud-networkconnectivity/samples/README.md b/packages/google-cloud-networkconnectivity/samples/README.md index c9795a049ab..2e3a300acce 100644 --- a/packages/google-cloud-networkconnectivity/samples/README.md +++ b/packages/google-cloud-networkconnectivity/samples/README.md @@ -28,7 +28,9 @@ * [Hub_service.list_route_tables](#hub_service.list_route_tables) * [Hub_service.list_routes](#hub_service.list_routes) * [Hub_service.list_spokes](#hub_service.list_spokes) + * [Hub_service.query_hub_status](#hub_service.query_hub_status) * [Hub_service.reject_hub_spoke](#hub_service.reject_hub_spoke) + * [Hub_service.update_group](#hub_service.update_group) * [Hub_service.update_hub](#hub_service.update_hub) * [Hub_service.update_spoke](#hub_service.update_spoke) * [Policy_based_routing_service.create_policy_based_route](#policy_based_routing_service.create_policy_based_route) @@ -334,6 +336,23 @@ __Usage:__ +### Hub_service.query_hub_status + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.query_hub_status.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.query_hub_status.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.query_hub_status.js` + + +----- + + + + ### Hub_service.reject_hub_spoke View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.reject_hub_spoke.js). @@ -351,6 +370,23 @@ __Usage:__ +### Hub_service.update_group + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.update_group.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.update_group.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.update_group.js` + + +----- + + + + ### Hub_service.update_hub View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.update_hub.js). diff --git a/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.query_hub_status.js b/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.query_hub_status.js new file mode 100644 index 00000000000..fa6ce32ad8b --- /dev/null +++ b/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.query_hub_status.js @@ -0,0 +1,107 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START networkconnectivity_v1_generated_HubService_QueryHubStatus_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the hub. + */ + // const name = 'abc123' + /** + * Optional. The maximum number of results to return per page. + */ + // const pageSize = 1234 + /** + * Optional. The page token. + */ + // const pageToken = 'abc123' + /** + * Optional. An expression that filters the list of results. + * The filter can be used to filter the results by the following fields: + * * `psc_propagation_status.source_spoke` + * * `psc_propagation_status.source_group` + * * `psc_propagation_status.source_forwarding_rule` + * * `psc_propagation_status.target_spoke` + * * `psc_propagation_status.target_group` + * * `psc_propagation_status.code` + * * `psc_propagation_status.message` + */ + // const filter = 'abc123' + /** + * Optional. Sort the results in ascending order by the specified fields. + * A comma-separated list of any of these fields: + * * `psc_propagation_status.source_spoke` + * * `psc_propagation_status.source_group` + * * `psc_propagation_status.source_forwarding_rule` + * * `psc_propagation_status.target_spoke` + * * `psc_propagation_status.target_group` + * * `psc_propagation_status.code` + * If `group_by` is set, the value of the `order_by` field must be the + * same as or a subset of the `group_by` field. + */ + // const orderBy = 'abc123' + /** + * Optional. Aggregate the results by the specified fields. + * A comma-separated list of any of these fields: + * * `psc_propagation_status.source_spoke` + * * `psc_propagation_status.source_group` + * * `psc_propagation_status.source_forwarding_rule` + * * `psc_propagation_status.target_spoke` + * * `psc_propagation_status.target_group` + * * `psc_propagation_status.code` + */ + // const groupBy = 'abc123' + + // Imports the Networkconnectivity library + const {HubServiceClient} = require('@google-cloud/network-connectivity').v1; + + // Instantiates a client + const networkconnectivityClient = new HubServiceClient(); + + async function callQueryHubStatus() { + // Construct request + const request = { + name, + }; + + // Run request + const iterable = networkconnectivityClient.queryHubStatusAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callQueryHubStatus(); + // [END networkconnectivity_v1_generated_HubService_QueryHubStatus_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.update_group.js b/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.update_group.js new file mode 100644 index 00000000000..525a8e564dd --- /dev/null +++ b/packages/google-cloud-networkconnectivity/samples/generated/v1/hub_service.update_group.js @@ -0,0 +1,85 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(group) { + // [START networkconnectivity_v1_generated_HubService_UpdateGroup_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Optional. In the case of an update to an existing group, field mask is used + * to specify the fields to be overwritten. The fields specified in the + * update_mask are relative to the resource, not the full request. A field is + * overwritten if it is in the mask. If the user does not provide a mask, then + * all fields are overwritten. + */ + // const updateMask = {} + /** + * Required. The state that the group should be in after the update. + */ + // const group = {} + /** + * Optional. A request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server knows to ignore the request + * if it has already been completed. The server guarantees that a request + * doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check to see whether the original operation + * was received. If it was, the server ignores the second request. This + * behavior prevents clients from mistakenly creating duplicate commitments. + * The request ID must be a valid UUID, with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Networkconnectivity library + const {HubServiceClient} = require('@google-cloud/network-connectivity').v1; + + // Instantiates a client + const networkconnectivityClient = new HubServiceClient(); + + async function callUpdateGroup() { + // Construct request + const request = { + group, + }; + + // Run request + const [operation] = await networkconnectivityClient.updateGroup(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateGroup(); + // [END networkconnectivity_v1_generated_HubService_UpdateGroup_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata_google.cloud.networkconnectivity.v1.json b/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata_google.cloud.networkconnectivity.v1.json index 23c22bb3208..b82abffb656 100644 --- a/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata_google.cloud.networkconnectivity.v1.json +++ b/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata_google.cloud.networkconnectivity.v1.json @@ -315,6 +315,66 @@ } } }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_QueryHubStatus_async", + "title": "HubService queryHubStatus Sample", + "origin": "API_DEFINITION", + "description": " Query the Private Service Connect propagation status of a Network Connectivity Center hub.", + "canonical": true, + "file": "hub_service.query_hub_status.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 99, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "QueryHubStatus", + "fullName": "google.cloud.networkconnectivity.v1.HubService.QueryHubStatus", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "group_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.networkconnectivity.v1.QueryHubStatusResponse", + "client": { + "shortName": "HubServiceClient", + "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" + }, + "method": { + "shortName": "QueryHubStatus", + "fullName": "google.cloud.networkconnectivity.v1.HubService.QueryHubStatus", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + } + }, { "regionTag": "networkconnectivity_v1_generated_HubService_ListSpokes_async", "title": "HubService listSpokes Sample", @@ -739,7 +799,7 @@ "regionTag": "networkconnectivity_v1_generated_HubService_ListRoutes_async", "title": "HubService listRoutes Sample", "origin": "API_DEFINITION", - "description": " Lists routes in a given project.", + "description": " Lists routes in a given route table.", "canonical": true, "file": "hub_service.list_routes.js", "language": "JAVASCRIPT", @@ -795,7 +855,7 @@ "regionTag": "networkconnectivity_v1_generated_HubService_ListRouteTables_async", "title": "HubService listRouteTables Sample", "origin": "API_DEFINITION", - "description": " Lists route tables in a given project.", + "description": " Lists route tables in a given hub.", "canonical": true, "file": "hub_service.list_route_tables.js", "language": "JAVASCRIPT", @@ -943,6 +1003,54 @@ } } }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_UpdateGroup_async", + "title": "HubService updateGroup Sample", + "origin": "API_DEFINITION", + "description": " Updates the parameters of a Network Connectivity Center group.", + "canonical": true, + "file": "hub_service.update_group.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGroup", + "fullName": "google.cloud.networkconnectivity.v1.HubService.UpdateGroup", + "async": true, + "parameters": [ + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "group", + "type": ".google.cloud.networkconnectivity.v1.Group" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "HubServiceClient", + "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" + }, + "method": { + "shortName": "UpdateGroup", + "fullName": "google.cloud.networkconnectivity.v1.HubService.UpdateGroup", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + } + }, { "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_async", "title": "HubService listPolicyBasedRoutes Sample", diff --git a/packages/google-cloud-networkconnectivity/src/v1/gapic_metadata.json b/packages/google-cloud-networkconnectivity/src/v1/gapic_metadata.json index 342de1fdc38..d2c8670f5e5 100644 --- a/packages/google-cloud-networkconnectivity/src/v1/gapic_metadata.json +++ b/packages/google-cloud-networkconnectivity/src/v1/gapic_metadata.json @@ -75,6 +75,11 @@ "deleteSpoke" ] }, + "UpdateGroup": { + "methods": [ + "updateGroup" + ] + }, "ListHubs": { "methods": [ "listHubs", @@ -89,6 +94,13 @@ "listHubSpokesAsync" ] }, + "QueryHubStatus": { + "methods": [ + "queryHubStatus", + "queryHubStatusStream", + "queryHubStatusAsync" + ] + }, "ListSpokes": { "methods": [ "listSpokes", @@ -187,6 +199,11 @@ "deleteSpoke" ] }, + "UpdateGroup": { + "methods": [ + "updateGroup" + ] + }, "ListHubs": { "methods": [ "listHubs", @@ -201,6 +218,13 @@ "listHubSpokesAsync" ] }, + "QueryHubStatus": { + "methods": [ + "queryHubStatus", + "queryHubStatusStream", + "queryHubStatusAsync" + ] + }, "ListSpokes": { "methods": [ "listSpokes", diff --git a/packages/google-cloud-networkconnectivity/src/v1/hub_service_client.ts b/packages/google-cloud-networkconnectivity/src/v1/hub_service_client.ts index 660528be39b..975b649cf8e 100644 --- a/packages/google-cloud-networkconnectivity/src/v1/hub_service_client.ts +++ b/packages/google-cloud-networkconnectivity/src/v1/hub_service_client.ts @@ -265,6 +265,11 @@ export class HubServiceClient { 'nextPageToken', 'spokes' ), + queryHubStatus: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'hubStatusEntries' + ), listSpokes: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -429,6 +434,12 @@ export class HubServiceClient { const deleteSpokeMetadata = protoFilesRoot.lookup( '.google.cloud.networkconnectivity.v1.OperationMetadata' ) as gax.protobuf.Type; + const updateGroupResponse = protoFilesRoot.lookup( + '.google.cloud.networkconnectivity.v1.Group' + ) as gax.protobuf.Type; + const updateGroupMetadata = protoFilesRoot.lookup( + '.google.cloud.networkconnectivity.v1.OperationMetadata' + ) as gax.protobuf.Type; this.descriptors.longrunning = { createHub: new this._gaxModule.LongrunningDescriptor( @@ -471,6 +482,11 @@ export class HubServiceClient { deleteSpokeResponse.decode.bind(deleteSpokeResponse), deleteSpokeMetadata.decode.bind(deleteSpokeMetadata) ), + updateGroup: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateGroupResponse.decode.bind(updateGroupResponse), + updateGroupMetadata.decode.bind(updateGroupMetadata) + ), }; // Put together the default options sent with requests. @@ -529,6 +545,7 @@ export class HubServiceClient { 'updateHub', 'deleteHub', 'listHubSpokes', + 'queryHubStatus', 'listSpokes', 'getSpoke', 'createSpoke', @@ -542,6 +559,7 @@ export class HubServiceClient { 'listRouteTables', 'getGroup', 'listGroups', + 'updateGroup', ]; for (const methodName of hubServiceStubMethods) { const callPromise = this.hubServiceStub.then( @@ -2355,6 +2373,163 @@ export class HubServiceClient { protos.google.cloud.networkconnectivity.v1.OperationMetadata >; } + /** + * Updates the parameters of a Network Connectivity Center group. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.protobuf.FieldMask} [request.updateMask] + * Optional. In the case of an update to an existing group, field mask is used + * to specify the fields to be overwritten. The fields specified in the + * update_mask are relative to the resource, not the full request. A field is + * overwritten if it is in the mask. If the user does not provide a mask, then + * all fields are overwritten. + * @param {google.cloud.networkconnectivity.v1.Group} request.group + * Required. The state that the group should be in after the update. + * @param {string} [request.requestId] + * Optional. A request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server knows to ignore the request + * if it has already been completed. The server guarantees that a request + * doesn't result in creation of duplicate commitments for at least 60 + * minutes. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check to see whether the original operation + * was received. If it was, the server ignores the second request. This + * behavior prevents clients from mistakenly creating duplicate commitments. + * + * The request ID must be a valid UUID, with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/hub_service.update_group.js + * region_tag:networkconnectivity_v1_generated_HubService_UpdateGroup_async + */ + updateGroup( + request?: protos.google.cloud.networkconnectivity.v1.IUpdateGroupRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.networkconnectivity.v1.IGroup, + protos.google.cloud.networkconnectivity.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateGroup( + request: protos.google.cloud.networkconnectivity.v1.IUpdateGroupRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.networkconnectivity.v1.IGroup, + protos.google.cloud.networkconnectivity.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateGroup( + request: protos.google.cloud.networkconnectivity.v1.IUpdateGroupRequest, + callback: Callback< + LROperation< + protos.google.cloud.networkconnectivity.v1.IGroup, + protos.google.cloud.networkconnectivity.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateGroup( + request?: protos.google.cloud.networkconnectivity.v1.IUpdateGroupRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.networkconnectivity.v1.IGroup, + protos.google.cloud.networkconnectivity.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.networkconnectivity.v1.IGroup, + protos.google.cloud.networkconnectivity.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.networkconnectivity.v1.IGroup, + protos.google.cloud.networkconnectivity.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'group.name': request.group!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateGroup(request, options, callback); + } + /** + * Check the status of the long running operation returned by `updateGroup()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/hub_service.update_group.js + * region_tag:networkconnectivity_v1_generated_HubService_UpdateGroup_async + */ + async checkUpdateGroupProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.networkconnectivity.v1.Group, + protos.google.cloud.networkconnectivity.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updateGroup, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.networkconnectivity.v1.Group, + protos.google.cloud.networkconnectivity.v1.OperationMetadata + >; + } /** * Lists the Network Connectivity Center hubs associated with a given project. * @@ -2792,6 +2967,283 @@ export class HubServiceClient { callSettings ) as AsyncIterable; } + /** + * Query the Private Service Connect propagation status of a Network + * Connectivity Center hub. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the hub. + * @param {number} [request.pageSize] + * Optional. The maximum number of results to return per page. + * @param {string} [request.pageToken] + * Optional. The page token. + * @param {string} [request.filter] + * Optional. An expression that filters the list of results. + * The filter can be used to filter the results by the following fields: + * * `psc_propagation_status.source_spoke` + * * `psc_propagation_status.source_group` + * * `psc_propagation_status.source_forwarding_rule` + * * `psc_propagation_status.target_spoke` + * * `psc_propagation_status.target_group` + * * `psc_propagation_status.code` + * * `psc_propagation_status.message` + * @param {string} [request.orderBy] + * Optional. Sort the results in ascending order by the specified fields. + * A comma-separated list of any of these fields: + * * `psc_propagation_status.source_spoke` + * * `psc_propagation_status.source_group` + * * `psc_propagation_status.source_forwarding_rule` + * * `psc_propagation_status.target_spoke` + * * `psc_propagation_status.target_group` + * * `psc_propagation_status.code` + * If `group_by` is set, the value of the `order_by` field must be the + * same as or a subset of the `group_by` field. + * @param {string} [request.groupBy] + * Optional. Aggregate the results by the specified fields. + * A comma-separated list of any of these fields: + * * `psc_propagation_status.source_spoke` + * * `psc_propagation_status.source_group` + * * `psc_propagation_status.source_forwarding_rule` + * * `psc_propagation_status.target_spoke` + * * `psc_propagation_status.target_group` + * * `psc_propagation_status.code` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.networkconnectivity.v1.HubStatusEntry|HubStatusEntry}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `queryHubStatusAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + queryHubStatus( + request?: protos.google.cloud.networkconnectivity.v1.IQueryHubStatusRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.networkconnectivity.v1.IHubStatusEntry[], + protos.google.cloud.networkconnectivity.v1.IQueryHubStatusRequest | null, + protos.google.cloud.networkconnectivity.v1.IQueryHubStatusResponse, + ] + >; + queryHubStatus( + request: protos.google.cloud.networkconnectivity.v1.IQueryHubStatusRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.networkconnectivity.v1.IQueryHubStatusRequest, + | protos.google.cloud.networkconnectivity.v1.IQueryHubStatusResponse + | null + | undefined, + protos.google.cloud.networkconnectivity.v1.IHubStatusEntry + > + ): void; + queryHubStatus( + request: protos.google.cloud.networkconnectivity.v1.IQueryHubStatusRequest, + callback: PaginationCallback< + protos.google.cloud.networkconnectivity.v1.IQueryHubStatusRequest, + | protos.google.cloud.networkconnectivity.v1.IQueryHubStatusResponse + | null + | undefined, + protos.google.cloud.networkconnectivity.v1.IHubStatusEntry + > + ): void; + queryHubStatus( + request?: protos.google.cloud.networkconnectivity.v1.IQueryHubStatusRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.networkconnectivity.v1.IQueryHubStatusRequest, + | protos.google.cloud.networkconnectivity.v1.IQueryHubStatusResponse + | null + | undefined, + protos.google.cloud.networkconnectivity.v1.IHubStatusEntry + >, + callback?: PaginationCallback< + protos.google.cloud.networkconnectivity.v1.IQueryHubStatusRequest, + | protos.google.cloud.networkconnectivity.v1.IQueryHubStatusResponse + | null + | undefined, + protos.google.cloud.networkconnectivity.v1.IHubStatusEntry + > + ): Promise< + [ + protos.google.cloud.networkconnectivity.v1.IHubStatusEntry[], + protos.google.cloud.networkconnectivity.v1.IQueryHubStatusRequest | null, + protos.google.cloud.networkconnectivity.v1.IQueryHubStatusResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.queryHubStatus(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the hub. + * @param {number} [request.pageSize] + * Optional. The maximum number of results to return per page. + * @param {string} [request.pageToken] + * Optional. The page token. + * @param {string} [request.filter] + * Optional. An expression that filters the list of results. + * The filter can be used to filter the results by the following fields: + * * `psc_propagation_status.source_spoke` + * * `psc_propagation_status.source_group` + * * `psc_propagation_status.source_forwarding_rule` + * * `psc_propagation_status.target_spoke` + * * `psc_propagation_status.target_group` + * * `psc_propagation_status.code` + * * `psc_propagation_status.message` + * @param {string} [request.orderBy] + * Optional. Sort the results in ascending order by the specified fields. + * A comma-separated list of any of these fields: + * * `psc_propagation_status.source_spoke` + * * `psc_propagation_status.source_group` + * * `psc_propagation_status.source_forwarding_rule` + * * `psc_propagation_status.target_spoke` + * * `psc_propagation_status.target_group` + * * `psc_propagation_status.code` + * If `group_by` is set, the value of the `order_by` field must be the + * same as or a subset of the `group_by` field. + * @param {string} [request.groupBy] + * Optional. Aggregate the results by the specified fields. + * A comma-separated list of any of these fields: + * * `psc_propagation_status.source_spoke` + * * `psc_propagation_status.source_group` + * * `psc_propagation_status.source_forwarding_rule` + * * `psc_propagation_status.target_spoke` + * * `psc_propagation_status.target_group` + * * `psc_propagation_status.code` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.networkconnectivity.v1.HubStatusEntry|HubStatusEntry} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `queryHubStatusAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + queryHubStatusStream( + request?: protos.google.cloud.networkconnectivity.v1.IQueryHubStatusRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + const defaultCallSettings = this._defaults['queryHubStatus']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.queryHubStatus.createStream( + this.innerApiCalls.queryHubStatus as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `queryHubStatus`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the hub. + * @param {number} [request.pageSize] + * Optional. The maximum number of results to return per page. + * @param {string} [request.pageToken] + * Optional. The page token. + * @param {string} [request.filter] + * Optional. An expression that filters the list of results. + * The filter can be used to filter the results by the following fields: + * * `psc_propagation_status.source_spoke` + * * `psc_propagation_status.source_group` + * * `psc_propagation_status.source_forwarding_rule` + * * `psc_propagation_status.target_spoke` + * * `psc_propagation_status.target_group` + * * `psc_propagation_status.code` + * * `psc_propagation_status.message` + * @param {string} [request.orderBy] + * Optional. Sort the results in ascending order by the specified fields. + * A comma-separated list of any of these fields: + * * `psc_propagation_status.source_spoke` + * * `psc_propagation_status.source_group` + * * `psc_propagation_status.source_forwarding_rule` + * * `psc_propagation_status.target_spoke` + * * `psc_propagation_status.target_group` + * * `psc_propagation_status.code` + * If `group_by` is set, the value of the `order_by` field must be the + * same as or a subset of the `group_by` field. + * @param {string} [request.groupBy] + * Optional. Aggregate the results by the specified fields. + * A comma-separated list of any of these fields: + * * `psc_propagation_status.source_spoke` + * * `psc_propagation_status.source_group` + * * `psc_propagation_status.source_forwarding_rule` + * * `psc_propagation_status.target_spoke` + * * `psc_propagation_status.target_group` + * * `psc_propagation_status.code` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.networkconnectivity.v1.HubStatusEntry|HubStatusEntry}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/hub_service.query_hub_status.js + * region_tag:networkconnectivity_v1_generated_HubService_QueryHubStatus_async + */ + queryHubStatusAsync( + request?: protos.google.cloud.networkconnectivity.v1.IQueryHubStatusRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + const defaultCallSettings = this._defaults['queryHubStatus']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.queryHubStatus.asyncIterate( + this.innerApiCalls['queryHubStatus'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } /** * Lists the Network Connectivity Center spokes in a specified project and * location. @@ -2992,7 +3444,7 @@ export class HubServiceClient { ) as AsyncIterable; } /** - * Lists routes in a given project. + * Lists routes in a given route table. * * @param {Object} request * The request object that will be sent. @@ -3190,7 +3642,7 @@ export class HubServiceClient { ) as AsyncIterable; } /** - * Lists route tables in a given project. + * Lists route tables in a given hub. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-networkconnectivity/src/v1/hub_service_client_config.json b/packages/google-cloud-networkconnectivity/src/v1/hub_service_client_config.json index 70055357500..b80d1324174 100644 --- a/packages/google-cloud-networkconnectivity/src/v1/hub_service_client_config.json +++ b/packages/google-cloud-networkconnectivity/src/v1/hub_service_client_config.json @@ -62,6 +62,11 @@ "retry_codes_name": "unavailable", "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" }, + "QueryHubStatus": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, "ListSpokes": { "timeout_millis": 60000, "retry_codes_name": "unavailable", @@ -126,6 +131,11 @@ "timeout_millis": 60000, "retry_codes_name": "unavailable", "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "UpdateGroup": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" } } } diff --git a/packages/google-cloud-networkconnectivity/test/gapic_hub_service_v1.ts b/packages/google-cloud-networkconnectivity/test/gapic_hub_service_v1.ts index 1f73ed4c51f..6af64949dac 100644 --- a/packages/google-cloud-networkconnectivity/test/gapic_hub_service_v1.ts +++ b/packages/google-cloud-networkconnectivity/test/gapic_hub_service_v1.ts @@ -2518,6 +2518,200 @@ describe('v1.HubServiceClient', () => { }); }); + describe('updateGroup', () => { + it('invokes updateGroup without error', async () => { + const client = new hubserviceModule.v1.HubServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.UpdateGroupRequest() + ); + request.group ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.networkconnectivity.v1.UpdateGroupRequest', + ['group', 'name'] + ); + request.group.name = defaultValue1; + const expectedHeaderRequestParams = `group.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateGroup = stubLongRunningCall(expectedResponse); + const [operation] = await client.updateGroup(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateGroup without error using callback', async () => { + const client = new hubserviceModule.v1.HubServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.UpdateGroupRequest() + ); + request.group ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.networkconnectivity.v1.UpdateGroupRequest', + ['group', 'name'] + ); + request.group.name = defaultValue1; + const expectedHeaderRequestParams = `group.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateGroup = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateGroup( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.networkconnectivity.v1.IGroup, + protos.google.cloud.networkconnectivity.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.networkconnectivity.v1.IGroup, + protos.google.cloud.networkconnectivity.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateGroup with call error', async () => { + const client = new hubserviceModule.v1.HubServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.UpdateGroupRequest() + ); + request.group ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.networkconnectivity.v1.UpdateGroupRequest', + ['group', 'name'] + ); + request.group.name = defaultValue1; + const expectedHeaderRequestParams = `group.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateGroup = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.updateGroup(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateGroup with LRO error', async () => { + const client = new hubserviceModule.v1.HubServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.UpdateGroupRequest() + ); + request.group ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.networkconnectivity.v1.UpdateGroupRequest', + ['group', 'name'] + ); + request.group.name = defaultValue1; + const expectedHeaderRequestParams = `group.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateGroup = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.updateGroup(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateGroupProgress without error', async () => { + const client = new hubserviceModule.v1.HubServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkUpdateGroupProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateGroupProgress with error', async () => { + const client = new hubserviceModule.v1.HubServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.checkUpdateGroupProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + describe('listHubs', () => { it('invokes listHubs without error', async () => { const client = new hubserviceModule.v1.HubServiceClient({ @@ -3170,6 +3364,341 @@ describe('v1.HubServiceClient', () => { }); }); + describe('queryHubStatus', () => { + it('invokes queryHubStatus without error', async () => { + const client = new hubserviceModule.v1.HubServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.QueryHubStatusRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.networkconnectivity.v1.QueryHubStatusRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.HubStatusEntry() + ), + generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.HubStatusEntry() + ), + generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.HubStatusEntry() + ), + ]; + client.innerApiCalls.queryHubStatus = stubSimpleCall(expectedResponse); + const [response] = await client.queryHubStatus(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.queryHubStatus as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.queryHubStatus as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes queryHubStatus without error using callback', async () => { + const client = new hubserviceModule.v1.HubServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.QueryHubStatusRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.networkconnectivity.v1.QueryHubStatusRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.HubStatusEntry() + ), + generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.HubStatusEntry() + ), + generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.HubStatusEntry() + ), + ]; + client.innerApiCalls.queryHubStatus = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.queryHubStatus( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.networkconnectivity.v1.IHubStatusEntry[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.queryHubStatus as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.queryHubStatus as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes queryHubStatus with error', async () => { + const client = new hubserviceModule.v1.HubServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.QueryHubStatusRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.networkconnectivity.v1.QueryHubStatusRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.queryHubStatus = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.queryHubStatus(request), expectedError); + const actualRequest = ( + client.innerApiCalls.queryHubStatus as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.queryHubStatus as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes queryHubStatusStream without error', async () => { + const client = new hubserviceModule.v1.HubServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.QueryHubStatusRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.networkconnectivity.v1.QueryHubStatusRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.HubStatusEntry() + ), + generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.HubStatusEntry() + ), + generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.HubStatusEntry() + ), + ]; + client.descriptors.page.queryHubStatus.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.queryHubStatusStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.networkconnectivity.v1.HubStatusEntry[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.networkconnectivity.v1.HubStatusEntry + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.queryHubStatus.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.queryHubStatus, request) + ); + assert( + (client.descriptors.page.queryHubStatus.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + + it('invokes queryHubStatusStream with error', async () => { + const client = new hubserviceModule.v1.HubServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.QueryHubStatusRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.networkconnectivity.v1.QueryHubStatusRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.queryHubStatus.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.queryHubStatusStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.networkconnectivity.v1.HubStatusEntry[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.networkconnectivity.v1.HubStatusEntry + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.queryHubStatus.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.queryHubStatus, request) + ); + assert( + (client.descriptors.page.queryHubStatus.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + + it('uses async iteration with queryHubStatus without error', async () => { + const client = new hubserviceModule.v1.HubServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.QueryHubStatusRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.networkconnectivity.v1.QueryHubStatusRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.HubStatusEntry() + ), + generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.HubStatusEntry() + ), + generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.HubStatusEntry() + ), + ]; + client.descriptors.page.queryHubStatus.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.networkconnectivity.v1.IHubStatusEntry[] = + []; + const iterable = client.queryHubStatusAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.queryHubStatus.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.queryHubStatus.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + + it('uses async iteration with queryHubStatus with error', async () => { + const client = new hubserviceModule.v1.HubServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.networkconnectivity.v1.QueryHubStatusRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.networkconnectivity.v1.QueryHubStatusRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.queryHubStatus.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.queryHubStatusAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.networkconnectivity.v1.IHubStatusEntry[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.queryHubStatus.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.queryHubStatus.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + }); + describe('listSpokes', () => { it('invokes listSpokes without error', async () => { const client = new hubserviceModule.v1.HubServiceClient({