From 4bbdede752a1955fb242ed19b05d6a51bdeb7a66 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 13 Dec 2019 10:22:26 -0800 Subject: [PATCH] feat: add real time feed api into v1 version (#35) --- .../cloud/asset/v1/AssetServiceClient.java | 370 +++- .../cloud/asset/v1/AssetServiceSettings.java | 55 +- .../google/cloud/asset/v1/package-info.java | 11 +- .../cloud/asset/v1/stub/AssetServiceStub.java | 28 + .../v1/stub/AssetServiceStubSettings.java | 133 +- .../asset/v1/stub/GrpcAssetServiceStub.java | 149 ++ .../asset/v1/AssetServiceClientTest.java | 202 ++ .../cloud/asset/v1/MockAssetServiceImpl.java | 72 + .../cloud/asset/v1/AssetServiceGrpc.java | 592 ++++++ .../java/com/google/cloud/asset/v1/Asset.java | 385 ++++ .../google/cloud/asset/v1/AssetOrBuilder.java | 83 + .../com/google/cloud/asset/v1/AssetProto.java | 66 +- .../cloud/asset/v1/AssetServiceProto.java | 249 ++- .../v1/BatchGetAssetsHistoryRequest.java | 104 +- ...BatchGetAssetsHistoryRequestOrBuilder.java | 22 + .../v1/BatchGetAssetsHistoryResponse.java | 6 + .../cloud/asset/v1/BigQueryDestination.java | 48 +- .../v1/BigQueryDestinationOrBuilder.java | 10 + .../google/cloud/asset/v1/ContentType.java | 10 +- .../cloud/asset/v1/CreateFeedRequest.java | 1155 ++++++++++ .../asset/v1/CreateFeedRequestOrBuilder.java | 132 ++ .../cloud/asset/v1/DeleteFeedRequest.java | 651 ++++++ .../asset/v1/DeleteFeedRequestOrBuilder.java | 60 + .../cloud/asset/v1/ExportAssetsRequest.java | 112 +- .../v1/ExportAssetsRequestOrBuilder.java | 26 + .../cloud/asset/v1/ExportAssetsResponse.java | 23 +- .../v1/ExportAssetsResponseOrBuilder.java | 8 + .../java/com/google/cloud/asset/v1/Feed.java | 1860 +++++++++++++++++ .../com/google/cloud/asset/v1/FeedName.java | 182 ++ .../google/cloud/asset/v1/FeedOrBuilder.java | 285 +++ .../cloud/asset/v1/FeedOutputConfig.java | 828 ++++++++ .../asset/v1/FeedOutputConfigOrBuilder.java | 62 + .../google/cloud/asset/v1/GcsDestination.java | 50 +- .../asset/v1/GcsDestinationOrBuilder.java | 8 + .../google/cloud/asset/v1/GetFeedRequest.java | 666 ++++++ .../asset/v1/GetFeedRequestOrBuilder.java | 60 + .../cloud/asset/v1/ListFeedsRequest.java | 646 ++++++ .../asset/v1/ListFeedsRequestOrBuilder.java | 54 + .../cloud/asset/v1/ListFeedsResponse.java | 920 ++++++++ .../asset/v1/ListFeedsResponseOrBuilder.java | 76 + .../google/cloud/asset/v1/OutputConfig.java | 34 +- .../cloud/asset/v1/OutputConfigOrBuilder.java | 8 + .../google/cloud/asset/v1/ProjectName.java | 2 +- .../cloud/asset/v1/PubsubDestination.java | 639 ++++++ .../asset/v1/PubsubDestinationOrBuilder.java | 52 + .../com/google/cloud/asset/v1/Resource.java | 95 +- .../cloud/asset/v1/ResourceOrBuilder.java | 24 + .../google/cloud/asset/v1/TemporalAsset.java | 32 +- .../asset/v1/TemporalAssetOrBuilder.java | 10 + .../com/google/cloud/asset/v1/TimeWindow.java | 23 +- .../cloud/asset/v1/TimeWindowOrBuilder.java | 8 + .../cloud/asset/v1/UpdateFeedRequest.java | 1070 ++++++++++ .../asset/v1/UpdateFeedRequestOrBuilder.java | 116 + .../google/cloud/asset/v1/asset_service.proto | 186 ++ .../proto/google/cloud/asset/v1/assets.proto | 10 +- .../com/google/cloud/asset/v1beta1/Asset.java | 55 +- .../cloud/asset/v1beta1/AssetOrBuilder.java | 16 + .../cloud/asset/v1beta1/AssetProto.java | 28 +- .../asset/v1beta1/AssetServiceProto.java | 26 +- .../v1beta1/BatchGetAssetsHistoryRequest.java | 104 +- ...BatchGetAssetsHistoryRequestOrBuilder.java | 22 + .../BatchGetAssetsHistoryResponse.java | 6 + .../cloud/asset/v1beta1/ContentType.java | 10 +- .../asset/v1beta1/ExportAssetsRequest.java | 112 +- .../v1beta1/ExportAssetsRequestOrBuilder.java | 26 + .../asset/v1beta1/ExportAssetsResponse.java | 23 +- .../ExportAssetsResponseOrBuilder.java | 8 + .../cloud/asset/v1beta1/GcsDestination.java | 34 +- .../v1beta1/GcsDestinationOrBuilder.java | 4 + .../cloud/asset/v1beta1/OutputConfig.java | 26 +- .../asset/v1beta1/OutputConfigOrBuilder.java | 4 + .../cloud/asset/v1beta1/ProjectName.java | 2 +- .../google/cloud/asset/v1beta1/Resource.java | 95 +- .../asset/v1beta1/ResourceOrBuilder.java | 24 + .../cloud/asset/v1beta1/TemporalAsset.java | 32 +- .../asset/v1beta1/TemporalAssetOrBuilder.java | 10 + .../cloud/asset/v1beta1/TimeWindow.java | 23 +- .../asset/v1beta1/TimeWindowOrBuilder.java | 8 + .../google/cloud/asset/v1p2beta1/Asset.java | 121 +- .../cloud/asset/v1p2beta1/AssetOrBuilder.java | 28 + .../cloud/asset/v1p2beta1/AssetProto.java | 28 +- .../asset/v1p2beta1/AssetServiceProto.java | 32 +- .../BatchGetAssetsHistoryRequest.java | 104 +- ...BatchGetAssetsHistoryRequestOrBuilder.java | 22 + .../BatchGetAssetsHistoryResponse.java | 6 + .../asset/v1p2beta1/BigQueryDestination.java | 48 +- .../BigQueryDestinationOrBuilder.java | 10 + .../cloud/asset/v1p2beta1/ContentType.java | 10 +- .../asset/v1p2beta1/CreateFeedRequest.java | 47 +- .../v1p2beta1/CreateFeedRequestOrBuilder.java | 12 + .../asset/v1p2beta1/DeleteFeedRequest.java | 23 +- .../v1p2beta1/DeleteFeedRequestOrBuilder.java | 4 + .../asset/v1p2beta1/ExportAssetsRequest.java | 112 +- .../ExportAssetsRequestOrBuilder.java | 26 + .../asset/v1p2beta1/ExportAssetsResponse.java | 23 +- .../ExportAssetsResponseOrBuilder.java | 8 + .../google/cloud/asset/v1p2beta1/Feed.java | 159 +- .../cloud/asset/v1p2beta1/FeedName.java | 2 +- .../cloud/asset/v1p2beta1/FeedOrBuilder.java | 32 + .../asset/v1p2beta1/FeedOutputConfig.java | 26 +- .../v1p2beta1/FeedOutputConfigOrBuilder.java | 4 + .../cloud/asset/v1p2beta1/GcsDestination.java | 50 +- .../v1p2beta1/GcsDestinationOrBuilder.java | 8 + .../cloud/asset/v1p2beta1/GetFeedRequest.java | 23 +- .../v1p2beta1/GetFeedRequestOrBuilder.java | 4 + .../asset/v1p2beta1/ListFeedsRequest.java | 23 +- .../v1p2beta1/ListFeedsRequestOrBuilder.java | 4 + .../asset/v1p2beta1/ListFeedsResponse.java | 6 + .../cloud/asset/v1p2beta1/OutputConfig.java | 34 +- .../v1p2beta1/OutputConfigOrBuilder.java | 8 + .../asset/v1p2beta1/PubsubDestination.java | 23 +- .../v1p2beta1/PubsubDestinationOrBuilder.java | 4 + .../cloud/asset/v1p2beta1/Resource.java | 103 +- .../asset/v1p2beta1/ResourceOrBuilder.java | 28 + .../cloud/asset/v1p2beta1/TemporalAsset.java | 32 +- .../v1p2beta1/TemporalAssetOrBuilder.java | 10 + .../cloud/asset/v1p2beta1/TimeWindow.java | 23 +- .../asset/v1p2beta1/TimeWindowOrBuilder.java | 8 + .../asset/v1p2beta1/UpdateFeedRequest.java | 23 +- .../v1p2beta1/UpdateFeedRequestOrBuilder.java | 8 + synth.metadata | 798 ++++++- 121 files changed, 15218 insertions(+), 355 deletions(-) create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java create mode 100644 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java diff --git a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java index 463eb7b68..a6d0125a8 100644 --- a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java +++ b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java @@ -24,6 +24,7 @@ import com.google.cloud.asset.v1.stub.AssetServiceStubSettings; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -38,15 +39,8 @@ *
  * 
  * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
- *   ProjectName parent = ProjectName.of("[PROJECT]");
- *   ContentType contentType = ContentType.CONTENT_TYPE_UNSPECIFIED;
- *   TimeWindow readTimeWindow = TimeWindow.newBuilder().build();
- *   BatchGetAssetsHistoryRequest request = BatchGetAssetsHistoryRequest.newBuilder()
- *     .setParent(parent.toString())
- *     .setContentType(contentType)
- *     .setReadTimeWindow(readTimeWindow)
- *     .build();
- *   BatchGetAssetsHistoryResponse response = assetServiceClient.batchGetAssetsHistory(request);
+ *   String parent = "";
+ *   Feed response = assetServiceClient.createFeed(parent);
  * }
  * 
  * 
@@ -317,6 +311,364 @@ public final BatchGetAssetsHistoryResponse batchGetAssetsHistory( return stub.batchGetAssetsHistoryCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a feed in a parent project/folder/organization to listen to its asset updates. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   String parent = "";
+   *   Feed response = assetServiceClient.createFeed(parent);
+   * }
+   * 
+ * + * @param parent Required. The name of the project/folder/organization where this feed should be + * created in. It can only be an organization number (such as "organizations/123"), a folder + * number (such as "folders/123"), a project ID (such as "projects/my-project-id")", or a + * project number (such as "projects/12345"). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feed createFeed(String parent) { + + CreateFeedRequest request = CreateFeedRequest.newBuilder().setParent(parent).build(); + return createFeed(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a feed in a parent project/folder/organization to listen to its asset updates. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   String parent = "";
+   *   String feedId = "";
+   *   Feed feed = Feed.newBuilder().build();
+   *   CreateFeedRequest request = CreateFeedRequest.newBuilder()
+   *     .setParent(parent)
+   *     .setFeedId(feedId)
+   *     .setFeed(feed)
+   *     .build();
+   *   Feed response = assetServiceClient.createFeed(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feed createFeed(CreateFeedRequest request) { + return createFeedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a feed in a parent project/folder/organization to listen to its asset updates. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   String parent = "";
+   *   String feedId = "";
+   *   Feed feed = Feed.newBuilder().build();
+   *   CreateFeedRequest request = CreateFeedRequest.newBuilder()
+   *     .setParent(parent)
+   *     .setFeedId(feedId)
+   *     .setFeed(feed)
+   *     .build();
+   *   ApiFuture<Feed> future = assetServiceClient.createFeedCallable().futureCall(request);
+   *   // Do something
+   *   Feed response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createFeedCallable() { + return stub.createFeedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets details about an asset feed. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   String formattedName = FeedName.format("[PROJECT]", "[FEED]");
+   *   Feed response = assetServiceClient.getFeed(formattedName);
+   * }
+   * 
+ * + * @param name Required. The name of the Feed and it must be in the format of: + * projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id + * organizations/organization_number/feeds/feed_id + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feed getFeed(String name) { + + GetFeedRequest request = GetFeedRequest.newBuilder().setName(name).build(); + return getFeed(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets details about an asset feed. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   String formattedName = FeedName.format("[PROJECT]", "[FEED]");
+   *   GetFeedRequest request = GetFeedRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   Feed response = assetServiceClient.getFeed(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feed getFeed(GetFeedRequest request) { + return getFeedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets details about an asset feed. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   String formattedName = FeedName.format("[PROJECT]", "[FEED]");
+   *   GetFeedRequest request = GetFeedRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   ApiFuture<Feed> future = assetServiceClient.getFeedCallable().futureCall(request);
+   *   // Do something
+   *   Feed response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getFeedCallable() { + return stub.getFeedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all asset feeds in a parent project/folder/organization. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   String parent = "";
+   *   ListFeedsResponse response = assetServiceClient.listFeeds(parent);
+   * }
+   * 
+ * + * @param parent Required. The parent project/folder/organization whose feeds are to be listed. It + * can only be using project/folder/organization number (such as "folders/12345")", or a + * project ID (such as "projects/my-project-id"). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeedsResponse listFeeds(String parent) { + + ListFeedsRequest request = ListFeedsRequest.newBuilder().setParent(parent).build(); + return listFeeds(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all asset feeds in a parent project/folder/organization. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   String parent = "";
+   *   ListFeedsRequest request = ListFeedsRequest.newBuilder()
+   *     .setParent(parent)
+   *     .build();
+   *   ListFeedsResponse response = assetServiceClient.listFeeds(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeedsResponse listFeeds(ListFeedsRequest request) { + return listFeedsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all asset feeds in a parent project/folder/organization. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   String parent = "";
+   *   ListFeedsRequest request = ListFeedsRequest.newBuilder()
+   *     .setParent(parent)
+   *     .build();
+   *   ApiFuture<ListFeedsResponse> future = assetServiceClient.listFeedsCallable().futureCall(request);
+   *   // Do something
+   *   ListFeedsResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable listFeedsCallable() { + return stub.listFeedsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an asset feed configuration. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   Feed feed = Feed.newBuilder().build();
+   *   Feed response = assetServiceClient.updateFeed(feed);
+   * }
+   * 
+ * + * @param feed Required. The new values of feed details. It must match an existing feed and the + * field `name` must be in the format of: projects/project_number/feeds/feed_id or + * folders/folder_number/feeds/feed_id or organizations/organization_number/feeds/feed_id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feed updateFeed(Feed feed) { + + UpdateFeedRequest request = UpdateFeedRequest.newBuilder().setFeed(feed).build(); + return updateFeed(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an asset feed configuration. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   Feed feed = Feed.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   UpdateFeedRequest request = UpdateFeedRequest.newBuilder()
+   *     .setFeed(feed)
+   *     .setUpdateMask(updateMask)
+   *     .build();
+   *   Feed response = assetServiceClient.updateFeed(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feed updateFeed(UpdateFeedRequest request) { + return updateFeedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an asset feed configuration. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   Feed feed = Feed.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   UpdateFeedRequest request = UpdateFeedRequest.newBuilder()
+   *     .setFeed(feed)
+   *     .setUpdateMask(updateMask)
+   *     .build();
+   *   ApiFuture<Feed> future = assetServiceClient.updateFeedCallable().futureCall(request);
+   *   // Do something
+   *   Feed response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateFeedCallable() { + return stub.updateFeedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an asset feed. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   String formattedName = FeedName.format("[PROJECT]", "[FEED]");
+   *   assetServiceClient.deleteFeed(formattedName);
+   * }
+   * 
+ * + * @param name Required. The name of the feed and it must be in the format of: + * projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id + * organizations/organization_number/feeds/feed_id + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteFeed(String name) { + + DeleteFeedRequest request = DeleteFeedRequest.newBuilder().setName(name).build(); + deleteFeed(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an asset feed. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   String formattedName = FeedName.format("[PROJECT]", "[FEED]");
+   *   DeleteFeedRequest request = DeleteFeedRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   assetServiceClient.deleteFeed(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteFeed(DeleteFeedRequest request) { + deleteFeedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an asset feed. + * + *

Sample code: + * + *


+   * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+   *   String formattedName = FeedName.format("[PROJECT]", "[FEED]");
+   *   DeleteFeedRequest request = DeleteFeedRequest.newBuilder()
+   *     .setName(formattedName)
+   *     .build();
+   *   ApiFuture<Void> future = assetServiceClient.deleteFeedCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteFeedCallable() { + return stub.deleteFeedCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java index baabe5030..3df3a8424 100644 --- a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java +++ b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.asset.v1.stub.AssetServiceStubSettings; import com.google.longrunning.Operation; +import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -47,13 +48,13 @@ *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of batchGetAssetsHistory to 30 seconds: + *

For example, to set the total timeout of createFeed to 30 seconds: * *

  * 
  * AssetServiceSettings.Builder assetServiceSettingsBuilder =
  *     AssetServiceSettings.newBuilder();
- * assetServiceSettingsBuilder.batchGetAssetsHistorySettings().getRetrySettings().toBuilder()
+ * assetServiceSettingsBuilder.createFeedSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * AssetServiceSettings assetServiceSettings = assetServiceSettingsBuilder.build();
  * 
@@ -81,6 +82,31 @@ public UnaryCallSettings exportAssetsSettings()
     return ((AssetServiceStubSettings) getStubSettings()).batchGetAssetsHistorySettings();
   }
 
+  /** Returns the object with the settings used for calls to createFeed. */
+  public UnaryCallSettings createFeedSettings() {
+    return ((AssetServiceStubSettings) getStubSettings()).createFeedSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getFeed. */
+  public UnaryCallSettings getFeedSettings() {
+    return ((AssetServiceStubSettings) getStubSettings()).getFeedSettings();
+  }
+
+  /** Returns the object with the settings used for calls to listFeeds. */
+  public UnaryCallSettings listFeedsSettings() {
+    return ((AssetServiceStubSettings) getStubSettings()).listFeedsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to updateFeed. */
+  public UnaryCallSettings updateFeedSettings() {
+    return ((AssetServiceStubSettings) getStubSettings()).updateFeedSettings();
+  }
+
+  /** Returns the object with the settings used for calls to deleteFeed. */
+  public UnaryCallSettings deleteFeedSettings() {
+    return ((AssetServiceStubSettings) getStubSettings()).deleteFeedSettings();
+  }
+
   public static final AssetServiceSettings create(AssetServiceStubSettings stub)
       throws IOException {
     return new AssetServiceSettings.Builder(stub.toBuilder()).build();
@@ -198,6 +224,31 @@ public UnaryCallSettings.Builder exportAssetsSet
       return getStubSettingsBuilder().batchGetAssetsHistorySettings();
     }
 
+    /** Returns the builder for the settings used for calls to createFeed. */
+    public UnaryCallSettings.Builder createFeedSettings() {
+      return getStubSettingsBuilder().createFeedSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getFeed. */
+    public UnaryCallSettings.Builder getFeedSettings() {
+      return getStubSettingsBuilder().getFeedSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to listFeeds. */
+    public UnaryCallSettings.Builder listFeedsSettings() {
+      return getStubSettingsBuilder().listFeedsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to updateFeed. */
+    public UnaryCallSettings.Builder updateFeedSettings() {
+      return getStubSettingsBuilder().updateFeedSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to deleteFeed. */
+    public UnaryCallSettings.Builder deleteFeedSettings() {
+      return getStubSettingsBuilder().deleteFeedSettings();
+    }
+
     @Override
     public AssetServiceSettings build() throws IOException {
       return new AssetServiceSettings(this);
diff --git a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java
index ee9571565..77eb25a1f 100644
--- a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java
+++ b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java
@@ -28,15 +28,8 @@
  * 
  * 
  * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
- *   ProjectName parent = ProjectName.of("[PROJECT]");
- *   ContentType contentType = ContentType.CONTENT_TYPE_UNSPECIFIED;
- *   TimeWindow readTimeWindow = TimeWindow.newBuilder().build();
- *   BatchGetAssetsHistoryRequest request = BatchGetAssetsHistoryRequest.newBuilder()
- *     .setParent(parent.toString())
- *     .setContentType(contentType)
- *     .setReadTimeWindow(readTimeWindow)
- *     .build();
- *   BatchGetAssetsHistoryResponse response = assetServiceClient.batchGetAssetsHistory(request);
+ *   String parent = "";
+ *   Feed response = assetServiceClient.createFeed(parent);
  * }
  * 
  * 
diff --git a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java index ec57b1a44..888cf6446 100644 --- a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java +++ b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java @@ -21,10 +21,18 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest; import com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse; +import com.google.cloud.asset.v1.CreateFeedRequest; +import com.google.cloud.asset.v1.DeleteFeedRequest; import com.google.cloud.asset.v1.ExportAssetsRequest; import com.google.cloud.asset.v1.ExportAssetsResponse; +import com.google.cloud.asset.v1.Feed; +import com.google.cloud.asset.v1.GetFeedRequest; +import com.google.cloud.asset.v1.ListFeedsRequest; +import com.google.cloud.asset.v1.ListFeedsResponse; +import com.google.cloud.asset.v1.UpdateFeedRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS @@ -57,6 +65,26 @@ public UnaryCallable exportAssetsCallable() { throw new UnsupportedOperationException("Not implemented: batchGetAssetsHistoryCallable()"); } + public UnaryCallable createFeedCallable() { + throw new UnsupportedOperationException("Not implemented: createFeedCallable()"); + } + + public UnaryCallable getFeedCallable() { + throw new UnsupportedOperationException("Not implemented: getFeedCallable()"); + } + + public UnaryCallable listFeedsCallable() { + throw new UnsupportedOperationException("Not implemented: listFeedsCallable()"); + } + + public UnaryCallable updateFeedCallable() { + throw new UnsupportedOperationException("Not implemented: updateFeedCallable()"); + } + + public UnaryCallable deleteFeedCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFeedCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java index a13868c08..04acc5bd3 100644 --- a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java +++ b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java @@ -36,13 +36,21 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest; import com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse; +import com.google.cloud.asset.v1.CreateFeedRequest; +import com.google.cloud.asset.v1.DeleteFeedRequest; import com.google.cloud.asset.v1.ExportAssetsRequest; import com.google.cloud.asset.v1.ExportAssetsResponse; +import com.google.cloud.asset.v1.Feed; +import com.google.cloud.asset.v1.GetFeedRequest; +import com.google.cloud.asset.v1.ListFeedsRequest; +import com.google.cloud.asset.v1.ListFeedsResponse; +import com.google.cloud.asset.v1.UpdateFeedRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; import com.google.longrunning.Operation; +import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -63,13 +71,13 @@ *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of batchGetAssetsHistory to 30 seconds: + *

For example, to set the total timeout of createFeed to 30 seconds: * *

  * 
  * AssetServiceStubSettings.Builder assetServiceSettingsBuilder =
  *     AssetServiceStubSettings.newBuilder();
- * assetServiceSettingsBuilder.batchGetAssetsHistorySettings().getRetrySettings().toBuilder()
+ * assetServiceSettingsBuilder.createFeedSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * AssetServiceStubSettings assetServiceSettings = assetServiceSettingsBuilder.build();
  * 
@@ -88,6 +96,11 @@ public class AssetServiceStubSettings extends StubSettings
       batchGetAssetsHistorySettings;
+  private final UnaryCallSettings createFeedSettings;
+  private final UnaryCallSettings getFeedSettings;
+  private final UnaryCallSettings listFeedsSettings;
+  private final UnaryCallSettings updateFeedSettings;
+  private final UnaryCallSettings deleteFeedSettings;
 
   /** Returns the object with the settings used for calls to exportAssets. */
   public UnaryCallSettings exportAssetsSettings() {
@@ -107,6 +120,31 @@ public UnaryCallSettings exportAssetsSettings()
     return batchGetAssetsHistorySettings;
   }
 
+  /** Returns the object with the settings used for calls to createFeed. */
+  public UnaryCallSettings createFeedSettings() {
+    return createFeedSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getFeed. */
+  public UnaryCallSettings getFeedSettings() {
+    return getFeedSettings;
+  }
+
+  /** Returns the object with the settings used for calls to listFeeds. */
+  public UnaryCallSettings listFeedsSettings() {
+    return listFeedsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to updateFeed. */
+  public UnaryCallSettings updateFeedSettings() {
+    return updateFeedSettings;
+  }
+
+  /** Returns the object with the settings used for calls to deleteFeed. */
+  public UnaryCallSettings deleteFeedSettings() {
+    return deleteFeedSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public AssetServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -179,6 +217,11 @@ protected AssetServiceStubSettings(Builder settingsBuilder) throws IOException {
     exportAssetsSettings = settingsBuilder.exportAssetsSettings().build();
     exportAssetsOperationSettings = settingsBuilder.exportAssetsOperationSettings().build();
     batchGetAssetsHistorySettings = settingsBuilder.batchGetAssetsHistorySettings().build();
+    createFeedSettings = settingsBuilder.createFeedSettings().build();
+    getFeedSettings = settingsBuilder.getFeedSettings().build();
+    listFeedsSettings = settingsBuilder.listFeedsSettings().build();
+    updateFeedSettings = settingsBuilder.updateFeedSettings().build();
+    deleteFeedSettings = settingsBuilder.deleteFeedSettings().build();
   }
 
   /** Builder for AssetServiceStubSettings. */
@@ -192,6 +235,11 @@ public static class Builder extends StubSettings.Builder
         batchGetAssetsHistorySettings;
+    private final UnaryCallSettings.Builder createFeedSettings;
+    private final UnaryCallSettings.Builder getFeedSettings;
+    private final UnaryCallSettings.Builder listFeedsSettings;
+    private final UnaryCallSettings.Builder updateFeedSettings;
+    private final UnaryCallSettings.Builder deleteFeedSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -240,9 +288,25 @@ protected Builder(ClientContext clientContext) {
 
       batchGetAssetsHistorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      createFeedSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      getFeedSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      listFeedsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      updateFeedSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      deleteFeedSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              exportAssetsSettings, batchGetAssetsHistorySettings);
+              exportAssetsSettings,
+              batchGetAssetsHistorySettings,
+              createFeedSettings,
+              getFeedSettings,
+              listFeedsSettings,
+              updateFeedSettings,
+              deleteFeedSettings);
 
       initDefaults(this);
     }
@@ -267,6 +331,31 @@ private static Builder initDefaults(Builder builder) {
           .batchGetAssetsHistorySettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .createFeedSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .getFeedSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .listFeedsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .updateFeedSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .deleteFeedSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
       builder
           .exportAssetsOperationSettings()
           .setInitialCallSettings(
@@ -300,10 +389,21 @@ protected Builder(AssetServiceStubSettings settings) {
       exportAssetsSettings = settings.exportAssetsSettings.toBuilder();
       exportAssetsOperationSettings = settings.exportAssetsOperationSettings.toBuilder();
       batchGetAssetsHistorySettings = settings.batchGetAssetsHistorySettings.toBuilder();
+      createFeedSettings = settings.createFeedSettings.toBuilder();
+      getFeedSettings = settings.getFeedSettings.toBuilder();
+      listFeedsSettings = settings.listFeedsSettings.toBuilder();
+      updateFeedSettings = settings.updateFeedSettings.toBuilder();
+      deleteFeedSettings = settings.deleteFeedSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              exportAssetsSettings, batchGetAssetsHistorySettings);
+              exportAssetsSettings,
+              batchGetAssetsHistorySettings,
+              createFeedSettings,
+              getFeedSettings,
+              listFeedsSettings,
+              updateFeedSettings,
+              deleteFeedSettings);
     }
 
     // NEXT_MAJOR_VER: remove 'throws Exception'
@@ -342,6 +442,31 @@ public UnaryCallSettings.Builder exportAssetsSet
       return batchGetAssetsHistorySettings;
     }
 
+    /** Returns the builder for the settings used for calls to createFeed. */
+    public UnaryCallSettings.Builder createFeedSettings() {
+      return createFeedSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getFeed. */
+    public UnaryCallSettings.Builder getFeedSettings() {
+      return getFeedSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to listFeeds. */
+    public UnaryCallSettings.Builder listFeedsSettings() {
+      return listFeedsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to updateFeed. */
+    public UnaryCallSettings.Builder updateFeedSettings() {
+      return updateFeedSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to deleteFeed. */
+    public UnaryCallSettings.Builder deleteFeedSettings() {
+      return deleteFeedSettings;
+    }
+
     @Override
     public AssetServiceStubSettings build() throws IOException {
       return new AssetServiceStubSettings(this);
diff --git a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java
index 40e2dfc5c..e65599403 100644
--- a/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java
+++ b/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java
@@ -26,11 +26,19 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest;
 import com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse;
+import com.google.cloud.asset.v1.CreateFeedRequest;
+import com.google.cloud.asset.v1.DeleteFeedRequest;
 import com.google.cloud.asset.v1.ExportAssetsRequest;
 import com.google.cloud.asset.v1.ExportAssetsResponse;
+import com.google.cloud.asset.v1.Feed;
+import com.google.cloud.asset.v1.GetFeedRequest;
+import com.google.cloud.asset.v1.ListFeedsRequest;
+import com.google.cloud.asset.v1.ListFeedsResponse;
+import com.google.cloud.asset.v1.UpdateFeedRequest;
 import com.google.common.collect.ImmutableMap;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
+import com.google.protobuf.Empty;
 import io.grpc.MethodDescriptor;
 import io.grpc.protobuf.ProtoUtils;
 import java.io.IOException;
@@ -66,6 +74,42 @@ public class GrpcAssetServiceStub extends AssetServiceStub {
               .setResponseMarshaller(
                   ProtoUtils.marshaller(BatchGetAssetsHistoryResponse.getDefaultInstance()))
               .build();
+  private static final MethodDescriptor createFeedMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.asset.v1.AssetService/CreateFeed")
+          .setRequestMarshaller(ProtoUtils.marshaller(CreateFeedRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Feed.getDefaultInstance()))
+          .build();
+  private static final MethodDescriptor getFeedMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.asset.v1.AssetService/GetFeed")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetFeedRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Feed.getDefaultInstance()))
+          .build();
+  private static final MethodDescriptor
+      listFeedsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.asset.v1.AssetService/ListFeeds")
+              .setRequestMarshaller(ProtoUtils.marshaller(ListFeedsRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(ListFeedsResponse.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor updateFeedMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.asset.v1.AssetService/UpdateFeed")
+          .setRequestMarshaller(ProtoUtils.marshaller(UpdateFeedRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Feed.getDefaultInstance()))
+          .build();
+  private static final MethodDescriptor deleteFeedMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.asset.v1.AssetService/DeleteFeed")
+          .setRequestMarshaller(ProtoUtils.marshaller(DeleteFeedRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+          .build();
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -75,6 +119,11 @@ public class GrpcAssetServiceStub extends AssetServiceStub {
       exportAssetsOperationCallable;
   private final UnaryCallable
       batchGetAssetsHistoryCallable;
+  private final UnaryCallable createFeedCallable;
+  private final UnaryCallable getFeedCallable;
+  private final UnaryCallable listFeedsCallable;
+  private final UnaryCallable updateFeedCallable;
+  private final UnaryCallable deleteFeedCallable;
 
   private final GrpcStubCallableFactory callableFactory;
 
@@ -144,6 +193,71 @@ public Map extract(BatchGetAssetsHistoryRequest request) {
                       }
                     })
                 .build();
+    GrpcCallSettings createFeedTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(createFeedMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(CreateFeedRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("parent", String.valueOf(request.getParent()));
+                    return params.build();
+                  }
+                })
+            .build();
+    GrpcCallSettings getFeedTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getFeedMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(GetFeedRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("name", String.valueOf(request.getName()));
+                    return params.build();
+                  }
+                })
+            .build();
+    GrpcCallSettings listFeedsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listFeedsMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(ListFeedsRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("parent", String.valueOf(request.getParent()));
+                    return params.build();
+                  }
+                })
+            .build();
+    GrpcCallSettings updateFeedTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(updateFeedMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(UpdateFeedRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("feed.name", String.valueOf(request.getFeed().getName()));
+                    return params.build();
+                  }
+                })
+            .build();
+    GrpcCallSettings deleteFeedTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(deleteFeedMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(DeleteFeedRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("name", String.valueOf(request.getName()));
+                    return params.build();
+                  }
+                })
+            .build();
 
     this.exportAssetsCallable =
         callableFactory.createUnaryCallable(
@@ -159,6 +273,21 @@ public Map extract(BatchGetAssetsHistoryRequest request) {
             batchGetAssetsHistoryTransportSettings,
             settings.batchGetAssetsHistorySettings(),
             clientContext);
+    this.createFeedCallable =
+        callableFactory.createUnaryCallable(
+            createFeedTransportSettings, settings.createFeedSettings(), clientContext);
+    this.getFeedCallable =
+        callableFactory.createUnaryCallable(
+            getFeedTransportSettings, settings.getFeedSettings(), clientContext);
+    this.listFeedsCallable =
+        callableFactory.createUnaryCallable(
+            listFeedsTransportSettings, settings.listFeedsSettings(), clientContext);
+    this.updateFeedCallable =
+        callableFactory.createUnaryCallable(
+            updateFeedTransportSettings, settings.updateFeedSettings(), clientContext);
+    this.deleteFeedCallable =
+        callableFactory.createUnaryCallable(
+            deleteFeedTransportSettings, settings.deleteFeedSettings(), clientContext);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
@@ -183,6 +312,26 @@ public UnaryCallable exportAssetsCallable() {
     return batchGetAssetsHistoryCallable;
   }
 
+  public UnaryCallable createFeedCallable() {
+    return createFeedCallable;
+  }
+
+  public UnaryCallable getFeedCallable() {
+    return getFeedCallable;
+  }
+
+  public UnaryCallable listFeedsCallable() {
+    return listFeedsCallable;
+  }
+
+  public UnaryCallable updateFeedCallable() {
+    return updateFeedCallable;
+  }
+
+  public UnaryCallable deleteFeedCallable() {
+    return deleteFeedCallable;
+  }
+
   @Override
   public final void close() {
     shutdown();
diff --git a/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java b/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java
index ef04d9126..411b67c14 100644
--- a/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java
+++ b/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java
@@ -16,16 +16,26 @@
 package com.google.cloud.asset.v1;
 
 import com.google.api.gax.core.NoCredentialsProvider;
+import com.google.api.gax.grpc.GaxGrpcProperties;
 import com.google.api.gax.grpc.testing.LocalChannelProvider;
 import com.google.api.gax.grpc.testing.MockGrpcService;
 import com.google.api.gax.grpc.testing.MockServiceHelper;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.InvalidArgumentException;
+import com.google.protobuf.AbstractMessage;
+import com.google.protobuf.Empty;
+import io.grpc.Status;
+import io.grpc.StatusRuntimeException;
 import java.io.IOException;
 import java.util.Arrays;
+import java.util.List;
 import java.util.UUID;
 import org.junit.After;
 import org.junit.AfterClass;
+import org.junit.Assert;
 import org.junit.Before;
 import org.junit.BeforeClass;
+import org.junit.Test;
 
 @javax.annotation.Generated("by GAPIC")
 public class AssetServiceClientTest {
@@ -64,4 +74,196 @@ public void setUp() throws IOException {
   public void tearDown() throws Exception {
     client.close();
   }
+
+  @Test
+  @SuppressWarnings("all")
+  public void createFeedTest() {
+    String name = "name3373707";
+    Feed expectedResponse = Feed.newBuilder().setName(name).build();
+    mockAssetService.addResponse(expectedResponse);
+
+    String parent = "parent-995424086";
+
+    Feed actualResponse = client.createFeed(parent);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockAssetService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    CreateFeedRequest actualRequest = (CreateFeedRequest) actualRequests.get(0);
+
+    Assert.assertEquals(parent, actualRequest.getParent());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void createFeedExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockAssetService.addException(exception);
+
+    try {
+      String parent = "parent-995424086";
+
+      client.createFeed(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void getFeedTest() {
+    String name2 = "name2-1052831874";
+    Feed expectedResponse = Feed.newBuilder().setName(name2).build();
+    mockAssetService.addResponse(expectedResponse);
+
+    String formattedName = FeedName.format("[PROJECT]", "[FEED]");
+
+    Feed actualResponse = client.getFeed(formattedName);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockAssetService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetFeedRequest actualRequest = (GetFeedRequest) actualRequests.get(0);
+
+    Assert.assertEquals(formattedName, actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void getFeedExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockAssetService.addException(exception);
+
+    try {
+      String formattedName = FeedName.format("[PROJECT]", "[FEED]");
+
+      client.getFeed(formattedName);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void listFeedsTest() {
+    ListFeedsResponse expectedResponse = ListFeedsResponse.newBuilder().build();
+    mockAssetService.addResponse(expectedResponse);
+
+    String parent = "parent-995424086";
+
+    ListFeedsResponse actualResponse = client.listFeeds(parent);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockAssetService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListFeedsRequest actualRequest = (ListFeedsRequest) actualRequests.get(0);
+
+    Assert.assertEquals(parent, actualRequest.getParent());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void listFeedsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockAssetService.addException(exception);
+
+    try {
+      String parent = "parent-995424086";
+
+      client.listFeeds(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void updateFeedTest() {
+    String name = "name3373707";
+    Feed expectedResponse = Feed.newBuilder().setName(name).build();
+    mockAssetService.addResponse(expectedResponse);
+
+    Feed feed = Feed.newBuilder().build();
+
+    Feed actualResponse = client.updateFeed(feed);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockAssetService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    UpdateFeedRequest actualRequest = (UpdateFeedRequest) actualRequests.get(0);
+
+    Assert.assertEquals(feed, actualRequest.getFeed());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void updateFeedExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockAssetService.addException(exception);
+
+    try {
+      Feed feed = Feed.newBuilder().build();
+
+      client.updateFeed(feed);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void deleteFeedTest() {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockAssetService.addResponse(expectedResponse);
+
+    String formattedName = FeedName.format("[PROJECT]", "[FEED]");
+
+    client.deleteFeed(formattedName);
+
+    List actualRequests = mockAssetService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    DeleteFeedRequest actualRequest = (DeleteFeedRequest) actualRequests.get(0);
+
+    Assert.assertEquals(formattedName, actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void deleteFeedExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockAssetService.addException(exception);
+
+    try {
+      String formattedName = FeedName.format("[PROJECT]", "[FEED]");
+
+      client.deleteFeed(formattedName);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
 }
diff --git a/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java b/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java
index d43948cc1..5b48aa693 100644
--- a/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java
+++ b/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java
@@ -19,6 +19,7 @@
 import com.google.cloud.asset.v1.AssetServiceGrpc.AssetServiceImplBase;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
+import com.google.protobuf.Empty;
 import io.grpc.stub.StreamObserver;
 import java.util.ArrayList;
 import java.util.LinkedList;
@@ -87,4 +88,75 @@ public void batchGetAssetsHistory(
       responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
     }
   }
+
+  @Override
+  public void createFeed(CreateFeedRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof Feed) {
+      requests.add(request);
+      responseObserver.onNext((Feed) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
+  @Override
+  public void getFeed(GetFeedRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof Feed) {
+      requests.add(request);
+      responseObserver.onNext((Feed) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
+  @Override
+  public void listFeeds(
+      ListFeedsRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof ListFeedsResponse) {
+      requests.add(request);
+      responseObserver.onNext((ListFeedsResponse) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
+  @Override
+  public void updateFeed(UpdateFeedRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof Feed) {
+      requests.add(request);
+      responseObserver.onNext((Feed) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
+  @Override
+  public void deleteFeed(DeleteFeedRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof Empty) {
+      requests.add(request);
+      responseObserver.onNext((Empty) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
 }
diff --git a/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java b/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java
index 34b2ae104..22c73d142 100644
--- a/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java
+++ b/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java
@@ -151,6 +151,254 @@ private AssetServiceGrpc() {}
     return getBatchGetAssetsHistoryMethod;
   }
 
+  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
+  @java.lang.Deprecated // Use {@link #getCreateFeedMethod()} instead.
+  public static final io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed>
+      METHOD_CREATE_FEED = getCreateFeedMethodHelper();
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed>
+      getCreateFeedMethod;
+
+  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed>
+      getCreateFeedMethod() {
+    return getCreateFeedMethodHelper();
+  }
+
+  private static io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed>
+      getCreateFeedMethodHelper() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed>
+        getCreateFeedMethod;
+    if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) {
+      synchronized (AssetServiceGrpc.class) {
+        if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) {
+          AssetServiceGrpc.getCreateFeedMethod =
+              getCreateFeedMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(
+                              "google.cloud.asset.v1.AssetService", "CreateFeed"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.asset.v1.CreateFeedRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.asset.v1.Feed.getDefaultInstance()))
+                      .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("CreateFeed"))
+                      .build();
+        }
+      }
+    }
+    return getCreateFeedMethod;
+  }
+
+  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
+  @java.lang.Deprecated // Use {@link #getGetFeedMethod()} instead.
+  public static final io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed>
+      METHOD_GET_FEED = getGetFeedMethodHelper();
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed>
+      getGetFeedMethod;
+
+  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed>
+      getGetFeedMethod() {
+    return getGetFeedMethodHelper();
+  }
+
+  private static io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed>
+      getGetFeedMethodHelper() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed>
+        getGetFeedMethod;
+    if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) {
+      synchronized (AssetServiceGrpc.class) {
+        if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) {
+          AssetServiceGrpc.getGetFeedMethod =
+              getGetFeedMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName("google.cloud.asset.v1.AssetService", "GetFeed"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.asset.v1.GetFeedRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.asset.v1.Feed.getDefaultInstance()))
+                      .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("GetFeed"))
+                      .build();
+        }
+      }
+    }
+    return getGetFeedMethod;
+  }
+
+  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
+  @java.lang.Deprecated // Use {@link #getListFeedsMethod()} instead.
+  public static final io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse>
+      METHOD_LIST_FEEDS = getListFeedsMethodHelper();
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse>
+      getListFeedsMethod;
+
+  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse>
+      getListFeedsMethod() {
+    return getListFeedsMethodHelper();
+  }
+
+  private static io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse>
+      getListFeedsMethodHelper() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse>
+        getListFeedsMethod;
+    if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) {
+      synchronized (AssetServiceGrpc.class) {
+        if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) {
+          AssetServiceGrpc.getListFeedsMethod =
+              getListFeedsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName("google.cloud.asset.v1.AssetService", "ListFeeds"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.asset.v1.ListFeedsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.asset.v1.ListFeedsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListFeeds"))
+                      .build();
+        }
+      }
+    }
+    return getListFeedsMethod;
+  }
+
+  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
+  @java.lang.Deprecated // Use {@link #getUpdateFeedMethod()} instead.
+  public static final io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed>
+      METHOD_UPDATE_FEED = getUpdateFeedMethodHelper();
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed>
+      getUpdateFeedMethod;
+
+  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed>
+      getUpdateFeedMethod() {
+    return getUpdateFeedMethodHelper();
+  }
+
+  private static io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed>
+      getUpdateFeedMethodHelper() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed>
+        getUpdateFeedMethod;
+    if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) {
+      synchronized (AssetServiceGrpc.class) {
+        if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) {
+          AssetServiceGrpc.getUpdateFeedMethod =
+              getUpdateFeedMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(
+                              "google.cloud.asset.v1.AssetService", "UpdateFeed"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.asset.v1.UpdateFeedRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.asset.v1.Feed.getDefaultInstance()))
+                      .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("UpdateFeed"))
+                      .build();
+        }
+      }
+    }
+    return getUpdateFeedMethod;
+  }
+
+  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
+  @java.lang.Deprecated // Use {@link #getDeleteFeedMethod()} instead.
+  public static final io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty>
+      METHOD_DELETE_FEED = getDeleteFeedMethodHelper();
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty>
+      getDeleteFeedMethod;
+
+  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty>
+      getDeleteFeedMethod() {
+    return getDeleteFeedMethodHelper();
+  }
+
+  private static io.grpc.MethodDescriptor<
+          com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty>
+      getDeleteFeedMethodHelper() {
+    io.grpc.MethodDescriptor
+        getDeleteFeedMethod;
+    if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) {
+      synchronized (AssetServiceGrpc.class) {
+        if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) {
+          AssetServiceGrpc.getDeleteFeedMethod =
+              getDeleteFeedMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(
+                              "google.cloud.asset.v1.AssetService", "DeleteFeed"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.asset.v1.DeleteFeedRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("DeleteFeed"))
+                      .build();
+        }
+      }
+    }
+    return getDeleteFeedMethod;
+  }
+
   /** Creates a new async stub that supports all call types for the service */
   public static AssetServiceStub newStub(io.grpc.Channel channel) {
     return new AssetServiceStub(channel);
@@ -213,6 +461,72 @@ public void batchGetAssetsHistory(
       asyncUnimplementedUnaryCall(getBatchGetAssetsHistoryMethodHelper(), responseObserver);
     }
 
+    /**
+     *
+     *
+     * 
+     * Creates a feed in a parent project/folder/organization to listen to its
+     * asset updates.
+     * 
+ */ + public void createFeed( + com.google.cloud.asset.v1.CreateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateFeedMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Gets details about an asset feed.
+     * 
+ */ + public void getFeed( + com.google.cloud.asset.v1.GetFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetFeedMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists all asset feeds in a parent project/folder/organization.
+     * 
+ */ + public void listFeeds( + com.google.cloud.asset.v1.ListFeedsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListFeedsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates an asset feed configuration.
+     * 
+ */ + public void updateFeed( + com.google.cloud.asset.v1.UpdateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateFeedMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes an asset feed.
+     * 
+ */ + public void deleteFeed( + com.google.cloud.asset.v1.DeleteFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteFeedMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -229,6 +543,36 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest, com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>( this, METHODID_BATCH_GET_ASSETS_HISTORY))) + .addMethod( + getCreateFeedMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed>( + this, METHODID_CREATE_FEED))) + .addMethod( + getGetFeedMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed>( + this, METHODID_GET_FEED))) + .addMethod( + getListFeedsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.ListFeedsRequest, + com.google.cloud.asset.v1.ListFeedsResponse>(this, METHODID_LIST_FEEDS))) + .addMethod( + getUpdateFeedMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed>( + this, METHODID_UPDATE_FEED))) + .addMethod( + getDeleteFeedMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_FEED))) .build(); } } @@ -295,6 +639,87 @@ public void batchGetAssetsHistory( request, responseObserver); } + + /** + * + * + *
+     * Creates a feed in a parent project/folder/organization to listen to its
+     * asset updates.
+     * 
+ */ + public void createFeed( + com.google.cloud.asset.v1.CreateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateFeedMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details about an asset feed.
+     * 
+ */ + public void getFeed( + com.google.cloud.asset.v1.GetFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetFeedMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all asset feeds in a parent project/folder/organization.
+     * 
+ */ + public void listFeeds( + com.google.cloud.asset.v1.ListFeedsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListFeedsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an asset feed configuration.
+     * 
+ */ + public void updateFeed( + com.google.cloud.asset.v1.UpdateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateFeedMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an asset feed.
+     * 
+ */ + public void deleteFeed( + com.google.cloud.asset.v1.DeleteFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteFeedMethodHelper(), getCallOptions()), + request, + responseObserver); + } } /** @@ -354,6 +779,70 @@ public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse batchGetAssetsHis return blockingUnaryCall( getChannel(), getBatchGetAssetsHistoryMethodHelper(), getCallOptions(), request); } + + /** + * + * + *
+     * Creates a feed in a parent project/folder/organization to listen to its
+     * asset updates.
+     * 
+ */ + public com.google.cloud.asset.v1.Feed createFeed( + com.google.cloud.asset.v1.CreateFeedRequest request) { + return blockingUnaryCall( + getChannel(), getCreateFeedMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about an asset feed.
+     * 
+ */ + public com.google.cloud.asset.v1.Feed getFeed( + com.google.cloud.asset.v1.GetFeedRequest request) { + return blockingUnaryCall(getChannel(), getGetFeedMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all asset feeds in a parent project/folder/organization.
+     * 
+ */ + public com.google.cloud.asset.v1.ListFeedsResponse listFeeds( + com.google.cloud.asset.v1.ListFeedsRequest request) { + return blockingUnaryCall(getChannel(), getListFeedsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an asset feed configuration.
+     * 
+ */ + public com.google.cloud.asset.v1.Feed updateFeed( + com.google.cloud.asset.v1.UpdateFeedRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateFeedMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an asset feed.
+     * 
+ */ + public com.google.protobuf.Empty deleteFeed( + com.google.cloud.asset.v1.DeleteFeedRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteFeedMethodHelper(), getCallOptions(), request); + } } /** @@ -414,10 +903,82 @@ protected AssetServiceFutureStub build( return futureUnaryCall( getChannel().newCall(getBatchGetAssetsHistoryMethodHelper(), getCallOptions()), request); } + + /** + * + * + *
+     * Creates a feed in a parent project/folder/organization to listen to its
+     * asset updates.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createFeed(com.google.cloud.asset.v1.CreateFeedRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateFeedMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about an asset feed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getFeed(com.google.cloud.asset.v1.GetFeedRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetFeedMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all asset feeds in a parent project/folder/organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1.ListFeedsResponse> + listFeeds(com.google.cloud.asset.v1.ListFeedsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListFeedsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an asset feed configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateFeed(com.google.cloud.asset.v1.UpdateFeedRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateFeedMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an asset feed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteFeed( + com.google.cloud.asset.v1.DeleteFeedRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteFeedMethodHelper(), getCallOptions()), request); + } } private static final int METHODID_EXPORT_ASSETS = 0; private static final int METHODID_BATCH_GET_ASSETS_HISTORY = 1; + private static final int METHODID_CREATE_FEED = 2; + private static final int METHODID_GET_FEED = 3; + private static final int METHODID_LIST_FEEDS = 4; + private static final int METHODID_UPDATE_FEED = 5; + private static final int METHODID_DELETE_FEED = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -447,6 +1008,32 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_FEED: + serviceImpl.createFeed( + (com.google.cloud.asset.v1.CreateFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FEED: + serviceImpl.getFeed( + (com.google.cloud.asset.v1.GetFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FEEDS: + serviceImpl.listFeeds( + (com.google.cloud.asset.v1.ListFeedsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_FEED: + serviceImpl.updateFeed( + (com.google.cloud.asset.v1.UpdateFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FEED: + serviceImpl.deleteFeed( + (com.google.cloud.asset.v1.DeleteFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -513,6 +1100,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) .addMethod(getExportAssetsMethodHelper()) .addMethod(getBatchGetAssetsHistoryMethodHelper()) + .addMethod(getCreateFeedMethodHelper()) + .addMethod(getGetFeedMethodHelper()) + .addMethod(getListFeedsMethodHelper()) + .addMethod(getUpdateFeedMethodHelper()) + .addMethod(getDeleteFeedMethodHelper()) .build(); } } diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java index 647fea720..78e5e1444 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java @@ -41,6 +41,13 @@ private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Asset() { name_ = ""; assetType_ = ""; + ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Asset(); } @java.lang.Override @@ -108,6 +115,16 @@ private Asset( iamPolicy_ = subBuilder.buildPartial(); } + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + ancestors_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + ancestors_.add(s); break; } default: @@ -124,6 +141,9 @@ private Asset( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + ancestors_ = ancestors_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -157,6 +177,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
* * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -181,6 +203,8 @@ public java.lang.String getName() { *
* * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -204,6 +228,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string asset_type = 2; + * + * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; @@ -224,6 +250,8 @@ public java.lang.String getAssetType() { * * * string asset_type = 2; + * + * @return The bytes for assetType. */ public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; @@ -247,6 +275,8 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { * * * .google.cloud.asset.v1.Resource resource = 3; + * + * @return Whether the resource field is set. */ public boolean hasResource() { return resource_ != null; @@ -259,6 +289,8 @@ public boolean hasResource() { * * * .google.cloud.asset.v1.Resource resource = 3; + * + * @return The resource. */ public com.google.cloud.asset.v1.Resource getResource() { return resource_ == null ? com.google.cloud.asset.v1.Resource.getDefaultInstance() : resource_; @@ -287,6 +319,8 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() { * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicy_ != null; @@ -300,6 +334,8 @@ public boolean hasIamPolicy() { * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_; @@ -318,6 +354,83 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() { return getIamPolicy(); } + public static final int ANCESTORS_FIELD_NUMBER = 10; + private com.google.protobuf.LazyStringList ancestors_; + /** + * + * + *
+   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+   * represented as a list of relative resource names. Ancestry path starts with
+   * the closest CRM ancestor and ends at root. If the asset is a CRM
+   * project/folder/organization, this starts from the asset itself.
+   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * 
+ * + * repeated string ancestors = 10; + * + * @return A list containing the ancestors. + */ + public com.google.protobuf.ProtocolStringList getAncestorsList() { + return ancestors_; + } + /** + * + * + *
+   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+   * represented as a list of relative resource names. Ancestry path starts with
+   * the closest CRM ancestor and ends at root. If the asset is a CRM
+   * project/folder/organization, this starts from the asset itself.
+   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * 
+ * + * repeated string ancestors = 10; + * + * @return The count of ancestors. + */ + public int getAncestorsCount() { + return ancestors_.size(); + } + /** + * + * + *
+   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+   * represented as a list of relative resource names. Ancestry path starts with
+   * the closest CRM ancestor and ends at root. If the asset is a CRM
+   * project/folder/organization, this starts from the asset itself.
+   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * 
+ * + * repeated string ancestors = 10; + * + * @param index The index of the element to return. + * @return The ancestors at the given index. + */ + public java.lang.String getAncestors(int index) { + return ancestors_.get(index); + } + /** + * + * + *
+   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+   * represented as a list of relative resource names. Ancestry path starts with
+   * the closest CRM ancestor and ends at root. If the asset is a CRM
+   * project/folder/organization, this starts from the asset itself.
+   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * 
+ * + * repeated string ancestors = 10; + * + * @param index The index of the value to return. + * @return The bytes of the ancestors at the given index. + */ + public com.google.protobuf.ByteString getAncestorsBytes(int index) { + return ancestors_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -344,6 +457,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (iamPolicy_ != null) { output.writeMessage(4, getIamPolicy()); } + for (int i = 0; i < ancestors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ancestors_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -365,6 +481,14 @@ public int getSerializedSize() { if (iamPolicy_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIamPolicy()); } + { + int dataSize = 0; + for (int i = 0; i < ancestors_.size(); i++) { + dataSize += computeStringSizeNoTag(ancestors_.getRaw(i)); + } + size += dataSize; + size += 1 * getAncestorsList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -390,6 +514,7 @@ public boolean equals(final java.lang.Object obj) { if (hasIamPolicy()) { if (!getIamPolicy().equals(other.getIamPolicy())) return false; } + if (!getAncestorsList().equals(other.getAncestorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -413,6 +538,10 @@ public int hashCode() { hash = (37 * hash) + IAM_POLICY_FIELD_NUMBER; hash = (53 * hash) + getIamPolicy().hashCode(); } + if (getAncestorsCount() > 0) { + hash = (37 * hash) + ANCESTORS_FIELD_NUMBER; + hash = (53 * hash) + getAncestorsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -573,6 +702,8 @@ public Builder clear() { iamPolicy_ = null; iamPolicyBuilder_ = null; } + ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -599,6 +730,7 @@ public com.google.cloud.asset.v1.Asset build() { @java.lang.Override public com.google.cloud.asset.v1.Asset buildPartial() { com.google.cloud.asset.v1.Asset result = new com.google.cloud.asset.v1.Asset(this); + int from_bitField0_ = bitField0_; result.name_ = name_; result.assetType_ = assetType_; if (resourceBuilder_ == null) { @@ -611,6 +743,11 @@ public com.google.cloud.asset.v1.Asset buildPartial() { } else { result.iamPolicy_ = iamPolicyBuilder_.build(); } + if (((bitField0_ & 0x00000001) != 0)) { + ancestors_ = ancestors_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ancestors_ = ancestors_; onBuilt(); return result; } @@ -674,6 +811,16 @@ public Builder mergeFrom(com.google.cloud.asset.v1.Asset other) { if (other.hasIamPolicy()) { mergeIamPolicy(other.getIamPolicy()); } + if (!other.ancestors_.isEmpty()) { + if (ancestors_.isEmpty()) { + ancestors_ = other.ancestors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAncestorsIsMutable(); + ancestors_.addAll(other.ancestors_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -703,6 +850,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -716,6 +865,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -740,6 +891,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -764,6 +917,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -786,6 +942,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -805,6 +963,9 @@ public Builder clearName() { * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -826,6 +987,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * string asset_type = 2; + * + * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; @@ -846,6 +1009,8 @@ public java.lang.String getAssetType() { * * * string asset_type = 2; + * + * @return The bytes for assetType. */ public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; @@ -866,6 +1031,9 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { * * * string asset_type = 2; + * + * @param value The assetType to set. + * @return This builder for chaining. */ public Builder setAssetType(java.lang.String value) { if (value == null) { @@ -884,6 +1052,8 @@ public Builder setAssetType(java.lang.String value) { * * * string asset_type = 2; + * + * @return This builder for chaining. */ public Builder clearAssetType() { @@ -899,6 +1069,9 @@ public Builder clearAssetType() { * * * string asset_type = 2; + * + * @param value The bytes for assetType to set. + * @return This builder for chaining. */ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -925,6 +1098,8 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.asset.v1.Resource resource = 3; + * + * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; @@ -937,6 +1112,8 @@ public boolean hasResource() { * * * .google.cloud.asset.v1.Resource resource = 3; + * + * @return The resource. */ public com.google.cloud.asset.v1.Resource getResource() { if (resourceBuilder_ == null) { @@ -1107,6 +1284,8 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() { * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; @@ -1120,6 +1299,8 @@ public boolean hasIamPolicy() { * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { if (iamPolicyBuilder_ == null) { @@ -1276,6 +1457,210 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() { return iamPolicyBuilder_; } + private com.google.protobuf.LazyStringList ancestors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAncestorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+     * represented as a list of relative resource names. Ancestry path starts with
+     * the closest CRM ancestor and ends at root. If the asset is a CRM
+     * project/folder/organization, this starts from the asset itself.
+     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * 
+ * + * repeated string ancestors = 10; + * + * @return A list containing the ancestors. + */ + public com.google.protobuf.ProtocolStringList getAncestorsList() { + return ancestors_.getUnmodifiableView(); + } + /** + * + * + *
+     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+     * represented as a list of relative resource names. Ancestry path starts with
+     * the closest CRM ancestor and ends at root. If the asset is a CRM
+     * project/folder/organization, this starts from the asset itself.
+     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * 
+ * + * repeated string ancestors = 10; + * + * @return The count of ancestors. + */ + public int getAncestorsCount() { + return ancestors_.size(); + } + /** + * + * + *
+     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+     * represented as a list of relative resource names. Ancestry path starts with
+     * the closest CRM ancestor and ends at root. If the asset is a CRM
+     * project/folder/organization, this starts from the asset itself.
+     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * 
+ * + * repeated string ancestors = 10; + * + * @param index The index of the element to return. + * @return The ancestors at the given index. + */ + public java.lang.String getAncestors(int index) { + return ancestors_.get(index); + } + /** + * + * + *
+     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+     * represented as a list of relative resource names. Ancestry path starts with
+     * the closest CRM ancestor and ends at root. If the asset is a CRM
+     * project/folder/organization, this starts from the asset itself.
+     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * 
+ * + * repeated string ancestors = 10; + * + * @param index The index of the value to return. + * @return The bytes of the ancestors at the given index. + */ + public com.google.protobuf.ByteString getAncestorsBytes(int index) { + return ancestors_.getByteString(index); + } + /** + * + * + *
+     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+     * represented as a list of relative resource names. Ancestry path starts with
+     * the closest CRM ancestor and ends at root. If the asset is a CRM
+     * project/folder/organization, this starts from the asset itself.
+     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * 
+ * + * repeated string ancestors = 10; + * + * @param index The index to set the value at. + * @param value The ancestors to set. + * @return This builder for chaining. + */ + public Builder setAncestors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); + ancestors_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+     * represented as a list of relative resource names. Ancestry path starts with
+     * the closest CRM ancestor and ends at root. If the asset is a CRM
+     * project/folder/organization, this starts from the asset itself.
+     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * 
+ * + * repeated string ancestors = 10; + * + * @param value The ancestors to add. + * @return This builder for chaining. + */ + public Builder addAncestors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); + ancestors_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+     * represented as a list of relative resource names. Ancestry path starts with
+     * the closest CRM ancestor and ends at root. If the asset is a CRM
+     * project/folder/organization, this starts from the asset itself.
+     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * 
+ * + * repeated string ancestors = 10; + * + * @param values The ancestors to add. + * @return This builder for chaining. + */ + public Builder addAllAncestors(java.lang.Iterable values) { + ensureAncestorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); + onChanged(); + return this; + } + /** + * + * + *
+     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+     * represented as a list of relative resource names. Ancestry path starts with
+     * the closest CRM ancestor and ends at root. If the asset is a CRM
+     * project/folder/organization, this starts from the asset itself.
+     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * 
+ * + * repeated string ancestors = 10; + * + * @return This builder for chaining. + */ + public Builder clearAncestors() { + ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+     * represented as a list of relative resource names. Ancestry path starts with
+     * the closest CRM ancestor and ends at root. If the asset is a CRM
+     * project/folder/organization, this starts from the asset itself.
+     * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+     * 
+ * + * repeated string ancestors = 10; + * + * @param value The bytes of the ancestors to add. + * @return This builder for chaining. + */ + public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAncestorsIsMutable(); + ancestors_.add(value); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java index 8b29cfde0..7cdd734ea 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java @@ -35,6 +35,8 @@ public interface AssetOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -49,6 +51,8 @@ public interface AssetOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -60,6 +64,8 @@ public interface AssetOrBuilder * * * string asset_type = 2; + * + * @return The assetType. */ java.lang.String getAssetType(); /** @@ -70,6 +76,8 @@ public interface AssetOrBuilder * * * string asset_type = 2; + * + * @return The bytes for assetType. */ com.google.protobuf.ByteString getAssetTypeBytes(); @@ -81,6 +89,8 @@ public interface AssetOrBuilder * * * .google.cloud.asset.v1.Resource resource = 3; + * + * @return Whether the resource field is set. */ boolean hasResource(); /** @@ -91,6 +101,8 @@ public interface AssetOrBuilder * * * .google.cloud.asset.v1.Resource resource = 3; + * + * @return The resource. */ com.google.cloud.asset.v1.Resource getResource(); /** @@ -113,6 +125,8 @@ public interface AssetOrBuilder * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** @@ -124,6 +138,8 @@ public interface AssetOrBuilder * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return The iamPolicy. */ com.google.iam.v1.Policy getIamPolicy(); /** @@ -137,4 +153,71 @@ public interface AssetOrBuilder * .google.iam.v1.Policy iam_policy = 4; */ com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder(); + + /** + * + * + *
+   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+   * represented as a list of relative resource names. Ancestry path starts with
+   * the closest CRM ancestor and ends at root. If the asset is a CRM
+   * project/folder/organization, this starts from the asset itself.
+   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * 
+ * + * repeated string ancestors = 10; + * + * @return A list containing the ancestors. + */ + java.util.List getAncestorsList(); + /** + * + * + *
+   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+   * represented as a list of relative resource names. Ancestry path starts with
+   * the closest CRM ancestor and ends at root. If the asset is a CRM
+   * project/folder/organization, this starts from the asset itself.
+   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * 
+ * + * repeated string ancestors = 10; + * + * @return The count of ancestors. + */ + int getAncestorsCount(); + /** + * + * + *
+   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+   * represented as a list of relative resource names. Ancestry path starts with
+   * the closest CRM ancestor and ends at root. If the asset is a CRM
+   * project/folder/organization, this starts from the asset itself.
+   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * 
+ * + * repeated string ancestors = 10; + * + * @param index The index of the element to return. + * @return The ancestors at the given index. + */ + java.lang.String getAncestors(int index); + /** + * + * + *
+   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
+   * represented as a list of relative resource names. Ancestry path starts with
+   * the closest CRM ancestor and ends at root. If the asset is a CRM
+   * project/folder/organization, this starts from the asset itself.
+   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
+   * 
+ * + * repeated string ancestors = 10; + * + * @param index The index of the value to return. + * @return The bytes of the ancestors at the given index. + */ + com.google.protobuf.ByteString getAncestorsBytes(int index); } diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java index e29165900..97aaa378a 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java @@ -53,50 +53,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\"google/cloud/asset/v1/assets.proto\022\025go" - + "ogle.cloud.asset.v1\032\034google/api/annotati" - + "ons.proto\032\031google/api/resource.proto\032\032go" - + "ogle/iam/v1/policy.proto\032\031google/protobu" - + "f/any.proto\032\034google/protobuf/struct.prot" - + "o\032\037google/protobuf/timestamp.proto\"\200\001\n\rT" + + "ogle.cloud.asset.v1\032\031google/api/resource" + + ".proto\032\032google/iam/v1/policy.proto\032\031goog" + + "le/protobuf/any.proto\032\034google/protobuf/s" + + "truct.proto\032\037google/protobuf/timestamp.p" + + "roto\032\034google/api/annotations.proto\"\200\001\n\rT" + "emporalAsset\0221\n\006window\030\001 \001(\0132!.google.cl" + "oud.asset.v1.TimeWindow\022\017\n\007deleted\030\002 \001(\010" + "\022+\n\005asset\030\003 \001(\0132\034.google.cloud.asset.v1." + "Asset\"j\n\nTimeWindow\022.\n\nstart_time\030\001 \001(\0132" + "\032.google.protobuf.Timestamp\022,\n\010end_time\030" - + "\002 \001(\0132\032.google.protobuf.Timestamp\"\260\001\n\005As" + + "\002 \001(\0132\032.google.protobuf.Timestamp\"\303\001\n\005As" + "set\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\0221\n" + "\010resource\030\003 \001(\0132\037.google.cloud.asset.v1." + "Resource\022)\n\niam_policy\030\004 \001(\0132\025.google.ia" - + "m.v1.Policy:\'\352A$\n\037cloudasset.googleapis." - + "com/Asset\022\001*\"\240\001\n\010Resource\022\017\n\007version\030\001 \001" - + "(\t\022\036\n\026discovery_document_uri\030\002 \001(\t\022\026\n\016di" - + "scovery_name\030\003 \001(\t\022\024\n\014resource_url\030\004 \001(\t" - + "\022\016\n\006parent\030\005 \001(\t\022%\n\004data\030\006 \001(\0132\027.google." - + "protobuf.StructB\230\001\n\031com.google.cloud.ass" - + "et.v1B\nAssetProtoP\001Z:google.golang.org/g" - + "enproto/googleapis/cloud/asset/v1;asset\370" - + "\001\001\252\002\025Google.Cloud.Asset.V1\312\002\025Google\\Clou" - + "d\\Asset\\V1b\006proto3" + + "m.v1.Policy\022\021\n\tancestors\030\n \003(\t:\'\352A$\n\037clo" + + "udasset.googleapis.com/Asset\022\001*\"\240\001\n\010Reso" + + "urce\022\017\n\007version\030\001 \001(\t\022\036\n\026discovery_docum" + + "ent_uri\030\002 \001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n" + + "\014resource_url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004d" + + "ata\030\006 \001(\0132\027.google.protobuf.StructB\230\001\n\031c" + + "om.google.cloud.asset.v1B\nAssetProtoP\001Z:" + + "google.golang.org/genproto/googleapis/cl" + + "oud/asset/v1;asset\370\001\001\252\002\025Google.Cloud.Ass" + + "et.V1\312\002\025Google\\Cloud\\Asset\\V1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_asset_v1_TemporalAsset_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable = @@ -119,7 +111,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_Asset_descriptor, new java.lang.String[] { - "Name", "AssetType", "Resource", "IamPolicy", + "Name", "AssetType", "Resource", "IamPolicy", "Ancestors", }); internal_static_google_cloud_asset_v1_Resource_descriptor = getDescriptor().getMessageTypes().get(3); @@ -134,12 +126,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.iam.v1.PolicyProto.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java index 12110278d..f119bed70 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java @@ -43,6 +43,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_asset_v1_OutputConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -55,6 +79,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_Feed_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -91,57 +127,90 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.asset.v1.TimeWindowB\003\340A\001\"U\n\035Ba" + "tchGetAssetsHistoryResponse\0224\n\006assets\030\001 " + "\003(\0132$.google.cloud.asset.v1.TemporalAsse" - + "t\"\253\001\n\014OutputConfig\022@\n\017gcs_destination\030\001 " - + "\001(\0132%.google.cloud.asset.v1.GcsDestinati" - + "onH\000\022J\n\024bigquery_destination\030\002 \001(\0132*.goo" - + "gle.cloud.asset.v1.BigQueryDestinationH\000" - + "B\r\n\013destination\"C\n\016GcsDestination\022\r\n\003uri" - + "\030\001 \001(\tH\000\022\024\n\nuri_prefix\030\002 \001(\tH\000B\014\n\nobject" - + "_uri\"N\n\023BigQueryDestination\022\024\n\007dataset\030\001" - + " \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\022\r\n\005force\030\003" - + " \001(\010*l\n\013ContentType\022\034\n\030CONTENT_TYPE_UNSP" - + "ECIFIED\020\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_POLICY\020\002\022" - + "\016\n\nORG_POLICY\020\004\022\021\n\rACCESS_POLICY\020\0052\363\003\n\014A" - + "ssetService\022\336\001\n\014ExportAssets\022*.google.cl" - + "oud.asset.v1.ExportAssetsRequest\032\035.googl" - + "e.longrunning.Operation\"\202\001\202\323\344\223\002\"\"\035/v1/{p" - + "arent=*/*}:exportAssets:\001*\312AW\n*google.cl" - + "oud.asset.v1.ExportAssetsResponse\022)googl" - + "e.cloud.asset.v1.ExportAssetsRequest\022\262\001\n" - + "\025BatchGetAssetsHistory\0223.google.cloud.as" - + "set.v1.BatchGetAssetsHistoryRequest\0324.go" - + "ogle.cloud.asset.v1.BatchGetAssetsHistor" - + "yResponse\".\202\323\344\223\002(\022&/v1/{parent=*/*}:batc" - + "hGetAssetsHistory\032M\312A\031cloudasset.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformB\234\001\n\031com.google.cloud.as" - + "set.v1B\021AssetServiceProtoP\001Z:google.gola" - + "ng.org/genproto/googleapis/cloud/asset/v" - + "1;asset\252\002\025Google.Cloud.Asset.V1\312\002\025Google" - + "\\Cloud\\Asset\\V1b\006proto3" + + "t\"n\n\021CreateFeedRequest\022\023\n\006parent\030\001 \001(\tB\003" + + "\340A\002\022\024\n\007feed_id\030\002 \001(\tB\003\340A\002\022.\n\004feed\030\003 \001(\0132" + + "\033.google.cloud.asset.v1.FeedB\003\340A\002\"F\n\016Get" + + "FeedRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloud" + + "asset.googleapis.com/Feed\"\'\n\020ListFeedsRe" + + "quest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\"?\n\021ListFeedsR" + + "esponse\022*\n\005feeds\030\001 \003(\0132\033.google.cloud.as" + + "set.v1.Feed\"y\n\021UpdateFeedRequest\022.\n\004feed" + + "\030\001 \001(\0132\033.google.cloud.asset.v1.FeedB\003\340A\002" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\"I\n\021DeleteFeedRequest\0224\n\004n" + + "ame\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.googleapis" + + ".com/Feed\"\253\001\n\014OutputConfig\022@\n\017gcs_destin" + + "ation\030\001 \001(\0132%.google.cloud.asset.v1.GcsD" + + "estinationH\000\022J\n\024bigquery_destination\030\002 \001" + + "(\0132*.google.cloud.asset.v1.BigQueryDesti" + + "nationH\000B\r\n\013destination\"C\n\016GcsDestinatio" + + "n\022\r\n\003uri\030\001 \001(\tH\000\022\024\n\nuri_prefix\030\002 \001(\tH\000B\014" + + "\n\nobject_uri\"N\n\023BigQueryDestination\022\024\n\007d" + + "ataset\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\022\r\n" + + "\005force\030\003 \001(\010\"\"\n\021PubsubDestination\022\r\n\005top" + + "ic\030\001 \001(\t\"i\n\020FeedOutputConfig\022F\n\022pubsub_d" + + "estination\030\001 \001(\0132(.google.cloud.asset.v1" + + ".PubsubDestinationH\000B\r\n\013destination\"\333\002\n\004" + + "Feed\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013asset_names\030\002" + + " \003(\t\022\023\n\013asset_types\030\003 \003(\t\0228\n\014content_typ" + + "e\030\004 \001(\0162\".google.cloud.asset.v1.ContentT" + + "ype\022H\n\022feed_output_config\030\005 \001(\0132\'.google" + + ".cloud.asset.v1.FeedOutputConfigB\003\340A\002:\221\001" + + "\352A\215\001\n\036cloudasset.googleapis.com/Feed\022\037pr" + + "ojects/{project}/feeds/{feed}\022\035folders/{" + + "folder}/feeds/{feed}\022)organizations/{org" + + "anization}/feeds/{feed} \001*l\n\013ContentType" + + "\022\034\n\030CONTENT_TYPE_UNSPECIFIED\020\000\022\014\n\010RESOUR" + + "CE\020\001\022\016\n\nIAM_POLICY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\r" + + "ACCESS_POLICY\020\0052\360\010\n\014AssetService\022\336\001\n\014Exp" + + "ortAssets\022*.google.cloud.asset.v1.Export" + + "AssetsRequest\032\035.google.longrunning.Opera" + + "tion\"\202\001\202\323\344\223\002\"\"\035/v1/{parent=*/*}:exportAs" + + "sets:\001*\312AW\n*google.cloud.asset.v1.Export" + + "AssetsResponse\022)google.cloud.asset.v1.Ex" + + "portAssetsRequest\022\262\001\n\025BatchGetAssetsHist" + + "ory\0223.google.cloud.asset.v1.BatchGetAsse" + + "tsHistoryRequest\0324.google.cloud.asset.v1" + + ".BatchGetAssetsHistoryResponse\".\202\323\344\223\002(\022&" + + "/v1/{parent=*/*}:batchGetAssetsHistory\022\177" + + "\n\nCreateFeed\022(.google.cloud.asset.v1.Cre" + + "ateFeedRequest\032\033.google.cloud.asset.v1.F" + + "eed\"*\202\323\344\223\002\033\"\026/v1/{parent=*/*}/feeds:\001*\332A" + + "\006parent\022t\n\007GetFeed\022%.google.cloud.asset." + + "v1.GetFeedRequest\032\033.google.cloud.asset.v" + + "1.Feed\"%\202\323\344\223\002\030\022\026/v1/{name=*/*/feeds/*}\332A" + + "\004name\022\207\001\n\tListFeeds\022\'.google.cloud.asset" + + ".v1.ListFeedsRequest\032(.google.cloud.asse" + + "t.v1.ListFeedsResponse\"\'\202\323\344\223\002\030\022\026/v1/{par" + + "ent=*/*}/feeds\332A\006parent\022\202\001\n\nUpdateFeed\022(" + + ".google.cloud.asset.v1.UpdateFeedRequest" + + "\032\033.google.cloud.asset.v1.Feed\"-\202\323\344\223\002 2\033/" + + "v1/{feed.name=*/*/feeds/*}:\001*\332A\004feed\022u\n\n" + + "DeleteFeed\022(.google.cloud.asset.v1.Delet" + + "eFeedRequest\032\026.google.protobuf.Empty\"%\202\323" + + "\344\223\002\030*\026/v1/{name=*/*/feeds/*}\332A\004name\032M\312A\031" + + "cloudasset.googleapis.com\322A.https://www." + + "googleapis.com/auth/cloud-platformB\234\001\n\031c" + + "om.google.cloud.asset.v1B\021AssetServicePr" + + "otoP\001Z:google.golang.org/genproto/google" + + "apis/cloud/asset/v1;asset\252\002\025Google.Cloud" + + ".Asset.V1\312\002\025Google\\Cloud\\Asset\\V1b\006proto" + + "3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.asset.v1.AssetProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.asset.v1.AssetProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable = @@ -174,8 +243,56 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Assets", }); - internal_static_google_cloud_asset_v1_OutputConfig_descriptor = + internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor, + new java.lang.String[] { + "Parent", "FeedId", "Feed", + }); + internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor, + new java.lang.String[] { + "Feeds", + }); + internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor, + new java.lang.String[] { + "Feed", "UpdateMask", + }); + internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_asset_v1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_OutputConfig_descriptor, @@ -183,7 +300,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "GcsDestination", "BigqueryDestination", "Destination", }); internal_static_google_cloud_asset_v1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_GcsDestination_descriptor, @@ -191,19 +308,45 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Uri", "UriPrefix", "ObjectUri", }); internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor, new java.lang.String[] { "Dataset", "Table", "Force", }); + internal_static_google_cloud_asset_v1_PubsubDestination_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_PubsubDestination_descriptor, + new java.lang.String[] { + "Topic", + }); + internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor, + new java.lang.String[] { + "PubsubDestination", "Destination", + }); + internal_static_google_cloud_asset_v1_Feed_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_Feed_descriptor, + new java.lang.String[] { + "Name", "AssetNames", "AssetTypes", "ContentType", "FeedOutputConfig", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); registry.add(com.google.api.ResourceProto.resourceReference); registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java index 326a041c1..d7288cb8d 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java @@ -43,6 +43,12 @@ private BatchGetAssetsHistoryRequest() { contentType_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchGetAssetsHistoryRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -77,9 +83,9 @@ private BatchGetAssetsHistoryRequest( case 18: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } assetNames_.add(s); break; @@ -121,7 +127,7 @@ private BatchGetAssetsHistoryRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { assetNames_ = assetNames_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -144,7 +150,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.Builder.class); } - private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** @@ -159,6 +164,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -183,6 +190,8 @@ public java.lang.String getParent() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -214,6 +223,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * repeated string asset_names = 2; + * + * @return A list containing the assetNames. */ public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_; @@ -234,6 +245,8 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() { * * * repeated string asset_names = 2; + * + * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); @@ -254,6 +267,9 @@ public int getAssetNamesCount() { * * * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. */ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); @@ -274,6 +290,9 @@ public java.lang.String getAssetNames(int index) { * * * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. */ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); @@ -291,6 +310,8 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { * * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -305,6 +326,8 @@ public int getContentTypeValue() { * * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The contentType. */ public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -330,6 +353,8 @@ public com.google.cloud.asset.v1.ContentType getContentType() { * * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the readTimeWindow field is set. */ public boolean hasReadTimeWindow() { return readTimeWindow_ != null; @@ -349,6 +374,8 @@ public boolean hasReadTimeWindow() { * * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The readTimeWindow. */ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { return readTimeWindow_ == null @@ -624,7 +651,7 @@ public Builder clear() { parent_ = ""; assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); contentType_ = 0; if (readTimeWindowBuilder_ == null) { @@ -661,11 +688,10 @@ public com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest buildPartial() { com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest result = new com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.parent_ = parent_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { assetNames_ = assetNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.assetNames_ = assetNames_; result.contentType_ = contentType_; @@ -674,7 +700,6 @@ public com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest buildPartial() { } else { result.readTimeWindow_ = readTimeWindowBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -732,7 +757,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest if (!other.assetNames_.isEmpty()) { if (assetNames_.isEmpty()) { assetNames_ = other.assetNames_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAssetNamesIsMutable(); assetNames_.addAll(other.assetNames_); @@ -790,6 +815,8 @@ public Builder mergeFrom( * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -814,6 +841,8 @@ public java.lang.String getParent() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -838,6 +867,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -860,6 +892,8 @@ public Builder setParent(java.lang.String value) { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -879,6 +913,9 @@ public Builder clearParent() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -895,9 +932,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetNamesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(assetNames_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** @@ -916,6 +953,8 @@ private void ensureAssetNamesIsMutable() { * * * repeated string asset_names = 2; + * + * @return A list containing the assetNames. */ public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_.getUnmodifiableView(); @@ -936,6 +975,8 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() { * * * repeated string asset_names = 2; + * + * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); @@ -956,6 +997,9 @@ public int getAssetNamesCount() { * * * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. */ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); @@ -976,6 +1020,9 @@ public java.lang.String getAssetNames(int index) { * * * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. */ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); @@ -996,6 +1043,10 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { * * * repeated string asset_names = 2; + * + * @param index The index to set the value at. + * @param value The assetNames to set. + * @return This builder for chaining. */ public Builder setAssetNames(int index, java.lang.String value) { if (value == null) { @@ -1022,6 +1073,9 @@ public Builder setAssetNames(int index, java.lang.String value) { * * * repeated string asset_names = 2; + * + * @param value The assetNames to add. + * @return This builder for chaining. */ public Builder addAssetNames(java.lang.String value) { if (value == null) { @@ -1048,6 +1102,9 @@ public Builder addAssetNames(java.lang.String value) { * * * repeated string asset_names = 2; + * + * @param values The assetNames to add. + * @return This builder for chaining. */ public Builder addAllAssetNames(java.lang.Iterable values) { ensureAssetNamesIsMutable(); @@ -1071,10 +1128,12 @@ public Builder addAllAssetNames(java.lang.Iterable values) { * * * repeated string asset_names = 2; + * + * @return This builder for chaining. */ public Builder clearAssetNames() { assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1094,6 +1153,9 @@ public Builder clearAssetNames() { * * * repeated string asset_names = 2; + * + * @param value The bytes of the assetNames to add. + * @return This builder for chaining. */ public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1117,6 +1179,8 @@ public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { * * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -1131,6 +1195,9 @@ public int getContentTypeValue() { * * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The enum numeric value on the wire for contentType to set. + * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { contentType_ = value; @@ -1147,6 +1214,8 @@ public Builder setContentTypeValue(int value) { * * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The contentType. */ public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -1164,6 +1233,9 @@ public com.google.cloud.asset.v1.ContentType getContentType() { * * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The contentType to set. + * @return This builder for chaining. */ public Builder setContentType(com.google.cloud.asset.v1.ContentType value) { if (value == null) { @@ -1184,6 +1256,8 @@ public Builder setContentType(com.google.cloud.asset.v1.ContentType value) { * * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return This builder for chaining. */ public Builder clearContentType() { @@ -1213,6 +1287,8 @@ public Builder clearContentType() { * * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the readTimeWindow field is set. */ public boolean hasReadTimeWindow() { return readTimeWindowBuilder_ != null || readTimeWindow_ != null; @@ -1232,6 +1308,8 @@ public boolean hasReadTimeWindow() { * * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The readTimeWindow. */ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { if (readTimeWindowBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java index b7b53eb69..73a8fe439 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java @@ -35,6 +35,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ java.lang.String getParent(); /** @@ -49,6 +51,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -68,6 +72,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * repeated string asset_names = 2; + * + * @return A list containing the assetNames. */ java.util.List getAssetNamesList(); /** @@ -86,6 +92,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * repeated string asset_names = 2; + * + * @return The count of assetNames. */ int getAssetNamesCount(); /** @@ -104,6 +112,9 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. */ java.lang.String getAssetNames(int index); /** @@ -122,6 +133,9 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. */ com.google.protobuf.ByteString getAssetNamesBytes(int index); @@ -135,6 +149,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** @@ -147,6 +163,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The contentType. */ com.google.cloud.asset.v1.ContentType getContentType(); @@ -165,6 +183,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the readTimeWindow field is set. */ boolean hasReadTimeWindow(); /** @@ -182,6 +202,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The readTimeWindow. */ com.google.cloud.asset.v1.TimeWindow getReadTimeWindow(); /** diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java index 56ac1b4f8..98dbd7ef8 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java @@ -41,6 +41,12 @@ private BatchGetAssetsHistoryResponse() { assets_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchGetAssetsHistoryResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java index 830be2ca6..fd1e28cb2 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java @@ -42,6 +42,12 @@ private BigQueryDestination() { table_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryDestination(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private BigQueryDestination( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; @@ -155,6 +162,8 @@ public java.lang.String getDataset() { * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataset. */ public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; @@ -180,6 +189,8 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; @@ -202,6 +213,8 @@ public java.lang.String getTable() { * * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. */ public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; @@ -228,6 +241,8 @@ public com.google.protobuf.ByteString getTableBytes() { * * * bool force = 3; + * + * @return The force. */ public boolean getForce() { return force_; @@ -592,6 +607,8 @@ public Builder mergeFrom( * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; @@ -615,6 +632,8 @@ public java.lang.String getDataset() { * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataset. */ public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; @@ -638,6 +657,9 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dataset to set. + * @return This builder for chaining. */ public Builder setDataset(java.lang.String value) { if (value == null) { @@ -659,6 +681,8 @@ public Builder setDataset(java.lang.String value) { * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearDataset() { @@ -677,6 +701,9 @@ public Builder clearDataset() { * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dataset to set. + * @return This builder for chaining. */ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -700,6 +727,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; @@ -722,6 +751,8 @@ public java.lang.String getTable() { * * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. */ public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; @@ -744,6 +775,9 @@ public com.google.protobuf.ByteString getTableBytes() { * * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The table to set. + * @return This builder for chaining. */ public Builder setTable(java.lang.String value) { if (value == null) { @@ -764,6 +798,8 @@ public Builder setTable(java.lang.String value) { * * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearTable() { @@ -781,6 +817,9 @@ public Builder clearTable() { * * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for table to set. + * @return This builder for chaining. */ public Builder setTableBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -805,6 +844,8 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { * * * bool force = 3; + * + * @return The force. */ public boolean getForce() { return force_; @@ -820,6 +861,9 @@ public boolean getForce() { * * * bool force = 3; + * + * @param value The force to set. + * @return This builder for chaining. */ public Builder setForce(boolean value) { @@ -838,6 +882,8 @@ public Builder setForce(boolean value) { * * * bool force = 3; + * + * @return This builder for chaining. */ public Builder clearForce() { diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java index e55c4d1da..72f35737f 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java @@ -34,6 +34,8 @@ public interface BigQueryDestinationOrBuilder * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataset. */ java.lang.String getDataset(); /** @@ -47,6 +49,8 @@ public interface BigQueryDestinationOrBuilder * * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataset. */ com.google.protobuf.ByteString getDatasetBytes(); @@ -60,6 +64,8 @@ public interface BigQueryDestinationOrBuilder * * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. */ java.lang.String getTable(); /** @@ -72,6 +78,8 @@ public interface BigQueryDestinationOrBuilder * * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. */ com.google.protobuf.ByteString getTableBytes(); @@ -86,6 +94,8 @@ public interface BigQueryDestinationOrBuilder * * * bool force = 3; + * + * @return The force. */ boolean getForce(); } diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java index 277c28b5f..b7afbdbcd 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java @@ -140,12 +140,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static ContentType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ContentType forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java new file mode 100644 index 000000000..22968f44c --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java @@ -0,0 +1,1155 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +/** + * + * + *
+ * Create asset feed request.
+ * 
+ * + * Protobuf type {@code google.cloud.asset.v1.CreateFeedRequest} + */ +public final class CreateFeedRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.CreateFeedRequest) + CreateFeedRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateFeedRequest.newBuilder() to construct. + private CreateFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateFeedRequest() { + parent_ = ""; + feedId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateFeedRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateFeedRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + feedId_ = s; + break; + } + case 26: + { + com.google.cloud.asset.v1.Feed.Builder subBuilder = null; + if (feed_ != null) { + subBuilder = feed_.toBuilder(); + } + feed_ = input.readMessage(com.google.cloud.asset.v1.Feed.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(feed_); + feed_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.CreateFeedRequest.class, + com.google.cloud.asset.v1.CreateFeedRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The name of the project/folder/organization where this feed
+   * should be created in. It can only be an organization number (such as
+   * "organizations/123"), a folder number (such as "folders/123"), a project ID
+   * (such as "projects/my-project-id")", or a project number (such as
+   * "projects/12345").
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the project/folder/organization where this feed
+   * should be created in. It can only be an organization number (such as
+   * "organizations/123"), a folder number (such as "folders/123"), a project ID
+   * (such as "projects/my-project-id")", or a project number (such as
+   * "projects/12345").
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEED_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object feedId_; + /** + * + * + *
+   * Required. This is the client-assigned asset feed identifier and it needs to
+   * be unique under a specific parent project/folder/organization.
+   * 
+ * + * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The feedId. + */ + public java.lang.String getFeedId() { + java.lang.Object ref = feedId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + feedId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. This is the client-assigned asset feed identifier and it needs to
+   * be unique under a specific parent project/folder/organization.
+   * 
+ * + * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for feedId. + */ + public com.google.protobuf.ByteString getFeedIdBytes() { + java.lang.Object ref = feedId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + feedId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEED_FIELD_NUMBER = 3; + private com.google.cloud.asset.v1.Feed feed_; + /** + * + * + *
+   * Required. The feed details. The field `name` must be empty and it will be generated
+   * in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the feed field is set. + */ + public boolean hasFeed() { + return feed_ != null; + } + /** + * + * + *
+   * Required. The feed details. The field `name` must be empty and it will be generated
+   * in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The feed. + */ + public com.google.cloud.asset.v1.Feed getFeed() { + return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_; + } + /** + * + * + *
+   * Required. The feed details. The field `name` must be empty and it will be generated
+   * in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() { + return getFeed(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFeedIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, feedId_); + } + if (feed_ != null) { + output.writeMessage(3, getFeed()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFeedIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedId_); + } + if (feed_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFeed()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.asset.v1.CreateFeedRequest)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.CreateFeedRequest other = + (com.google.cloud.asset.v1.CreateFeedRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFeedId().equals(other.getFeedId())) return false; + if (hasFeed() != other.hasFeed()) return false; + if (hasFeed()) { + if (!getFeed().equals(other.getFeed())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FEED_ID_FIELD_NUMBER; + hash = (53 * hash) + getFeedId().hashCode(); + if (hasFeed()) { + hash = (37 * hash) + FEED_FIELD_NUMBER; + hash = (53 * hash) + getFeed().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.CreateFeedRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.CreateFeedRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.asset.v1.CreateFeedRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Create asset feed request.
+   * 
+ * + * Protobuf type {@code google.cloud.asset.v1.CreateFeedRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.CreateFeedRequest) + com.google.cloud.asset.v1.CreateFeedRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.CreateFeedRequest.class, + com.google.cloud.asset.v1.CreateFeedRequest.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.CreateFeedRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + feedId_ = ""; + + if (feedBuilder_ == null) { + feed_ = null; + } else { + feed_ = null; + feedBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.CreateFeedRequest getDefaultInstanceForType() { + return com.google.cloud.asset.v1.CreateFeedRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.CreateFeedRequest build() { + com.google.cloud.asset.v1.CreateFeedRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.CreateFeedRequest buildPartial() { + com.google.cloud.asset.v1.CreateFeedRequest result = + new com.google.cloud.asset.v1.CreateFeedRequest(this); + result.parent_ = parent_; + result.feedId_ = feedId_; + if (feedBuilder_ == null) { + result.feed_ = feed_; + } else { + result.feed_ = feedBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.asset.v1.CreateFeedRequest) { + return mergeFrom((com.google.cloud.asset.v1.CreateFeedRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.CreateFeedRequest other) { + if (other == com.google.cloud.asset.v1.CreateFeedRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFeedId().isEmpty()) { + feedId_ = other.feedId_; + onChanged(); + } + if (other.hasFeed()) { + mergeFeed(other.getFeed()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.asset.v1.CreateFeedRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.asset.v1.CreateFeedRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the project/folder/organization where this feed
+     * should be created in. It can only be an organization number (such as
+     * "organizations/123"), a folder number (such as "folders/123"), a project ID
+     * (such as "projects/my-project-id")", or a project number (such as
+     * "projects/12345").
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the project/folder/organization where this feed
+     * should be created in. It can only be an organization number (such as
+     * "organizations/123"), a folder number (such as "folders/123"), a project ID
+     * (such as "projects/my-project-id")", or a project number (such as
+     * "projects/12345").
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the project/folder/organization where this feed
+     * should be created in. It can only be an organization number (such as
+     * "organizations/123"), a folder number (such as "folders/123"), a project ID
+     * (such as "projects/my-project-id")", or a project number (such as
+     * "projects/12345").
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the project/folder/organization where this feed
+     * should be created in. It can only be an organization number (such as
+     * "organizations/123"), a folder number (such as "folders/123"), a project ID
+     * (such as "projects/my-project-id")", or a project number (such as
+     * "projects/12345").
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the project/folder/organization where this feed
+     * should be created in. It can only be an organization number (such as
+     * "organizations/123"), a folder number (such as "folders/123"), a project ID
+     * (such as "projects/my-project-id")", or a project number (such as
+     * "projects/12345").
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object feedId_ = ""; + /** + * + * + *
+     * Required. This is the client-assigned asset feed identifier and it needs to
+     * be unique under a specific parent project/folder/organization.
+     * 
+ * + * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The feedId. + */ + public java.lang.String getFeedId() { + java.lang.Object ref = feedId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + feedId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. This is the client-assigned asset feed identifier and it needs to
+     * be unique under a specific parent project/folder/organization.
+     * 
+ * + * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for feedId. + */ + public com.google.protobuf.ByteString getFeedIdBytes() { + java.lang.Object ref = feedId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + feedId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. This is the client-assigned asset feed identifier and it needs to
+     * be unique under a specific parent project/folder/organization.
+     * 
+ * + * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The feedId to set. + * @return This builder for chaining. + */ + public Builder setFeedId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + feedId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. This is the client-assigned asset feed identifier and it needs to
+     * be unique under a specific parent project/folder/organization.
+     * 
+ * + * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFeedId() { + + feedId_ = getDefaultInstance().getFeedId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. This is the client-assigned asset feed identifier and it needs to
+     * be unique under a specific parent project/folder/organization.
+     * 
+ * + * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for feedId to set. + * @return This builder for chaining. + */ + public Builder setFeedIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + feedId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.asset.v1.Feed feed_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder> + feedBuilder_; + /** + * + * + *
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the feed field is set. + */ + public boolean hasFeed() { + return feedBuilder_ != null || feed_ != null; + } + /** + * + * + *
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The feed. + */ + public com.google.cloud.asset.v1.Feed getFeed() { + if (feedBuilder_ == null) { + return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_; + } else { + return feedBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setFeed(com.google.cloud.asset.v1.Feed value) { + if (feedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + feed_ = value; + onChanged(); + } else { + feedBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setFeed(com.google.cloud.asset.v1.Feed.Builder builderForValue) { + if (feedBuilder_ == null) { + feed_ = builderForValue.build(); + onChanged(); + } else { + feedBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeFeed(com.google.cloud.asset.v1.Feed value) { + if (feedBuilder_ == null) { + if (feed_ != null) { + feed_ = com.google.cloud.asset.v1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial(); + } else { + feed_ = value; + } + onChanged(); + } else { + feedBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearFeed() { + if (feedBuilder_ == null) { + feed_ = null; + onChanged(); + } else { + feed_ = null; + feedBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.asset.v1.Feed.Builder getFeedBuilder() { + + onChanged(); + return getFeedFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() { + if (feedBuilder_ != null) { + return feedBuilder_.getMessageOrBuilder(); + } else { + return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_; + } + } + /** + * + * + *
+     * Required. The feed details. The field `name` must be empty and it will be generated
+     * in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder> + getFeedFieldBuilder() { + if (feedBuilder_ == null) { + feedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder>( + getFeed(), getParentForChildren(), isClean()); + feed_ = null; + } + return feedBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.CreateFeedRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.CreateFeedRequest) + private static final com.google.cloud.asset.v1.CreateFeedRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.CreateFeedRequest(); + } + + public static com.google.cloud.asset.v1.CreateFeedRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFeedRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.CreateFeedRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java new file mode 100644 index 000000000..b5664c058 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface CreateFeedRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.CreateFeedRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the project/folder/organization where this feed
+   * should be created in. It can only be an organization number (such as
+   * "organizations/123"), a folder number (such as "folders/123"), a project ID
+   * (such as "projects/my-project-id")", or a project number (such as
+   * "projects/12345").
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the project/folder/organization where this feed
+   * should be created in. It can only be an organization number (such as
+   * "organizations/123"), a folder number (such as "folders/123"), a project ID
+   * (such as "projects/my-project-id")", or a project number (such as
+   * "projects/12345").
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. This is the client-assigned asset feed identifier and it needs to
+   * be unique under a specific parent project/folder/organization.
+   * 
+ * + * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The feedId. + */ + java.lang.String getFeedId(); + /** + * + * + *
+   * Required. This is the client-assigned asset feed identifier and it needs to
+   * be unique under a specific parent project/folder/organization.
+   * 
+ * + * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for feedId. + */ + com.google.protobuf.ByteString getFeedIdBytes(); + + /** + * + * + *
+   * Required. The feed details. The field `name` must be empty and it will be generated
+   * in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the feed field is set. + */ + boolean hasFeed(); + /** + * + * + *
+   * Required. The feed details. The field `name` must be empty and it will be generated
+   * in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The feed. + */ + com.google.cloud.asset.v1.Feed getFeed(); + /** + * + * + *
+   * Required. The feed details. The field `name` must be empty and it will be generated
+   * in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder(); +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java new file mode 100644 index 000000000..09de65150 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +/** Protobuf type {@code google.cloud.asset.v1.DeleteFeedRequest} */ +public final class DeleteFeedRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.DeleteFeedRequest) + DeleteFeedRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteFeedRequest.newBuilder() to construct. + private DeleteFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteFeedRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteFeedRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteFeedRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.DeleteFeedRequest.class, + com.google.cloud.asset.v1.DeleteFeedRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the feed and it must be in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the feed and it must be in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.asset.v1.DeleteFeedRequest)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.DeleteFeedRequest other = + (com.google.cloud.asset.v1.DeleteFeedRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.DeleteFeedRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.DeleteFeedRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.asset.v1.DeleteFeedRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code google.cloud.asset.v1.DeleteFeedRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.DeleteFeedRequest) + com.google.cloud.asset.v1.DeleteFeedRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.DeleteFeedRequest.class, + com.google.cloud.asset.v1.DeleteFeedRequest.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.DeleteFeedRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.DeleteFeedRequest getDefaultInstanceForType() { + return com.google.cloud.asset.v1.DeleteFeedRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.DeleteFeedRequest build() { + com.google.cloud.asset.v1.DeleteFeedRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.DeleteFeedRequest buildPartial() { + com.google.cloud.asset.v1.DeleteFeedRequest result = + new com.google.cloud.asset.v1.DeleteFeedRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.asset.v1.DeleteFeedRequest) { + return mergeFrom((com.google.cloud.asset.v1.DeleteFeedRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.DeleteFeedRequest other) { + if (other == com.google.cloud.asset.v1.DeleteFeedRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.asset.v1.DeleteFeedRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.asset.v1.DeleteFeedRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the feed and it must be in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the feed and it must be in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the feed and it must be in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the feed and it must be in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the feed and it must be in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.DeleteFeedRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.DeleteFeedRequest) + private static final com.google.cloud.asset.v1.DeleteFeedRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.DeleteFeedRequest(); + } + + public static com.google.cloud.asset.v1.DeleteFeedRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFeedRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.DeleteFeedRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java new file mode 100644 index 000000000..a13fb365c --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface DeleteFeedRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.DeleteFeedRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the feed and it must be in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the feed and it must be in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java index 6dee01aca..3caef81eb 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java @@ -43,6 +43,12 @@ private ExportAssetsRequest() { contentType_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportAssetsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -92,9 +98,9 @@ private ExportAssetsRequest( case 26: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } assetTypes_.add(s); break; @@ -136,7 +142,7 @@ private ExportAssetsRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { assetTypes_ = assetTypes_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -159,7 +165,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.asset.v1.ExportAssetsRequest.Builder.class); } - private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** @@ -175,6 +180,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -200,6 +207,8 @@ public java.lang.String getParent() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -227,6 +236,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -243,6 +254,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -278,6 +291,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. */ public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_; @@ -294,6 +309,8 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * * * repeated string asset_types = 3; + * + * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); @@ -310,6 +327,9 @@ public int getAssetTypesCount() { * * * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. */ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); @@ -326,6 +346,9 @@ public java.lang.String getAssetTypes(int index) { * * * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. */ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); @@ -342,6 +365,8 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { * * * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -355,6 +380,8 @@ public int getContentTypeValue() { * * * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return The contentType. */ public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -376,6 +403,8 @@ public com.google.cloud.asset.v1.ContentType getContentType() { * * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfig_ != null; @@ -391,6 +420,8 @@ public boolean hasOutputConfig() { * * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The outputConfig. */ public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { return outputConfig_ == null @@ -681,7 +712,7 @@ public Builder clear() { readTimeBuilder_ = null; } assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); contentType_ = 0; if (outputConfigBuilder_ == null) { @@ -718,16 +749,15 @@ public com.google.cloud.asset.v1.ExportAssetsRequest buildPartial() { com.google.cloud.asset.v1.ExportAssetsRequest result = new com.google.cloud.asset.v1.ExportAssetsRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.parent_ = parent_; if (readTimeBuilder_ == null) { result.readTime_ = readTime_; } else { result.readTime_ = readTimeBuilder_.build(); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { assetTypes_ = assetTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.assetTypes_ = assetTypes_; result.contentType_ = contentType_; @@ -736,7 +766,6 @@ public com.google.cloud.asset.v1.ExportAssetsRequest buildPartial() { } else { result.outputConfig_ = outputConfigBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -796,7 +825,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ExportAssetsRequest other) { if (!other.assetTypes_.isEmpty()) { if (assetTypes_.isEmpty()) { assetTypes_ = other.assetTypes_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAssetTypesIsMutable(); assetTypes_.addAll(other.assetTypes_); @@ -854,6 +883,8 @@ public Builder mergeFrom( * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -879,6 +910,8 @@ public java.lang.String getParent() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -904,6 +937,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -927,6 +963,8 @@ public Builder setParent(java.lang.String value) { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -947,6 +985,9 @@ public Builder clearParent() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -977,6 +1018,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -993,6 +1036,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1174,9 +1219,9 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetTypesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } /** @@ -1191,6 +1236,8 @@ private void ensureAssetTypesIsMutable() { * * * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. */ public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_.getUnmodifiableView(); @@ -1207,6 +1254,8 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * * * repeated string asset_types = 3; + * + * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); @@ -1223,6 +1272,9 @@ public int getAssetTypesCount() { * * * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. */ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); @@ -1239,6 +1291,9 @@ public java.lang.String getAssetTypes(int index) { * * * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. */ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); @@ -1255,6 +1310,10 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { * * * repeated string asset_types = 3; + * + * @param index The index to set the value at. + * @param value The assetTypes to set. + * @return This builder for chaining. */ public Builder setAssetTypes(int index, java.lang.String value) { if (value == null) { @@ -1277,6 +1336,9 @@ public Builder setAssetTypes(int index, java.lang.String value) { * * * repeated string asset_types = 3; + * + * @param value The assetTypes to add. + * @return This builder for chaining. */ public Builder addAssetTypes(java.lang.String value) { if (value == null) { @@ -1299,6 +1361,9 @@ public Builder addAssetTypes(java.lang.String value) { * * * repeated string asset_types = 3; + * + * @param values The assetTypes to add. + * @return This builder for chaining. */ public Builder addAllAssetTypes(java.lang.Iterable values) { ensureAssetTypesIsMutable(); @@ -1318,10 +1383,12 @@ public Builder addAllAssetTypes(java.lang.Iterable values) { * * * repeated string asset_types = 3; + * + * @return This builder for chaining. */ public Builder clearAssetTypes() { assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1337,6 +1404,9 @@ public Builder clearAssetTypes() { * * * repeated string asset_types = 3; + * + * @param value The bytes of the assetTypes to add. + * @return This builder for chaining. */ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1359,6 +1429,8 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -1372,6 +1444,9 @@ public int getContentTypeValue() { * * * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @param value The enum numeric value on the wire for contentType to set. + * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { contentType_ = value; @@ -1387,6 +1462,8 @@ public Builder setContentTypeValue(int value) { * * * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return The contentType. */ public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -1403,6 +1480,9 @@ public com.google.cloud.asset.v1.ContentType getContentType() { * * * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @param value The contentType to set. + * @return This builder for chaining. */ public Builder setContentType(com.google.cloud.asset.v1.ContentType value) { if (value == null) { @@ -1422,6 +1502,8 @@ public Builder setContentType(com.google.cloud.asset.v1.ContentType value) { * * * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return This builder for chaining. */ public Builder clearContentType() { @@ -1447,6 +1529,8 @@ public Builder clearContentType() { * * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; @@ -1462,6 +1546,8 @@ public boolean hasOutputConfig() { * * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The outputConfig. */ public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java index 183538325..03a2dae4a 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java @@ -36,6 +36,8 @@ public interface ExportAssetsRequestOrBuilder * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ java.lang.String getParent(); /** @@ -51,6 +53,8 @@ public interface ExportAssetsRequestOrBuilder * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -66,6 +70,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -80,6 +86,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -109,6 +117,8 @@ public interface ExportAssetsRequestOrBuilder * * * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. */ java.util.List getAssetTypesList(); /** @@ -123,6 +133,8 @@ public interface ExportAssetsRequestOrBuilder * * * repeated string asset_types = 3; + * + * @return The count of assetTypes. */ int getAssetTypesCount(); /** @@ -137,6 +149,9 @@ public interface ExportAssetsRequestOrBuilder * * * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** @@ -151,6 +166,9 @@ public interface ExportAssetsRequestOrBuilder * * * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. */ com.google.protobuf.ByteString getAssetTypesBytes(int index); @@ -163,6 +181,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** @@ -174,6 +194,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return The contentType. */ com.google.cloud.asset.v1.ContentType getContentType(); @@ -188,6 +210,8 @@ public interface ExportAssetsRequestOrBuilder * * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** @@ -201,6 +225,8 @@ public interface ExportAssetsRequestOrBuilder * * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The outputConfig. */ com.google.cloud.asset.v1.OutputConfig getOutputConfig(); /** diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java index 63335f2cc..fe0d91afa 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java @@ -41,6 +41,12 @@ private ExportAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder b private ExportAssetsResponse() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportAssetsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ExportAssetsResponse( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -140,6 +145,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Timestamp read_time = 1; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -152,6 +159,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 1; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -180,6 +189,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.cloud.asset.v1.OutputConfig output_config = 2; + * + * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfig_ != null; @@ -193,6 +204,8 @@ public boolean hasOutputConfig() { * * * .google.cloud.asset.v1.OutputConfig output_config = 2; + * + * @return The outputConfig. */ public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { return outputConfig_ == null @@ -585,6 +598,8 @@ public Builder mergeFrom( * * * .google.protobuf.Timestamp read_time = 1; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -597,6 +612,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 1; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -761,6 +778,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.cloud.asset.v1.OutputConfig output_config = 2; + * + * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; @@ -774,6 +793,8 @@ public boolean hasOutputConfig() { * * * .google.cloud.asset.v1.OutputConfig output_config = 2; + * + * @return The outputConfig. */ public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java index d7d9bbc78..7548b5b8a 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java @@ -31,6 +31,8 @@ public interface ExportAssetsResponseOrBuilder * * * .google.protobuf.Timestamp read_time = 1; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -41,6 +43,8 @@ public interface ExportAssetsResponseOrBuilder * * * .google.protobuf.Timestamp read_time = 1; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -63,6 +67,8 @@ public interface ExportAssetsResponseOrBuilder * * * .google.cloud.asset.v1.OutputConfig output_config = 2; + * + * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** @@ -74,6 +80,8 @@ public interface ExportAssetsResponseOrBuilder * * * .google.cloud.asset.v1.OutputConfig output_config = 2; + * + * @return The outputConfig. */ com.google.cloud.asset.v1.OutputConfig getOutputConfig(); /** diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java new file mode 100644 index 000000000..7fc15b747 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java @@ -0,0 +1,1860 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +/** + * + * + *
+ * An asset feed used to export asset updates to a destinations.
+ * An asset feed filter controls what updates are exported.
+ * The asset feed must be created within a project, organization, or
+ * folder. Supported destinations are:
+ * Cloud Pub/Sub topics.
+ * 
+ * + * Protobuf type {@code google.cloud.asset.v1.Feed} + */ +public final class Feed extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.Feed) + FeedOrBuilder { + private static final long serialVersionUID = 0L; + // Use Feed.newBuilder() to construct. + private Feed(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Feed() { + name_ = ""; + assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + contentType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Feed(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Feed( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + assetNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + assetNames_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + assetTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + assetTypes_.add(s); + break; + } + case 32: + { + int rawValue = input.readEnum(); + + contentType_ = rawValue; + break; + } + case 42: + { + com.google.cloud.asset.v1.FeedOutputConfig.Builder subBuilder = null; + if (feedOutputConfig_ != null) { + subBuilder = feedOutputConfig_.toBuilder(); + } + feedOutputConfig_ = + input.readMessage( + com.google.cloud.asset.v1.FeedOutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(feedOutputConfig_); + feedOutputConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + assetNames_ = assetNames_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + assetTypes_ = assetTypes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_Feed_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.Feed.class, com.google.cloud.asset.v1.Feed.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The format will be
+   * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
+   * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
+   * organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
+   * The client-assigned feed identifier must be unique within the parent
+   * project/folder/organization.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The format will be
+   * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
+   * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
+   * organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
+   * The client-assigned feed identifier must be unique within the parent
+   * project/folder/organization.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSET_NAMES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList assetNames_; + /** + * + * + *
+   * A list of the full names of the assets to receive updates. You must specify
+   * either or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed. For
+   * example:
+   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+   * See [Resource
+   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+   * for more info.
+   * 
+ * + * repeated string asset_names = 2; + * + * @return A list containing the assetNames. + */ + public com.google.protobuf.ProtocolStringList getAssetNamesList() { + return assetNames_; + } + /** + * + * + *
+   * A list of the full names of the assets to receive updates. You must specify
+   * either or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed. For
+   * example:
+   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+   * See [Resource
+   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+   * for more info.
+   * 
+ * + * repeated string asset_names = 2; + * + * @return The count of assetNames. + */ + public int getAssetNamesCount() { + return assetNames_.size(); + } + /** + * + * + *
+   * A list of the full names of the assets to receive updates. You must specify
+   * either or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed. For
+   * example:
+   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+   * See [Resource
+   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+   * for more info.
+   * 
+ * + * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. + */ + public java.lang.String getAssetNames(int index) { + return assetNames_.get(index); + } + /** + * + * + *
+   * A list of the full names of the assets to receive updates. You must specify
+   * either or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed. For
+   * example:
+   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+   * See [Resource
+   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+   * for more info.
+   * 
+ * + * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. + */ + public com.google.protobuf.ByteString getAssetNamesBytes(int index) { + return assetNames_.getByteString(index); + } + + public static final int ASSET_TYPES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList assetTypes_; + /** + * + * + *
+   * A list of types of the assets to receive updates. You must specify either
+   * or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed.
+   * For example:
+   * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+   * for all supported asset types.
+   * 
+ * + * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. + */ + public com.google.protobuf.ProtocolStringList getAssetTypesList() { + return assetTypes_; + } + /** + * + * + *
+   * A list of types of the assets to receive updates. You must specify either
+   * or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed.
+   * For example:
+   * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+   * for all supported asset types.
+   * 
+ * + * repeated string asset_types = 3; + * + * @return The count of assetTypes. + */ + public int getAssetTypesCount() { + return assetTypes_.size(); + } + /** + * + * + *
+   * A list of types of the assets to receive updates. You must specify either
+   * or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed.
+   * For example:
+   * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+   * for all supported asset types.
+   * 
+ * + * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. + */ + public java.lang.String getAssetTypes(int index) { + return assetTypes_.get(index); + } + /** + * + * + *
+   * A list of types of the assets to receive updates. You must specify either
+   * or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed.
+   * For example:
+   * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+   * for all supported asset types.
+   * 
+ * + * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. + */ + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + return assetTypes_.getByteString(index); + } + + public static final int CONTENT_TYPE_FIELD_NUMBER = 4; + private int contentType_; + /** + * + * + *
+   * Asset content type. If not specified, no content but the asset name and
+   * type will be returned.
+   * 
+ * + * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. + */ + public int getContentTypeValue() { + return contentType_; + } + /** + * + * + *
+   * Asset content type. If not specified, no content but the asset name and
+   * type will be returned.
+   * 
+ * + * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return The contentType. + */ + public com.google.cloud.asset.v1.ContentType getContentType() { + @SuppressWarnings("deprecation") + com.google.cloud.asset.v1.ContentType result = + com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; + } + + public static final int FEED_OUTPUT_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.asset.v1.FeedOutputConfig feedOutputConfig_; + /** + * + * + *
+   * Required. Feed output configuration defining where the asset updates are
+   * published to.
+   * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the feedOutputConfig field is set. + */ + public boolean hasFeedOutputConfig() { + return feedOutputConfig_ != null; + } + /** + * + * + *
+   * Required. Feed output configuration defining where the asset updates are
+   * published to.
+   * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feedOutputConfig. + */ + public com.google.cloud.asset.v1.FeedOutputConfig getFeedOutputConfig() { + return feedOutputConfig_ == null + ? com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() + : feedOutputConfig_; + } + /** + * + * + *
+   * Required. Feed output configuration defining where the asset updates are
+   * published to.
+   * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder() { + return getFeedOutputConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < assetNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, assetNames_.getRaw(i)); + } + for (int i = 0; i < assetTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i)); + } + if (contentType_ + != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, contentType_); + } + if (feedOutputConfig_ != null) { + output.writeMessage(5, getFeedOutputConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < assetNames_.size(); i++) { + dataSize += computeStringSizeNoTag(assetNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getAssetNamesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < assetTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(assetTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getAssetTypesList().size(); + } + if (contentType_ + != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_); + } + if (feedOutputConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFeedOutputConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.asset.v1.Feed)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.Feed other = (com.google.cloud.asset.v1.Feed) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAssetNamesList().equals(other.getAssetNamesList())) return false; + if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; + if (contentType_ != other.contentType_) return false; + if (hasFeedOutputConfig() != other.hasFeedOutputConfig()) return false; + if (hasFeedOutputConfig()) { + if (!getFeedOutputConfig().equals(other.getFeedOutputConfig())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getAssetNamesCount() > 0) { + hash = (37 * hash) + ASSET_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getAssetNamesList().hashCode(); + } + if (getAssetTypesCount() > 0) { + hash = (37 * hash) + ASSET_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getAssetTypesList().hashCode(); + } + hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + contentType_; + if (hasFeedOutputConfig()) { + hash = (37 * hash) + FEED_OUTPUT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFeedOutputConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.Feed parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.Feed parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.Feed parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.Feed parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.Feed parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.Feed parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.Feed parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.Feed parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.Feed parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.Feed parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.Feed parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.Feed parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.asset.v1.Feed prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * An asset feed used to export asset updates to a destinations.
+   * An asset feed filter controls what updates are exported.
+   * The asset feed must be created within a project, organization, or
+   * folder. Supported destinations are:
+   * Cloud Pub/Sub topics.
+   * 
+ * + * Protobuf type {@code google.cloud.asset.v1.Feed} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.Feed) + com.google.cloud.asset.v1.FeedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_Feed_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.Feed.class, com.google.cloud.asset.v1.Feed.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.Feed.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + contentType_ = 0; + + if (feedOutputConfigBuilder_ == null) { + feedOutputConfig_ = null; + } else { + feedOutputConfig_ = null; + feedOutputConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_Feed_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.Feed getDefaultInstanceForType() { + return com.google.cloud.asset.v1.Feed.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.Feed build() { + com.google.cloud.asset.v1.Feed result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.Feed buildPartial() { + com.google.cloud.asset.v1.Feed result = new com.google.cloud.asset.v1.Feed(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + assetNames_ = assetNames_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.assetNames_ = assetNames_; + if (((bitField0_ & 0x00000002) != 0)) { + assetTypes_ = assetTypes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.assetTypes_ = assetTypes_; + result.contentType_ = contentType_; + if (feedOutputConfigBuilder_ == null) { + result.feedOutputConfig_ = feedOutputConfig_; + } else { + result.feedOutputConfig_ = feedOutputConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.asset.v1.Feed) { + return mergeFrom((com.google.cloud.asset.v1.Feed) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.Feed other) { + if (other == com.google.cloud.asset.v1.Feed.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.assetNames_.isEmpty()) { + if (assetNames_.isEmpty()) { + assetNames_ = other.assetNames_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAssetNamesIsMutable(); + assetNames_.addAll(other.assetNames_); + } + onChanged(); + } + if (!other.assetTypes_.isEmpty()) { + if (assetTypes_.isEmpty()) { + assetTypes_ = other.assetTypes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAssetTypesIsMutable(); + assetTypes_.addAll(other.assetTypes_); + } + onChanged(); + } + if (other.contentType_ != 0) { + setContentTypeValue(other.getContentTypeValue()); + } + if (other.hasFeedOutputConfig()) { + mergeFeedOutputConfig(other.getFeedOutputConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.asset.v1.Feed parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.asset.v1.Feed) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The format will be
+     * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
+     * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
+     * organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
+     * The client-assigned feed identifier must be unique within the parent
+     * project/folder/organization.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The format will be
+     * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
+     * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
+     * organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
+     * The client-assigned feed identifier must be unique within the parent
+     * project/folder/organization.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The format will be
+     * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
+     * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
+     * organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
+     * The client-assigned feed identifier must be unique within the parent
+     * project/folder/organization.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The format will be
+     * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
+     * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
+     * organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
+     * The client-assigned feed identifier must be unique within the parent
+     * project/folder/organization.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The format will be
+     * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
+     * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
+     * organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
+     * The client-assigned feed identifier must be unique within the parent
+     * project/folder/organization.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList assetNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAssetNamesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + assetNames_ = new com.google.protobuf.LazyStringArrayList(assetNames_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * A list of the full names of the assets to receive updates. You must specify
+     * either or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed. For
+     * example:
+     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * See [Resource
+     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * for more info.
+     * 
+ * + * repeated string asset_names = 2; + * + * @return A list containing the assetNames. + */ + public com.google.protobuf.ProtocolStringList getAssetNamesList() { + return assetNames_.getUnmodifiableView(); + } + /** + * + * + *
+     * A list of the full names of the assets to receive updates. You must specify
+     * either or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed. For
+     * example:
+     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * See [Resource
+     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * for more info.
+     * 
+ * + * repeated string asset_names = 2; + * + * @return The count of assetNames. + */ + public int getAssetNamesCount() { + return assetNames_.size(); + } + /** + * + * + *
+     * A list of the full names of the assets to receive updates. You must specify
+     * either or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed. For
+     * example:
+     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * See [Resource
+     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * for more info.
+     * 
+ * + * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. + */ + public java.lang.String getAssetNames(int index) { + return assetNames_.get(index); + } + /** + * + * + *
+     * A list of the full names of the assets to receive updates. You must specify
+     * either or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed. For
+     * example:
+     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * See [Resource
+     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * for more info.
+     * 
+ * + * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. + */ + public com.google.protobuf.ByteString getAssetNamesBytes(int index) { + return assetNames_.getByteString(index); + } + /** + * + * + *
+     * A list of the full names of the assets to receive updates. You must specify
+     * either or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed. For
+     * example:
+     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * See [Resource
+     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * for more info.
+     * 
+ * + * repeated string asset_names = 2; + * + * @param index The index to set the value at. + * @param value The assetNames to set. + * @return This builder for chaining. + */ + public Builder setAssetNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); + assetNames_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of the full names of the assets to receive updates. You must specify
+     * either or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed. For
+     * example:
+     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * See [Resource
+     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * for more info.
+     * 
+ * + * repeated string asset_names = 2; + * + * @param value The assetNames to add. + * @return This builder for chaining. + */ + public Builder addAssetNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); + assetNames_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of the full names of the assets to receive updates. You must specify
+     * either or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed. For
+     * example:
+     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * See [Resource
+     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * for more info.
+     * 
+ * + * repeated string asset_names = 2; + * + * @param values The assetNames to add. + * @return This builder for chaining. + */ + public Builder addAllAssetNames(java.lang.Iterable values) { + ensureAssetNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetNames_); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of the full names of the assets to receive updates. You must specify
+     * either or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed. For
+     * example:
+     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * See [Resource
+     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * for more info.
+     * 
+ * + * repeated string asset_names = 2; + * + * @return This builder for chaining. + */ + public Builder clearAssetNames() { + assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of the full names of the assets to receive updates. You must specify
+     * either or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed. For
+     * example:
+     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+     * See [Resource
+     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+     * for more info.
+     * 
+ * + * repeated string asset_names = 2; + * + * @param value The bytes of the assetNames to add. + * @return This builder for chaining. + */ + public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAssetNamesIsMutable(); + assetNames_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList assetTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAssetTypesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * A list of types of the assets to receive updates. You must specify either
+     * or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed.
+     * For example:
+     * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+     * for all supported asset types.
+     * 
+ * + * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. + */ + public com.google.protobuf.ProtocolStringList getAssetTypesList() { + return assetTypes_.getUnmodifiableView(); + } + /** + * + * + *
+     * A list of types of the assets to receive updates. You must specify either
+     * or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed.
+     * For example:
+     * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+     * for all supported asset types.
+     * 
+ * + * repeated string asset_types = 3; + * + * @return The count of assetTypes. + */ + public int getAssetTypesCount() { + return assetTypes_.size(); + } + /** + * + * + *
+     * A list of types of the assets to receive updates. You must specify either
+     * or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed.
+     * For example:
+     * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+     * for all supported asset types.
+     * 
+ * + * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. + */ + public java.lang.String getAssetTypes(int index) { + return assetTypes_.get(index); + } + /** + * + * + *
+     * A list of types of the assets to receive updates. You must specify either
+     * or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed.
+     * For example:
+     * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+     * for all supported asset types.
+     * 
+ * + * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. + */ + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + return assetTypes_.getByteString(index); + } + /** + * + * + *
+     * A list of types of the assets to receive updates. You must specify either
+     * or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed.
+     * For example:
+     * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+     * for all supported asset types.
+     * 
+ * + * repeated string asset_types = 3; + * + * @param index The index to set the value at. + * @param value The assetTypes to set. + * @return This builder for chaining. + */ + public Builder setAssetTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); + assetTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of types of the assets to receive updates. You must specify either
+     * or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed.
+     * For example:
+     * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+     * for all supported asset types.
+     * 
+ * + * repeated string asset_types = 3; + * + * @param value The assetTypes to add. + * @return This builder for chaining. + */ + public Builder addAssetTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); + assetTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of types of the assets to receive updates. You must specify either
+     * or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed.
+     * For example:
+     * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+     * for all supported asset types.
+     * 
+ * + * repeated string asset_types = 3; + * + * @param values The assetTypes to add. + * @return This builder for chaining. + */ + public Builder addAllAssetTypes(java.lang.Iterable values) { + ensureAssetTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of types of the assets to receive updates. You must specify either
+     * or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed.
+     * For example:
+     * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+     * for all supported asset types.
+     * 
+ * + * repeated string asset_types = 3; + * + * @return This builder for chaining. + */ + public Builder clearAssetTypes() { + assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of types of the assets to receive updates. You must specify either
+     * or both of asset_names and asset_types. Only asset updates matching
+     * specified asset_names and asset_types are exported to the feed.
+     * For example:
+     * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+     * for all supported asset types.
+     * 
+ * + * repeated string asset_types = 3; + * + * @param value The bytes of the assetTypes to add. + * @return This builder for chaining. + */ + public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAssetTypesIsMutable(); + assetTypes_.add(value); + onChanged(); + return this; + } + + private int contentType_ = 0; + /** + * + * + *
+     * Asset content type. If not specified, no content but the asset name and
+     * type will be returned.
+     * 
+ * + * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. + */ + public int getContentTypeValue() { + return contentType_; + } + /** + * + * + *
+     * Asset content type. If not specified, no content but the asset name and
+     * type will be returned.
+     * 
+ * + * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @param value The enum numeric value on the wire for contentType to set. + * @return This builder for chaining. + */ + public Builder setContentTypeValue(int value) { + contentType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Asset content type. If not specified, no content but the asset name and
+     * type will be returned.
+     * 
+ * + * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return The contentType. + */ + public com.google.cloud.asset.v1.ContentType getContentType() { + @SuppressWarnings("deprecation") + com.google.cloud.asset.v1.ContentType result = + com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Asset content type. If not specified, no content but the asset name and
+     * type will be returned.
+     * 
+ * + * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @param value The contentType to set. + * @return This builder for chaining. + */ + public Builder setContentType(com.google.cloud.asset.v1.ContentType value) { + if (value == null) { + throw new NullPointerException(); + } + + contentType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Asset content type. If not specified, no content but the asset name and
+     * type will be returned.
+     * 
+ * + * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearContentType() { + + contentType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.asset.v1.FeedOutputConfig feedOutputConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.FeedOutputConfig, + com.google.cloud.asset.v1.FeedOutputConfig.Builder, + com.google.cloud.asset.v1.FeedOutputConfigOrBuilder> + feedOutputConfigBuilder_; + /** + * + * + *
+     * Required. Feed output configuration defining where the asset updates are
+     * published to.
+     * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the feedOutputConfig field is set. + */ + public boolean hasFeedOutputConfig() { + return feedOutputConfigBuilder_ != null || feedOutputConfig_ != null; + } + /** + * + * + *
+     * Required. Feed output configuration defining where the asset updates are
+     * published to.
+     * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feedOutputConfig. + */ + public com.google.cloud.asset.v1.FeedOutputConfig getFeedOutputConfig() { + if (feedOutputConfigBuilder_ == null) { + return feedOutputConfig_ == null + ? com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() + : feedOutputConfig_; + } else { + return feedOutputConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Feed output configuration defining where the asset updates are
+     * published to.
+     * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeedOutputConfig(com.google.cloud.asset.v1.FeedOutputConfig value) { + if (feedOutputConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + feedOutputConfig_ = value; + onChanged(); + } else { + feedOutputConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Feed output configuration defining where the asset updates are
+     * published to.
+     * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeedOutputConfig( + com.google.cloud.asset.v1.FeedOutputConfig.Builder builderForValue) { + if (feedOutputConfigBuilder_ == null) { + feedOutputConfig_ = builderForValue.build(); + onChanged(); + } else { + feedOutputConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Feed output configuration defining where the asset updates are
+     * published to.
+     * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFeedOutputConfig(com.google.cloud.asset.v1.FeedOutputConfig value) { + if (feedOutputConfigBuilder_ == null) { + if (feedOutputConfig_ != null) { + feedOutputConfig_ = + com.google.cloud.asset.v1.FeedOutputConfig.newBuilder(feedOutputConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + feedOutputConfig_ = value; + } + onChanged(); + } else { + feedOutputConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Feed output configuration defining where the asset updates are
+     * published to.
+     * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFeedOutputConfig() { + if (feedOutputConfigBuilder_ == null) { + feedOutputConfig_ = null; + onChanged(); + } else { + feedOutputConfig_ = null; + feedOutputConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Feed output configuration defining where the asset updates are
+     * published to.
+     * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.asset.v1.FeedOutputConfig.Builder getFeedOutputConfigBuilder() { + + onChanged(); + return getFeedOutputConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Feed output configuration defining where the asset updates are
+     * published to.
+     * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder() { + if (feedOutputConfigBuilder_ != null) { + return feedOutputConfigBuilder_.getMessageOrBuilder(); + } else { + return feedOutputConfig_ == null + ? com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() + : feedOutputConfig_; + } + } + /** + * + * + *
+     * Required. Feed output configuration defining where the asset updates are
+     * published to.
+     * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.FeedOutputConfig, + com.google.cloud.asset.v1.FeedOutputConfig.Builder, + com.google.cloud.asset.v1.FeedOutputConfigOrBuilder> + getFeedOutputConfigFieldBuilder() { + if (feedOutputConfigBuilder_ == null) { + feedOutputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.FeedOutputConfig, + com.google.cloud.asset.v1.FeedOutputConfig.Builder, + com.google.cloud.asset.v1.FeedOutputConfigOrBuilder>( + getFeedOutputConfig(), getParentForChildren(), isClean()); + feedOutputConfig_ = null; + } + return feedOutputConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.Feed) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.Feed) + private static final com.google.cloud.asset.v1.Feed DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.Feed(); + } + + public static com.google.cloud.asset.v1.Feed getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feed parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feed(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.Feed getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java new file mode 100644 index 000000000..3445b75c6 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java @@ -0,0 +1,182 @@ +/* + * Copyright 2019 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. + */ + +package com.google.cloud.asset.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class FeedName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/feeds/{feed}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String feed; + + public String getProject() { + return project; + } + + public String getFeed() { + return feed; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private FeedName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + feed = Preconditions.checkNotNull(builder.getFeed()); + } + + public static FeedName of(String project, String feed) { + return newBuilder().setProject(project).setFeed(feed).build(); + } + + public static String format(String project, String feed) { + return newBuilder().setProject(project).setFeed(feed).build().toString(); + } + + public static FeedName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "FeedName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("feed")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (FeedName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("feed", feed); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "feed", feed); + } + + /** Builder for FeedName. */ + public static class Builder { + + private String project; + private String feed; + + public String getProject() { + return project; + } + + public String getFeed() { + return feed; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setFeed(String feed) { + this.feed = feed; + return this; + } + + private Builder() {} + + private Builder(FeedName feedName) { + project = feedName.project; + feed = feedName.feed; + } + + public FeedName build() { + return new FeedName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof FeedName) { + FeedName that = (FeedName) o; + return (this.project.equals(that.project)) && (this.feed.equals(that.feed)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= feed.hashCode(); + return h; + } +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java new file mode 100644 index 000000000..f588bd710 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java @@ -0,0 +1,285 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface FeedOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.Feed) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The format will be
+   * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
+   * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
+   * organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
+   * The client-assigned feed identifier must be unique within the parent
+   * project/folder/organization.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The format will be
+   * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
+   * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
+   * organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
+   * The client-assigned feed identifier must be unique within the parent
+   * project/folder/organization.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * A list of the full names of the assets to receive updates. You must specify
+   * either or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed. For
+   * example:
+   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+   * See [Resource
+   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+   * for more info.
+   * 
+ * + * repeated string asset_names = 2; + * + * @return A list containing the assetNames. + */ + java.util.List getAssetNamesList(); + /** + * + * + *
+   * A list of the full names of the assets to receive updates. You must specify
+   * either or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed. For
+   * example:
+   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+   * See [Resource
+   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+   * for more info.
+   * 
+ * + * repeated string asset_names = 2; + * + * @return The count of assetNames. + */ + int getAssetNamesCount(); + /** + * + * + *
+   * A list of the full names of the assets to receive updates. You must specify
+   * either or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed. For
+   * example:
+   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+   * See [Resource
+   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+   * for more info.
+   * 
+ * + * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. + */ + java.lang.String getAssetNames(int index); + /** + * + * + *
+   * A list of the full names of the assets to receive updates. You must specify
+   * either or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed. For
+   * example:
+   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
+   * See [Resource
+   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
+   * for more info.
+   * 
+ * + * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. + */ + com.google.protobuf.ByteString getAssetNamesBytes(int index); + + /** + * + * + *
+   * A list of types of the assets to receive updates. You must specify either
+   * or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed.
+   * For example:
+   * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+   * for all supported asset types.
+   * 
+ * + * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. + */ + java.util.List getAssetTypesList(); + /** + * + * + *
+   * A list of types of the assets to receive updates. You must specify either
+   * or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed.
+   * For example:
+   * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+   * for all supported asset types.
+   * 
+ * + * repeated string asset_types = 3; + * + * @return The count of assetTypes. + */ + int getAssetTypesCount(); + /** + * + * + *
+   * A list of types of the assets to receive updates. You must specify either
+   * or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed.
+   * For example:
+   * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+   * for all supported asset types.
+   * 
+ * + * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. + */ + java.lang.String getAssetTypes(int index); + /** + * + * + *
+   * A list of types of the assets to receive updates. You must specify either
+   * or both of asset_names and asset_types. Only asset updates matching
+   * specified asset_names and asset_types are exported to the feed.
+   * For example:
+   * "compute.googleapis.com/Disk" See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
+   * for all supported asset types.
+   * 
+ * + * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. + */ + com.google.protobuf.ByteString getAssetTypesBytes(int index); + + /** + * + * + *
+   * Asset content type. If not specified, no content but the asset name and
+   * type will be returned.
+   * 
+ * + * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. + */ + int getContentTypeValue(); + /** + * + * + *
+   * Asset content type. If not specified, no content but the asset name and
+   * type will be returned.
+   * 
+ * + * .google.cloud.asset.v1.ContentType content_type = 4; + * + * @return The contentType. + */ + com.google.cloud.asset.v1.ContentType getContentType(); + + /** + * + * + *
+   * Required. Feed output configuration defining where the asset updates are
+   * published to.
+   * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the feedOutputConfig field is set. + */ + boolean hasFeedOutputConfig(); + /** + * + * + *
+   * Required. Feed output configuration defining where the asset updates are
+   * published to.
+   * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feedOutputConfig. + */ + com.google.cloud.asset.v1.FeedOutputConfig getFeedOutputConfig(); + /** + * + * + *
+   * Required. Feed output configuration defining where the asset updates are
+   * published to.
+   * 
+ * + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder(); +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java new file mode 100644 index 000000000..25cc6c2b1 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java @@ -0,0 +1,828 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +/** + * + * + *
+ * Output configuration for asset feed destination.
+ * 
+ * + * Protobuf type {@code google.cloud.asset.v1.FeedOutputConfig} + */ +public final class FeedOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.FeedOutputConfig) + FeedOutputConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use FeedOutputConfig.newBuilder() to construct. + private FeedOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FeedOutputConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeedOutputConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FeedOutputConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.asset.v1.PubsubDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = + ((com.google.cloud.asset.v1.PubsubDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.asset.v1.PubsubDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.asset.v1.PubsubDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.FeedOutputConfig.class, + com.google.cloud.asset.v1.FeedOutputConfig.Builder.class); + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PUBSUB_DESTINATION(1), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 1: + return PUBSUB_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int PUBSUB_DESTINATION_FIELD_NUMBER = 1; + /** + * + * + *
+   * Destination on Cloud Pubsub.
+   * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + * + * @return Whether the pubsubDestination field is set. + */ + public boolean hasPubsubDestination() { + return destinationCase_ == 1; + } + /** + * + * + *
+   * Destination on Cloud Pubsub.
+   * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + * + * @return The pubsubDestination. + */ + public com.google.cloud.asset.v1.PubsubDestination getPubsubDestination() { + if (destinationCase_ == 1) { + return (com.google.cloud.asset.v1.PubsubDestination) destination_; + } + return com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance(); + } + /** + * + * + *
+   * Destination on Cloud Pubsub.
+   * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + */ + public com.google.cloud.asset.v1.PubsubDestinationOrBuilder getPubsubDestinationOrBuilder() { + if (destinationCase_ == 1) { + return (com.google.cloud.asset.v1.PubsubDestination) destination_; + } + return com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (destinationCase_ == 1) { + output.writeMessage(1, (com.google.cloud.asset.v1.PubsubDestination) destination_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (destinationCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.asset.v1.PubsubDestination) destination_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.asset.v1.FeedOutputConfig)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.FeedOutputConfig other = + (com.google.cloud.asset.v1.FeedOutputConfig) obj; + + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 1: + if (!getPubsubDestination().equals(other.getPubsubDestination())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (destinationCase_) { + case 1: + hash = (37 * hash) + PUBSUB_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getPubsubDestination().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.FeedOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.FeedOutputConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.asset.v1.FeedOutputConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output configuration for asset feed destination.
+   * 
+ * + * Protobuf type {@code google.cloud.asset.v1.FeedOutputConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.FeedOutputConfig) + com.google.cloud.asset.v1.FeedOutputConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.FeedOutputConfig.class, + com.google.cloud.asset.v1.FeedOutputConfig.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.FeedOutputConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.FeedOutputConfig getDefaultInstanceForType() { + return com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.FeedOutputConfig build() { + com.google.cloud.asset.v1.FeedOutputConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.FeedOutputConfig buildPartial() { + com.google.cloud.asset.v1.FeedOutputConfig result = + new com.google.cloud.asset.v1.FeedOutputConfig(this); + if (destinationCase_ == 1) { + if (pubsubDestinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = pubsubDestinationBuilder_.build(); + } + } + result.destinationCase_ = destinationCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.asset.v1.FeedOutputConfig) { + return mergeFrom((com.google.cloud.asset.v1.FeedOutputConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.FeedOutputConfig other) { + if (other == com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance()) return this; + switch (other.getDestinationCase()) { + case PUBSUB_DESTINATION: + { + mergePubsubDestination(other.getPubsubDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.asset.v1.FeedOutputConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.asset.v1.FeedOutputConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.PubsubDestination, + com.google.cloud.asset.v1.PubsubDestination.Builder, + com.google.cloud.asset.v1.PubsubDestinationOrBuilder> + pubsubDestinationBuilder_; + /** + * + * + *
+     * Destination on Cloud Pubsub.
+     * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + * + * @return Whether the pubsubDestination field is set. + */ + public boolean hasPubsubDestination() { + return destinationCase_ == 1; + } + /** + * + * + *
+     * Destination on Cloud Pubsub.
+     * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + * + * @return The pubsubDestination. + */ + public com.google.cloud.asset.v1.PubsubDestination getPubsubDestination() { + if (pubsubDestinationBuilder_ == null) { + if (destinationCase_ == 1) { + return (com.google.cloud.asset.v1.PubsubDestination) destination_; + } + return com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 1) { + return pubsubDestinationBuilder_.getMessage(); + } + return com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * Destination on Cloud Pubsub.
+     * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + */ + public Builder setPubsubDestination(com.google.cloud.asset.v1.PubsubDestination value) { + if (pubsubDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + pubsubDestinationBuilder_.setMessage(value); + } + destinationCase_ = 1; + return this; + } + /** + * + * + *
+     * Destination on Cloud Pubsub.
+     * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + */ + public Builder setPubsubDestination( + com.google.cloud.asset.v1.PubsubDestination.Builder builderForValue) { + if (pubsubDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + pubsubDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 1; + return this; + } + /** + * + * + *
+     * Destination on Cloud Pubsub.
+     * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + */ + public Builder mergePubsubDestination(com.google.cloud.asset.v1.PubsubDestination value) { + if (pubsubDestinationBuilder_ == null) { + if (destinationCase_ == 1 + && destination_ != com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.asset.v1.PubsubDestination.newBuilder( + (com.google.cloud.asset.v1.PubsubDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 1) { + pubsubDestinationBuilder_.mergeFrom(value); + } + pubsubDestinationBuilder_.setMessage(value); + } + destinationCase_ = 1; + return this; + } + /** + * + * + *
+     * Destination on Cloud Pubsub.
+     * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + */ + public Builder clearPubsubDestination() { + if (pubsubDestinationBuilder_ == null) { + if (destinationCase_ == 1) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 1) { + destinationCase_ = 0; + destination_ = null; + } + pubsubDestinationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Destination on Cloud Pubsub.
+     * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + */ + public com.google.cloud.asset.v1.PubsubDestination.Builder getPubsubDestinationBuilder() { + return getPubsubDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Destination on Cloud Pubsub.
+     * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + */ + public com.google.cloud.asset.v1.PubsubDestinationOrBuilder getPubsubDestinationOrBuilder() { + if ((destinationCase_ == 1) && (pubsubDestinationBuilder_ != null)) { + return pubsubDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 1) { + return (com.google.cloud.asset.v1.PubsubDestination) destination_; + } + return com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * Destination on Cloud Pubsub.
+     * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.PubsubDestination, + com.google.cloud.asset.v1.PubsubDestination.Builder, + com.google.cloud.asset.v1.PubsubDestinationOrBuilder> + getPubsubDestinationFieldBuilder() { + if (pubsubDestinationBuilder_ == null) { + if (!(destinationCase_ == 1)) { + destination_ = com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance(); + } + pubsubDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.PubsubDestination, + com.google.cloud.asset.v1.PubsubDestination.Builder, + com.google.cloud.asset.v1.PubsubDestinationOrBuilder>( + (com.google.cloud.asset.v1.PubsubDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 1; + onChanged(); + ; + return pubsubDestinationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.FeedOutputConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.FeedOutputConfig) + private static final com.google.cloud.asset.v1.FeedOutputConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.FeedOutputConfig(); + } + + public static com.google.cloud.asset.v1.FeedOutputConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeedOutputConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.FeedOutputConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java new file mode 100644 index 000000000..182fe9672 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface FeedOutputConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.FeedOutputConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Destination on Cloud Pubsub.
+   * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + * + * @return Whether the pubsubDestination field is set. + */ + boolean hasPubsubDestination(); + /** + * + * + *
+   * Destination on Cloud Pubsub.
+   * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + * + * @return The pubsubDestination. + */ + com.google.cloud.asset.v1.PubsubDestination getPubsubDestination(); + /** + * + * + *
+   * Destination on Cloud Pubsub.
+   * 
+ * + * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + */ + com.google.cloud.asset.v1.PubsubDestinationOrBuilder getPubsubDestinationOrBuilder(); + + public com.google.cloud.asset.v1.FeedOutputConfig.DestinationCase getDestinationCase(); +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java index 004d5bb70..1a6de2390 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java @@ -39,6 +39,12 @@ private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder private GcsDestination() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsDestination(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private GcsDestination( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -114,7 +119,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int objectUriCase_ = 0; private java.lang.Object objectUri_; - public enum ObjectUriCase implements com.google.protobuf.Internal.EnumLite { + public enum ObjectUriCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { URI(1), URI_PREFIX(2), OBJECTURI_NOT_SET(0); @@ -123,7 +131,11 @@ public enum ObjectUriCase implements com.google.protobuf.Internal.EnumLite { private ObjectUriCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static ObjectUriCase valueOf(int value) { return forNumber(value); @@ -164,6 +176,8 @@ public ObjectUriCase getObjectUriCase() { * * * string uri = 1; + * + * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = ""; @@ -193,6 +207,8 @@ public java.lang.String getUri() { * * * string uri = 1; + * + * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; @@ -228,6 +244,8 @@ public com.google.protobuf.ByteString getUriBytes() { * * * string uri_prefix = 2; + * + * @return The uriPrefix. */ public java.lang.String getUriPrefix() { java.lang.Object ref = ""; @@ -261,6 +279,8 @@ public java.lang.String getUriPrefix() { * * * string uri_prefix = 2; + * + * @return The bytes for uriPrefix. */ public com.google.protobuf.ByteString getUriPrefixBytes() { java.lang.Object ref = ""; @@ -668,6 +688,8 @@ public Builder clearObjectUri() { * * * string uri = 1; + * + * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = ""; @@ -697,6 +719,8 @@ public java.lang.String getUri() { * * * string uri = 1; + * + * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; @@ -726,6 +750,9 @@ public com.google.protobuf.ByteString getUriBytes() { * * * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. */ public Builder setUri(java.lang.String value) { if (value == null) { @@ -748,6 +775,8 @@ public Builder setUri(java.lang.String value) { * * * string uri = 1; + * + * @return This builder for chaining. */ public Builder clearUri() { if (objectUriCase_ == 1) { @@ -769,6 +798,9 @@ public Builder clearUri() { * * * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. */ public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -797,6 +829,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { * * * string uri_prefix = 2; + * + * @return The uriPrefix. */ public java.lang.String getUriPrefix() { java.lang.Object ref = ""; @@ -830,6 +864,8 @@ public java.lang.String getUriPrefix() { * * * string uri_prefix = 2; + * + * @return The bytes for uriPrefix. */ public com.google.protobuf.ByteString getUriPrefixBytes() { java.lang.Object ref = ""; @@ -863,6 +899,9 @@ public com.google.protobuf.ByteString getUriPrefixBytes() { * * * string uri_prefix = 2; + * + * @param value The uriPrefix to set. + * @return This builder for chaining. */ public Builder setUriPrefix(java.lang.String value) { if (value == null) { @@ -889,6 +928,8 @@ public Builder setUriPrefix(java.lang.String value) { * * * string uri_prefix = 2; + * + * @return This builder for chaining. */ public Builder clearUriPrefix() { if (objectUriCase_ == 2) { @@ -914,6 +955,9 @@ public Builder clearUriPrefix() { * * * string uri_prefix = 2; + * + * @param value The bytes for uriPrefix to set. + * @return This builder for chaining. */ public Builder setUriPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java index 9d919f252..6b17db763 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java @@ -35,6 +35,8 @@ public interface GcsDestinationOrBuilder * * * string uri = 1; + * + * @return The uri. */ java.lang.String getUri(); /** @@ -49,6 +51,8 @@ public interface GcsDestinationOrBuilder * * * string uri = 1; + * + * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); @@ -68,6 +72,8 @@ public interface GcsDestinationOrBuilder * * * string uri_prefix = 2; + * + * @return The uriPrefix. */ java.lang.String getUriPrefix(); /** @@ -86,6 +92,8 @@ public interface GcsDestinationOrBuilder * * * string uri_prefix = 2; + * + * @return The bytes for uriPrefix. */ com.google.protobuf.ByteString getUriPrefixBytes(); diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java new file mode 100644 index 000000000..e3a901ccb --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java @@ -0,0 +1,666 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +/** + * + * + *
+ * Get asset feed request.
+ * 
+ * + * Protobuf type {@code google.cloud.asset.v1.GetFeedRequest} + */ +public final class GetFeedRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.GetFeedRequest) + GetFeedRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetFeedRequest.newBuilder() to construct. + private GetFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetFeedRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetFeedRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetFeedRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.GetFeedRequest.class, + com.google.cloud.asset.v1.GetFeedRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the Feed and it must be in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Feed and it must be in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.asset.v1.GetFeedRequest)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.GetFeedRequest other = (com.google.cloud.asset.v1.GetFeedRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.GetFeedRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.GetFeedRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.asset.v1.GetFeedRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Get asset feed request.
+   * 
+ * + * Protobuf type {@code google.cloud.asset.v1.GetFeedRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.GetFeedRequest) + com.google.cloud.asset.v1.GetFeedRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.GetFeedRequest.class, + com.google.cloud.asset.v1.GetFeedRequest.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.GetFeedRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.GetFeedRequest getDefaultInstanceForType() { + return com.google.cloud.asset.v1.GetFeedRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.GetFeedRequest build() { + com.google.cloud.asset.v1.GetFeedRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.GetFeedRequest buildPartial() { + com.google.cloud.asset.v1.GetFeedRequest result = + new com.google.cloud.asset.v1.GetFeedRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.asset.v1.GetFeedRequest) { + return mergeFrom((com.google.cloud.asset.v1.GetFeedRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.GetFeedRequest other) { + if (other == com.google.cloud.asset.v1.GetFeedRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.asset.v1.GetFeedRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.asset.v1.GetFeedRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Feed and it must be in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Feed and it must be in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Feed and it must be in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Feed and it must be in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Feed and it must be in the format of:
+     * projects/project_number/feeds/feed_id
+     * folders/folder_number/feeds/feed_id
+     * organizations/organization_number/feeds/feed_id
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.GetFeedRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.GetFeedRequest) + private static final com.google.cloud.asset.v1.GetFeedRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.GetFeedRequest(); + } + + public static com.google.cloud.asset.v1.GetFeedRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFeedRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.GetFeedRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java new file mode 100644 index 000000000..fcc83f6a8 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface GetFeedRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GetFeedRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Feed and it must be in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Feed and it must be in the format of:
+   * projects/project_number/feeds/feed_id
+   * folders/folder_number/feeds/feed_id
+   * organizations/organization_number/feeds/feed_id
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java new file mode 100644 index 000000000..810b106da --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java @@ -0,0 +1,646 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +/** + * + * + *
+ * List asset feeds request.
+ * 
+ * + * Protobuf type {@code google.cloud.asset.v1.ListFeedsRequest} + */ +public final class ListFeedsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListFeedsRequest) + ListFeedsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFeedsRequest.newBuilder() to construct. + private ListFeedsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFeedsRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFeedsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListFeedsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.ListFeedsRequest.class, + com.google.cloud.asset.v1.ListFeedsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent project/folder/organization whose feeds are to be
+   * listed. It can only be using project/folder/organization number (such as
+   * "folders/12345")", or a project ID (such as "projects/my-project-id").
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent project/folder/organization whose feeds are to be
+   * listed. It can only be using project/folder/organization number (such as
+   * "folders/12345")", or a project ID (such as "projects/my-project-id").
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.asset.v1.ListFeedsRequest)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.ListFeedsRequest other = + (com.google.cloud.asset.v1.ListFeedsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.ListFeedsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.ListFeedsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.asset.v1.ListFeedsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * List asset feeds request.
+   * 
+ * + * Protobuf type {@code google.cloud.asset.v1.ListFeedsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListFeedsRequest) + com.google.cloud.asset.v1.ListFeedsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.ListFeedsRequest.class, + com.google.cloud.asset.v1.ListFeedsRequest.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.ListFeedsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.ListFeedsRequest getDefaultInstanceForType() { + return com.google.cloud.asset.v1.ListFeedsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.ListFeedsRequest build() { + com.google.cloud.asset.v1.ListFeedsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.ListFeedsRequest buildPartial() { + com.google.cloud.asset.v1.ListFeedsRequest result = + new com.google.cloud.asset.v1.ListFeedsRequest(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.asset.v1.ListFeedsRequest) { + return mergeFrom((com.google.cloud.asset.v1.ListFeedsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.ListFeedsRequest other) { + if (other == com.google.cloud.asset.v1.ListFeedsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.asset.v1.ListFeedsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.asset.v1.ListFeedsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent project/folder/organization whose feeds are to be
+     * listed. It can only be using project/folder/organization number (such as
+     * "folders/12345")", or a project ID (such as "projects/my-project-id").
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent project/folder/organization whose feeds are to be
+     * listed. It can only be using project/folder/organization number (such as
+     * "folders/12345")", or a project ID (such as "projects/my-project-id").
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent project/folder/organization whose feeds are to be
+     * listed. It can only be using project/folder/organization number (such as
+     * "folders/12345")", or a project ID (such as "projects/my-project-id").
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent project/folder/organization whose feeds are to be
+     * listed. It can only be using project/folder/organization number (such as
+     * "folders/12345")", or a project ID (such as "projects/my-project-id").
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent project/folder/organization whose feeds are to be
+     * listed. It can only be using project/folder/organization number (such as
+     * "folders/12345")", or a project ID (such as "projects/my-project-id").
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListFeedsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListFeedsRequest) + private static final com.google.cloud.asset.v1.ListFeedsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListFeedsRequest(); + } + + public static com.google.cloud.asset.v1.ListFeedsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeedsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeedsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.ListFeedsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java new file mode 100644 index 000000000..3c50faa62 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface ListFeedsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListFeedsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent project/folder/organization whose feeds are to be
+   * listed. It can only be using project/folder/organization number (such as
+   * "folders/12345")", or a project ID (such as "projects/my-project-id").
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent project/folder/organization whose feeds are to be
+   * listed. It can only be using project/folder/organization number (such as
+   * "folders/12345")", or a project ID (such as "projects/my-project-id").
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java new file mode 100644 index 000000000..648d5756e --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java @@ -0,0 +1,920 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +/** Protobuf type {@code google.cloud.asset.v1.ListFeedsResponse} */ +public final class ListFeedsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListFeedsResponse) + ListFeedsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFeedsResponse.newBuilder() to construct. + private ListFeedsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFeedsResponse() { + feeds_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFeedsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListFeedsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + feeds_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + feeds_.add( + input.readMessage(com.google.cloud.asset.v1.Feed.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + feeds_ = java.util.Collections.unmodifiableList(feeds_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.ListFeedsResponse.class, + com.google.cloud.asset.v1.ListFeedsResponse.Builder.class); + } + + public static final int FEEDS_FIELD_NUMBER = 1; + private java.util.List feeds_; + /** + * + * + *
+   * A list of feeds.
+   * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public java.util.List getFeedsList() { + return feeds_; + } + /** + * + * + *
+   * A list of feeds.
+   * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public java.util.List getFeedsOrBuilderList() { + return feeds_; + } + /** + * + * + *
+   * A list of feeds.
+   * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public int getFeedsCount() { + return feeds_.size(); + } + /** + * + * + *
+   * A list of feeds.
+   * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public com.google.cloud.asset.v1.Feed getFeeds(int index) { + return feeds_.get(index); + } + /** + * + * + *
+   * A list of feeds.
+   * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder(int index) { + return feeds_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < feeds_.size(); i++) { + output.writeMessage(1, feeds_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < feeds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, feeds_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.asset.v1.ListFeedsResponse)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.ListFeedsResponse other = + (com.google.cloud.asset.v1.ListFeedsResponse) obj; + + if (!getFeedsList().equals(other.getFeedsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFeedsCount() > 0) { + hash = (37 * hash) + FEEDS_FIELD_NUMBER; + hash = (53 * hash) + getFeedsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.ListFeedsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.ListFeedsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.asset.v1.ListFeedsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code google.cloud.asset.v1.ListFeedsResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListFeedsResponse) + com.google.cloud.asset.v1.ListFeedsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.ListFeedsResponse.class, + com.google.cloud.asset.v1.ListFeedsResponse.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.ListFeedsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFeedsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (feedsBuilder_ == null) { + feeds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + feedsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.ListFeedsResponse getDefaultInstanceForType() { + return com.google.cloud.asset.v1.ListFeedsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.ListFeedsResponse build() { + com.google.cloud.asset.v1.ListFeedsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.ListFeedsResponse buildPartial() { + com.google.cloud.asset.v1.ListFeedsResponse result = + new com.google.cloud.asset.v1.ListFeedsResponse(this); + int from_bitField0_ = bitField0_; + if (feedsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + feeds_ = java.util.Collections.unmodifiableList(feeds_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.feeds_ = feeds_; + } else { + result.feeds_ = feedsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.asset.v1.ListFeedsResponse) { + return mergeFrom((com.google.cloud.asset.v1.ListFeedsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.ListFeedsResponse other) { + if (other == com.google.cloud.asset.v1.ListFeedsResponse.getDefaultInstance()) return this; + if (feedsBuilder_ == null) { + if (!other.feeds_.isEmpty()) { + if (feeds_.isEmpty()) { + feeds_ = other.feeds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFeedsIsMutable(); + feeds_.addAll(other.feeds_); + } + onChanged(); + } + } else { + if (!other.feeds_.isEmpty()) { + if (feedsBuilder_.isEmpty()) { + feedsBuilder_.dispose(); + feedsBuilder_ = null; + feeds_ = other.feeds_; + bitField0_ = (bitField0_ & ~0x00000001); + feedsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeedsFieldBuilder() + : null; + } else { + feedsBuilder_.addAllMessages(other.feeds_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.asset.v1.ListFeedsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.asset.v1.ListFeedsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List feeds_ = + java.util.Collections.emptyList(); + + private void ensureFeedsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + feeds_ = new java.util.ArrayList(feeds_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder> + feedsBuilder_; + + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public java.util.List getFeedsList() { + if (feedsBuilder_ == null) { + return java.util.Collections.unmodifiableList(feeds_); + } else { + return feedsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public int getFeedsCount() { + if (feedsBuilder_ == null) { + return feeds_.size(); + } else { + return feedsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public com.google.cloud.asset.v1.Feed getFeeds(int index) { + if (feedsBuilder_ == null) { + return feeds_.get(index); + } else { + return feedsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public Builder setFeeds(int index, com.google.cloud.asset.v1.Feed value) { + if (feedsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeedsIsMutable(); + feeds_.set(index, value); + onChanged(); + } else { + feedsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public Builder setFeeds(int index, com.google.cloud.asset.v1.Feed.Builder builderForValue) { + if (feedsBuilder_ == null) { + ensureFeedsIsMutable(); + feeds_.set(index, builderForValue.build()); + onChanged(); + } else { + feedsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public Builder addFeeds(com.google.cloud.asset.v1.Feed value) { + if (feedsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeedsIsMutable(); + feeds_.add(value); + onChanged(); + } else { + feedsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public Builder addFeeds(int index, com.google.cloud.asset.v1.Feed value) { + if (feedsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeedsIsMutable(); + feeds_.add(index, value); + onChanged(); + } else { + feedsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public Builder addFeeds(com.google.cloud.asset.v1.Feed.Builder builderForValue) { + if (feedsBuilder_ == null) { + ensureFeedsIsMutable(); + feeds_.add(builderForValue.build()); + onChanged(); + } else { + feedsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public Builder addFeeds(int index, com.google.cloud.asset.v1.Feed.Builder builderForValue) { + if (feedsBuilder_ == null) { + ensureFeedsIsMutable(); + feeds_.add(index, builderForValue.build()); + onChanged(); + } else { + feedsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public Builder addAllFeeds( + java.lang.Iterable values) { + if (feedsBuilder_ == null) { + ensureFeedsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, feeds_); + onChanged(); + } else { + feedsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public Builder clearFeeds() { + if (feedsBuilder_ == null) { + feeds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + feedsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public Builder removeFeeds(int index) { + if (feedsBuilder_ == null) { + ensureFeedsIsMutable(); + feeds_.remove(index); + onChanged(); + } else { + feedsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public com.google.cloud.asset.v1.Feed.Builder getFeedsBuilder(int index) { + return getFeedsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder(int index) { + if (feedsBuilder_ == null) { + return feeds_.get(index); + } else { + return feedsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public java.util.List + getFeedsOrBuilderList() { + if (feedsBuilder_ != null) { + return feedsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(feeds_); + } + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public com.google.cloud.asset.v1.Feed.Builder addFeedsBuilder() { + return getFeedsFieldBuilder().addBuilder(com.google.cloud.asset.v1.Feed.getDefaultInstance()); + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public com.google.cloud.asset.v1.Feed.Builder addFeedsBuilder(int index) { + return getFeedsFieldBuilder() + .addBuilder(index, com.google.cloud.asset.v1.Feed.getDefaultInstance()); + } + /** + * + * + *
+     * A list of feeds.
+     * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + public java.util.List getFeedsBuilderList() { + return getFeedsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder> + getFeedsFieldBuilder() { + if (feedsBuilder_ == null) { + feedsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder>( + feeds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + feeds_ = null; + } + return feedsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListFeedsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListFeedsResponse) + private static final com.google.cloud.asset.v1.ListFeedsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListFeedsResponse(); + } + + public static com.google.cloud.asset.v1.ListFeedsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeedsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeedsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.ListFeedsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java new file mode 100644 index 000000000..72a7e2e98 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface ListFeedsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListFeedsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of feeds.
+   * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + java.util.List getFeedsList(); + /** + * + * + *
+   * A list of feeds.
+   * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + com.google.cloud.asset.v1.Feed getFeeds(int index); + /** + * + * + *
+   * A list of feeds.
+   * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + int getFeedsCount(); + /** + * + * + *
+   * A list of feeds.
+   * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + java.util.List getFeedsOrBuilderList(); + /** + * + * + *
+   * A list of feeds.
+   * 
+ * + * repeated .google.cloud.asset.v1.Feed feeds = 1; + */ + com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder(int index); +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java index d86a7f01b..7ac917831 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java @@ -39,6 +39,12 @@ private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) private OutputConfig() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OutputConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private OutputConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -133,7 +138,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase implements com.google.protobuf.Internal.EnumLite { + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), BIGQUERY_DESTINATION(2), DESTINATION_NOT_SET(0); @@ -142,7 +150,11 @@ public enum DestinationCase implements com.google.protobuf.Internal.EnumLite { private DestinationCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static DestinationCase valueOf(int value) { return forNumber(value); @@ -179,6 +191,8 @@ public DestinationCase getDestinationCase() { * * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; + * + * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return destinationCase_ == 1; @@ -191,6 +205,8 @@ public boolean hasGcsDestination() { * * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; + * + * @return The gcsDestination. */ public com.google.cloud.asset.v1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { @@ -226,6 +242,8 @@ public com.google.cloud.asset.v1.GcsDestinationOrBuilder getGcsDestinationOrBuil * * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; + * + * @return Whether the bigqueryDestination field is set. */ public boolean hasBigqueryDestination() { return destinationCase_ == 2; @@ -241,6 +259,8 @@ public boolean hasBigqueryDestination() { * * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; + * + * @return The bigqueryDestination. */ public com.google.cloud.asset.v1.BigQueryDestination getBigqueryDestination() { if (destinationCase_ == 2) { @@ -665,6 +685,8 @@ public Builder clearDestination() { * * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; + * + * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return destinationCase_ == 1; @@ -677,6 +699,8 @@ public boolean hasGcsDestination() { * * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; + * + * @return The gcsDestination. */ public com.google.cloud.asset.v1.GcsDestination getGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -870,6 +894,8 @@ public com.google.cloud.asset.v1.GcsDestinationOrBuilder getGcsDestinationOrBuil * * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; + * + * @return Whether the bigqueryDestination field is set. */ public boolean hasBigqueryDestination() { return destinationCase_ == 2; @@ -885,6 +911,8 @@ public boolean hasBigqueryDestination() { * * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; + * + * @return The bigqueryDestination. */ public com.google.cloud.asset.v1.BigQueryDestination getBigqueryDestination() { if (bigqueryDestinationBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java index bddca95de..d33c56693 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java @@ -31,6 +31,8 @@ public interface OutputConfigOrBuilder * * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; + * + * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** @@ -41,6 +43,8 @@ public interface OutputConfigOrBuilder * * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; + * + * @return The gcsDestination. */ com.google.cloud.asset.v1.GcsDestination getGcsDestination(); /** @@ -65,6 +69,8 @@ public interface OutputConfigOrBuilder * * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; + * + * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** @@ -78,6 +84,8 @@ public interface OutputConfigOrBuilder * * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; + * + * @return The bigqueryDestination. */ com.google.cloud.asset.v1.BigQueryDestination getBigqueryDestination(); /** diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java index 17f5cab31..d541a7d13 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class ProjectName implements ResourceName { diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java new file mode 100644 index 000000000..044d3817d --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java @@ -0,0 +1,639 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +/** + * + * + *
+ * A Cloud Pubsub destination.
+ * 
+ * + * Protobuf type {@code google.cloud.asset.v1.PubsubDestination} + */ +public final class PubsubDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.PubsubDestination) + PubsubDestinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use PubsubDestination.newBuilder() to construct. + private PubsubDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PubsubDestination() { + topic_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PubsubDestination(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PubsubDestination( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.PubsubDestination.class, + com.google.cloud.asset.v1.PubsubDestination.Builder.class); + } + + public static final int TOPIC_FIELD_NUMBER = 1; + private volatile java.lang.Object topic_; + /** + * + * + *
+   * The name of the Cloud Pub/Sub topic to publish to.
+   * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
+   * 
+ * + * string topic = 1; + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the Cloud Pub/Sub topic to publish to.
+   * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
+   * 
+ * + * string topic = 1; + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTopicBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.asset.v1.PubsubDestination)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.PubsubDestination other = + (com.google.cloud.asset.v1.PubsubDestination) obj; + + if (!getTopic().equals(other.getTopic())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.PubsubDestination parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.PubsubDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.PubsubDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.PubsubDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.PubsubDestination parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.asset.v1.PubsubDestination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Cloud Pubsub destination.
+   * 
+ * + * Protobuf type {@code google.cloud.asset.v1.PubsubDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.PubsubDestination) + com.google.cloud.asset.v1.PubsubDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.PubsubDestination.class, + com.google.cloud.asset.v1.PubsubDestination.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.PubsubDestination.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + topic_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.PubsubDestination getDefaultInstanceForType() { + return com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.PubsubDestination build() { + com.google.cloud.asset.v1.PubsubDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.PubsubDestination buildPartial() { + com.google.cloud.asset.v1.PubsubDestination result = + new com.google.cloud.asset.v1.PubsubDestination(this); + result.topic_ = topic_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.asset.v1.PubsubDestination) { + return mergeFrom((com.google.cloud.asset.v1.PubsubDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.PubsubDestination other) { + if (other == com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance()) return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.asset.v1.PubsubDestination parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.asset.v1.PubsubDestination) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object topic_ = ""; + /** + * + * + *
+     * The name of the Cloud Pub/Sub topic to publish to.
+     * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
+     * 
+ * + * string topic = 1; + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the Cloud Pub/Sub topic to publish to.
+     * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
+     * 
+ * + * string topic = 1; + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the Cloud Pub/Sub topic to publish to.
+     * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
+     * 
+ * + * string topic = 1; + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + topic_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Cloud Pub/Sub topic to publish to.
+     * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
+     * 
+ * + * string topic = 1; + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + + topic_ = getDefaultInstance().getTopic(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Cloud Pub/Sub topic to publish to.
+     * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
+     * 
+ * + * string topic = 1; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + topic_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.PubsubDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.PubsubDestination) + private static final com.google.cloud.asset.v1.PubsubDestination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.PubsubDestination(); + } + + public static com.google.cloud.asset.v1.PubsubDestination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubsubDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PubsubDestination(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.PubsubDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java new file mode 100644 index 000000000..31f7ba9fe --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface PubsubDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.PubsubDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the Cloud Pub/Sub topic to publish to.
+   * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
+   * 
+ * + * string topic = 1; + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
+   * The name of the Cloud Pub/Sub topic to publish to.
+   * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
+   * 
+ * + * string topic = 1; + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java index f9e98d039..d4af72366 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java @@ -45,6 +45,12 @@ private Resource() { parent_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Resource(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -58,7 +64,6 @@ private Resource( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -162,6 +167,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string version = 1; + * + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -182,6 +189,8 @@ public java.lang.String getVersion() { * * * string version = 1; + * + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -209,6 +218,8 @@ public com.google.protobuf.ByteString getVersionBytes() { * * * string discovery_document_uri = 2; + * + * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; @@ -233,6 +244,8 @@ public java.lang.String getDiscoveryDocumentUri() { * * * string discovery_document_uri = 2; + * + * @return The bytes for discoveryDocumentUri. */ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; @@ -258,6 +271,8 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { * * * string discovery_name = 3; + * + * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; @@ -280,6 +295,8 @@ public java.lang.String getDiscoveryName() { * * * string discovery_name = 3; + * + * @return The bytes for discoveryName. */ public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; @@ -307,6 +324,8 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { * * * string resource_url = 4; + * + * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; @@ -331,6 +350,8 @@ public java.lang.String getResourceUrl() { * * * string resource_url = 4; + * + * @return The bytes for resourceUrl. */ public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; @@ -362,6 +383,8 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { * * * string parent = 5; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -390,6 +413,8 @@ public java.lang.String getParent() { * * * string parent = 5; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -414,6 +439,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * .google.protobuf.Struct data = 6; + * + * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; @@ -427,6 +454,8 @@ public boolean hasData() { * * * .google.protobuf.Struct data = 6; + * + * @return The data. */ public com.google.protobuf.Struct getData() { return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; @@ -859,6 +888,8 @@ public Builder mergeFrom( * * * string version = 1; + * + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -879,6 +910,8 @@ public java.lang.String getVersion() { * * * string version = 1; + * + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -899,6 +932,9 @@ public com.google.protobuf.ByteString getVersionBytes() { * * * string version = 1; + * + * @param value The version to set. + * @return This builder for chaining. */ public Builder setVersion(java.lang.String value) { if (value == null) { @@ -917,6 +953,8 @@ public Builder setVersion(java.lang.String value) { * * * string version = 1; + * + * @return This builder for chaining. */ public Builder clearVersion() { @@ -932,6 +970,9 @@ public Builder clearVersion() { * * * string version = 1; + * + * @param value The bytes for version to set. + * @return This builder for chaining. */ public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -957,6 +998,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { * * * string discovery_document_uri = 2; + * + * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; @@ -981,6 +1024,8 @@ public java.lang.String getDiscoveryDocumentUri() { * * * string discovery_document_uri = 2; + * + * @return The bytes for discoveryDocumentUri. */ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; @@ -1005,6 +1050,9 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { * * * string discovery_document_uri = 2; + * + * @param value The discoveryDocumentUri to set. + * @return This builder for chaining. */ public Builder setDiscoveryDocumentUri(java.lang.String value) { if (value == null) { @@ -1027,6 +1075,8 @@ public Builder setDiscoveryDocumentUri(java.lang.String value) { * * * string discovery_document_uri = 2; + * + * @return This builder for chaining. */ public Builder clearDiscoveryDocumentUri() { @@ -1046,6 +1096,9 @@ public Builder clearDiscoveryDocumentUri() { * * * string discovery_document_uri = 2; + * + * @param value The bytes for discoveryDocumentUri to set. + * @return This builder for chaining. */ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1069,6 +1122,8 @@ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value * * * string discovery_name = 3; + * + * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; @@ -1091,6 +1146,8 @@ public java.lang.String getDiscoveryName() { * * * string discovery_name = 3; + * + * @return The bytes for discoveryName. */ public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; @@ -1113,6 +1170,9 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { * * * string discovery_name = 3; + * + * @param value The discoveryName to set. + * @return This builder for chaining. */ public Builder setDiscoveryName(java.lang.String value) { if (value == null) { @@ -1133,6 +1193,8 @@ public Builder setDiscoveryName(java.lang.String value) { * * * string discovery_name = 3; + * + * @return This builder for chaining. */ public Builder clearDiscoveryName() { @@ -1150,6 +1212,9 @@ public Builder clearDiscoveryName() { * * * string discovery_name = 3; + * + * @param value The bytes for discoveryName to set. + * @return This builder for chaining. */ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1175,6 +1240,8 @@ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { * * * string resource_url = 4; + * + * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; @@ -1199,6 +1266,8 @@ public java.lang.String getResourceUrl() { * * * string resource_url = 4; + * + * @return The bytes for resourceUrl. */ public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; @@ -1223,6 +1292,9 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { * * * string resource_url = 4; + * + * @param value The resourceUrl to set. + * @return This builder for chaining. */ public Builder setResourceUrl(java.lang.String value) { if (value == null) { @@ -1245,6 +1317,8 @@ public Builder setResourceUrl(java.lang.String value) { * * * string resource_url = 4; + * + * @return This builder for chaining. */ public Builder clearResourceUrl() { @@ -1264,6 +1338,9 @@ public Builder clearResourceUrl() { * * * string resource_url = 4; + * + * @param value The bytes for resourceUrl to set. + * @return This builder for chaining. */ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1293,6 +1370,8 @@ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { * * * string parent = 5; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1321,6 +1400,8 @@ public java.lang.String getParent() { * * * string parent = 5; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1349,6 +1430,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 5; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1375,6 +1459,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 5; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1398,6 +1484,9 @@ public Builder clearParent() { * * * string parent = 5; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1425,6 +1514,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Struct data = 6; + * + * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; @@ -1438,6 +1529,8 @@ public boolean hasData() { * * * .google.protobuf.Struct data = 6; + * + * @return The data. */ public com.google.protobuf.Struct getData() { if (dataBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java index 360872eae..2d56d0263 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java @@ -31,6 +31,8 @@ public interface ResourceOrBuilder * * * string version = 1; + * + * @return The version. */ java.lang.String getVersion(); /** @@ -41,6 +43,8 @@ public interface ResourceOrBuilder * * * string version = 1; + * + * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); @@ -56,6 +60,8 @@ public interface ResourceOrBuilder * * * string discovery_document_uri = 2; + * + * @return The discoveryDocumentUri. */ java.lang.String getDiscoveryDocumentUri(); /** @@ -70,6 +76,8 @@ public interface ResourceOrBuilder * * * string discovery_document_uri = 2; + * + * @return The bytes for discoveryDocumentUri. */ com.google.protobuf.ByteString getDiscoveryDocumentUriBytes(); @@ -83,6 +91,8 @@ public interface ResourceOrBuilder * * * string discovery_name = 3; + * + * @return The discoveryName. */ java.lang.String getDiscoveryName(); /** @@ -95,6 +105,8 @@ public interface ResourceOrBuilder * * * string discovery_name = 3; + * + * @return The bytes for discoveryName. */ com.google.protobuf.ByteString getDiscoveryNameBytes(); @@ -110,6 +122,8 @@ public interface ResourceOrBuilder * * * string resource_url = 4; + * + * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** @@ -124,6 +138,8 @@ public interface ResourceOrBuilder * * * string resource_url = 4; + * + * @return The bytes for resourceUrl. */ com.google.protobuf.ByteString getResourceUrlBytes(); @@ -143,6 +159,8 @@ public interface ResourceOrBuilder * * * string parent = 5; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -161,6 +179,8 @@ public interface ResourceOrBuilder * * * string parent = 5; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -173,6 +193,8 @@ public interface ResourceOrBuilder * * * .google.protobuf.Struct data = 6; + * + * @return Whether the data field is set. */ boolean hasData(); /** @@ -184,6 +206,8 @@ public interface ResourceOrBuilder * * * .google.protobuf.Struct data = 6; + * + * @return The data. */ com.google.protobuf.Struct getData(); /** diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java index a4dbc1e27..5c4c3be6a 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java @@ -40,6 +40,12 @@ private TemporalAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) private TemporalAsset() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TemporalAsset(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -53,7 +59,6 @@ private TemporalAsset( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -144,6 +149,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.asset.v1.TimeWindow window = 1; + * + * @return Whether the window field is set. */ public boolean hasWindow() { return window_ != null; @@ -156,6 +163,8 @@ public boolean hasWindow() { * * * .google.cloud.asset.v1.TimeWindow window = 1; + * + * @return The window. */ public com.google.cloud.asset.v1.TimeWindow getWindow() { return window_ == null ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() : window_; @@ -183,6 +192,8 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getWindowOrBuilder() { * * * bool deleted = 2; + * + * @return The deleted. */ public boolean getDeleted() { return deleted_; @@ -198,6 +209,8 @@ public boolean getDeleted() { * * * .google.cloud.asset.v1.Asset asset = 3; + * + * @return Whether the asset field is set. */ public boolean hasAsset() { return asset_ != null; @@ -210,6 +223,8 @@ public boolean hasAsset() { * * * .google.cloud.asset.v1.Asset asset = 3; + * + * @return The asset. */ public com.google.cloud.asset.v1.Asset getAsset() { return asset_ == null ? com.google.cloud.asset.v1.Asset.getDefaultInstance() : asset_; @@ -612,6 +627,8 @@ public Builder mergeFrom( * * * .google.cloud.asset.v1.TimeWindow window = 1; + * + * @return Whether the window field is set. */ public boolean hasWindow() { return windowBuilder_ != null || window_ != null; @@ -624,6 +641,8 @@ public boolean hasWindow() { * * * .google.cloud.asset.v1.TimeWindow window = 1; + * + * @return The window. */ public com.google.cloud.asset.v1.TimeWindow getWindow() { if (windowBuilder_ == null) { @@ -788,6 +807,8 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getWindowOrBuilder() { * * * bool deleted = 2; + * + * @return The deleted. */ public boolean getDeleted() { return deleted_; @@ -800,6 +821,9 @@ public boolean getDeleted() { * * * bool deleted = 2; + * + * @param value The deleted to set. + * @return This builder for chaining. */ public Builder setDeleted(boolean value) { @@ -815,6 +839,8 @@ public Builder setDeleted(boolean value) { * * * bool deleted = 2; + * + * @return This builder for chaining. */ public Builder clearDeleted() { @@ -837,6 +863,8 @@ public Builder clearDeleted() { * * * .google.cloud.asset.v1.Asset asset = 3; + * + * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; @@ -849,6 +877,8 @@ public boolean hasAsset() { * * * .google.cloud.asset.v1.Asset asset = 3; + * + * @return The asset. */ public com.google.cloud.asset.v1.Asset getAsset() { if (assetBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java index 2b980dcff..33556a30c 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java @@ -31,6 +31,8 @@ public interface TemporalAssetOrBuilder * * * .google.cloud.asset.v1.TimeWindow window = 1; + * + * @return Whether the window field is set. */ boolean hasWindow(); /** @@ -41,6 +43,8 @@ public interface TemporalAssetOrBuilder * * * .google.cloud.asset.v1.TimeWindow window = 1; + * + * @return The window. */ com.google.cloud.asset.v1.TimeWindow getWindow(); /** @@ -62,6 +66,8 @@ public interface TemporalAssetOrBuilder * * * bool deleted = 2; + * + * @return The deleted. */ boolean getDeleted(); @@ -73,6 +79,8 @@ public interface TemporalAssetOrBuilder * * * .google.cloud.asset.v1.Asset asset = 3; + * + * @return Whether the asset field is set. */ boolean hasAsset(); /** @@ -83,6 +91,8 @@ public interface TemporalAssetOrBuilder * * * .google.cloud.asset.v1.Asset asset = 3; + * + * @return The asset. */ com.google.cloud.asset.v1.Asset getAsset(); /** diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java index f84452438..44dd9376a 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java @@ -39,6 +39,12 @@ private TimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { private TimeWindow() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimeWindow(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private TimeWindow( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -137,6 +142,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -149,6 +156,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; @@ -177,6 +186,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTime_ != null; @@ -190,6 +201,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; @@ -575,6 +588,8 @@ public Builder mergeFrom( * * * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -587,6 +602,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { @@ -751,6 +768,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; @@ -764,6 +783,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { if (endTimeBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java index 04527838a..3bf99329a 100644 --- a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java @@ -31,6 +31,8 @@ public interface TimeWindowOrBuilder * * * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -41,6 +43,8 @@ public interface TimeWindowOrBuilder * * * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** @@ -63,6 +67,8 @@ public interface TimeWindowOrBuilder * * * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. */ boolean hasEndTime(); /** @@ -74,6 +80,8 @@ public interface TimeWindowOrBuilder * * * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java new file mode 100644 index 000000000..0d0feec57 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java @@ -0,0 +1,1070 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +/** + * + * + *
+ * Update asset feed request.
+ * 
+ * + * Protobuf type {@code google.cloud.asset.v1.UpdateFeedRequest} + */ +public final class UpdateFeedRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.UpdateFeedRequest) + UpdateFeedRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateFeedRequest.newBuilder() to construct. + private UpdateFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateFeedRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateFeedRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateFeedRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.asset.v1.Feed.Builder subBuilder = null; + if (feed_ != null) { + subBuilder = feed_.toBuilder(); + } + feed_ = input.readMessage(com.google.cloud.asset.v1.Feed.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(feed_); + feed_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.UpdateFeedRequest.class, + com.google.cloud.asset.v1.UpdateFeedRequest.Builder.class); + } + + public static final int FEED_FIELD_NUMBER = 1; + private com.google.cloud.asset.v1.Feed feed_; + /** + * + * + *
+   * Required. The new values of feed details. It must match an existing feed and the
+   * field `name` must be in the format of:
+   * projects/project_number/feeds/feed_id or
+   * folders/folder_number/feeds/feed_id or
+   * organizations/organization_number/feeds/feed_id.
+   * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the feed field is set. + */ + public boolean hasFeed() { + return feed_ != null; + } + /** + * + * + *
+   * Required. The new values of feed details. It must match an existing feed and the
+   * field `name` must be in the format of:
+   * projects/project_number/feeds/feed_id or
+   * folders/folder_number/feeds/feed_id or
+   * organizations/organization_number/feeds/feed_id.
+   * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The feed. + */ + public com.google.cloud.asset.v1.Feed getFeed() { + return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_; + } + /** + * + * + *
+   * Required. The new values of feed details. It must match an existing feed and the
+   * field `name` must be in the format of:
+   * projects/project_number/feeds/feed_id or
+   * folders/folder_number/feeds/feed_id or
+   * organizations/organization_number/feeds/feed_id.
+   * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() { + return getFeed(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Only updates the `feed` fields indicated by this mask.
+   * The field mask must not be empty, and it must not contain fields that
+   * are immutable or only set by the server.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Only updates the `feed` fields indicated by this mask.
+   * The field mask must not be empty, and it must not contain fields that
+   * are immutable or only set by the server.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Only updates the `feed` fields indicated by this mask.
+   * The field mask must not be empty, and it must not contain fields that
+   * are immutable or only set by the server.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (feed_ != null) { + output.writeMessage(1, getFeed()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (feed_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFeed()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.asset.v1.UpdateFeedRequest)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.UpdateFeedRequest other = + (com.google.cloud.asset.v1.UpdateFeedRequest) obj; + + if (hasFeed() != other.hasFeed()) return false; + if (hasFeed()) { + if (!getFeed().equals(other.getFeed())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFeed()) { + hash = (37 * hash) + FEED_FIELD_NUMBER; + hash = (53 * hash) + getFeed().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.UpdateFeedRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.UpdateFeedRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.asset.v1.UpdateFeedRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Update asset feed request.
+   * 
+ * + * Protobuf type {@code google.cloud.asset.v1.UpdateFeedRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.UpdateFeedRequest) + com.google.cloud.asset.v1.UpdateFeedRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.UpdateFeedRequest.class, + com.google.cloud.asset.v1.UpdateFeedRequest.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.UpdateFeedRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (feedBuilder_ == null) { + feed_ = null; + } else { + feed_ = null; + feedBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.UpdateFeedRequest getDefaultInstanceForType() { + return com.google.cloud.asset.v1.UpdateFeedRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.UpdateFeedRequest build() { + com.google.cloud.asset.v1.UpdateFeedRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.UpdateFeedRequest buildPartial() { + com.google.cloud.asset.v1.UpdateFeedRequest result = + new com.google.cloud.asset.v1.UpdateFeedRequest(this); + if (feedBuilder_ == null) { + result.feed_ = feed_; + } else { + result.feed_ = feedBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.asset.v1.UpdateFeedRequest) { + return mergeFrom((com.google.cloud.asset.v1.UpdateFeedRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.UpdateFeedRequest other) { + if (other == com.google.cloud.asset.v1.UpdateFeedRequest.getDefaultInstance()) return this; + if (other.hasFeed()) { + mergeFeed(other.getFeed()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.asset.v1.UpdateFeedRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.asset.v1.UpdateFeedRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.asset.v1.Feed feed_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder> + feedBuilder_; + /** + * + * + *
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
+     * projects/project_number/feeds/feed_id or
+     * folders/folder_number/feeds/feed_id or
+     * organizations/organization_number/feeds/feed_id.
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the feed field is set. + */ + public boolean hasFeed() { + return feedBuilder_ != null || feed_ != null; + } + /** + * + * + *
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
+     * projects/project_number/feeds/feed_id or
+     * folders/folder_number/feeds/feed_id or
+     * organizations/organization_number/feeds/feed_id.
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The feed. + */ + public com.google.cloud.asset.v1.Feed getFeed() { + if (feedBuilder_ == null) { + return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_; + } else { + return feedBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
+     * projects/project_number/feeds/feed_id or
+     * folders/folder_number/feeds/feed_id or
+     * organizations/organization_number/feeds/feed_id.
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setFeed(com.google.cloud.asset.v1.Feed value) { + if (feedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + feed_ = value; + onChanged(); + } else { + feedBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
+     * projects/project_number/feeds/feed_id or
+     * folders/folder_number/feeds/feed_id or
+     * organizations/organization_number/feeds/feed_id.
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setFeed(com.google.cloud.asset.v1.Feed.Builder builderForValue) { + if (feedBuilder_ == null) { + feed_ = builderForValue.build(); + onChanged(); + } else { + feedBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
+     * projects/project_number/feeds/feed_id or
+     * folders/folder_number/feeds/feed_id or
+     * organizations/organization_number/feeds/feed_id.
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeFeed(com.google.cloud.asset.v1.Feed value) { + if (feedBuilder_ == null) { + if (feed_ != null) { + feed_ = com.google.cloud.asset.v1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial(); + } else { + feed_ = value; + } + onChanged(); + } else { + feedBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
+     * projects/project_number/feeds/feed_id or
+     * folders/folder_number/feeds/feed_id or
+     * organizations/organization_number/feeds/feed_id.
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearFeed() { + if (feedBuilder_ == null) { + feed_ = null; + onChanged(); + } else { + feed_ = null; + feedBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
+     * projects/project_number/feeds/feed_id or
+     * folders/folder_number/feeds/feed_id or
+     * organizations/organization_number/feeds/feed_id.
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.asset.v1.Feed.Builder getFeedBuilder() { + + onChanged(); + return getFeedFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
+     * projects/project_number/feeds/feed_id or
+     * folders/folder_number/feeds/feed_id or
+     * organizations/organization_number/feeds/feed_id.
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() { + if (feedBuilder_ != null) { + return feedBuilder_.getMessageOrBuilder(); + } else { + return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_; + } + } + /** + * + * + *
+     * Required. The new values of feed details. It must match an existing feed and the
+     * field `name` must be in the format of:
+     * projects/project_number/feeds/feed_id or
+     * folders/folder_number/feeds/feed_id or
+     * organizations/organization_number/feeds/feed_id.
+     * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder> + getFeedFieldBuilder() { + if (feedBuilder_ == null) { + feedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder>( + getFeed(), getParentForChildren(), isClean()); + feed_ = null; + } + return feedBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Only updates the `feed` fields indicated by this mask.
+     * The field mask must not be empty, and it must not contain fields that
+     * are immutable or only set by the server.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. Only updates the `feed` fields indicated by this mask.
+     * The field mask must not be empty, and it must not contain fields that
+     * are immutable or only set by the server.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Only updates the `feed` fields indicated by this mask.
+     * The field mask must not be empty, and it must not contain fields that
+     * are immutable or only set by the server.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Only updates the `feed` fields indicated by this mask.
+     * The field mask must not be empty, and it must not contain fields that
+     * are immutable or only set by the server.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Only updates the `feed` fields indicated by this mask.
+     * The field mask must not be empty, and it must not contain fields that
+     * are immutable or only set by the server.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Only updates the `feed` fields indicated by this mask.
+     * The field mask must not be empty, and it must not contain fields that
+     * are immutable or only set by the server.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Only updates the `feed` fields indicated by this mask.
+     * The field mask must not be empty, and it must not contain fields that
+     * are immutable or only set by the server.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Only updates the `feed` fields indicated by this mask.
+     * The field mask must not be empty, and it must not contain fields that
+     * are immutable or only set by the server.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Only updates the `feed` fields indicated by this mask.
+     * The field mask must not be empty, and it must not contain fields that
+     * are immutable or only set by the server.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.UpdateFeedRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.UpdateFeedRequest) + private static final com.google.cloud.asset.v1.UpdateFeedRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.UpdateFeedRequest(); + } + + public static com.google.cloud.asset.v1.UpdateFeedRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFeedRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.UpdateFeedRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java new file mode 100644 index 000000000..1f0756fd1 --- /dev/null +++ b/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface UpdateFeedRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.UpdateFeedRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The new values of feed details. It must match an existing feed and the
+   * field `name` must be in the format of:
+   * projects/project_number/feeds/feed_id or
+   * folders/folder_number/feeds/feed_id or
+   * organizations/organization_number/feeds/feed_id.
+   * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the feed field is set. + */ + boolean hasFeed(); + /** + * + * + *
+   * Required. The new values of feed details. It must match an existing feed and the
+   * field `name` must be in the format of:
+   * projects/project_number/feeds/feed_id or
+   * folders/folder_number/feeds/feed_id or
+   * organizations/organization_number/feeds/feed_id.
+   * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The feed. + */ + com.google.cloud.asset.v1.Feed getFeed(); + /** + * + * + *
+   * Required. The new values of feed details. It must match an existing feed and the
+   * field `name` must be in the format of:
+   * projects/project_number/feeds/feed_id or
+   * folders/folder_number/feeds/feed_id or
+   * organizations/organization_number/feeds/feed_id.
+   * 
+ * + * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder(); + + /** + * + * + *
+   * Required. Only updates the `feed` fields indicated by this mask.
+   * The field mask must not be empty, and it must not contain fields that
+   * are immutable or only set by the server.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Only updates the `feed` fields indicated by this mask.
+   * The field mask must not be empty, and it must not contain fields that
+   * are immutable or only set by the server.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Only updates the `feed` fields indicated by this mask.
+   * The field mask must not be empty, and it must not contain fields that
+   * are immutable or only set by the server.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto b/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto index 33dde9cd3..6566d0399 100644 --- a/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto +++ b/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto @@ -66,6 +66,49 @@ service AssetService { get: "/v1/{parent=*/*}:batchGetAssetsHistory" }; } + + // Creates a feed in a parent project/folder/organization to listen to its + // asset updates. + rpc CreateFeed(CreateFeedRequest) returns (Feed) { + option (google.api.http) = { + post: "/v1/{parent=*/*}/feeds" + body: "*" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details about an asset feed. + rpc GetFeed(GetFeedRequest) returns (Feed) { + option (google.api.http) = { + get: "/v1/{name=*/*/feeds/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all asset feeds in a parent project/folder/organization. + rpc ListFeeds(ListFeedsRequest) returns (ListFeedsResponse) { + option (google.api.http) = { + get: "/v1/{parent=*/*}/feeds" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates an asset feed configuration. + rpc UpdateFeed(UpdateFeedRequest) returns (Feed) { + option (google.api.http) = { + patch: "/v1/{feed.name=*/*/feeds/*}" + body: "*" + }; + option (google.api.method_signature) = "feed"; + } + + // Deletes an asset feed. + rpc DeleteFeed(DeleteFeedRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=*/*/feeds/*}" + }; + option (google.api.method_signature) = "name"; + } } // Export asset request. @@ -158,6 +201,82 @@ message BatchGetAssetsHistoryResponse { repeated TemporalAsset assets = 1; } +// Create asset feed request. +message CreateFeedRequest { + // Required. The name of the project/folder/organization where this feed + // should be created in. It can only be an organization number (such as + // "organizations/123"), a folder number (such as "folders/123"), a project ID + // (such as "projects/my-project-id")", or a project number (such as + // "projects/12345"). + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. This is the client-assigned asset feed identifier and it needs to + // be unique under a specific parent project/folder/organization. + string feed_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The feed details. The field `name` must be empty and it will be generated + // in the format of: + // projects/project_number/feeds/feed_id + // folders/folder_number/feeds/feed_id + // organizations/organization_number/feeds/feed_id + Feed feed = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Get asset feed request. +message GetFeedRequest { + // Required. The name of the Feed and it must be in the format of: + // projects/project_number/feeds/feed_id + // folders/folder_number/feeds/feed_id + // organizations/organization_number/feeds/feed_id + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudasset.googleapis.com/Feed" + } + ]; +} + +// List asset feeds request. +message ListFeedsRequest { + // Required. The parent project/folder/organization whose feeds are to be + // listed. It can only be using project/folder/organization number (such as + // "folders/12345")", or a project ID (such as "projects/my-project-id"). + string parent = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message ListFeedsResponse { + // A list of feeds. + repeated Feed feeds = 1; +} + +// Update asset feed request. +message UpdateFeedRequest { + // Required. The new values of feed details. It must match an existing feed and the + // field `name` must be in the format of: + // projects/project_number/feeds/feed_id or + // folders/folder_number/feeds/feed_id or + // organizations/organization_number/feeds/feed_id. + Feed feed = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Only updates the `feed` fields indicated by this mask. + // The field mask must not be empty, and it must not contain fields that + // are immutable or only set by the server. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +message DeleteFeedRequest { + // Required. The name of the feed and it must be in the format of: + // projects/project_number/feeds/feed_id + // folders/folder_number/feeds/feed_id + // organizations/organization_number/feeds/feed_id + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudasset.googleapis.com/Feed" + } + ]; +} + // Output configuration for export assets destination. message OutputConfig { // Asset export destination. @@ -217,6 +336,13 @@ message BigQueryDestination { bool force = 3; } +// A Cloud Pubsub destination. +message PubsubDestination { + // The name of the Cloud Pub/Sub topic to publish to. + // For example: `projects/PROJECT_ID/topics/TOPIC_ID`. + string topic = 1; +} + // Asset content type. enum ContentType { // Unspecified content type. @@ -234,3 +360,63 @@ enum ContentType { // The Cloud Access context mananger Policy set on an asset. ACCESS_POLICY = 5; } + +// Output configuration for asset feed destination. +message FeedOutputConfig { + // Asset feed destination. + oneof destination { + // Destination on Cloud Pubsub. + PubsubDestination pubsub_destination = 1; + } +} + +// An asset feed used to export asset updates to a destinations. +// An asset feed filter controls what updates are exported. +// The asset feed must be created within a project, organization, or +// folder. Supported destinations are: +// Cloud Pub/Sub topics. +message Feed { + option (google.api.resource) = { + type: "cloudasset.googleapis.com/Feed" + pattern: "projects/{project}/feeds/{feed}" + pattern: "folders/{folder}/feeds/{feed}" + pattern: "organizations/{organization}/feeds/{feed}" + history: ORIGINALLY_SINGLE_PATTERN + }; + + // Required. The format will be + // projects/{project_number}/feeds/{client-assigned_feed_identifier} or + // folders/{folder_number}/feeds/{client-assigned_feed_identifier} or + // organizations/{organization_number}/feeds/{client-assigned_feed_identifier} + // + // The client-assigned feed identifier must be unique within the parent + // project/folder/organization. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // A list of the full names of the assets to receive updates. You must specify + // either or both of asset_names and asset_types. Only asset updates matching + // specified asset_names and asset_types are exported to the feed. For + // example: + // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. + // See [Resource + // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) + // for more info. + repeated string asset_names = 2; + + // A list of types of the assets to receive updates. You must specify either + // or both of asset_names and asset_types. Only asset updates matching + // specified asset_names and asset_types are exported to the feed. + // For example: + // "compute.googleapis.com/Disk" See [Introduction to Cloud Asset + // Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) + // for all supported asset types. + repeated string asset_types = 3; + + // Asset content type. If not specified, no content but the asset name and + // type will be returned. + ContentType content_type = 4; + + // Required. Feed output configuration defining where the asset updates are + // published to. + FeedOutputConfig feed_output_config = 5 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto b/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto index e689b7618..6a5c8cb8c 100644 --- a/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto +++ b/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto @@ -17,12 +17,12 @@ syntax = "proto3"; package google.cloud.asset.v1; -import "google/api/annotations.proto"; import "google/api/resource.proto"; import "google/iam/v1/policy.proto"; import "google/protobuf/any.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Asset.V1"; @@ -79,6 +79,14 @@ message Asset { // Representation of the actual Cloud IAM policy set on a cloud resource. For // each resource, there must be at most one Cloud IAM policy set on it. google.iam.v1.Policy iam_policy = 4; + + // Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, + // represented as a list of relative resource names. Ancestry path starts with + // the closest CRM ancestor and ends at root. If the asset is a CRM + // project/folder/organization, this starts from the asset itself. + // + // Example: ["projects/123456789", "folders/5432", "organizations/1234"] + repeated string ancestors = 10; } // Representation of a cloud resource. diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Asset.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Asset.java index f609b341d..5f70d8d67 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Asset.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Asset.java @@ -43,6 +43,12 @@ private Asset() { assetType_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Asset(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private Asset( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -159,6 +164,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -183,6 +190,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -206,6 +215,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string asset_type = 2; + * + * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; @@ -226,6 +237,8 @@ public java.lang.String getAssetType() { * * * string asset_type = 2; + * + * @return The bytes for assetType. */ public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; @@ -249,6 +262,8 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { * * * .google.cloud.asset.v1beta1.Resource resource = 3; + * + * @return Whether the resource field is set. */ public boolean hasResource() { return resource_ != null; @@ -261,6 +276,8 @@ public boolean hasResource() { * * * .google.cloud.asset.v1beta1.Resource resource = 3; + * + * @return The resource. */ public com.google.cloud.asset.v1beta1.Resource getResource() { return resource_ == null @@ -291,6 +308,8 @@ public com.google.cloud.asset.v1beta1.ResourceOrBuilder getResourceOrBuilder() { * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicy_ != null; @@ -304,6 +323,8 @@ public boolean hasIamPolicy() { * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_; @@ -721,6 +742,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -745,6 +768,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -769,6 +794,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -791,6 +819,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -810,6 +840,9 @@ public Builder clearName() { * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -831,6 +864,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * string asset_type = 2; + * + * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; @@ -851,6 +886,8 @@ public java.lang.String getAssetType() { * * * string asset_type = 2; + * + * @return The bytes for assetType. */ public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; @@ -871,6 +908,9 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { * * * string asset_type = 2; + * + * @param value The assetType to set. + * @return This builder for chaining. */ public Builder setAssetType(java.lang.String value) { if (value == null) { @@ -889,6 +929,8 @@ public Builder setAssetType(java.lang.String value) { * * * string asset_type = 2; + * + * @return This builder for chaining. */ public Builder clearAssetType() { @@ -904,6 +946,9 @@ public Builder clearAssetType() { * * * string asset_type = 2; + * + * @param value The bytes for assetType to set. + * @return This builder for chaining. */ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -930,6 +975,8 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.asset.v1beta1.Resource resource = 3; + * + * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; @@ -942,6 +989,8 @@ public boolean hasResource() { * * * .google.cloud.asset.v1beta1.Resource resource = 3; + * + * @return The resource. */ public com.google.cloud.asset.v1beta1.Resource getResource() { if (resourceBuilder_ == null) { @@ -1112,6 +1161,8 @@ public com.google.cloud.asset.v1beta1.ResourceOrBuilder getResourceOrBuilder() { * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; @@ -1125,6 +1176,8 @@ public boolean hasIamPolicy() { * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { if (iamPolicyBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetOrBuilder.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetOrBuilder.java index a8c271597..09419a669 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetOrBuilder.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetOrBuilder.java @@ -35,6 +35,8 @@ public interface AssetOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -49,6 +51,8 @@ public interface AssetOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -60,6 +64,8 @@ public interface AssetOrBuilder * * * string asset_type = 2; + * + * @return The assetType. */ java.lang.String getAssetType(); /** @@ -70,6 +76,8 @@ public interface AssetOrBuilder * * * string asset_type = 2; + * + * @return The bytes for assetType. */ com.google.protobuf.ByteString getAssetTypeBytes(); @@ -81,6 +89,8 @@ public interface AssetOrBuilder * * * .google.cloud.asset.v1beta1.Resource resource = 3; + * + * @return Whether the resource field is set. */ boolean hasResource(); /** @@ -91,6 +101,8 @@ public interface AssetOrBuilder * * * .google.cloud.asset.v1beta1.Resource resource = 3; + * + * @return The resource. */ com.google.cloud.asset.v1beta1.Resource getResource(); /** @@ -113,6 +125,8 @@ public interface AssetOrBuilder * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** @@ -124,6 +138,8 @@ public interface AssetOrBuilder * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return The iamPolicy. */ com.google.iam.v1.Policy getIamPolicy(); /** diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetProto.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetProto.java index c61035090..292fbfa69 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetProto.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetProto.java @@ -77,24 +77,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ";asset\252\002\032Google.Cloud.Asset.V1Beta1\312\002\032Go" + "ogle\\Cloud\\Asset\\V1beta1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); internal_static_google_cloud_asset_v1beta1_TemporalAsset_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_asset_v1beta1_TemporalAsset_fieldAccessorTable = diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceProto.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceProto.java index fb45492ce..cf46f1c85 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceProto.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceProto.java @@ -107,23 +107,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032Google.Cloud.Asset.V1Beta1\312\002\032Google\\Clo" + "ud\\Asset\\V1beta1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.asset.v1beta1.AssetProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.asset.v1beta1.AssetProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); internal_static_google_cloud_asset_v1beta1_ExportAssetsRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_asset_v1beta1_ExportAssetsRequest_fieldAccessorTable = diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryRequest.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryRequest.java index 09905c16f..ec70f3a58 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryRequest.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryRequest.java @@ -43,6 +43,12 @@ private BatchGetAssetsHistoryRequest() { contentType_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchGetAssetsHistoryRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -77,9 +83,9 @@ private BatchGetAssetsHistoryRequest( case 18: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } assetNames_.add(s); break; @@ -121,7 +127,7 @@ private BatchGetAssetsHistoryRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { assetNames_ = assetNames_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -144,7 +150,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest.Builder.class); } - private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** @@ -157,6 +162,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string parent = 1; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -179,6 +186,8 @@ public java.lang.String getParent() { * * * string parent = 1; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -208,6 +217,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * repeated string asset_names = 2; + * + * @return A list containing the assetNames. */ public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_; @@ -226,6 +237,8 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() { * * * repeated string asset_names = 2; + * + * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); @@ -244,6 +257,9 @@ public int getAssetNamesCount() { * * * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. */ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); @@ -262,6 +278,9 @@ public java.lang.String getAssetNames(int index) { * * * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. */ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); @@ -277,6 +296,8 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { * * * .google.cloud.asset.v1beta1.ContentType content_type = 3; + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -289,6 +310,8 @@ public int getContentTypeValue() { * * * .google.cloud.asset.v1beta1.ContentType content_type = 3; + * + * @return The contentType. */ public com.google.cloud.asset.v1beta1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -312,6 +335,8 @@ public com.google.cloud.asset.v1beta1.ContentType getContentType() { * * * .google.cloud.asset.v1beta1.TimeWindow read_time_window = 4; + * + * @return Whether the readTimeWindow field is set. */ public boolean hasReadTimeWindow() { return readTimeWindow_ != null; @@ -329,6 +354,8 @@ public boolean hasReadTimeWindow() { * * * .google.cloud.asset.v1beta1.TimeWindow read_time_window = 4; + * + * @return The readTimeWindow. */ public com.google.cloud.asset.v1beta1.TimeWindow getReadTimeWindow() { return readTimeWindow_ == null @@ -602,7 +629,7 @@ public Builder clear() { parent_ = ""; assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); contentType_ = 0; if (readTimeWindowBuilder_ == null) { @@ -639,11 +666,10 @@ public com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest buildPartial( com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest result = new com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.parent_ = parent_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { assetNames_ = assetNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.assetNames_ = assetNames_; result.contentType_ = contentType_; @@ -652,7 +678,6 @@ public com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest buildPartial( } else { result.readTimeWindow_ = readTimeWindowBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -710,7 +735,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryReq if (!other.assetNames_.isEmpty()) { if (assetNames_.isEmpty()) { assetNames_ = other.assetNames_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAssetNamesIsMutable(); assetNames_.addAll(other.assetNames_); @@ -766,6 +791,8 @@ public Builder mergeFrom( * * * string parent = 1; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -788,6 +815,8 @@ public java.lang.String getParent() { * * * string parent = 1; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -810,6 +839,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 1; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -830,6 +862,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 1; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -847,6 +881,9 @@ public Builder clearParent() { * * * string parent = 1; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -863,9 +900,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetNamesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(assetNames_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** @@ -882,6 +919,8 @@ private void ensureAssetNamesIsMutable() { * * * repeated string asset_names = 2; + * + * @return A list containing the assetNames. */ public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_.getUnmodifiableView(); @@ -900,6 +939,8 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() { * * * repeated string asset_names = 2; + * + * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); @@ -918,6 +959,9 @@ public int getAssetNamesCount() { * * * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. */ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); @@ -936,6 +980,9 @@ public java.lang.String getAssetNames(int index) { * * * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. */ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); @@ -954,6 +1001,10 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { * * * repeated string asset_names = 2; + * + * @param index The index to set the value at. + * @param value The assetNames to set. + * @return This builder for chaining. */ public Builder setAssetNames(int index, java.lang.String value) { if (value == null) { @@ -978,6 +1029,9 @@ public Builder setAssetNames(int index, java.lang.String value) { * * * repeated string asset_names = 2; + * + * @param value The assetNames to add. + * @return This builder for chaining. */ public Builder addAssetNames(java.lang.String value) { if (value == null) { @@ -1002,6 +1056,9 @@ public Builder addAssetNames(java.lang.String value) { * * * repeated string asset_names = 2; + * + * @param values The assetNames to add. + * @return This builder for chaining. */ public Builder addAllAssetNames(java.lang.Iterable values) { ensureAssetNamesIsMutable(); @@ -1023,10 +1080,12 @@ public Builder addAllAssetNames(java.lang.Iterable values) { * * * repeated string asset_names = 2; + * + * @return This builder for chaining. */ public Builder clearAssetNames() { assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1044,6 +1103,9 @@ public Builder clearAssetNames() { * * * repeated string asset_names = 2; + * + * @param value The bytes of the assetNames to add. + * @return This builder for chaining. */ public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1065,6 +1127,8 @@ public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.asset.v1beta1.ContentType content_type = 3; + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -1077,6 +1141,9 @@ public int getContentTypeValue() { * * * .google.cloud.asset.v1beta1.ContentType content_type = 3; + * + * @param value The enum numeric value on the wire for contentType to set. + * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { contentType_ = value; @@ -1091,6 +1158,8 @@ public Builder setContentTypeValue(int value) { * * * .google.cloud.asset.v1beta1.ContentType content_type = 3; + * + * @return The contentType. */ public com.google.cloud.asset.v1beta1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -1106,6 +1175,9 @@ public com.google.cloud.asset.v1beta1.ContentType getContentType() { * * * .google.cloud.asset.v1beta1.ContentType content_type = 3; + * + * @param value The contentType to set. + * @return This builder for chaining. */ public Builder setContentType(com.google.cloud.asset.v1beta1.ContentType value) { if (value == null) { @@ -1124,6 +1196,8 @@ public Builder setContentType(com.google.cloud.asset.v1beta1.ContentType value) * * * .google.cloud.asset.v1beta1.ContentType content_type = 3; + * + * @return This builder for chaining. */ public Builder clearContentType() { @@ -1151,6 +1225,8 @@ public Builder clearContentType() { * * * .google.cloud.asset.v1beta1.TimeWindow read_time_window = 4; + * + * @return Whether the readTimeWindow field is set. */ public boolean hasReadTimeWindow() { return readTimeWindowBuilder_ != null || readTimeWindow_ != null; @@ -1168,6 +1244,8 @@ public boolean hasReadTimeWindow() { * * * .google.cloud.asset.v1beta1.TimeWindow read_time_window = 4; + * + * @return The readTimeWindow. */ public com.google.cloud.asset.v1beta1.TimeWindow getReadTimeWindow() { if (readTimeWindowBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryRequestOrBuilder.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryRequestOrBuilder.java index f8595009e..4d6296785 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryRequestOrBuilder.java @@ -33,6 +33,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * string parent = 1; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -45,6 +47,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * string parent = 1; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -62,6 +66,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * repeated string asset_names = 2; + * + * @return A list containing the assetNames. */ java.util.List getAssetNamesList(); /** @@ -78,6 +84,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * repeated string asset_names = 2; + * + * @return The count of assetNames. */ int getAssetNamesCount(); /** @@ -94,6 +102,9 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. */ java.lang.String getAssetNames(int index); /** @@ -110,6 +121,9 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. */ com.google.protobuf.ByteString getAssetNamesBytes(int index); @@ -121,6 +135,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * .google.cloud.asset.v1beta1.ContentType content_type = 3; + * + * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** @@ -131,6 +147,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * .google.cloud.asset.v1beta1.ContentType content_type = 3; + * + * @return The contentType. */ com.google.cloud.asset.v1beta1.ContentType getContentType(); @@ -147,6 +165,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * .google.cloud.asset.v1beta1.TimeWindow read_time_window = 4; + * + * @return Whether the readTimeWindow field is set. */ boolean hasReadTimeWindow(); /** @@ -162,6 +182,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * .google.cloud.asset.v1beta1.TimeWindow read_time_window = 4; + * + * @return The readTimeWindow. */ com.google.cloud.asset.v1beta1.TimeWindow getReadTimeWindow(); /** diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryResponse.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryResponse.java index 04d9c8f09..03ea38390 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryResponse.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryResponse.java @@ -41,6 +41,12 @@ private BatchGetAssetsHistoryResponse() { assets_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchGetAssetsHistoryResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ContentType.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ContentType.java index 595588740..f78b30962 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ContentType.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ContentType.java @@ -100,12 +100,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static ContentType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ContentType forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsRequest.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsRequest.java index 0ce43c80e..c1a243704 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsRequest.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsRequest.java @@ -43,6 +43,12 @@ private ExportAssetsRequest() { contentType_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportAssetsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -92,9 +98,9 @@ private ExportAssetsRequest( case 26: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } assetTypes_.add(s); break; @@ -136,7 +142,7 @@ private ExportAssetsRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { assetTypes_ = assetTypes_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -159,7 +165,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.asset.v1beta1.ExportAssetsRequest.Builder.class); } - private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** @@ -173,6 +178,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string parent = 1; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -196,6 +203,8 @@ public java.lang.String getParent() { * * * string parent = 1; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -223,6 +232,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -239,6 +250,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -274,6 +287,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. */ public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_; @@ -290,6 +305,8 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * * * repeated string asset_types = 3; + * + * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); @@ -306,6 +323,9 @@ public int getAssetTypesCount() { * * * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. */ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); @@ -322,6 +342,9 @@ public java.lang.String getAssetTypes(int index) { * * * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. */ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); @@ -338,6 +361,8 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { * * * .google.cloud.asset.v1beta1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -351,6 +376,8 @@ public int getContentTypeValue() { * * * .google.cloud.asset.v1beta1.ContentType content_type = 4; + * + * @return The contentType. */ public com.google.cloud.asset.v1beta1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -370,6 +397,8 @@ public com.google.cloud.asset.v1beta1.ContentType getContentType() { * * * .google.cloud.asset.v1beta1.OutputConfig output_config = 5; + * + * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfig_ != null; @@ -383,6 +412,8 @@ public boolean hasOutputConfig() { * * * .google.cloud.asset.v1beta1.OutputConfig output_config = 5; + * + * @return The outputConfig. */ public com.google.cloud.asset.v1beta1.OutputConfig getOutputConfig() { return outputConfig_ == null @@ -671,7 +702,7 @@ public Builder clear() { readTimeBuilder_ = null; } assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); contentType_ = 0; if (outputConfigBuilder_ == null) { @@ -708,16 +739,15 @@ public com.google.cloud.asset.v1beta1.ExportAssetsRequest buildPartial() { com.google.cloud.asset.v1beta1.ExportAssetsRequest result = new com.google.cloud.asset.v1beta1.ExportAssetsRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.parent_ = parent_; if (readTimeBuilder_ == null) { result.readTime_ = readTime_; } else { result.readTime_ = readTimeBuilder_.build(); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { assetTypes_ = assetTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.assetTypes_ = assetTypes_; result.contentType_ = contentType_; @@ -726,7 +756,6 @@ public com.google.cloud.asset.v1beta1.ExportAssetsRequest buildPartial() { } else { result.outputConfig_ = outputConfigBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -787,7 +816,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1beta1.ExportAssetsRequest othe if (!other.assetTypes_.isEmpty()) { if (assetTypes_.isEmpty()) { assetTypes_ = other.assetTypes_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAssetTypesIsMutable(); assetTypes_.addAll(other.assetTypes_); @@ -844,6 +873,8 @@ public Builder mergeFrom( * * * string parent = 1; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -867,6 +898,8 @@ public java.lang.String getParent() { * * * string parent = 1; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -890,6 +923,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 1; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -911,6 +947,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 1; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -929,6 +967,9 @@ public Builder clearParent() { * * * string parent = 1; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -959,6 +1000,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -975,6 +1018,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1156,9 +1201,9 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetTypesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } /** @@ -1173,6 +1218,8 @@ private void ensureAssetTypesIsMutable() { * * * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. */ public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_.getUnmodifiableView(); @@ -1189,6 +1236,8 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * * * repeated string asset_types = 3; + * + * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); @@ -1205,6 +1254,9 @@ public int getAssetTypesCount() { * * * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. */ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); @@ -1221,6 +1273,9 @@ public java.lang.String getAssetTypes(int index) { * * * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. */ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); @@ -1237,6 +1292,10 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { * * * repeated string asset_types = 3; + * + * @param index The index to set the value at. + * @param value The assetTypes to set. + * @return This builder for chaining. */ public Builder setAssetTypes(int index, java.lang.String value) { if (value == null) { @@ -1259,6 +1318,9 @@ public Builder setAssetTypes(int index, java.lang.String value) { * * * repeated string asset_types = 3; + * + * @param value The assetTypes to add. + * @return This builder for chaining. */ public Builder addAssetTypes(java.lang.String value) { if (value == null) { @@ -1281,6 +1343,9 @@ public Builder addAssetTypes(java.lang.String value) { * * * repeated string asset_types = 3; + * + * @param values The assetTypes to add. + * @return This builder for chaining. */ public Builder addAllAssetTypes(java.lang.Iterable values) { ensureAssetTypesIsMutable(); @@ -1300,10 +1365,12 @@ public Builder addAllAssetTypes(java.lang.Iterable values) { * * * repeated string asset_types = 3; + * + * @return This builder for chaining. */ public Builder clearAssetTypes() { assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1319,6 +1386,9 @@ public Builder clearAssetTypes() { * * * repeated string asset_types = 3; + * + * @param value The bytes of the assetTypes to add. + * @return This builder for chaining. */ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1341,6 +1411,8 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.asset.v1beta1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -1354,6 +1426,9 @@ public int getContentTypeValue() { * * * .google.cloud.asset.v1beta1.ContentType content_type = 4; + * + * @param value The enum numeric value on the wire for contentType to set. + * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { contentType_ = value; @@ -1369,6 +1444,8 @@ public Builder setContentTypeValue(int value) { * * * .google.cloud.asset.v1beta1.ContentType content_type = 4; + * + * @return The contentType. */ public com.google.cloud.asset.v1beta1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -1385,6 +1462,9 @@ public com.google.cloud.asset.v1beta1.ContentType getContentType() { * * * .google.cloud.asset.v1beta1.ContentType content_type = 4; + * + * @param value The contentType to set. + * @return This builder for chaining. */ public Builder setContentType(com.google.cloud.asset.v1beta1.ContentType value) { if (value == null) { @@ -1404,6 +1484,8 @@ public Builder setContentType(com.google.cloud.asset.v1beta1.ContentType value) * * * .google.cloud.asset.v1beta1.ContentType content_type = 4; + * + * @return This builder for chaining. */ public Builder clearContentType() { @@ -1427,6 +1509,8 @@ public Builder clearContentType() { * * * .google.cloud.asset.v1beta1.OutputConfig output_config = 5; + * + * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; @@ -1440,6 +1524,8 @@ public boolean hasOutputConfig() { * * * .google.cloud.asset.v1beta1.OutputConfig output_config = 5; + * + * @return The outputConfig. */ public com.google.cloud.asset.v1beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsRequestOrBuilder.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsRequestOrBuilder.java index 34c242d24..810306443 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsRequestOrBuilder.java @@ -34,6 +34,8 @@ public interface ExportAssetsRequestOrBuilder * * * string parent = 1; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -47,6 +49,8 @@ public interface ExportAssetsRequestOrBuilder * * * string parent = 1; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -62,6 +66,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -76,6 +82,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -105,6 +113,8 @@ public interface ExportAssetsRequestOrBuilder * * * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. */ java.util.List getAssetTypesList(); /** @@ -119,6 +129,8 @@ public interface ExportAssetsRequestOrBuilder * * * repeated string asset_types = 3; + * + * @return The count of assetTypes. */ int getAssetTypesCount(); /** @@ -133,6 +145,9 @@ public interface ExportAssetsRequestOrBuilder * * * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** @@ -147,6 +162,9 @@ public interface ExportAssetsRequestOrBuilder * * * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. */ com.google.protobuf.ByteString getAssetTypesBytes(int index); @@ -159,6 +177,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.cloud.asset.v1beta1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** @@ -170,6 +190,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.cloud.asset.v1beta1.ContentType content_type = 4; + * + * @return The contentType. */ com.google.cloud.asset.v1beta1.ContentType getContentType(); @@ -182,6 +204,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.cloud.asset.v1beta1.OutputConfig output_config = 5; + * + * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** @@ -193,6 +217,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.cloud.asset.v1beta1.OutputConfig output_config = 5; + * + * @return The outputConfig. */ com.google.cloud.asset.v1beta1.OutputConfig getOutputConfig(); /** diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponse.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponse.java index b345c346a..437f99171 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponse.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponse.java @@ -43,6 +43,12 @@ private ExportAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder b private ExportAssetsResponse() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportAssetsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private ExportAssetsResponse( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -142,6 +147,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Timestamp read_time = 1; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -154,6 +161,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 1; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -182,6 +191,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.cloud.asset.v1beta1.OutputConfig output_config = 2; + * + * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfig_ != null; @@ -195,6 +206,8 @@ public boolean hasOutputConfig() { * * * .google.cloud.asset.v1beta1.OutputConfig output_config = 2; + * + * @return The outputConfig. */ public com.google.cloud.asset.v1beta1.OutputConfig getOutputConfig() { return outputConfig_ == null @@ -591,6 +604,8 @@ public Builder mergeFrom( * * * .google.protobuf.Timestamp read_time = 1; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -603,6 +618,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 1; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -767,6 +784,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.cloud.asset.v1beta1.OutputConfig output_config = 2; + * + * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; @@ -780,6 +799,8 @@ public boolean hasOutputConfig() { * * * .google.cloud.asset.v1beta1.OutputConfig output_config = 2; + * + * @return The outputConfig. */ public com.google.cloud.asset.v1beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponseOrBuilder.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponseOrBuilder.java index d67e6bd63..235dc3e8e 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponseOrBuilder.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponseOrBuilder.java @@ -31,6 +31,8 @@ public interface ExportAssetsResponseOrBuilder * * * .google.protobuf.Timestamp read_time = 1; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -41,6 +43,8 @@ public interface ExportAssetsResponseOrBuilder * * * .google.protobuf.Timestamp read_time = 1; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -63,6 +67,8 @@ public interface ExportAssetsResponseOrBuilder * * * .google.cloud.asset.v1beta1.OutputConfig output_config = 2; + * + * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** @@ -74,6 +80,8 @@ public interface ExportAssetsResponseOrBuilder * * * .google.cloud.asset.v1beta1.OutputConfig output_config = 2; + * + * @return The outputConfig. */ com.google.cloud.asset.v1beta1.OutputConfig getOutputConfig(); /** diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestination.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestination.java index 8f3f05c95..cdd0bdb1e 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestination.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestination.java @@ -39,6 +39,12 @@ private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder private GcsDestination() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsDestination(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private GcsDestination( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -107,7 +112,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int objectUriCase_ = 0; private java.lang.Object objectUri_; - public enum ObjectUriCase implements com.google.protobuf.Internal.EnumLite { + public enum ObjectUriCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { URI(1), OBJECTURI_NOT_SET(0); private final int value; @@ -115,7 +123,11 @@ public enum ObjectUriCase implements com.google.protobuf.Internal.EnumLite { private ObjectUriCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static ObjectUriCase valueOf(int value) { return forNumber(value); @@ -154,6 +166,8 @@ public ObjectUriCase getObjectUriCase() { * * * string uri = 1; + * + * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = ""; @@ -183,6 +197,8 @@ public java.lang.String getUri() { * * * string uri = 1; + * + * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; @@ -568,6 +584,8 @@ public Builder clearObjectUri() { * * * string uri = 1; + * + * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = ""; @@ -597,6 +615,8 @@ public java.lang.String getUri() { * * * string uri = 1; + * + * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; @@ -626,6 +646,9 @@ public com.google.protobuf.ByteString getUriBytes() { * * * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. */ public Builder setUri(java.lang.String value) { if (value == null) { @@ -648,6 +671,8 @@ public Builder setUri(java.lang.String value) { * * * string uri = 1; + * + * @return This builder for chaining. */ public Builder clearUri() { if (objectUriCase_ == 1) { @@ -669,6 +694,9 @@ public Builder clearUri() { * * * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. */ public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestinationOrBuilder.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestinationOrBuilder.java index 88283e608..67becff12 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestinationOrBuilder.java @@ -35,6 +35,8 @@ public interface GcsDestinationOrBuilder * * * string uri = 1; + * + * @return The uri. */ java.lang.String getUri(); /** @@ -49,6 +51,8 @@ public interface GcsDestinationOrBuilder * * * string uri = 1; + * + * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfig.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfig.java index 1b24f0280..81aa83b67 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfig.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfig.java @@ -39,6 +39,12 @@ private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) private OutputConfig() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OutputConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private OutputConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -117,7 +122,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase implements com.google.protobuf.Internal.EnumLite { + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; @@ -125,7 +133,11 @@ public enum DestinationCase implements com.google.protobuf.Internal.EnumLite { private DestinationCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static DestinationCase valueOf(int value) { return forNumber(value); @@ -160,6 +172,8 @@ public DestinationCase getDestinationCase() { * * * .google.cloud.asset.v1beta1.GcsDestination gcs_destination = 1; + * + * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return destinationCase_ == 1; @@ -172,6 +186,8 @@ public boolean hasGcsDestination() { * * * .google.cloud.asset.v1beta1.GcsDestination gcs_destination = 1; + * + * @return The gcsDestination. */ public com.google.cloud.asset.v1beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { @@ -567,6 +583,8 @@ public Builder clearDestination() { * * * .google.cloud.asset.v1beta1.GcsDestination gcs_destination = 1; + * + * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return destinationCase_ == 1; @@ -579,6 +597,8 @@ public boolean hasGcsDestination() { * * * .google.cloud.asset.v1beta1.GcsDestination gcs_destination = 1; + * + * @return The gcsDestination. */ public com.google.cloud.asset.v1beta1.GcsDestination getGcsDestination() { if (gcsDestinationBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfigOrBuilder.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfigOrBuilder.java index 184cd09b5..ad10cec8c 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfigOrBuilder.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfigOrBuilder.java @@ -31,6 +31,8 @@ public interface OutputConfigOrBuilder * * * .google.cloud.asset.v1beta1.GcsDestination gcs_destination = 1; + * + * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** @@ -41,6 +43,8 @@ public interface OutputConfigOrBuilder * * * .google.cloud.asset.v1beta1.GcsDestination gcs_destination = 1; + * + * @return The gcsDestination. */ com.google.cloud.asset.v1beta1.GcsDestination getGcsDestination(); /** diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ProjectName.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ProjectName.java index a1b4cf062..9ac4f83f7 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ProjectName.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ProjectName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class ProjectName implements ResourceName { diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Resource.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Resource.java index 33b0e841b..472160431 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Resource.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Resource.java @@ -45,6 +45,12 @@ private Resource() { parent_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Resource(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -58,7 +64,6 @@ private Resource( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -162,6 +167,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string version = 1; + * + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -182,6 +189,8 @@ public java.lang.String getVersion() { * * * string version = 1; + * + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -209,6 +218,8 @@ public com.google.protobuf.ByteString getVersionBytes() { * * * string discovery_document_uri = 2; + * + * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; @@ -233,6 +244,8 @@ public java.lang.String getDiscoveryDocumentUri() { * * * string discovery_document_uri = 2; + * + * @return The bytes for discoveryDocumentUri. */ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; @@ -258,6 +271,8 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { * * * string discovery_name = 3; + * + * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; @@ -280,6 +295,8 @@ public java.lang.String getDiscoveryName() { * * * string discovery_name = 3; + * + * @return The bytes for discoveryName. */ public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; @@ -307,6 +324,8 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { * * * string resource_url = 4; + * + * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; @@ -331,6 +350,8 @@ public java.lang.String getResourceUrl() { * * * string resource_url = 4; + * + * @return The bytes for resourceUrl. */ public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; @@ -362,6 +383,8 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { * * * string parent = 5; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -390,6 +413,8 @@ public java.lang.String getParent() { * * * string parent = 5; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -414,6 +439,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * .google.protobuf.Struct data = 6; + * + * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; @@ -427,6 +454,8 @@ public boolean hasData() { * * * .google.protobuf.Struct data = 6; + * + * @return The data. */ public com.google.protobuf.Struct getData() { return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; @@ -861,6 +890,8 @@ public Builder mergeFrom( * * * string version = 1; + * + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -881,6 +912,8 @@ public java.lang.String getVersion() { * * * string version = 1; + * + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -901,6 +934,9 @@ public com.google.protobuf.ByteString getVersionBytes() { * * * string version = 1; + * + * @param value The version to set. + * @return This builder for chaining. */ public Builder setVersion(java.lang.String value) { if (value == null) { @@ -919,6 +955,8 @@ public Builder setVersion(java.lang.String value) { * * * string version = 1; + * + * @return This builder for chaining. */ public Builder clearVersion() { @@ -934,6 +972,9 @@ public Builder clearVersion() { * * * string version = 1; + * + * @param value The bytes for version to set. + * @return This builder for chaining. */ public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -959,6 +1000,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { * * * string discovery_document_uri = 2; + * + * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; @@ -983,6 +1026,8 @@ public java.lang.String getDiscoveryDocumentUri() { * * * string discovery_document_uri = 2; + * + * @return The bytes for discoveryDocumentUri. */ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; @@ -1007,6 +1052,9 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { * * * string discovery_document_uri = 2; + * + * @param value The discoveryDocumentUri to set. + * @return This builder for chaining. */ public Builder setDiscoveryDocumentUri(java.lang.String value) { if (value == null) { @@ -1029,6 +1077,8 @@ public Builder setDiscoveryDocumentUri(java.lang.String value) { * * * string discovery_document_uri = 2; + * + * @return This builder for chaining. */ public Builder clearDiscoveryDocumentUri() { @@ -1048,6 +1098,9 @@ public Builder clearDiscoveryDocumentUri() { * * * string discovery_document_uri = 2; + * + * @param value The bytes for discoveryDocumentUri to set. + * @return This builder for chaining. */ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1071,6 +1124,8 @@ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value * * * string discovery_name = 3; + * + * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; @@ -1093,6 +1148,8 @@ public java.lang.String getDiscoveryName() { * * * string discovery_name = 3; + * + * @return The bytes for discoveryName. */ public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; @@ -1115,6 +1172,9 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { * * * string discovery_name = 3; + * + * @param value The discoveryName to set. + * @return This builder for chaining. */ public Builder setDiscoveryName(java.lang.String value) { if (value == null) { @@ -1135,6 +1195,8 @@ public Builder setDiscoveryName(java.lang.String value) { * * * string discovery_name = 3; + * + * @return This builder for chaining. */ public Builder clearDiscoveryName() { @@ -1152,6 +1214,9 @@ public Builder clearDiscoveryName() { * * * string discovery_name = 3; + * + * @param value The bytes for discoveryName to set. + * @return This builder for chaining. */ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1177,6 +1242,8 @@ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { * * * string resource_url = 4; + * + * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; @@ -1201,6 +1268,8 @@ public java.lang.String getResourceUrl() { * * * string resource_url = 4; + * + * @return The bytes for resourceUrl. */ public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; @@ -1225,6 +1294,9 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { * * * string resource_url = 4; + * + * @param value The resourceUrl to set. + * @return This builder for chaining. */ public Builder setResourceUrl(java.lang.String value) { if (value == null) { @@ -1247,6 +1319,8 @@ public Builder setResourceUrl(java.lang.String value) { * * * string resource_url = 4; + * + * @return This builder for chaining. */ public Builder clearResourceUrl() { @@ -1266,6 +1340,9 @@ public Builder clearResourceUrl() { * * * string resource_url = 4; + * + * @param value The bytes for resourceUrl to set. + * @return This builder for chaining. */ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1295,6 +1372,8 @@ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { * * * string parent = 5; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1323,6 +1402,8 @@ public java.lang.String getParent() { * * * string parent = 5; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1351,6 +1432,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 5; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1377,6 +1461,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 5; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1400,6 +1486,9 @@ public Builder clearParent() { * * * string parent = 5; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1427,6 +1516,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Struct data = 6; + * + * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; @@ -1440,6 +1531,8 @@ public boolean hasData() { * * * .google.protobuf.Struct data = 6; + * + * @return The data. */ public com.google.protobuf.Struct getData() { if (dataBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ResourceOrBuilder.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ResourceOrBuilder.java index 617a6c37d..924431d78 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ResourceOrBuilder.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ResourceOrBuilder.java @@ -31,6 +31,8 @@ public interface ResourceOrBuilder * * * string version = 1; + * + * @return The version. */ java.lang.String getVersion(); /** @@ -41,6 +43,8 @@ public interface ResourceOrBuilder * * * string version = 1; + * + * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); @@ -56,6 +60,8 @@ public interface ResourceOrBuilder * * * string discovery_document_uri = 2; + * + * @return The discoveryDocumentUri. */ java.lang.String getDiscoveryDocumentUri(); /** @@ -70,6 +76,8 @@ public interface ResourceOrBuilder * * * string discovery_document_uri = 2; + * + * @return The bytes for discoveryDocumentUri. */ com.google.protobuf.ByteString getDiscoveryDocumentUriBytes(); @@ -83,6 +91,8 @@ public interface ResourceOrBuilder * * * string discovery_name = 3; + * + * @return The discoveryName. */ java.lang.String getDiscoveryName(); /** @@ -95,6 +105,8 @@ public interface ResourceOrBuilder * * * string discovery_name = 3; + * + * @return The bytes for discoveryName. */ com.google.protobuf.ByteString getDiscoveryNameBytes(); @@ -110,6 +122,8 @@ public interface ResourceOrBuilder * * * string resource_url = 4; + * + * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** @@ -124,6 +138,8 @@ public interface ResourceOrBuilder * * * string resource_url = 4; + * + * @return The bytes for resourceUrl. */ com.google.protobuf.ByteString getResourceUrlBytes(); @@ -143,6 +159,8 @@ public interface ResourceOrBuilder * * * string parent = 5; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -161,6 +179,8 @@ public interface ResourceOrBuilder * * * string parent = 5; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -173,6 +193,8 @@ public interface ResourceOrBuilder * * * .google.protobuf.Struct data = 6; + * + * @return Whether the data field is set. */ boolean hasData(); /** @@ -184,6 +206,8 @@ public interface ResourceOrBuilder * * * .google.protobuf.Struct data = 6; + * + * @return The data. */ com.google.protobuf.Struct getData(); /** diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAsset.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAsset.java index 910c6cb91..74884da41 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAsset.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAsset.java @@ -40,6 +40,12 @@ private TemporalAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) private TemporalAsset() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TemporalAsset(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -53,7 +59,6 @@ private TemporalAsset( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -145,6 +150,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.asset.v1beta1.TimeWindow window = 1; + * + * @return Whether the window field is set. */ public boolean hasWindow() { return window_ != null; @@ -157,6 +164,8 @@ public boolean hasWindow() { * * * .google.cloud.asset.v1beta1.TimeWindow window = 1; + * + * @return The window. */ public com.google.cloud.asset.v1beta1.TimeWindow getWindow() { return window_ == null @@ -186,6 +195,8 @@ public com.google.cloud.asset.v1beta1.TimeWindowOrBuilder getWindowOrBuilder() { * * * bool deleted = 2; + * + * @return The deleted. */ public boolean getDeleted() { return deleted_; @@ -201,6 +212,8 @@ public boolean getDeleted() { * * * .google.cloud.asset.v1beta1.Asset asset = 3; + * + * @return Whether the asset field is set. */ public boolean hasAsset() { return asset_ != null; @@ -213,6 +226,8 @@ public boolean hasAsset() { * * * .google.cloud.asset.v1beta1.Asset asset = 3; + * + * @return The asset. */ public com.google.cloud.asset.v1beta1.Asset getAsset() { return asset_ == null ? com.google.cloud.asset.v1beta1.Asset.getDefaultInstance() : asset_; @@ -616,6 +631,8 @@ public Builder mergeFrom( * * * .google.cloud.asset.v1beta1.TimeWindow window = 1; + * + * @return Whether the window field is set. */ public boolean hasWindow() { return windowBuilder_ != null || window_ != null; @@ -628,6 +645,8 @@ public boolean hasWindow() { * * * .google.cloud.asset.v1beta1.TimeWindow window = 1; + * + * @return The window. */ public com.google.cloud.asset.v1beta1.TimeWindow getWindow() { if (windowBuilder_ == null) { @@ -792,6 +811,8 @@ public com.google.cloud.asset.v1beta1.TimeWindowOrBuilder getWindowOrBuilder() { * * * bool deleted = 2; + * + * @return The deleted. */ public boolean getDeleted() { return deleted_; @@ -804,6 +825,9 @@ public boolean getDeleted() { * * * bool deleted = 2; + * + * @param value The deleted to set. + * @return This builder for chaining. */ public Builder setDeleted(boolean value) { @@ -819,6 +843,8 @@ public Builder setDeleted(boolean value) { * * * bool deleted = 2; + * + * @return This builder for chaining. */ public Builder clearDeleted() { @@ -841,6 +867,8 @@ public Builder clearDeleted() { * * * .google.cloud.asset.v1beta1.Asset asset = 3; + * + * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; @@ -853,6 +881,8 @@ public boolean hasAsset() { * * * .google.cloud.asset.v1beta1.Asset asset = 3; + * + * @return The asset. */ public com.google.cloud.asset.v1beta1.Asset getAsset() { if (assetBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAssetOrBuilder.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAssetOrBuilder.java index 5912d092b..b4fd30968 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAssetOrBuilder.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAssetOrBuilder.java @@ -31,6 +31,8 @@ public interface TemporalAssetOrBuilder * * * .google.cloud.asset.v1beta1.TimeWindow window = 1; + * + * @return Whether the window field is set. */ boolean hasWindow(); /** @@ -41,6 +43,8 @@ public interface TemporalAssetOrBuilder * * * .google.cloud.asset.v1beta1.TimeWindow window = 1; + * + * @return The window. */ com.google.cloud.asset.v1beta1.TimeWindow getWindow(); /** @@ -62,6 +66,8 @@ public interface TemporalAssetOrBuilder * * * bool deleted = 2; + * + * @return The deleted. */ boolean getDeleted(); @@ -73,6 +79,8 @@ public interface TemporalAssetOrBuilder * * * .google.cloud.asset.v1beta1.Asset asset = 3; + * + * @return Whether the asset field is set. */ boolean hasAsset(); /** @@ -83,6 +91,8 @@ public interface TemporalAssetOrBuilder * * * .google.cloud.asset.v1beta1.Asset asset = 3; + * + * @return The asset. */ com.google.cloud.asset.v1beta1.Asset getAsset(); /** diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindow.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindow.java index eac4bcf90..39e8b72e4 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindow.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindow.java @@ -39,6 +39,12 @@ private TimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { private TimeWindow() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimeWindow(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private TimeWindow( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -137,6 +142,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -149,6 +156,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; @@ -177,6 +186,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTime_ != null; @@ -190,6 +201,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; @@ -578,6 +591,8 @@ public Builder mergeFrom( * * * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -590,6 +605,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { @@ -754,6 +771,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; @@ -767,6 +786,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { if (endTimeBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindowOrBuilder.java b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindowOrBuilder.java index 42cc2962e..cc14ccc8b 100644 --- a/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindowOrBuilder.java +++ b/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindowOrBuilder.java @@ -31,6 +31,8 @@ public interface TimeWindowOrBuilder * * * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -41,6 +43,8 @@ public interface TimeWindowOrBuilder * * * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** @@ -63,6 +67,8 @@ public interface TimeWindowOrBuilder * * * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. */ boolean hasEndTime(); /** @@ -74,6 +80,8 @@ public interface TimeWindowOrBuilder * * * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java index 6a3bea204..2bb659ec7 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java @@ -45,6 +45,12 @@ private Asset() { ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Asset(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -121,9 +127,9 @@ private Asset( case 50: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000020) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { ancestors_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000001; } ancestors_.add(s); break; @@ -142,7 +148,7 @@ private Asset( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000020) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { ancestors_ = ancestors_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -165,7 +171,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.asset.v1p2beta1.Asset.Builder.class); } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -180,6 +185,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -204,6 +211,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -227,6 +236,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string asset_type = 2; + * + * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; @@ -247,6 +258,8 @@ public java.lang.String getAssetType() { * * * string asset_type = 2; + * + * @return The bytes for assetType. */ public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; @@ -270,6 +283,8 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { * * * .google.cloud.asset.v1p2beta1.Resource resource = 3; + * + * @return Whether the resource field is set. */ public boolean hasResource() { return resource_ != null; @@ -282,6 +297,8 @@ public boolean hasResource() { * * * .google.cloud.asset.v1p2beta1.Resource resource = 3; + * + * @return The resource. */ public com.google.cloud.asset.v1p2beta1.Resource getResource() { return resource_ == null @@ -312,6 +329,8 @@ public com.google.cloud.asset.v1p2beta1.ResourceOrBuilder getResourceOrBuilder() * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicy_ != null; @@ -325,6 +344,8 @@ public boolean hasIamPolicy() { * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_; @@ -355,6 +376,8 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() { * * * bytes iam_policy_name = 5; + * + * @return The iamPolicyName. */ public com.google.protobuf.ByteString getIamPolicyName() { return iamPolicyName_; @@ -374,6 +397,8 @@ public com.google.protobuf.ByteString getIamPolicyName() { * * * repeated string ancestors = 6; + * + * @return A list containing the ancestors. */ public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_; @@ -390,6 +415,8 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() { * * * repeated string ancestors = 6; + * + * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); @@ -406,6 +433,9 @@ public int getAncestorsCount() { * * * repeated string ancestors = 6; + * + * @param index The index of the element to return. + * @return The ancestors at the given index. */ public java.lang.String getAncestors(int index) { return ancestors_.get(index); @@ -422,6 +452,9 @@ public java.lang.String getAncestors(int index) { * * * repeated string ancestors = 6; + * + * @param index The index of the value to return. + * @return The bytes of the ancestors at the given index. */ public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); @@ -712,7 +745,7 @@ public Builder clear() { iamPolicyName_ = com.google.protobuf.ByteString.EMPTY; ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -741,7 +774,6 @@ public com.google.cloud.asset.v1p2beta1.Asset buildPartial() { com.google.cloud.asset.v1p2beta1.Asset result = new com.google.cloud.asset.v1p2beta1.Asset(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; result.assetType_ = assetType_; if (resourceBuilder_ == null) { @@ -755,12 +787,11 @@ public com.google.cloud.asset.v1p2beta1.Asset buildPartial() { result.iamPolicy_ = iamPolicyBuilder_.build(); } result.iamPolicyName_ = iamPolicyName_; - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { ancestors_ = ancestors_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000001); } result.ancestors_ = ancestors_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -830,7 +861,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.Asset other) { if (!other.ancestors_.isEmpty()) { if (ancestors_.isEmpty()) { ancestors_ = other.ancestors_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAncestorsIsMutable(); ancestors_.addAll(other.ancestors_); @@ -881,6 +912,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -905,6 +938,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -929,6 +964,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -951,6 +989,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -970,6 +1010,9 @@ public Builder clearName() { * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -991,6 +1034,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * string asset_type = 2; + * + * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; @@ -1011,6 +1056,8 @@ public java.lang.String getAssetType() { * * * string asset_type = 2; + * + * @return The bytes for assetType. */ public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; @@ -1031,6 +1078,9 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { * * * string asset_type = 2; + * + * @param value The assetType to set. + * @return This builder for chaining. */ public Builder setAssetType(java.lang.String value) { if (value == null) { @@ -1049,6 +1099,8 @@ public Builder setAssetType(java.lang.String value) { * * * string asset_type = 2; + * + * @return This builder for chaining. */ public Builder clearAssetType() { @@ -1064,6 +1116,9 @@ public Builder clearAssetType() { * * * string asset_type = 2; + * + * @param value The bytes for assetType to set. + * @return This builder for chaining. */ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1090,6 +1145,8 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.asset.v1p2beta1.Resource resource = 3; + * + * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; @@ -1102,6 +1159,8 @@ public boolean hasResource() { * * * .google.cloud.asset.v1p2beta1.Resource resource = 3; + * + * @return The resource. */ public com.google.cloud.asset.v1p2beta1.Resource getResource() { if (resourceBuilder_ == null) { @@ -1272,6 +1331,8 @@ public com.google.cloud.asset.v1p2beta1.ResourceOrBuilder getResourceOrBuilder() * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; @@ -1285,6 +1346,8 @@ public boolean hasIamPolicy() { * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { if (iamPolicyBuilder_ == null) { @@ -1452,6 +1515,8 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() { * * * bytes iam_policy_name = 5; + * + * @return The iamPolicyName. */ public com.google.protobuf.ByteString getIamPolicyName() { return iamPolicyName_; @@ -1466,6 +1531,9 @@ public com.google.protobuf.ByteString getIamPolicyName() { * * * bytes iam_policy_name = 5; + * + * @param value The iamPolicyName to set. + * @return This builder for chaining. */ public Builder setIamPolicyName(com.google.protobuf.ByteString value) { if (value == null) { @@ -1486,6 +1554,8 @@ public Builder setIamPolicyName(com.google.protobuf.ByteString value) { * * * bytes iam_policy_name = 5; + * + * @return This builder for chaining. */ public Builder clearIamPolicyName() { @@ -1498,9 +1568,9 @@ public Builder clearIamPolicyName() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAncestorsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000001; } } /** @@ -1515,6 +1585,8 @@ private void ensureAncestorsIsMutable() { * * * repeated string ancestors = 6; + * + * @return A list containing the ancestors. */ public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_.getUnmodifiableView(); @@ -1531,6 +1603,8 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() { * * * repeated string ancestors = 6; + * + * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); @@ -1547,6 +1621,9 @@ public int getAncestorsCount() { * * * repeated string ancestors = 6; + * + * @param index The index of the element to return. + * @return The ancestors at the given index. */ public java.lang.String getAncestors(int index) { return ancestors_.get(index); @@ -1563,6 +1640,9 @@ public java.lang.String getAncestors(int index) { * * * repeated string ancestors = 6; + * + * @param index The index of the value to return. + * @return The bytes of the ancestors at the given index. */ public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); @@ -1579,6 +1659,10 @@ public com.google.protobuf.ByteString getAncestorsBytes(int index) { * * * repeated string ancestors = 6; + * + * @param index The index to set the value at. + * @param value The ancestors to set. + * @return This builder for chaining. */ public Builder setAncestors(int index, java.lang.String value) { if (value == null) { @@ -1601,6 +1685,9 @@ public Builder setAncestors(int index, java.lang.String value) { * * * repeated string ancestors = 6; + * + * @param value The ancestors to add. + * @return This builder for chaining. */ public Builder addAncestors(java.lang.String value) { if (value == null) { @@ -1623,6 +1710,9 @@ public Builder addAncestors(java.lang.String value) { * * * repeated string ancestors = 6; + * + * @param values The ancestors to add. + * @return This builder for chaining. */ public Builder addAllAncestors(java.lang.Iterable values) { ensureAncestorsIsMutable(); @@ -1642,10 +1732,12 @@ public Builder addAllAncestors(java.lang.Iterable values) { * * * repeated string ancestors = 6; + * + * @return This builder for chaining. */ public Builder clearAncestors() { ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1661,6 +1753,9 @@ public Builder clearAncestors() { * * * repeated string ancestors = 6; + * + * @param value The bytes of the ancestors to add. + * @return This builder for chaining. */ public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java index 5206e20f7..80fcdc6bd 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java @@ -35,6 +35,8 @@ public interface AssetOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -49,6 +51,8 @@ public interface AssetOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -60,6 +64,8 @@ public interface AssetOrBuilder * * * string asset_type = 2; + * + * @return The assetType. */ java.lang.String getAssetType(); /** @@ -70,6 +76,8 @@ public interface AssetOrBuilder * * * string asset_type = 2; + * + * @return The bytes for assetType. */ com.google.protobuf.ByteString getAssetTypeBytes(); @@ -81,6 +89,8 @@ public interface AssetOrBuilder * * * .google.cloud.asset.v1p2beta1.Resource resource = 3; + * + * @return Whether the resource field is set. */ boolean hasResource(); /** @@ -91,6 +101,8 @@ public interface AssetOrBuilder * * * .google.cloud.asset.v1p2beta1.Resource resource = 3; + * + * @return The resource. */ com.google.cloud.asset.v1p2beta1.Resource getResource(); /** @@ -113,6 +125,8 @@ public interface AssetOrBuilder * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** @@ -124,6 +138,8 @@ public interface AssetOrBuilder * * * .google.iam.v1.Policy iam_policy = 4; + * + * @return The iamPolicy. */ com.google.iam.v1.Policy getIamPolicy(); /** @@ -148,6 +164,8 @@ public interface AssetOrBuilder * * * bytes iam_policy_name = 5; + * + * @return The iamPolicyName. */ com.google.protobuf.ByteString getIamPolicyName(); @@ -163,6 +181,8 @@ public interface AssetOrBuilder * * * repeated string ancestors = 6; + * + * @return A list containing the ancestors. */ java.util.List getAncestorsList(); /** @@ -177,6 +197,8 @@ public interface AssetOrBuilder * * * repeated string ancestors = 6; + * + * @return The count of ancestors. */ int getAncestorsCount(); /** @@ -191,6 +213,9 @@ public interface AssetOrBuilder * * * repeated string ancestors = 6; + * + * @param index The index of the element to return. + * @return The ancestors at the given index. */ java.lang.String getAncestors(int index); /** @@ -205,6 +230,9 @@ public interface AssetOrBuilder * * * repeated string ancestors = 6; + * + * @param index The index of the value to return. + * @return The bytes of the ancestors at the given index. */ com.google.protobuf.ByteString getAncestorsBytes(int index); } diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java index 2a42a9f65..a93716a01 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java @@ -80,24 +80,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.Cloud.Asset.v1p2beta1\312\002\034Google\\Cloud\\A" + "sset\\v1p2beta1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable = diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java index 201f9bc90..3fe4cc4d8 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java @@ -190,26 +190,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Cloud.Asset.V1p2Beta1\312\002\034Google\\Cloud\\Ass" + "et\\V1p2Beta1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.asset.v1p2beta1.AssetProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.asset.v1p2beta1.AssetProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + }); internal_static_google_cloud_asset_v1p2beta1_ExportAssetsRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_asset_v1p2beta1_ExportAssetsRequest_fieldAccessorTable = diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryRequest.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryRequest.java index 3ca475081..b85034ae0 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryRequest.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryRequest.java @@ -43,6 +43,12 @@ private BatchGetAssetsHistoryRequest() { contentType_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchGetAssetsHistoryRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -77,9 +83,9 @@ private BatchGetAssetsHistoryRequest( case 18: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } assetNames_.add(s); break; @@ -121,7 +127,7 @@ private BatchGetAssetsHistoryRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { assetNames_ = assetNames_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -144,7 +150,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.asset.v1p2beta1.BatchGetAssetsHistoryRequest.Builder.class); } - private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** @@ -157,6 +162,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string parent = 1; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -179,6 +186,8 @@ public java.lang.String getParent() { * * * string parent = 1; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -210,6 +219,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * repeated string asset_names = 2; + * + * @return A list containing the assetNames. */ public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_; @@ -230,6 +241,8 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() { * * * repeated string asset_names = 2; + * + * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); @@ -250,6 +263,9 @@ public int getAssetNamesCount() { * * * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. */ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); @@ -270,6 +286,9 @@ public java.lang.String getAssetNames(int index) { * * * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. */ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); @@ -285,6 +304,8 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 3; + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -297,6 +318,8 @@ public int getContentTypeValue() { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 3; + * + * @return The contentType. */ public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -320,6 +343,8 @@ public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { * * * .google.cloud.asset.v1p2beta1.TimeWindow read_time_window = 4; + * + * @return Whether the readTimeWindow field is set. */ public boolean hasReadTimeWindow() { return readTimeWindow_ != null; @@ -337,6 +362,8 @@ public boolean hasReadTimeWindow() { * * * .google.cloud.asset.v1p2beta1.TimeWindow read_time_window = 4; + * + * @return The readTimeWindow. */ public com.google.cloud.asset.v1p2beta1.TimeWindow getReadTimeWindow() { return readTimeWindow_ == null @@ -610,7 +637,7 @@ public Builder clear() { parent_ = ""; assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); contentType_ = 0; if (readTimeWindowBuilder_ == null) { @@ -648,11 +675,10 @@ public com.google.cloud.asset.v1p2beta1.BatchGetAssetsHistoryRequest buildPartia com.google.cloud.asset.v1p2beta1.BatchGetAssetsHistoryRequest result = new com.google.cloud.asset.v1p2beta1.BatchGetAssetsHistoryRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.parent_ = parent_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { assetNames_ = assetNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.assetNames_ = assetNames_; result.contentType_ = contentType_; @@ -661,7 +687,6 @@ public com.google.cloud.asset.v1p2beta1.BatchGetAssetsHistoryRequest buildPartia } else { result.readTimeWindow_ = readTimeWindowBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -720,7 +745,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.BatchGetAssetsHistoryR if (!other.assetNames_.isEmpty()) { if (assetNames_.isEmpty()) { assetNames_ = other.assetNames_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAssetNamesIsMutable(); assetNames_.addAll(other.assetNames_); @@ -777,6 +802,8 @@ public Builder mergeFrom( * * * string parent = 1; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -799,6 +826,8 @@ public java.lang.String getParent() { * * * string parent = 1; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -821,6 +850,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 1; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -841,6 +873,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 1; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -858,6 +892,9 @@ public Builder clearParent() { * * * string parent = 1; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -874,9 +911,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetNamesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(assetNames_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** @@ -895,6 +932,8 @@ private void ensureAssetNamesIsMutable() { * * * repeated string asset_names = 2; + * + * @return A list containing the assetNames. */ public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_.getUnmodifiableView(); @@ -915,6 +954,8 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() { * * * repeated string asset_names = 2; + * + * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); @@ -935,6 +976,9 @@ public int getAssetNamesCount() { * * * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. */ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); @@ -955,6 +999,9 @@ public java.lang.String getAssetNames(int index) { * * * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. */ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); @@ -975,6 +1022,10 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { * * * repeated string asset_names = 2; + * + * @param index The index to set the value at. + * @param value The assetNames to set. + * @return This builder for chaining. */ public Builder setAssetNames(int index, java.lang.String value) { if (value == null) { @@ -1001,6 +1052,9 @@ public Builder setAssetNames(int index, java.lang.String value) { * * * repeated string asset_names = 2; + * + * @param value The assetNames to add. + * @return This builder for chaining. */ public Builder addAssetNames(java.lang.String value) { if (value == null) { @@ -1027,6 +1081,9 @@ public Builder addAssetNames(java.lang.String value) { * * * repeated string asset_names = 2; + * + * @param values The assetNames to add. + * @return This builder for chaining. */ public Builder addAllAssetNames(java.lang.Iterable values) { ensureAssetNamesIsMutable(); @@ -1050,10 +1107,12 @@ public Builder addAllAssetNames(java.lang.Iterable values) { * * * repeated string asset_names = 2; + * + * @return This builder for chaining. */ public Builder clearAssetNames() { assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1073,6 +1132,9 @@ public Builder clearAssetNames() { * * * repeated string asset_names = 2; + * + * @param value The bytes of the assetNames to add. + * @return This builder for chaining. */ public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1094,6 +1156,8 @@ public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 3; + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -1106,6 +1170,9 @@ public int getContentTypeValue() { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 3; + * + * @param value The enum numeric value on the wire for contentType to set. + * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { contentType_ = value; @@ -1120,6 +1187,8 @@ public Builder setContentTypeValue(int value) { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 3; + * + * @return The contentType. */ public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -1135,6 +1204,9 @@ public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 3; + * + * @param value The contentType to set. + * @return This builder for chaining. */ public Builder setContentType(com.google.cloud.asset.v1p2beta1.ContentType value) { if (value == null) { @@ -1153,6 +1225,8 @@ public Builder setContentType(com.google.cloud.asset.v1p2beta1.ContentType value * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 3; + * + * @return This builder for chaining. */ public Builder clearContentType() { @@ -1180,6 +1254,8 @@ public Builder clearContentType() { * * * .google.cloud.asset.v1p2beta1.TimeWindow read_time_window = 4; + * + * @return Whether the readTimeWindow field is set. */ public boolean hasReadTimeWindow() { return readTimeWindowBuilder_ != null || readTimeWindow_ != null; @@ -1197,6 +1273,8 @@ public boolean hasReadTimeWindow() { * * * .google.cloud.asset.v1p2beta1.TimeWindow read_time_window = 4; + * + * @return The readTimeWindow. */ public com.google.cloud.asset.v1p2beta1.TimeWindow getReadTimeWindow() { if (readTimeWindowBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryRequestOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryRequestOrBuilder.java index d2119cf54..97a8e2423 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryRequestOrBuilder.java @@ -33,6 +33,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * string parent = 1; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -45,6 +47,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * string parent = 1; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -64,6 +68,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * repeated string asset_names = 2; + * + * @return A list containing the assetNames. */ java.util.List getAssetNamesList(); /** @@ -82,6 +88,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * repeated string asset_names = 2; + * + * @return The count of assetNames. */ int getAssetNamesCount(); /** @@ -100,6 +108,9 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. */ java.lang.String getAssetNames(int index); /** @@ -118,6 +129,9 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. */ com.google.protobuf.ByteString getAssetNamesBytes(int index); @@ -129,6 +143,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 3; + * + * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** @@ -139,6 +155,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 3; + * + * @return The contentType. */ com.google.cloud.asset.v1p2beta1.ContentType getContentType(); @@ -155,6 +173,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * .google.cloud.asset.v1p2beta1.TimeWindow read_time_window = 4; + * + * @return Whether the readTimeWindow field is set. */ boolean hasReadTimeWindow(); /** @@ -170,6 +190,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder * * * .google.cloud.asset.v1p2beta1.TimeWindow read_time_window = 4; + * + * @return The readTimeWindow. */ com.google.cloud.asset.v1p2beta1.TimeWindow getReadTimeWindow(); /** diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryResponse.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryResponse.java index 0146142f2..fbacf097d 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryResponse.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryResponse.java @@ -41,6 +41,12 @@ private BatchGetAssetsHistoryResponse() { assets_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchGetAssetsHistoryResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BigQueryDestination.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BigQueryDestination.java index 40bb65cf6..a197ce865 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BigQueryDestination.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BigQueryDestination.java @@ -42,6 +42,12 @@ private BigQueryDestination() { table_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryDestination(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private BigQueryDestination( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string dataset = 1; + * + * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; @@ -155,6 +162,8 @@ public java.lang.String getDataset() { * * * string dataset = 1; + * + * @return The bytes for dataset. */ public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; @@ -180,6 +189,8 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * * string table = 2; + * + * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; @@ -202,6 +213,8 @@ public java.lang.String getTable() { * * * string table = 2; + * + * @return The bytes for table. */ public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; @@ -228,6 +241,8 @@ public com.google.protobuf.ByteString getTableBytes() { * * * bool force = 3; + * + * @return The force. */ public boolean getForce() { return force_; @@ -594,6 +609,8 @@ public Builder mergeFrom( * * * string dataset = 1; + * + * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; @@ -617,6 +634,8 @@ public java.lang.String getDataset() { * * * string dataset = 1; + * + * @return The bytes for dataset. */ public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; @@ -640,6 +659,9 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * * string dataset = 1; + * + * @param value The dataset to set. + * @return This builder for chaining. */ public Builder setDataset(java.lang.String value) { if (value == null) { @@ -661,6 +683,8 @@ public Builder setDataset(java.lang.String value) { * * * string dataset = 1; + * + * @return This builder for chaining. */ public Builder clearDataset() { @@ -679,6 +703,9 @@ public Builder clearDataset() { * * * string dataset = 1; + * + * @param value The bytes for dataset to set. + * @return This builder for chaining. */ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -702,6 +729,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * * string table = 2; + * + * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; @@ -724,6 +753,8 @@ public java.lang.String getTable() { * * * string table = 2; + * + * @return The bytes for table. */ public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; @@ -746,6 +777,9 @@ public com.google.protobuf.ByteString getTableBytes() { * * * string table = 2; + * + * @param value The table to set. + * @return This builder for chaining. */ public Builder setTable(java.lang.String value) { if (value == null) { @@ -766,6 +800,8 @@ public Builder setTable(java.lang.String value) { * * * string table = 2; + * + * @return This builder for chaining. */ public Builder clearTable() { @@ -783,6 +819,9 @@ public Builder clearTable() { * * * string table = 2; + * + * @param value The bytes for table to set. + * @return This builder for chaining. */ public Builder setTableBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -807,6 +846,8 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { * * * bool force = 3; + * + * @return The force. */ public boolean getForce() { return force_; @@ -822,6 +863,9 @@ public boolean getForce() { * * * bool force = 3; + * + * @param value The force to set. + * @return This builder for chaining. */ public Builder setForce(boolean value) { @@ -840,6 +884,8 @@ public Builder setForce(boolean value) { * * * bool force = 3; + * + * @return This builder for chaining. */ public Builder clearForce() { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BigQueryDestinationOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BigQueryDestinationOrBuilder.java index 37ca7bfa2..bd9ba9f6f 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BigQueryDestinationOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BigQueryDestinationOrBuilder.java @@ -34,6 +34,8 @@ public interface BigQueryDestinationOrBuilder * * * string dataset = 1; + * + * @return The dataset. */ java.lang.String getDataset(); /** @@ -47,6 +49,8 @@ public interface BigQueryDestinationOrBuilder * * * string dataset = 1; + * + * @return The bytes for dataset. */ com.google.protobuf.ByteString getDatasetBytes(); @@ -60,6 +64,8 @@ public interface BigQueryDestinationOrBuilder * * * string table = 2; + * + * @return The table. */ java.lang.String getTable(); /** @@ -72,6 +78,8 @@ public interface BigQueryDestinationOrBuilder * * * string table = 2; + * + * @return The bytes for table. */ com.google.protobuf.ByteString getTableBytes(); @@ -86,6 +94,8 @@ public interface BigQueryDestinationOrBuilder * * * bool force = 3; + * + * @return The force. */ boolean getForce(); } diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java index f38030098..2592d17d3 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java @@ -144,12 +144,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static ContentType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ContentType forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java index 4378283b4..ff036b17e 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java @@ -42,6 +42,12 @@ private CreateFeedRequest() { feedId_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateFeedRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private CreateFeedRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -144,6 +149,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string parent = 1; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -168,6 +175,8 @@ public java.lang.String getParent() { * * * string parent = 1; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -192,6 +201,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string feed_id = 2; + * + * @return The feedId. */ public java.lang.String getFeedId() { java.lang.Object ref = feedId_; @@ -213,6 +224,8 @@ public java.lang.String getFeedId() { * * * string feed_id = 2; + * + * @return The bytes for feedId. */ public com.google.protobuf.ByteString getFeedIdBytes() { java.lang.Object ref = feedId_; @@ -240,6 +253,8 @@ public com.google.protobuf.ByteString getFeedIdBytes() { * * * .google.cloud.asset.v1p2beta1.Feed feed = 3; + * + * @return Whether the feed field is set. */ public boolean hasFeed() { return feed_ != null; @@ -256,6 +271,8 @@ public boolean hasFeed() { * * * .google.cloud.asset.v1p2beta1.Feed feed = 3; + * + * @return The feed. */ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { return feed_ == null ? com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; @@ -652,6 +669,8 @@ public Builder mergeFrom( * * * string parent = 1; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -676,6 +695,8 @@ public java.lang.String getParent() { * * * string parent = 1; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -700,6 +721,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 1; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -722,6 +746,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 1; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -741,6 +767,9 @@ public Builder clearParent() { * * * string parent = 1; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -763,6 +792,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * string feed_id = 2; + * + * @return The feedId. */ public java.lang.String getFeedId() { java.lang.Object ref = feedId_; @@ -784,6 +815,8 @@ public java.lang.String getFeedId() { * * * string feed_id = 2; + * + * @return The bytes for feedId. */ public com.google.protobuf.ByteString getFeedIdBytes() { java.lang.Object ref = feedId_; @@ -805,6 +838,9 @@ public com.google.protobuf.ByteString getFeedIdBytes() { * * * string feed_id = 2; + * + * @param value The feedId to set. + * @return This builder for chaining. */ public Builder setFeedId(java.lang.String value) { if (value == null) { @@ -824,6 +860,8 @@ public Builder setFeedId(java.lang.String value) { * * * string feed_id = 2; + * + * @return This builder for chaining. */ public Builder clearFeedId() { @@ -840,6 +878,9 @@ public Builder clearFeedId() { * * * string feed_id = 2; + * + * @param value The bytes for feedId to set. + * @return This builder for chaining. */ public Builder setFeedIdBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -870,6 +911,8 @@ public Builder setFeedIdBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.asset.v1p2beta1.Feed feed = 3; + * + * @return Whether the feed field is set. */ public boolean hasFeed() { return feedBuilder_ != null || feed_ != null; @@ -886,6 +929,8 @@ public boolean hasFeed() { * * * .google.cloud.asset.v1p2beta1.Feed feed = 3; + * + * @return The feed. */ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { if (feedBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java index 2bca4c099..058382016 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java @@ -35,6 +35,8 @@ public interface CreateFeedRequestOrBuilder * * * string parent = 1; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -49,6 +51,8 @@ public interface CreateFeedRequestOrBuilder * * * string parent = 1; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -61,6 +65,8 @@ public interface CreateFeedRequestOrBuilder * * * string feed_id = 2; + * + * @return The feedId. */ java.lang.String getFeedId(); /** @@ -72,6 +78,8 @@ public interface CreateFeedRequestOrBuilder * * * string feed_id = 2; + * + * @return The bytes for feedId. */ com.google.protobuf.ByteString getFeedIdBytes(); @@ -87,6 +95,8 @@ public interface CreateFeedRequestOrBuilder * * * .google.cloud.asset.v1p2beta1.Feed feed = 3; + * + * @return Whether the feed field is set. */ boolean hasFeed(); /** @@ -101,6 +111,8 @@ public interface CreateFeedRequestOrBuilder * * * .google.cloud.asset.v1p2beta1.Feed feed = 3; + * + * @return The feed. */ com.google.cloud.asset.v1p2beta1.Feed getFeed(); /** diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java index 3961cb20c..d3e272c5e 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java @@ -41,6 +41,12 @@ private DeleteFeedRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteFeedRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private DeleteFeedRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -119,6 +124,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -142,6 +149,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -485,6 +494,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -508,6 +519,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -531,6 +544,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -552,6 +568,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -570,6 +588,9 @@ public Builder clearName() { * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java index 7ffa858c1..c2116e542 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java @@ -34,6 +34,8 @@ public interface DeleteFeedRequestOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -47,6 +49,8 @@ public interface DeleteFeedRequestOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsRequest.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsRequest.java index c98707a33..3821cd6fc 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsRequest.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsRequest.java @@ -43,6 +43,12 @@ private ExportAssetsRequest() { contentType_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportAssetsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -92,9 +98,9 @@ private ExportAssetsRequest( case 26: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } assetTypes_.add(s); break; @@ -136,7 +142,7 @@ private ExportAssetsRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { assetTypes_ = assetTypes_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -159,7 +165,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.asset.v1p2beta1.ExportAssetsRequest.Builder.class); } - private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** @@ -172,6 +177,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string parent = 1; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -194,6 +201,8 @@ public java.lang.String getParent() { * * * string parent = 1; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -221,6 +230,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -237,6 +248,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -272,6 +285,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. */ public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_; @@ -288,6 +303,8 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * * * repeated string asset_types = 3; + * + * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); @@ -304,6 +321,9 @@ public int getAssetTypesCount() { * * * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. */ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); @@ -320,6 +340,9 @@ public java.lang.String getAssetTypes(int index) { * * * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. */ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); @@ -336,6 +359,8 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -349,6 +374,8 @@ public int getContentTypeValue() { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return The contentType. */ public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -368,6 +395,8 @@ public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { * * * .google.cloud.asset.v1p2beta1.OutputConfig output_config = 5; + * + * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfig_ != null; @@ -381,6 +410,8 @@ public boolean hasOutputConfig() { * * * .google.cloud.asset.v1p2beta1.OutputConfig output_config = 5; + * + * @return The outputConfig. */ public com.google.cloud.asset.v1p2beta1.OutputConfig getOutputConfig() { return outputConfig_ == null @@ -669,7 +700,7 @@ public Builder clear() { readTimeBuilder_ = null; } assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); contentType_ = 0; if (outputConfigBuilder_ == null) { @@ -706,16 +737,15 @@ public com.google.cloud.asset.v1p2beta1.ExportAssetsRequest buildPartial() { com.google.cloud.asset.v1p2beta1.ExportAssetsRequest result = new com.google.cloud.asset.v1p2beta1.ExportAssetsRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.parent_ = parent_; if (readTimeBuilder_ == null) { result.readTime_ = readTime_; } else { result.readTime_ = readTimeBuilder_.build(); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { assetTypes_ = assetTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.assetTypes_ = assetTypes_; result.contentType_ = contentType_; @@ -724,7 +754,6 @@ public com.google.cloud.asset.v1p2beta1.ExportAssetsRequest buildPartial() { } else { result.outputConfig_ = outputConfigBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -785,7 +814,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.ExportAssetsRequest ot if (!other.assetTypes_.isEmpty()) { if (assetTypes_.isEmpty()) { assetTypes_ = other.assetTypes_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAssetTypesIsMutable(); assetTypes_.addAll(other.assetTypes_); @@ -841,6 +870,8 @@ public Builder mergeFrom( * * * string parent = 1; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -863,6 +894,8 @@ public java.lang.String getParent() { * * * string parent = 1; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -885,6 +918,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 1; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -905,6 +941,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 1; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -922,6 +960,9 @@ public Builder clearParent() { * * * string parent = 1; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -952,6 +993,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -968,6 +1011,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1149,9 +1194,9 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetTypesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } /** @@ -1166,6 +1211,8 @@ private void ensureAssetTypesIsMutable() { * * * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. */ public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_.getUnmodifiableView(); @@ -1182,6 +1229,8 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * * * repeated string asset_types = 3; + * + * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); @@ -1198,6 +1247,9 @@ public int getAssetTypesCount() { * * * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. */ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); @@ -1214,6 +1266,9 @@ public java.lang.String getAssetTypes(int index) { * * * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. */ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); @@ -1230,6 +1285,10 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { * * * repeated string asset_types = 3; + * + * @param index The index to set the value at. + * @param value The assetTypes to set. + * @return This builder for chaining. */ public Builder setAssetTypes(int index, java.lang.String value) { if (value == null) { @@ -1252,6 +1311,9 @@ public Builder setAssetTypes(int index, java.lang.String value) { * * * repeated string asset_types = 3; + * + * @param value The assetTypes to add. + * @return This builder for chaining. */ public Builder addAssetTypes(java.lang.String value) { if (value == null) { @@ -1274,6 +1336,9 @@ public Builder addAssetTypes(java.lang.String value) { * * * repeated string asset_types = 3; + * + * @param values The assetTypes to add. + * @return This builder for chaining. */ public Builder addAllAssetTypes(java.lang.Iterable values) { ensureAssetTypesIsMutable(); @@ -1293,10 +1358,12 @@ public Builder addAllAssetTypes(java.lang.Iterable values) { * * * repeated string asset_types = 3; + * + * @return This builder for chaining. */ public Builder clearAssetTypes() { assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1312,6 +1379,9 @@ public Builder clearAssetTypes() { * * * repeated string asset_types = 3; + * + * @param value The bytes of the assetTypes to add. + * @return This builder for chaining. */ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1334,6 +1404,8 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -1347,6 +1419,9 @@ public int getContentTypeValue() { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @param value The enum numeric value on the wire for contentType to set. + * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { contentType_ = value; @@ -1362,6 +1437,8 @@ public Builder setContentTypeValue(int value) { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return The contentType. */ public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -1378,6 +1455,9 @@ public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @param value The contentType to set. + * @return This builder for chaining. */ public Builder setContentType(com.google.cloud.asset.v1p2beta1.ContentType value) { if (value == null) { @@ -1397,6 +1477,8 @@ public Builder setContentType(com.google.cloud.asset.v1p2beta1.ContentType value * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return This builder for chaining. */ public Builder clearContentType() { @@ -1420,6 +1502,8 @@ public Builder clearContentType() { * * * .google.cloud.asset.v1p2beta1.OutputConfig output_config = 5; + * + * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; @@ -1433,6 +1517,8 @@ public boolean hasOutputConfig() { * * * .google.cloud.asset.v1p2beta1.OutputConfig output_config = 5; + * + * @return The outputConfig. */ public com.google.cloud.asset.v1p2beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsRequestOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsRequestOrBuilder.java index ebc40fc21..d46f62012 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsRequestOrBuilder.java @@ -33,6 +33,8 @@ public interface ExportAssetsRequestOrBuilder * * * string parent = 1; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -45,6 +47,8 @@ public interface ExportAssetsRequestOrBuilder * * * string parent = 1; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -60,6 +64,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -74,6 +80,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -103,6 +111,8 @@ public interface ExportAssetsRequestOrBuilder * * * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. */ java.util.List getAssetTypesList(); /** @@ -117,6 +127,8 @@ public interface ExportAssetsRequestOrBuilder * * * repeated string asset_types = 3; + * + * @return The count of assetTypes. */ int getAssetTypesCount(); /** @@ -131,6 +143,9 @@ public interface ExportAssetsRequestOrBuilder * * * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** @@ -145,6 +160,9 @@ public interface ExportAssetsRequestOrBuilder * * * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. */ com.google.protobuf.ByteString getAssetTypesBytes(int index); @@ -157,6 +175,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** @@ -168,6 +188,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return The contentType. */ com.google.cloud.asset.v1p2beta1.ContentType getContentType(); @@ -180,6 +202,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.cloud.asset.v1p2beta1.OutputConfig output_config = 5; + * + * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** @@ -191,6 +215,8 @@ public interface ExportAssetsRequestOrBuilder * * * .google.cloud.asset.v1p2beta1.OutputConfig output_config = 5; + * + * @return The outputConfig. */ com.google.cloud.asset.v1p2beta1.OutputConfig getOutputConfig(); /** diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsResponse.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsResponse.java index 389810eee..9c40a6f11 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsResponse.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsResponse.java @@ -41,6 +41,12 @@ private ExportAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder b private ExportAssetsResponse() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportAssetsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ExportAssetsResponse( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -140,6 +145,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Timestamp read_time = 1; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -152,6 +159,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 1; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -180,6 +189,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.cloud.asset.v1p2beta1.OutputConfig output_config = 2; + * + * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfig_ != null; @@ -193,6 +204,8 @@ public boolean hasOutputConfig() { * * * .google.cloud.asset.v1p2beta1.OutputConfig output_config = 2; + * + * @return The outputConfig. */ public com.google.cloud.asset.v1p2beta1.OutputConfig getOutputConfig() { return outputConfig_ == null @@ -588,6 +601,8 @@ public Builder mergeFrom( * * * .google.protobuf.Timestamp read_time = 1; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -600,6 +615,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 1; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -764,6 +781,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.cloud.asset.v1p2beta1.OutputConfig output_config = 2; + * + * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; @@ -777,6 +796,8 @@ public boolean hasOutputConfig() { * * * .google.cloud.asset.v1p2beta1.OutputConfig output_config = 2; + * + * @return The outputConfig. */ public com.google.cloud.asset.v1p2beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsResponseOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsResponseOrBuilder.java index 30b1883eb..82034f452 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsResponseOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsResponseOrBuilder.java @@ -31,6 +31,8 @@ public interface ExportAssetsResponseOrBuilder * * * .google.protobuf.Timestamp read_time = 1; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -41,6 +43,8 @@ public interface ExportAssetsResponseOrBuilder * * * .google.protobuf.Timestamp read_time = 1; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -63,6 +67,8 @@ public interface ExportAssetsResponseOrBuilder * * * .google.cloud.asset.v1p2beta1.OutputConfig output_config = 2; + * + * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** @@ -74,6 +80,8 @@ public interface ExportAssetsResponseOrBuilder * * * .google.cloud.asset.v1p2beta1.OutputConfig output_config = 2; + * + * @return The outputConfig. */ com.google.cloud.asset.v1p2beta1.OutputConfig getOutputConfig(); /** diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java index 53364cf93..2e5b303f6 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java @@ -48,6 +48,12 @@ private Feed() { contentType_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Feed(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -82,9 +88,9 @@ private Feed( case 18: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } assetNames_.add(s); break; @@ -92,9 +98,9 @@ private Feed( case 26: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } assetTypes_.add(s); break; @@ -137,10 +143,10 @@ private Feed( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { assetNames_ = assetNames_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { assetTypes_ = assetTypes_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -163,7 +169,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.asset.v1p2beta1.Feed.Builder.class); } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -179,6 +184,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -204,6 +211,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -234,6 +243,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * repeated string asset_names = 2; + * + * @return A list containing the assetNames. */ public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_; @@ -253,6 +264,8 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() { * * * repeated string asset_names = 2; + * + * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); @@ -272,6 +285,9 @@ public int getAssetNamesCount() { * * * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. */ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); @@ -291,6 +307,9 @@ public java.lang.String getAssetNames(int index) { * * * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. */ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); @@ -312,6 +331,8 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { * * * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. */ public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_; @@ -330,6 +351,8 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * * * repeated string asset_types = 3; + * + * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); @@ -348,6 +371,9 @@ public int getAssetTypesCount() { * * * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. */ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); @@ -366,6 +392,9 @@ public java.lang.String getAssetTypes(int index) { * * * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. */ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); @@ -382,6 +411,8 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -395,6 +426,8 @@ public int getContentTypeValue() { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return The contentType. */ public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -414,6 +447,8 @@ public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { * * * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5; + * + * @return Whether the feedOutputConfig field is set. */ public boolean hasFeedOutputConfig() { return feedOutputConfig_ != null; @@ -427,6 +462,8 @@ public boolean hasFeedOutputConfig() { * * * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5; + * + * @return The feedOutputConfig. */ public com.google.cloud.asset.v1p2beta1.FeedOutputConfig getFeedOutputConfig() { return feedOutputConfig_ == null @@ -713,9 +750,9 @@ public Builder clear() { name_ = ""; assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); contentType_ = 0; if (feedOutputConfigBuilder_ == null) { @@ -752,16 +789,15 @@ public com.google.cloud.asset.v1p2beta1.Feed buildPartial() { com.google.cloud.asset.v1p2beta1.Feed result = new com.google.cloud.asset.v1p2beta1.Feed(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { assetNames_ = assetNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.assetNames_ = assetNames_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { assetTypes_ = assetTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.assetTypes_ = assetTypes_; result.contentType_ = contentType_; @@ -770,7 +806,6 @@ public com.google.cloud.asset.v1p2beta1.Feed buildPartial() { } else { result.feedOutputConfig_ = feedOutputConfigBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -827,7 +862,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.Feed other) { if (!other.assetNames_.isEmpty()) { if (assetNames_.isEmpty()) { assetNames_ = other.assetNames_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAssetNamesIsMutable(); assetNames_.addAll(other.assetNames_); @@ -837,7 +872,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.Feed other) { if (!other.assetTypes_.isEmpty()) { if (assetTypes_.isEmpty()) { assetTypes_ = other.assetTypes_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAssetTypesIsMutable(); assetTypes_.addAll(other.assetTypes_); @@ -895,6 +930,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -920,6 +957,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -945,6 +984,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -968,6 +1010,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -988,6 +1032,9 @@ public Builder clearName() { * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1004,9 +1051,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetNamesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(assetNames_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** @@ -1024,6 +1071,8 @@ private void ensureAssetNamesIsMutable() { * * * repeated string asset_names = 2; + * + * @return A list containing the assetNames. */ public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_.getUnmodifiableView(); @@ -1043,6 +1092,8 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() { * * * repeated string asset_names = 2; + * + * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); @@ -1062,6 +1113,9 @@ public int getAssetNamesCount() { * * * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. */ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); @@ -1081,6 +1135,9 @@ public java.lang.String getAssetNames(int index) { * * * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. */ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); @@ -1100,6 +1157,10 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) { * * * repeated string asset_names = 2; + * + * @param index The index to set the value at. + * @param value The assetNames to set. + * @return This builder for chaining. */ public Builder setAssetNames(int index, java.lang.String value) { if (value == null) { @@ -1125,6 +1186,9 @@ public Builder setAssetNames(int index, java.lang.String value) { * * * repeated string asset_names = 2; + * + * @param value The assetNames to add. + * @return This builder for chaining. */ public Builder addAssetNames(java.lang.String value) { if (value == null) { @@ -1150,6 +1214,9 @@ public Builder addAssetNames(java.lang.String value) { * * * repeated string asset_names = 2; + * + * @param values The assetNames to add. + * @return This builder for chaining. */ public Builder addAllAssetNames(java.lang.Iterable values) { ensureAssetNamesIsMutable(); @@ -1172,10 +1239,12 @@ public Builder addAllAssetNames(java.lang.Iterable values) { * * * repeated string asset_names = 2; + * + * @return This builder for chaining. */ public Builder clearAssetNames() { assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1194,6 +1263,9 @@ public Builder clearAssetNames() { * * * repeated string asset_names = 2; + * + * @param value The bytes of the assetNames to add. + * @return This builder for chaining. */ public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1210,9 +1282,9 @@ public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetTypesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } /** @@ -1229,6 +1301,8 @@ private void ensureAssetTypesIsMutable() { * * * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. */ public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_.getUnmodifiableView(); @@ -1247,6 +1321,8 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() { * * * repeated string asset_types = 3; + * + * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); @@ -1265,6 +1341,9 @@ public int getAssetTypesCount() { * * * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. */ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); @@ -1283,6 +1362,9 @@ public java.lang.String getAssetTypes(int index) { * * * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. */ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); @@ -1301,6 +1383,10 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) { * * * repeated string asset_types = 3; + * + * @param index The index to set the value at. + * @param value The assetTypes to set. + * @return This builder for chaining. */ public Builder setAssetTypes(int index, java.lang.String value) { if (value == null) { @@ -1325,6 +1411,9 @@ public Builder setAssetTypes(int index, java.lang.String value) { * * * repeated string asset_types = 3; + * + * @param value The assetTypes to add. + * @return This builder for chaining. */ public Builder addAssetTypes(java.lang.String value) { if (value == null) { @@ -1349,6 +1438,9 @@ public Builder addAssetTypes(java.lang.String value) { * * * repeated string asset_types = 3; + * + * @param values The assetTypes to add. + * @return This builder for chaining. */ public Builder addAllAssetTypes(java.lang.Iterable values) { ensureAssetTypesIsMutable(); @@ -1370,10 +1462,12 @@ public Builder addAllAssetTypes(java.lang.Iterable values) { * * * repeated string asset_types = 3; + * + * @return This builder for chaining. */ public Builder clearAssetTypes() { assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1391,6 +1485,9 @@ public Builder clearAssetTypes() { * * * repeated string asset_types = 3; + * + * @param value The bytes of the assetTypes to add. + * @return This builder for chaining. */ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1413,6 +1510,8 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. */ public int getContentTypeValue() { return contentType_; @@ -1426,6 +1525,9 @@ public int getContentTypeValue() { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @param value The enum numeric value on the wire for contentType to set. + * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { contentType_ = value; @@ -1441,6 +1543,8 @@ public Builder setContentTypeValue(int value) { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return The contentType. */ public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { @SuppressWarnings("deprecation") @@ -1457,6 +1561,9 @@ public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @param value The contentType to set. + * @return This builder for chaining. */ public Builder setContentType(com.google.cloud.asset.v1p2beta1.ContentType value) { if (value == null) { @@ -1476,6 +1583,8 @@ public Builder setContentType(com.google.cloud.asset.v1p2beta1.ContentType value * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return This builder for chaining. */ public Builder clearContentType() { @@ -1499,6 +1608,8 @@ public Builder clearContentType() { * * * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5; + * + * @return Whether the feedOutputConfig field is set. */ public boolean hasFeedOutputConfig() { return feedOutputConfigBuilder_ != null || feedOutputConfig_ != null; @@ -1512,6 +1623,8 @@ public boolean hasFeedOutputConfig() { * * * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5; + * + * @return The feedOutputConfig. */ public com.google.cloud.asset.v1p2beta1.FeedOutputConfig getFeedOutputConfig() { if (feedOutputConfigBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java index 13ae51742..078dd200c 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class FeedName implements ResourceName { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java index 59d15ddc4..0c6dcbecc 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java @@ -36,6 +36,8 @@ public interface FeedOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -51,6 +53,8 @@ public interface FeedOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -69,6 +73,8 @@ public interface FeedOrBuilder * * * repeated string asset_names = 2; + * + * @return A list containing the assetNames. */ java.util.List getAssetNamesList(); /** @@ -86,6 +92,8 @@ public interface FeedOrBuilder * * * repeated string asset_names = 2; + * + * @return The count of assetNames. */ int getAssetNamesCount(); /** @@ -103,6 +111,9 @@ public interface FeedOrBuilder * * * repeated string asset_names = 2; + * + * @param index The index of the element to return. + * @return The assetNames at the given index. */ java.lang.String getAssetNames(int index); /** @@ -120,6 +131,9 @@ public interface FeedOrBuilder * * * repeated string asset_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assetNames at the given index. */ com.google.protobuf.ByteString getAssetNamesBytes(int index); @@ -137,6 +151,8 @@ public interface FeedOrBuilder * * * repeated string asset_types = 3; + * + * @return A list containing the assetTypes. */ java.util.List getAssetTypesList(); /** @@ -153,6 +169,8 @@ public interface FeedOrBuilder * * * repeated string asset_types = 3; + * + * @return The count of assetTypes. */ int getAssetTypesCount(); /** @@ -169,6 +187,9 @@ public interface FeedOrBuilder * * * repeated string asset_types = 3; + * + * @param index The index of the element to return. + * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** @@ -185,6 +206,9 @@ public interface FeedOrBuilder * * * repeated string asset_types = 3; + * + * @param index The index of the value to return. + * @return The bytes of the assetTypes at the given index. */ com.google.protobuf.ByteString getAssetTypesBytes(int index); @@ -197,6 +221,8 @@ public interface FeedOrBuilder * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** @@ -208,6 +234,8 @@ public interface FeedOrBuilder * * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * + * @return The contentType. */ com.google.cloud.asset.v1p2beta1.ContentType getContentType(); @@ -220,6 +248,8 @@ public interface FeedOrBuilder * * * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5; + * + * @return Whether the feedOutputConfig field is set. */ boolean hasFeedOutputConfig(); /** @@ -231,6 +261,8 @@ public interface FeedOrBuilder * * * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5; + * + * @return The feedOutputConfig. */ com.google.cloud.asset.v1p2beta1.FeedOutputConfig getFeedOutputConfig(); /** diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java index d95c06632..c67da8acb 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java @@ -39,6 +39,12 @@ private FeedOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder build private FeedOutputConfig() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeedOutputConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private FeedOutputConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -119,7 +124,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase implements com.google.protobuf.Internal.EnumLite { + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBSUB_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; @@ -127,7 +135,11 @@ public enum DestinationCase implements com.google.protobuf.Internal.EnumLite { private DestinationCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static DestinationCase valueOf(int value) { return forNumber(value); @@ -162,6 +174,8 @@ public DestinationCase getDestinationCase() { * * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; + * + * @return Whether the pubsubDestination field is set. */ public boolean hasPubsubDestination() { return destinationCase_ == 1; @@ -174,6 +188,8 @@ public boolean hasPubsubDestination() { * * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; + * + * @return The pubsubDestination. */ public com.google.cloud.asset.v1p2beta1.PubsubDestination getPubsubDestination() { if (destinationCase_ == 1) { @@ -572,6 +588,8 @@ public Builder clearDestination() { * * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; + * + * @return Whether the pubsubDestination field is set. */ public boolean hasPubsubDestination() { return destinationCase_ == 1; @@ -584,6 +602,8 @@ public boolean hasPubsubDestination() { * * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; + * + * @return The pubsubDestination. */ public com.google.cloud.asset.v1p2beta1.PubsubDestination getPubsubDestination() { if (pubsubDestinationBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java index e3f724c44..4d5d085f4 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java @@ -31,6 +31,8 @@ public interface FeedOutputConfigOrBuilder * * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; + * + * @return Whether the pubsubDestination field is set. */ boolean hasPubsubDestination(); /** @@ -41,6 +43,8 @@ public interface FeedOutputConfigOrBuilder * * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; + * + * @return The pubsubDestination. */ com.google.cloud.asset.v1p2beta1.PubsubDestination getPubsubDestination(); /** diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java index 3f39a4af4..c27614799 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java @@ -39,6 +39,12 @@ private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder private GcsDestination() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsDestination(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private GcsDestination( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -114,7 +119,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int objectUriCase_ = 0; private java.lang.Object objectUri_; - public enum ObjectUriCase implements com.google.protobuf.Internal.EnumLite { + public enum ObjectUriCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { URI(1), URI_PREFIX(2), OBJECTURI_NOT_SET(0); @@ -123,7 +131,11 @@ public enum ObjectUriCase implements com.google.protobuf.Internal.EnumLite { private ObjectUriCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static ObjectUriCase valueOf(int value) { return forNumber(value); @@ -164,6 +176,8 @@ public ObjectUriCase getObjectUriCase() { * * * string uri = 1; + * + * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = ""; @@ -193,6 +207,8 @@ public java.lang.String getUri() { * * * string uri = 1; + * + * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; @@ -228,6 +244,8 @@ public com.google.protobuf.ByteString getUriBytes() { * * * string uri_prefix = 2; + * + * @return The uriPrefix. */ public java.lang.String getUriPrefix() { java.lang.Object ref = ""; @@ -261,6 +279,8 @@ public java.lang.String getUriPrefix() { * * * string uri_prefix = 2; + * + * @return The bytes for uriPrefix. */ public com.google.protobuf.ByteString getUriPrefixBytes() { java.lang.Object ref = ""; @@ -670,6 +690,8 @@ public Builder clearObjectUri() { * * * string uri = 1; + * + * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = ""; @@ -699,6 +721,8 @@ public java.lang.String getUri() { * * * string uri = 1; + * + * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; @@ -728,6 +752,9 @@ public com.google.protobuf.ByteString getUriBytes() { * * * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. */ public Builder setUri(java.lang.String value) { if (value == null) { @@ -750,6 +777,8 @@ public Builder setUri(java.lang.String value) { * * * string uri = 1; + * + * @return This builder for chaining. */ public Builder clearUri() { if (objectUriCase_ == 1) { @@ -771,6 +800,9 @@ public Builder clearUri() { * * * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. */ public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -799,6 +831,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { * * * string uri_prefix = 2; + * + * @return The uriPrefix. */ public java.lang.String getUriPrefix() { java.lang.Object ref = ""; @@ -832,6 +866,8 @@ public java.lang.String getUriPrefix() { * * * string uri_prefix = 2; + * + * @return The bytes for uriPrefix. */ public com.google.protobuf.ByteString getUriPrefixBytes() { java.lang.Object ref = ""; @@ -865,6 +901,9 @@ public com.google.protobuf.ByteString getUriPrefixBytes() { * * * string uri_prefix = 2; + * + * @param value The uriPrefix to set. + * @return This builder for chaining. */ public Builder setUriPrefix(java.lang.String value) { if (value == null) { @@ -891,6 +930,8 @@ public Builder setUriPrefix(java.lang.String value) { * * * string uri_prefix = 2; + * + * @return This builder for chaining. */ public Builder clearUriPrefix() { if (objectUriCase_ == 2) { @@ -916,6 +957,9 @@ public Builder clearUriPrefix() { * * * string uri_prefix = 2; + * + * @param value The bytes for uriPrefix to set. + * @return This builder for chaining. */ public Builder setUriPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java index 6f69c6403..7f40304b7 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java @@ -35,6 +35,8 @@ public interface GcsDestinationOrBuilder * * * string uri = 1; + * + * @return The uri. */ java.lang.String getUri(); /** @@ -49,6 +51,8 @@ public interface GcsDestinationOrBuilder * * * string uri = 1; + * + * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); @@ -68,6 +72,8 @@ public interface GcsDestinationOrBuilder * * * string uri_prefix = 2; + * + * @return The uriPrefix. */ java.lang.String getUriPrefix(); /** @@ -86,6 +92,8 @@ public interface GcsDestinationOrBuilder * * * string uri_prefix = 2; + * + * @return The bytes for uriPrefix. */ com.google.protobuf.ByteString getUriPrefixBytes(); diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java index a49cfe6f8..34eb7a22f 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java @@ -41,6 +41,12 @@ private GetFeedRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetFeedRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private GetFeedRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -119,6 +124,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -142,6 +149,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -484,6 +493,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -507,6 +518,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -530,6 +543,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -551,6 +567,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -569,6 +587,9 @@ public Builder clearName() { * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java index eb2c5a0b2..da49bfa4f 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java @@ -34,6 +34,8 @@ public interface GetFeedRequestOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -47,6 +49,8 @@ public interface GetFeedRequestOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java index f61544091..49b14092f 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java @@ -41,6 +41,12 @@ private ListFeedsRequest() { parent_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFeedsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ListFeedsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -118,6 +123,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string parent = 1; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -140,6 +147,8 @@ public java.lang.String getParent() { * * * string parent = 1; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -482,6 +491,8 @@ public Builder mergeFrom( * * * string parent = 1; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -504,6 +515,8 @@ public java.lang.String getParent() { * * * string parent = 1; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -526,6 +539,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 1; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -546,6 +562,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 1; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -563,6 +581,9 @@ public Builder clearParent() { * * * string parent = 1; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java index 38e082d32..595e77488 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java @@ -33,6 +33,8 @@ public interface ListFeedsRequestOrBuilder * * * string parent = 1; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -45,6 +47,8 @@ public interface ListFeedsRequestOrBuilder * * * string parent = 1; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); } diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java index d19bd84ca..b0834d89b 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java @@ -41,6 +41,12 @@ private ListFeedsResponse() { feeds_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFeedsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java index b541d45ac..123ffae52 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java @@ -39,6 +39,12 @@ private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) private OutputConfig() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OutputConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private OutputConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -138,7 +143,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase implements com.google.protobuf.Internal.EnumLite { + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), BIGQUERY_DESTINATION(2), DESTINATION_NOT_SET(0); @@ -147,7 +155,11 @@ public enum DestinationCase implements com.google.protobuf.Internal.EnumLite { private DestinationCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static DestinationCase valueOf(int value) { return forNumber(value); @@ -184,6 +196,8 @@ public DestinationCase getDestinationCase() { * * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; + * + * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return destinationCase_ == 1; @@ -196,6 +210,8 @@ public boolean hasGcsDestination() { * * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; + * + * @return The gcsDestination. */ public com.google.cloud.asset.v1p2beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { @@ -231,6 +247,8 @@ public com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder getGcsDestinatio * * * .google.cloud.asset.v1p2beta1.BigQueryDestination bigquery_destination = 2; + * + * @return Whether the bigqueryDestination field is set. */ public boolean hasBigqueryDestination() { return destinationCase_ == 2; @@ -246,6 +264,8 @@ public boolean hasBigqueryDestination() { * * * .google.cloud.asset.v1p2beta1.BigQueryDestination bigquery_destination = 2; + * + * @return The bigqueryDestination. */ public com.google.cloud.asset.v1p2beta1.BigQueryDestination getBigqueryDestination() { if (destinationCase_ == 2) { @@ -672,6 +692,8 @@ public Builder clearDestination() { * * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; + * + * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { return destinationCase_ == 1; @@ -684,6 +706,8 @@ public boolean hasGcsDestination() { * * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; + * + * @return The gcsDestination. */ public com.google.cloud.asset.v1p2beta1.GcsDestination getGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -878,6 +902,8 @@ public com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder getGcsDestinatio * * * .google.cloud.asset.v1p2beta1.BigQueryDestination bigquery_destination = 2; + * + * @return Whether the bigqueryDestination field is set. */ public boolean hasBigqueryDestination() { return destinationCase_ == 2; @@ -893,6 +919,8 @@ public boolean hasBigqueryDestination() { * * * .google.cloud.asset.v1p2beta1.BigQueryDestination bigquery_destination = 2; + * + * @return The bigqueryDestination. */ public com.google.cloud.asset.v1p2beta1.BigQueryDestination getBigqueryDestination() { if (bigqueryDestinationBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java index 0f7a81902..8177cccb6 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java @@ -31,6 +31,8 @@ public interface OutputConfigOrBuilder * * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; + * + * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** @@ -41,6 +43,8 @@ public interface OutputConfigOrBuilder * * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; + * + * @return The gcsDestination. */ com.google.cloud.asset.v1p2beta1.GcsDestination getGcsDestination(); /** @@ -65,6 +69,8 @@ public interface OutputConfigOrBuilder * * * .google.cloud.asset.v1p2beta1.BigQueryDestination bigquery_destination = 2; + * + * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** @@ -78,6 +84,8 @@ public interface OutputConfigOrBuilder * * * .google.cloud.asset.v1p2beta1.BigQueryDestination bigquery_destination = 2; + * + * @return The bigqueryDestination. */ com.google.cloud.asset.v1p2beta1.BigQueryDestination getBigqueryDestination(); /** diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java index c2dc8a0ed..6d04e26e5 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java @@ -41,6 +41,12 @@ private PubsubDestination() { topic_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PubsubDestination(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private PubsubDestination( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -117,6 +122,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string topic = 1; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -138,6 +145,8 @@ public java.lang.String getTopic() { * * * string topic = 1; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -479,6 +488,8 @@ public Builder mergeFrom( * * * string topic = 1; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -500,6 +511,8 @@ public java.lang.String getTopic() { * * * string topic = 1; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -521,6 +534,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * * * string topic = 1; + * + * @param value The topic to set. + * @return This builder for chaining. */ public Builder setTopic(java.lang.String value) { if (value == null) { @@ -540,6 +556,8 @@ public Builder setTopic(java.lang.String value) { * * * string topic = 1; + * + * @return This builder for chaining. */ public Builder clearTopic() { @@ -556,6 +574,9 @@ public Builder clearTopic() { * * * string topic = 1; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. */ public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java index bc4e960c3..0adf6d693 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java @@ -32,6 +32,8 @@ public interface PubsubDestinationOrBuilder * * * string topic = 1; + * + * @return The topic. */ java.lang.String getTopic(); /** @@ -43,6 +45,8 @@ public interface PubsubDestinationOrBuilder * * * string topic = 1; + * + * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); } diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java index 4fcc8ce03..a4fcef0b8 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java @@ -45,6 +45,12 @@ private Resource() { parent_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Resource(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -58,7 +64,6 @@ private Resource( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -177,6 +182,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string version = 1; + * + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -197,6 +204,8 @@ public java.lang.String getVersion() { * * * string version = 1; + * + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -224,6 +233,8 @@ public com.google.protobuf.ByteString getVersionBytes() { * * * string discovery_document_uri = 2; + * + * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; @@ -248,6 +259,8 @@ public java.lang.String getDiscoveryDocumentUri() { * * * string discovery_document_uri = 2; + * + * @return The bytes for discoveryDocumentUri. */ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; @@ -273,6 +286,8 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { * * * string discovery_name = 3; + * + * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; @@ -295,6 +310,8 @@ public java.lang.String getDiscoveryName() { * * * string discovery_name = 3; + * + * @return The bytes for discoveryName. */ public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; @@ -322,6 +339,8 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { * * * string resource_url = 4; + * + * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; @@ -346,6 +365,8 @@ public java.lang.String getResourceUrl() { * * * string resource_url = 4; + * + * @return The bytes for resourceUrl. */ public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; @@ -377,6 +398,8 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { * * * string parent = 5; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -405,6 +428,8 @@ public java.lang.String getParent() { * * * string parent = 5; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -429,6 +454,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * .google.protobuf.Struct data = 6; + * + * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; @@ -442,6 +469,8 @@ public boolean hasData() { * * * .google.protobuf.Struct data = 6; + * + * @return The data. */ public com.google.protobuf.Struct getData() { return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; @@ -471,6 +500,8 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() { * * * .google.protobuf.Any internal_data = 7; + * + * @return Whether the internalData field is set. */ public boolean hasInternalData() { return internalData_ != null; @@ -484,6 +515,8 @@ public boolean hasInternalData() { * * * .google.protobuf.Any internal_data = 7; + * + * @return The internalData. */ public com.google.protobuf.Any getInternalData() { return internalData_ == null ? com.google.protobuf.Any.getDefaultInstance() : internalData_; @@ -947,6 +980,8 @@ public Builder mergeFrom( * * * string version = 1; + * + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -967,6 +1002,8 @@ public java.lang.String getVersion() { * * * string version = 1; + * + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -987,6 +1024,9 @@ public com.google.protobuf.ByteString getVersionBytes() { * * * string version = 1; + * + * @param value The version to set. + * @return This builder for chaining. */ public Builder setVersion(java.lang.String value) { if (value == null) { @@ -1005,6 +1045,8 @@ public Builder setVersion(java.lang.String value) { * * * string version = 1; + * + * @return This builder for chaining. */ public Builder clearVersion() { @@ -1020,6 +1062,9 @@ public Builder clearVersion() { * * * string version = 1; + * + * @param value The bytes for version to set. + * @return This builder for chaining. */ public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1045,6 +1090,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { * * * string discovery_document_uri = 2; + * + * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; @@ -1069,6 +1116,8 @@ public java.lang.String getDiscoveryDocumentUri() { * * * string discovery_document_uri = 2; + * + * @return The bytes for discoveryDocumentUri. */ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; @@ -1093,6 +1142,9 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { * * * string discovery_document_uri = 2; + * + * @param value The discoveryDocumentUri to set. + * @return This builder for chaining. */ public Builder setDiscoveryDocumentUri(java.lang.String value) { if (value == null) { @@ -1115,6 +1167,8 @@ public Builder setDiscoveryDocumentUri(java.lang.String value) { * * * string discovery_document_uri = 2; + * + * @return This builder for chaining. */ public Builder clearDiscoveryDocumentUri() { @@ -1134,6 +1188,9 @@ public Builder clearDiscoveryDocumentUri() { * * * string discovery_document_uri = 2; + * + * @param value The bytes for discoveryDocumentUri to set. + * @return This builder for chaining. */ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1157,6 +1214,8 @@ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value * * * string discovery_name = 3; + * + * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; @@ -1179,6 +1238,8 @@ public java.lang.String getDiscoveryName() { * * * string discovery_name = 3; + * + * @return The bytes for discoveryName. */ public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; @@ -1201,6 +1262,9 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { * * * string discovery_name = 3; + * + * @param value The discoveryName to set. + * @return This builder for chaining. */ public Builder setDiscoveryName(java.lang.String value) { if (value == null) { @@ -1221,6 +1285,8 @@ public Builder setDiscoveryName(java.lang.String value) { * * * string discovery_name = 3; + * + * @return This builder for chaining. */ public Builder clearDiscoveryName() { @@ -1238,6 +1304,9 @@ public Builder clearDiscoveryName() { * * * string discovery_name = 3; + * + * @param value The bytes for discoveryName to set. + * @return This builder for chaining. */ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1263,6 +1332,8 @@ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { * * * string resource_url = 4; + * + * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; @@ -1287,6 +1358,8 @@ public java.lang.String getResourceUrl() { * * * string resource_url = 4; + * + * @return The bytes for resourceUrl. */ public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; @@ -1311,6 +1384,9 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { * * * string resource_url = 4; + * + * @param value The resourceUrl to set. + * @return This builder for chaining. */ public Builder setResourceUrl(java.lang.String value) { if (value == null) { @@ -1333,6 +1409,8 @@ public Builder setResourceUrl(java.lang.String value) { * * * string resource_url = 4; + * + * @return This builder for chaining. */ public Builder clearResourceUrl() { @@ -1352,6 +1430,9 @@ public Builder clearResourceUrl() { * * * string resource_url = 4; + * + * @param value The bytes for resourceUrl to set. + * @return This builder for chaining. */ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1381,6 +1462,8 @@ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { * * * string parent = 5; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1409,6 +1492,8 @@ public java.lang.String getParent() { * * * string parent = 5; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1437,6 +1522,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 5; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1463,6 +1551,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 5; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1486,6 +1576,9 @@ public Builder clearParent() { * * * string parent = 5; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1513,6 +1606,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Struct data = 6; + * + * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; @@ -1526,6 +1621,8 @@ public boolean hasData() { * * * .google.protobuf.Struct data = 6; + * + * @return The data. */ public com.google.protobuf.Struct getData() { if (dataBuilder_ == null) { @@ -1695,6 +1792,8 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() { * * * .google.protobuf.Any internal_data = 7; + * + * @return Whether the internalData field is set. */ public boolean hasInternalData() { return internalDataBuilder_ != null || internalData_ != null; @@ -1708,6 +1807,8 @@ public boolean hasInternalData() { * * * .google.protobuf.Any internal_data = 7; + * + * @return The internalData. */ public com.google.protobuf.Any getInternalData() { if (internalDataBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java index 11d7efdc8..34306d3b4 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java @@ -31,6 +31,8 @@ public interface ResourceOrBuilder * * * string version = 1; + * + * @return The version. */ java.lang.String getVersion(); /** @@ -41,6 +43,8 @@ public interface ResourceOrBuilder * * * string version = 1; + * + * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); @@ -56,6 +60,8 @@ public interface ResourceOrBuilder * * * string discovery_document_uri = 2; + * + * @return The discoveryDocumentUri. */ java.lang.String getDiscoveryDocumentUri(); /** @@ -70,6 +76,8 @@ public interface ResourceOrBuilder * * * string discovery_document_uri = 2; + * + * @return The bytes for discoveryDocumentUri. */ com.google.protobuf.ByteString getDiscoveryDocumentUriBytes(); @@ -83,6 +91,8 @@ public interface ResourceOrBuilder * * * string discovery_name = 3; + * + * @return The discoveryName. */ java.lang.String getDiscoveryName(); /** @@ -95,6 +105,8 @@ public interface ResourceOrBuilder * * * string discovery_name = 3; + * + * @return The bytes for discoveryName. */ com.google.protobuf.ByteString getDiscoveryNameBytes(); @@ -110,6 +122,8 @@ public interface ResourceOrBuilder * * * string resource_url = 4; + * + * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** @@ -124,6 +138,8 @@ public interface ResourceOrBuilder * * * string resource_url = 4; + * + * @return The bytes for resourceUrl. */ com.google.protobuf.ByteString getResourceUrlBytes(); @@ -143,6 +159,8 @@ public interface ResourceOrBuilder * * * string parent = 5; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -161,6 +179,8 @@ public interface ResourceOrBuilder * * * string parent = 5; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -173,6 +193,8 @@ public interface ResourceOrBuilder * * * .google.protobuf.Struct data = 6; + * + * @return Whether the data field is set. */ boolean hasData(); /** @@ -184,6 +206,8 @@ public interface ResourceOrBuilder * * * .google.protobuf.Struct data = 6; + * + * @return The data. */ com.google.protobuf.Struct getData(); /** @@ -207,6 +231,8 @@ public interface ResourceOrBuilder * * * .google.protobuf.Any internal_data = 7; + * + * @return Whether the internalData field is set. */ boolean hasInternalData(); /** @@ -218,6 +244,8 @@ public interface ResourceOrBuilder * * * .google.protobuf.Any internal_data = 7; + * + * @return The internalData. */ com.google.protobuf.Any getInternalData(); /** diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java index 8a374eeed..cef7e3417 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java @@ -40,6 +40,12 @@ private TemporalAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) private TemporalAsset() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TemporalAsset(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -53,7 +59,6 @@ private TemporalAsset( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -145,6 +150,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; + * + * @return Whether the window field is set. */ public boolean hasWindow() { return window_ != null; @@ -157,6 +164,8 @@ public boolean hasWindow() { * * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; + * + * @return The window. */ public com.google.cloud.asset.v1p2beta1.TimeWindow getWindow() { return window_ == null @@ -186,6 +195,8 @@ public com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder getWindowOrBuilder() * * * bool deleted = 2; + * + * @return The deleted. */ public boolean getDeleted() { return deleted_; @@ -201,6 +212,8 @@ public boolean getDeleted() { * * * .google.cloud.asset.v1p2beta1.Asset asset = 3; + * + * @return Whether the asset field is set. */ public boolean hasAsset() { return asset_ != null; @@ -213,6 +226,8 @@ public boolean hasAsset() { * * * .google.cloud.asset.v1p2beta1.Asset asset = 3; + * + * @return The asset. */ public com.google.cloud.asset.v1p2beta1.Asset getAsset() { return asset_ == null ? com.google.cloud.asset.v1p2beta1.Asset.getDefaultInstance() : asset_; @@ -616,6 +631,8 @@ public Builder mergeFrom( * * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; + * + * @return Whether the window field is set. */ public boolean hasWindow() { return windowBuilder_ != null || window_ != null; @@ -628,6 +645,8 @@ public boolean hasWindow() { * * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; + * + * @return The window. */ public com.google.cloud.asset.v1p2beta1.TimeWindow getWindow() { if (windowBuilder_ == null) { @@ -792,6 +811,8 @@ public com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder getWindowOrBuilder() * * * bool deleted = 2; + * + * @return The deleted. */ public boolean getDeleted() { return deleted_; @@ -804,6 +825,9 @@ public boolean getDeleted() { * * * bool deleted = 2; + * + * @param value The deleted to set. + * @return This builder for chaining. */ public Builder setDeleted(boolean value) { @@ -819,6 +843,8 @@ public Builder setDeleted(boolean value) { * * * bool deleted = 2; + * + * @return This builder for chaining. */ public Builder clearDeleted() { @@ -841,6 +867,8 @@ public Builder clearDeleted() { * * * .google.cloud.asset.v1p2beta1.Asset asset = 3; + * + * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; @@ -853,6 +881,8 @@ public boolean hasAsset() { * * * .google.cloud.asset.v1p2beta1.Asset asset = 3; + * + * @return The asset. */ public com.google.cloud.asset.v1p2beta1.Asset getAsset() { if (assetBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java index 79e3f5ac1..50e57b9c5 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java @@ -31,6 +31,8 @@ public interface TemporalAssetOrBuilder * * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; + * + * @return Whether the window field is set. */ boolean hasWindow(); /** @@ -41,6 +43,8 @@ public interface TemporalAssetOrBuilder * * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; + * + * @return The window. */ com.google.cloud.asset.v1p2beta1.TimeWindow getWindow(); /** @@ -62,6 +66,8 @@ public interface TemporalAssetOrBuilder * * * bool deleted = 2; + * + * @return The deleted. */ boolean getDeleted(); @@ -73,6 +79,8 @@ public interface TemporalAssetOrBuilder * * * .google.cloud.asset.v1p2beta1.Asset asset = 3; + * + * @return Whether the asset field is set. */ boolean hasAsset(); /** @@ -83,6 +91,8 @@ public interface TemporalAssetOrBuilder * * * .google.cloud.asset.v1p2beta1.Asset asset = 3; + * + * @return The asset. */ com.google.cloud.asset.v1p2beta1.Asset getAsset(); /** diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java index 78fdbe27b..d7b97cfd4 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java @@ -39,6 +39,12 @@ private TimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { private TimeWindow() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimeWindow(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private TimeWindow( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -137,6 +142,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -149,6 +156,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; @@ -177,6 +186,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTime_ != null; @@ -190,6 +201,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; @@ -578,6 +591,8 @@ public Builder mergeFrom( * * * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -590,6 +605,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { @@ -754,6 +771,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; @@ -767,6 +786,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { if (endTimeBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java index 92ab80b47..dd2020f56 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java @@ -31,6 +31,8 @@ public interface TimeWindowOrBuilder * * * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -41,6 +43,8 @@ public interface TimeWindowOrBuilder * * * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** @@ -63,6 +67,8 @@ public interface TimeWindowOrBuilder * * * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. */ boolean hasEndTime(); /** @@ -74,6 +80,8 @@ public interface TimeWindowOrBuilder * * * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java index 6896e4dc9..3943495d0 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java @@ -39,6 +39,12 @@ private UpdateFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder buil private UpdateFeedRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateFeedRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private UpdateFeedRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -142,6 +147,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.asset.v1p2beta1.Feed feed = 1; + * + * @return Whether the feed field is set. */ public boolean hasFeed() { return feed_ != null; @@ -158,6 +165,8 @@ public boolean hasFeed() { * * * .google.cloud.asset.v1p2beta1.Feed feed = 1; + * + * @return The feed. */ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { return feed_ == null ? com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; @@ -191,6 +200,8 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -205,6 +216,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -600,6 +613,8 @@ public Builder mergeFrom( * * * .google.cloud.asset.v1p2beta1.Feed feed = 1; + * + * @return Whether the feed field is set. */ public boolean hasFeed() { return feedBuilder_ != null || feed_ != null; @@ -616,6 +631,8 @@ public boolean hasFeed() { * * * .google.cloud.asset.v1p2beta1.Feed feed = 1; + * + * @return The feed. */ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { if (feedBuilder_ == null) { @@ -811,6 +828,8 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -825,6 +844,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { diff --git a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java index 605e747d5..cc0ce0208 100644 --- a/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java +++ b/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java @@ -35,6 +35,8 @@ public interface UpdateFeedRequestOrBuilder * * * .google.cloud.asset.v1p2beta1.Feed feed = 1; + * + * @return Whether the feed field is set. */ boolean hasFeed(); /** @@ -49,6 +51,8 @@ public interface UpdateFeedRequestOrBuilder * * * .google.cloud.asset.v1p2beta1.Feed feed = 1; + * + * @return The feed. */ com.google.cloud.asset.v1p2beta1.Feed getFeed(); /** @@ -76,6 +80,8 @@ public interface UpdateFeedRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -88,6 +94,8 @@ public interface UpdateFeedRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** diff --git a/synth.metadata b/synth.metadata index dc3be6b27..a4193c7c7 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-11-19T19:38:46.408983Z", + "updateTime": "2019-12-13T08:34:36.369813Z", "sources": [ { "generator": { "name": "artman", - "version": "0.42.1", - "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" + "version": "0.42.3", + "dockerImage": "googleapis/artman@sha256:feed210b5723c6f524b52ef6d7740a030f2d1a8f7c29a71c5e5b4481ceaad7f5" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5af83f47b9656261cafcf88b0b3334521ab266b3", - "internalRef": "281334391" + "sha": "2085a0d3c76180ee843cf2ecef2b94ca5266be31", + "internalRef": "285233245" } }, { @@ -55,5 +55,793 @@ "config": "google/cloud/asset/artman_cloudasset_v1p2beta1.yaml" } } + ], + "newFiles": [ + { + "path": "versions.txt" + }, + { + "path": "renovate.json" + }, + { + "path": "license-checks.xml" + }, + { + "path": "synth.py" + }, + { + "path": "java.header" + }, + { + "path": "pom.xml" + }, + { + "path": ".repo-metadata.json" + }, + { + "path": "CHANGELOG.md" + }, + { + "path": ".gitignore" + }, + { + "path": "CODE_OF_CONDUCT.md" + }, + { + "path": "LICENSE" + }, + { + "path": "README.md" + }, + { + "path": "CONTRIBUTING.md" + }, + { + "path": "codecov.yaml" + }, + { + "path": "synth.metadata" + }, + { + "path": "grpc-google-cloud-asset-v1beta1/pom.xml" + }, + { + "path": "grpc-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceGrpc.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/pom.xml" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/proto/google/cloud/asset/v1beta1/assets.proto" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/proto/google/cloud/asset/v1beta1/asset_service.proto" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindow.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryResponse.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ContentType.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponse.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceProto.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAsset.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetProto.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestinationOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ProjectName.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ResourceOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfig.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestination.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Asset.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindowOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfigOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Resource.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAssetOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryRequestOrBuilder.java" + }, + { + "path": ".github/PULL_REQUEST_TEMPLATE.md" + }, + { + "path": ".github/release-please.yml" + }, + { + "path": ".github/ISSUE_TEMPLATE/feature_request.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/support_request.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/bug_report.md" + }, + { + "path": "grpc-google-cloud-asset-v1p2beta1/pom.xml" + }, + { + "path": "grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java" + }, + { + "path": "grpc-google-cloud-asset-v1/pom.xml" + }, + { + "path": "grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java" + }, + { + "path": "google-cloud-asset/pom.xml" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/package-info.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceCallableFactory.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStub.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/package-info.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceSettings.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceClient.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/stub/GrpcAssetServiceStub.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/stub/GrpcAssetServiceCallableFactory.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/stub/AssetServiceStubSettings.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/stub/AssetServiceStub.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java" + }, + { + "path": "google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java" + }, + { + "path": "google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientTest.java" + }, + { + "path": "google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetServiceImpl.java" + }, + { + "path": "google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetService.java" + }, + { + "path": "google-cloud-asset/src/test/java/com/google/cloud/asset/v1beta1/AssetServiceClientTest.java" + }, + { + "path": "google-cloud-asset/src/test/java/com/google/cloud/asset/v1beta1/MockAssetServiceImpl.java" + }, + { + "path": "google-cloud-asset/src/test/java/com/google/cloud/asset/v1beta1/MockAssetService.java" + }, + { + "path": "google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java" + }, + { + "path": "google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java" + }, + { + "path": "google-cloud-asset/src/test/java/com/google/cloud/asset/v1/VPCServiceControlTest.java" + }, + { + "path": "google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetService.java" + }, + { + "path": ".git/index" + }, + { + "path": ".git/config" + }, + { + "path": ".git/shallow" + }, + { + "path": ".git/HEAD" + }, + { + "path": ".git/description" + }, + { + "path": ".git/packed-refs" + }, + { + "path": ".git/refs/heads/master" + }, + { + "path": ".git/refs/heads/autosynth" + }, + { + "path": ".git/refs/remotes/origin/HEAD" + }, + { + "path": ".git/hooks/pre-rebase.sample" + }, + { + "path": ".git/hooks/commit-msg.sample" + }, + { + "path": ".git/hooks/update.sample" + }, + { + "path": ".git/hooks/pre-receive.sample" + }, + { + "path": ".git/hooks/fsmonitor-watchman.sample" + }, + { + "path": ".git/hooks/pre-commit.sample" + }, + { + "path": ".git/hooks/prepare-commit-msg.sample" + }, + { + "path": ".git/hooks/pre-push.sample" + }, + { + "path": ".git/hooks/post-update.sample" + }, + { + "path": ".git/hooks/pre-applypatch.sample" + }, + { + "path": ".git/hooks/applypatch-msg.sample" + }, + { + "path": ".git/logs/HEAD" + }, + { + "path": ".git/logs/refs/heads/master" + }, + { + "path": ".git/logs/refs/heads/autosynth" + }, + { + "path": ".git/logs/refs/remotes/origin/HEAD" + }, + { + "path": ".git/objects/pack/pack-268637736dd27a15b41191316bac1cf74699aef4.idx" + }, + { + "path": ".git/objects/pack/pack-268637736dd27a15b41191316bac1cf74699aef4.pack" + }, + { + "path": ".git/info/exclude" + }, + { + "path": "__pycache__/synth.cpython-36.pyc" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/pom.xml" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/assets.proto" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/asset_service.proto" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BigQueryDestination.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryResponse.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsResponse.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BigQueryDestinationOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ExportAssetsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/BatchGetAssetsHistoryRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java" + }, + { + "path": "google-cloud-asset-bom/pom.xml" + }, + { + "path": ".kokoro/dependencies.sh" + }, + { + "path": ".kokoro/common.cfg" + }, + { + "path": ".kokoro/build.sh" + }, + { + "path": ".kokoro/trampoline.sh" + }, + { + "path": ".kokoro/linkage-monitor.sh" + }, + { + "path": ".kokoro/build.bat" + }, + { + "path": ".kokoro/coerce_logs.sh" + }, + { + "path": ".kokoro/release/bump_snapshot.sh" + }, + { + "path": ".kokoro/release/publish_javadoc.sh" + }, + { + "path": ".kokoro/release/snapshot.sh" + }, + { + "path": ".kokoro/release/snapshot.cfg" + }, + { + "path": ".kokoro/release/drop.cfg" + }, + { + "path": ".kokoro/release/publish_javadoc.cfg" + }, + { + "path": ".kokoro/release/stage.sh" + }, + { + "path": ".kokoro/release/common.cfg" + }, + { + "path": ".kokoro/release/drop.sh" + }, + { + "path": ".kokoro/release/common.sh" + }, + { + "path": ".kokoro/release/stage.cfg" + }, + { + "path": ".kokoro/release/bump_snapshot.cfg" + }, + { + "path": ".kokoro/release/promote.cfg" + }, + { + "path": ".kokoro/release/promote.sh" + }, + { + "path": ".kokoro/nightly/java8-win.cfg" + }, + { + "path": ".kokoro/nightly/java8-osx.cfg" + }, + { + "path": ".kokoro/nightly/common.cfg" + }, + { + "path": ".kokoro/nightly/java11.cfg" + }, + { + "path": ".kokoro/nightly/integration.cfg" + }, + { + "path": ".kokoro/nightly/java7.cfg" + }, + { + "path": ".kokoro/nightly/dependencies.cfg" + }, + { + "path": ".kokoro/nightly/java8.cfg" + }, + { + "path": ".kokoro/nightly/lint.cfg" + }, + { + "path": ".kokoro/presubmit/java8-win.cfg" + }, + { + "path": ".kokoro/presubmit/java8-osx.cfg" + }, + { + "path": ".kokoro/presubmit/linkage-monitor.cfg" + }, + { + "path": ".kokoro/presubmit/common.cfg" + }, + { + "path": ".kokoro/presubmit/java11.cfg" + }, + { + "path": ".kokoro/presubmit/integration.cfg" + }, + { + "path": ".kokoro/presubmit/java7.cfg" + }, + { + "path": ".kokoro/presubmit/dependencies.cfg" + }, + { + "path": ".kokoro/presubmit/java8.cfg" + }, + { + "path": ".kokoro/presubmit/clirr.cfg" + }, + { + "path": ".kokoro/presubmit/lint.cfg" + }, + { + "path": ".kokoro/continuous/java8-win.cfg" + }, + { + "path": ".kokoro/continuous/java8-osx.cfg" + }, + { + "path": ".kokoro/continuous/common.cfg" + }, + { + "path": ".kokoro/continuous/java11.cfg" + }, + { + "path": ".kokoro/continuous/integration.cfg" + }, + { + "path": ".kokoro/continuous/java7.cfg" + }, + { + "path": ".kokoro/continuous/dependencies.cfg" + }, + { + "path": ".kokoro/continuous/propose_release.cfg" + }, + { + "path": ".kokoro/continuous/java8.cfg" + }, + { + "path": ".kokoro/continuous/lint.cfg" + }, + { + "path": ".kokoro/continuous/propose_release.sh" + }, + { + "path": "proto-google-cloud-asset-v1/pom.xml" + }, + { + "path": "proto-google-cloud-asset-v1/clirr-ignored-differences.xml" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java" + } ] } \ No newline at end of file