diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java new file mode 100644 index 000000000000..a470cb9b90c0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java @@ -0,0 +1,1007 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Response of asset discovery run + *+ * + * Protobuf type {@code google.cloud.securitycenter.v1.RunAssetDiscoveryResponse} + */ +public final class RunAssetDiscoveryResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) + RunAssetDiscoveryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunAssetDiscoveryResponse.newBuilder() to construct. + private RunAssetDiscoveryResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RunAssetDiscoveryResponse() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RunAssetDiscoveryResponse( + 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 8: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = 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.securitycenter.v1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.class, + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.Builder.class); + } + + /** + * + * + *
+ * The state of an asset discovery run. + *+ * + * Protobuf enum {@code google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Asset discovery run state was unspecified. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ STATE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Asset discovery run completed successfully. + *+ * + *
COMPLETED = 1;
+ */
+ COMPLETED(1),
+ /**
+ *
+ *
+ * + * Asset discovery run was cancelled with tasks still pending, as another + * run for the same organization was started with a higher priority. + *+ * + *
SUPERSEDED = 2;
+ */
+ SUPERSEDED(2),
+ /**
+ *
+ *
+ * + * Asset discovery run was killed and terminated. + *+ * + *
TERMINATED = 3;
+ */
+ TERMINATED(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Asset discovery run state was unspecified. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ public static final int STATE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Asset discovery run completed successfully. + *+ * + *
COMPLETED = 1;
+ */
+ public static final int COMPLETED_VALUE = 1;
+ /**
+ *
+ *
+ * + * Asset discovery run was cancelled with tasks still pending, as another + * run for the same organization was started with a higher priority. + *+ * + *
SUPERSEDED = 2;
+ */
+ public static final int SUPERSEDED_VALUE = 2;
+ /**
+ *
+ *
+ * + * Asset discovery run was killed and terminated. + *+ * + *
TERMINATED = 3;
+ */
+ public static final int TERMINATED_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0:
+ return STATE_UNSPECIFIED;
+ case 1:
+ return COMPLETED;
+ case 2:
+ return SUPERSEDED;
+ case 3:
+ return TERMINATED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The state of an asset discovery run. + *+ * + *
.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * The state of an asset discovery run. + *+ * + *
.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1;
+ */
+ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result =
+ com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.valueOf(state_);
+ return result == null
+ ? com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int DURATION_FIELD_NUMBER = 2;
+ private com.google.protobuf.Duration duration_;
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ public boolean hasDuration() {
+ return duration_ != null;
+ }
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ public com.google.protobuf.Duration getDuration() {
+ return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
+ }
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
+ return getDuration();
+ }
+
+ 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 (state_
+ != com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, state_);
+ }
+ if (duration_ != null) {
+ output.writeMessage(2, getDuration());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (state_
+ != com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
+ }
+ if (duration_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration());
+ }
+ 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.securitycenter.v1.RunAssetDiscoveryResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse other =
+ (com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) obj;
+
+ if (state_ != other.state_) return false;
+ if (hasDuration() != other.hasDuration()) return false;
+ if (hasDuration()) {
+ if (!getDuration().equals(other.getDuration())) 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) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ if (hasDuration()) {
+ hash = (37 * hash) + DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getDuration().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse 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.securitycenter.v1.RunAssetDiscoveryResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse 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.securitycenter.v1.RunAssetDiscoveryResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse 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.securitycenter.v1.RunAssetDiscoveryResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse 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.securitycenter.v1.RunAssetDiscoveryResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse 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.securitycenter.v1.RunAssetDiscoveryResponse 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;
+ }
+ /**
+ *
+ *
+ * + * Response of asset discovery run + *+ * + * Protobuf type {@code google.cloud.securitycenter.v1.RunAssetDiscoveryResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The state of an asset discovery run. + *+ * + *
.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * The state of an asset discovery run. + *+ * + *
.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1;
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The state of an asset discovery run. + *+ * + *
.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1;
+ */
+ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result =
+ com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.valueOf(state_);
+ return result == null
+ ? com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * The state of an asset discovery run. + *+ * + *
.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1;
+ */
+ public Builder setState(
+ com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The state of an asset discovery run. + *+ * + *
.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1;
+ */
+ public Builder clearState() {
+
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration duration_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ durationBuilder_;
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ public boolean hasDuration() {
+ return durationBuilder_ != null || duration_ != null;
+ }
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ public com.google.protobuf.Duration getDuration() {
+ if (durationBuilder_ == null) {
+ return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
+ } else {
+ return durationBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ public Builder setDuration(com.google.protobuf.Duration value) {
+ if (durationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ duration_ = value;
+ onChanged();
+ } else {
+ durationBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) {
+ if (durationBuilder_ == null) {
+ duration_ = builderForValue.build();
+ onChanged();
+ } else {
+ durationBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ public Builder mergeDuration(com.google.protobuf.Duration value) {
+ if (durationBuilder_ == null) {
+ if (duration_ != null) {
+ duration_ =
+ com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial();
+ } else {
+ duration_ = value;
+ }
+ onChanged();
+ } else {
+ durationBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ public Builder clearDuration() {
+ if (durationBuilder_ == null) {
+ duration_ = null;
+ onChanged();
+ } else {
+ duration_ = null;
+ durationBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ public com.google.protobuf.Duration.Builder getDurationBuilder() {
+
+ onChanged();
+ return getDurationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
+ if (durationBuilder_ != null) {
+ return durationBuilder_.getMessageOrBuilder();
+ } else {
+ return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getDurationFieldBuilder() {
+ if (durationBuilder_ == null) {
+ durationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getDuration(), getParentForChildren(), isClean());
+ duration_ = null;
+ }
+ return durationBuilder_;
+ }
+
+ @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.securitycenter.v1.RunAssetDiscoveryResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.RunAssetDiscoveryResponse)
+ private static final com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse();
+ }
+
+ public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The state of an asset discovery run. + *+ * + *
.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1;
+ */
+ int getStateValue();
+ /**
+ *
+ *
+ * + * The state of an asset discovery run. + *+ * + *
.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1;
+ */
+ com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState();
+
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ boolean hasDuration();
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ com.google.protobuf.Duration getDuration();
+ /**
+ *
+ *
+ * + * The duration between asset discovery run start and end + *+ * + *
.google.protobuf.Duration duration = 2;
+ */
+ com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java
new file mode 100644
index 000000000000..8304ca6dd0b6
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java
@@ -0,0 +1,75 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto
+
+package com.google.cloud.securitycenter.v1;
+
+public final class RunAssetDiscoveryResponseOuterClass {
+ private RunAssetDiscoveryResponseOuterClass() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\nAgoogle/cloud/securitycenter/v1/run_ass"
+ + "et_discovery_response.proto\022\036google.clou"
+ + "d.securitycenter.v1\032\036google/protobuf/dur"
+ + "ation.proto\032\037google/protobuf/timestamp.p"
+ + "roto\032\034google/api/annotations.proto\"\347\001\n\031R"
+ + "unAssetDiscoveryResponse\022N\n\005state\030\001 \001(\0162"
+ + "?.google.cloud.securitycenter.v1.RunAsse"
+ + "tDiscoveryResponse.State\022+\n\010duration\030\002 \001"
+ + "(\0132\031.google.protobuf.Duration\"M\n\005State\022\025"
+ + "\n\021STATE_UNSPECIFIED\020\000\022\r\n\tCOMPLETED\020\001\022\016\n\n"
+ + "SUPERSEDED\020\002\022\016\n\nTERMINATED\020\003B\271\001\n\"com.goo"
+ + "gle.cloud.securitycenter.v1P\001ZLgoogle.go"
+ + "lang.org/genproto/googleapis/cloud/secur"
+ + "itycenter/v1;securitycenter\312\002\036Google\\Clo"
+ + "ud\\SecurityCenter\\V1\352\002!Google::Cloud::Se"
+ + "curityCenter::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.protobuf.DurationProto.getDescriptor(),
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ com.google.api.AnnotationsProto.getDescriptor(),
+ },
+ assigner);
+ internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor,
+ new java.lang.String[] {
+ "State", "Duration",
+ });
+ com.google.protobuf.DurationProto.getDescriptor();
+ com.google.protobuf.TimestampProto.getDescriptor();
+ com.google.api.AnnotationsProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto
new file mode 100644
index 000000000000..fae5bcfe57e9
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto
@@ -0,0 +1,53 @@
+// 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
+//
+// http://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.
+//
+
+syntax = "proto3";
+
+package google.cloud.securitycenter.v1;
+
+import "google/protobuf/duration.proto";
+import "google/protobuf/timestamp.proto";
+import "google/api/annotations.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.securitycenter.v1";
+option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
+option ruby_package = "Google::Cloud::SecurityCenter::V1";
+
+// Response of asset discovery run
+message RunAssetDiscoveryResponse {
+ // The state of an asset discovery run.
+ enum State {
+ // Asset discovery run state was unspecified.
+ STATE_UNSPECIFIED = 0;
+
+ // Asset discovery run completed successfully.
+ COMPLETED = 1;
+
+ // Asset discovery run was cancelled with tasks still pending, as another
+ // run for the same organization was started with a higher priority.
+ SUPERSEDED = 2;
+
+ // Asset discovery run was killed and terminated.
+ TERMINATED = 3;
+ }
+
+ // The state of an asset discovery run.
+ State state = 1;
+
+ // The duration between asset discovery run start and end
+ google.protobuf.Duration duration = 2;
+}
diff --git a/google-cloud-clients/google-cloud-securitycenter/synth.metadata b/google-cloud-clients/google-cloud-securitycenter/synth.metadata
index 2312e8ff2dd5..7e2b43f90b7f 100644
--- a/google-cloud-clients/google-cloud-securitycenter/synth.metadata
+++ b/google-cloud-clients/google-cloud-securitycenter/synth.metadata
@@ -1,19 +1,19 @@
{
- "updateTime": "2019-04-23T07:52:10.802101Z",
+ "updateTime": "2019-05-01T07:53:12.622467Z",
"sources": [
{
"generator": {
"name": "artman",
- "version": "0.17.0",
- "dockerImage": "googleapis/artman@sha256:c58f4ec3838eb4e0718eb1bccc6512bd6850feaa85a360a9e38f6f848ec73bc2"
+ "version": "0.17.1",
+ "dockerImage": "googleapis/artman@sha256:a40ca4dd4ef031c0ded4df4909ffdf7b3f20d29b23e682ef991eb60ba0ca6025"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "547e19e7df398e9290e8e3674d7351efc500f9b0",
- "internalRef": "244712781"
+ "sha": "316b54c401ab9bc08ed71cb362915b9e7a23bb05",
+ "internalRef": "246014263"
}
}
],