From 507173fd2d1b771a8db26201649dbf98786738f8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 11 Nov 2021 15:25:14 -0500 Subject: [PATCH] fix: Mark a couple networkconnectivity API fields as required, to match implemented behavior (#174) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix!: Mark a couple networkconnectivity API fields as required, to match implemented behavior PiperOrigin-RevId: 408969147 Source-Link: https://github.com/googleapis/googleapis/commit/cc003a482a9936b6d275319a0b31e7ff2f3ef567 Source-Link: https://github.com/googleapis/googleapis-gen/commit/72d5b22e2124c7a5f6cd31864f7f8c93a5df3592 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzJkNWIyMmUyMTI0YzdhNWY2Y2QzMTg2NGY3ZjhjOTNhNWRmMzU5MiJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../v1/HubServiceClient.java | 8 +++--- .../networkconnectivity/v1/package-info.java | 4 ++- .../v1/CreateHubRequest.java | 28 +++++++++---------- .../v1/CreateHubRequestOrBuilder.java | 8 +++--- .../v1/CreateSpokeRequest.java | 28 +++++++++---------- .../v1/CreateSpokeRequestOrBuilder.java | 8 +++--- .../cloud/networkconnectivity/v1/Hub.java | 8 +++--- .../networkconnectivity/v1/HubProto.java | 4 +-- .../networkconnectivity/v1/RoutingVPC.java | 18 ++++++------ .../v1/RoutingVPCOrBuilder.java | 4 +-- .../cloud/networkconnectivity/v1/Spoke.java | 14 +++++----- .../v1/SpokeOrBuilder.java | 4 +-- .../cloud/networkconnectivity/v1/hub.proto | 18 ++++++------ 13 files changed, 78 insertions(+), 76 deletions(-) diff --git a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java index b4289363..d3c7e8e4 100644 --- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java +++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java @@ -403,7 +403,7 @@ public final UnaryCallable getHubCallable() { * * @param parent Required. The parent resource. * @param hub Required. The initial values for a new hub. - * @param hubId Optional. A unique identifier for the hub. + * @param hubId Required. A unique identifier for the hub. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createHubAsync( @@ -434,7 +434,7 @@ public final OperationFuture createHubAsync( * * @param parent Required. The parent resource. * @param hub Required. The initial values for a new hub. - * @param hubId Optional. A unique identifier for the hub. + * @param hubId Required. A unique identifier for the hub. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createHubAsync( @@ -984,7 +984,7 @@ public final UnaryCallable getSpokeCallable() { * * @param parent Required. The parent resource. * @param spoke Required. The initial values for a new spoke. - * @param spokeId Optional. Unique id for the spoke to create. + * @param spokeId Required. Unique id for the spoke to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSpokeAsync( @@ -1015,7 +1015,7 @@ public final OperationFuture createSpokeAsync( * * @param parent Required. The parent resource. * @param spoke Required. The initial values for a new spoke. - * @param spokeId Optional. Unique id for the spoke to create. + * @param spokeId Required. Unique id for the spoke to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSpokeAsync( diff --git a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java index e28e0c7d..65d5bc2e 100644 --- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java +++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Network Connectivity API + * + *

The interfaces provided are listed below, along with usage samples. * *

======================= HubServiceClient ======================= * diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java index 83b3ee48..2046435f 100644 --- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java +++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java @@ -202,10 +202,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *

-   * Optional. A unique identifier for the hub.
+   * Required. A unique identifier for the hub.
    * 
* - * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The hubId. */ @@ -225,10 +225,10 @@ public java.lang.String getHubId() { * * *
-   * Optional. A unique identifier for the hub.
+   * Required. A unique identifier for the hub.
    * 
* - * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for hubId. */ @@ -868,10 +868,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. A unique identifier for the hub.
+     * Required. A unique identifier for the hub.
      * 
* - * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The hubId. */ @@ -890,10 +890,10 @@ public java.lang.String getHubId() { * * *
-     * Optional. A unique identifier for the hub.
+     * Required. A unique identifier for the hub.
      * 
* - * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for hubId. */ @@ -912,10 +912,10 @@ public com.google.protobuf.ByteString getHubIdBytes() { * * *
-     * Optional. A unique identifier for the hub.
+     * Required. A unique identifier for the hub.
      * 
* - * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The hubId to set. * @return This builder for chaining. @@ -933,10 +933,10 @@ public Builder setHubId(java.lang.String value) { * * *
-     * Optional. A unique identifier for the hub.
+     * Required. A unique identifier for the hub.
      * 
* - * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -950,10 +950,10 @@ public Builder clearHubId() { * * *
-     * Optional. A unique identifier for the hub.
+     * Required. A unique identifier for the hub.
      * 
* - * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for hubId to set. * @return This builder for chaining. diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java index 6cf036b9..bd70138d 100644 --- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java +++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java @@ -56,10 +56,10 @@ public interface CreateHubRequestOrBuilder * * *
-   * Optional. A unique identifier for the hub.
+   * Required. A unique identifier for the hub.
    * 
* - * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The hubId. */ @@ -68,10 +68,10 @@ public interface CreateHubRequestOrBuilder * * *
-   * Optional. A unique identifier for the hub.
+   * Required. A unique identifier for the hub.
    * 
* - * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for hubId. */ diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java index bc050106..e3f5ff3c 100644 --- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java +++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java @@ -202,10 +202,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. Unique id for the spoke to create.
+   * Required. Unique id for the spoke to create.
    * 
* - * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The spokeId. */ @@ -225,10 +225,10 @@ public java.lang.String getSpokeId() { * * *
-   * Optional. Unique id for the spoke to create.
+   * Required. Unique id for the spoke to create.
    * 
* - * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for spokeId. */ @@ -870,10 +870,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Unique id for the spoke to create.
+     * Required. Unique id for the spoke to create.
      * 
* - * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The spokeId. */ @@ -892,10 +892,10 @@ public java.lang.String getSpokeId() { * * *
-     * Optional. Unique id for the spoke to create.
+     * Required. Unique id for the spoke to create.
      * 
* - * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for spokeId. */ @@ -914,10 +914,10 @@ public com.google.protobuf.ByteString getSpokeIdBytes() { * * *
-     * Optional. Unique id for the spoke to create.
+     * Required. Unique id for the spoke to create.
      * 
* - * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The spokeId to set. * @return This builder for chaining. @@ -935,10 +935,10 @@ public Builder setSpokeId(java.lang.String value) { * * *
-     * Optional. Unique id for the spoke to create.
+     * Required. Unique id for the spoke to create.
      * 
* - * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -952,10 +952,10 @@ public Builder clearSpokeId() { * * *
-     * Optional. Unique id for the spoke to create.
+     * Required. Unique id for the spoke to create.
      * 
* - * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for spokeId to set. * @return This builder for chaining. diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java index 4530a0ce..d97544e3 100644 --- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java +++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java @@ -56,10 +56,10 @@ public interface CreateSpokeRequestOrBuilder * * *
-   * Optional. Unique id for the spoke to create.
+   * Required. Unique id for the spoke to create.
    * 
* - * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The spokeId. */ @@ -68,10 +68,10 @@ public interface CreateSpokeRequestOrBuilder * * *
-   * Optional. Unique id for the spoke to create.
+   * Required. Unique id for the spoke to create.
    * 
* - * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for spokeId. */ diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java index 39540839..1b0925e0 100644 --- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java +++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java @@ -22,8 +22,8 @@ * * *
- * A hub is essentially a collection of spokes. A single hub can contain spokes
- * from multiple regions. However, all of a hub's spokes must be associated with
+ * A hub is a collection of spokes. A single hub can contain spokes from
+ * multiple regions. However, all of a hub's spokes must be associated with
  * resources that reside in the same VPC network.
  * 
* @@ -944,8 +944,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A hub is essentially a collection of spokes. A single hub can contain spokes
-   * from multiple regions. However, all of a hub's spokes must be associated with
+   * A hub is a collection of spokes. A single hub can contain spokes from
+   * multiple regions. However, all of a hub's spokes must be associated with
    * resources that reside in the same VPC network.
    * 
* diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java index 543b7994..6574e382 100644 --- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java +++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java @@ -174,7 +174,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "networkconnectivity.googleapis.com/Hub\"\267" + "\001\n\020CreateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" + "\372A#\n!locations.googleapis.com/Location\022\023" - + "\n\006hub_id\030\002 \001(\tB\003\340A\001\022:\n\003hub\030\003 \001(\0132(.googl" + + "\n\006hub_id\030\002 \001(\tB\003\340A\002\022:\n\003hub\030\003 \001(\0132(.googl" + "e.cloud.networkconnectivity.v1.HubB\003\340A\002\022" + "\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRe" + "quest\0224\n\013update_mask\030\001 \001(\0132\032.google.prot" @@ -195,7 +195,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "leapis.com/Spoke\"\277\001\n\022CreateSpokeRequest\022" + "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" + "eapis.com/Location\022\025\n\010spoke_id\030\002 \001(\tB\003\340A" - + "\001\022>\n\005spoke\030\003 \001(\0132*.google.cloud.networkc" + + "\002\022>\n\005spoke\030\003 \001(\0132*.google.cloud.networkc" + "onnectivity.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030" + "\004 \001(\tB\003\340A\001\"\243\001\n\022UpdateSpokeRequest\0224\n\013upd" + "ate_mask\030\001 \001(\0132\032.google.protobuf.FieldMa" diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java index ae4f2a53..d83ae8d6 100644 --- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java +++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java @@ -22,7 +22,7 @@ * * *
- * RoutingsVPC contains information about a VPC network that is associated with
+ * RoutingVPC contains information about the VPC network that is associated with
  * a hub's spokes.
  * 
* @@ -118,7 +118,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The URI of a VPC network.
+   * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } @@ -141,7 +141,7 @@ public java.lang.String getUri() { * * *
-   * The URI of a VPC network.
+   * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } @@ -324,7 +324,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * RoutingsVPC contains information about a VPC network that is associated with
+   * RoutingVPC contains information about the VPC network that is associated with
    * a hub's spokes.
    * 
* @@ -485,7 +485,7 @@ public Builder mergeFrom( * * *
-     * The URI of a VPC network.
+     * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } @@ -507,7 +507,7 @@ public java.lang.String getUri() { * * *
-     * The URI of a VPC network.
+     * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } @@ -529,7 +529,7 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-     * The URI of a VPC network.
+     * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } @@ -550,7 +550,7 @@ public Builder setUri(java.lang.String value) { * * *
-     * The URI of a VPC network.
+     * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } @@ -567,7 +567,7 @@ public Builder clearUri() { * * *
-     * The URI of a VPC network.
+     * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java index df0029ae..dcefc8fd 100644 --- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java +++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java @@ -27,7 +27,7 @@ public interface RoutingVPCOrBuilder * * *
-   * The URI of a VPC network.
+   * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } @@ -39,7 +39,7 @@ public interface RoutingVPCOrBuilder * * *
-   * The URI of a VPC network.
+   * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java index b27c9777..64d15f6d 100644 --- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java +++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java @@ -571,7 +571,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Immutable. The URI of the hub that this spoke is attached to.
+   * Immutable. The name of the hub that this spoke is attached to.
    * 
* * @@ -596,7 +596,7 @@ public java.lang.String getHub() { * * *
-   * Immutable. The URI of the hub that this spoke is attached to.
+   * Immutable. The name of the hub that this spoke is attached to.
    * 
* * @@ -2252,7 +2252,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Immutable. The URI of the hub that this spoke is attached to.
+     * Immutable. The name of the hub that this spoke is attached to.
      * 
* * @@ -2276,7 +2276,7 @@ public java.lang.String getHub() { * * *
-     * Immutable. The URI of the hub that this spoke is attached to.
+     * Immutable. The name of the hub that this spoke is attached to.
      * 
* * @@ -2300,7 +2300,7 @@ public com.google.protobuf.ByteString getHubBytes() { * * *
-     * Immutable. The URI of the hub that this spoke is attached to.
+     * Immutable. The name of the hub that this spoke is attached to.
      * 
* * @@ -2323,7 +2323,7 @@ public Builder setHub(java.lang.String value) { * * *
-     * Immutable. The URI of the hub that this spoke is attached to.
+     * Immutable. The name of the hub that this spoke is attached to.
      * 
* * @@ -2342,7 +2342,7 @@ public Builder clearHub() { * * *
-     * Immutable. The URI of the hub that this spoke is attached to.
+     * Immutable. The name of the hub that this spoke is attached to.
      * 
* * diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java index 52e258ab..6a5a9dbc 100644 --- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java +++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java @@ -221,7 +221,7 @@ public interface SpokeOrBuilder * * *
-   * Immutable. The URI of the hub that this spoke is attached to.
+   * Immutable. The name of the hub that this spoke is attached to.
    * 
* * @@ -235,7 +235,7 @@ public interface SpokeOrBuilder * * *
-   * Immutable. The URI of the hub that this spoke is attached to.
+   * Immutable. The name of the hub that this spoke is attached to.
    * 
* * diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto b/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto index c9535dc4..7fa76803 100644 --- a/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto +++ b/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto @@ -164,8 +164,8 @@ service HubService { } } -// A hub is essentially a collection of spokes. A single hub can contain spokes -// from multiple regions. However, all of a hub's spokes must be associated with +// A hub is a collection of spokes. A single hub can contain spokes from +// multiple regions. However, all of a hub's spokes must be associated with // resources that reside in the same VPC network. message Hub { option (google.api.resource) = { @@ -225,10 +225,10 @@ enum State { DELETING = 3; } -// RoutingsVPC contains information about a VPC network that is associated with +// RoutingVPC contains information about the VPC network that is associated with // a hub's spokes. message RoutingVPC { - // The URI of a VPC network. + // The URI of the VPC network. string uri = 1 [(google.api.resource_reference) = { type: "compute.googleapis.com/Network" }]; @@ -268,7 +268,7 @@ message Spoke { // An optional description of the spoke. string description = 5; - // Immutable. The URI of the hub that this spoke is attached to. + // Immutable. The name of the hub that this spoke is attached to. string hub = 6 [ (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { @@ -351,8 +351,8 @@ message CreateHubRequest { } ]; - // Optional. A unique identifier for the hub. - string hub_id = 2 [(google.api.field_behavior) = OPTIONAL]; + // Required. A unique identifier for the hub. + string hub_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The initial values for a new hub. Hub hub = 3 [(google.api.field_behavior) = REQUIRED]; @@ -487,8 +487,8 @@ message CreateSpokeRequest { } ]; - // Optional. Unique id for the spoke to create. - string spoke_id = 2 [(google.api.field_behavior) = OPTIONAL]; + // Required. Unique id for the spoke to create. + string spoke_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The initial values for a new spoke. Spoke spoke = 3 [(google.api.field_behavior) = REQUIRED];