getArchiveUrisList();
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of archiveUris.
+ */
+ int getArchiveUrisCount();
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The archiveUris at the given index.
+ */
+ java.lang.String getArchiveUris(int index);
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the archiveUris at the given index.
+ */
+ com.google.protobuf.ByteString getArchiveUrisBytes(int index);
}
/**
*
*
*
- * Status of the task execution (e.g. Jobs).
+ * Config for running scheduled notebooks.
*
*
- * Protobuf type {@code google.cloud.dataplex.v1.Task.ExecutionStatus}
+ * Protobuf type {@code google.cloud.dataplex.v1.Task.NotebookTaskConfig}
*/
- public static final class ExecutionStatus extends com.google.protobuf.GeneratedMessageV3
+ public static final class NotebookTaskConfig extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Task.ExecutionStatus)
- ExecutionStatusOrBuilder {
+ // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Task.NotebookTaskConfig)
+ NotebookTaskConfigOrBuilder {
private static final long serialVersionUID = 0L;
- // Use ExecutionStatus.newBuilder() to construct.
- private ExecutionStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use NotebookTaskConfig.newBuilder() to construct.
+ private NotebookTaskConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private ExecutionStatus() {}
+ private NotebookTaskConfig() {
+ notebook_ = "";
+ fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
- return new ExecutionStatus();
+ return new NotebookTaskConfig();
}
@java.lang.Override
@@ -13225,73 +12883,1592 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private ExecutionStatus(
- 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 26:
- {
- com.google.protobuf.Timestamp.Builder subBuilder = null;
- if (updateTime_ != null) {
- subBuilder = updateTime_.toBuilder();
- }
- updateTime_ =
- input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(updateTime_);
- updateTime_ = subBuilder.buildPartial();
- }
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataplex.v1.TasksProto
+ .internal_static_google_cloud_dataplex_v1_Task_NotebookTaskConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataplex.v1.TasksProto
+ .internal_static_google_cloud_dataplex_v1_Task_NotebookTaskConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.class,
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.Builder.class);
+ }
+
+ public static final int NOTEBOOK_FIELD_NUMBER = 4;
+ private volatile java.lang.Object notebook_;
+ /**
+ *
+ *
+ *
+ * Required. Path to input notebook. This can be the GCS URI of the notebook file
+ * or the path to a Notebook Content.
+ * The execution args are accessible as environment variables
+ * (`TASK_key=value`).
+ *
+ *
+ * string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The notebook.
+ */
+ @java.lang.Override
+ public java.lang.String getNotebook() {
+ java.lang.Object ref = notebook_;
+ 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();
+ notebook_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Path to input notebook. This can be the GCS URI of the notebook file
+ * or the path to a Notebook Content.
+ * The execution args are accessible as environment variables
+ * (`TASK_key=value`).
+ *
+ *
+ * string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for notebook.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNotebookBytes() {
+ java.lang.Object ref = notebook_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ notebook_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INFRASTRUCTURE_SPEC_FIELD_NUMBER = 3;
+ private com.google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructureSpec_;
+ /**
+ *
+ *
+ *
+ * Optional. Infrastructure specification for the execution.
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the infrastructureSpec field is set.
+ */
+ @java.lang.Override
+ public boolean hasInfrastructureSpec() {
+ return infrastructureSpec_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Infrastructure specification for the execution.
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The infrastructureSpec.
+ */
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.Task.InfrastructureSpec getInfrastructureSpec() {
+ return infrastructureSpec_ == null
+ ? com.google.cloud.dataplex.v1.Task.InfrastructureSpec.getDefaultInstance()
+ : infrastructureSpec_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Infrastructure specification for the execution.
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.Task.InfrastructureSpecOrBuilder
+ getInfrastructureSpecOrBuilder() {
+ return getInfrastructureSpec();
+ }
+
+ public static final int FILE_URIS_FIELD_NUMBER = 5;
+ private com.google.protobuf.LazyStringList fileUris_;
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of files to be placed in the working directory of each
+ * executor.
+ *
+ *
+ * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the fileUris.
+ */
+ public com.google.protobuf.ProtocolStringList getFileUrisList() {
+ return fileUris_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of files to be placed in the working directory of each
+ * executor.
+ *
+ *
+ * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of fileUris.
+ */
+ public int getFileUrisCount() {
+ return fileUris_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of files to be placed in the working directory of each
+ * executor.
+ *
+ *
+ * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The fileUris at the given index.
+ */
+ public java.lang.String getFileUris(int index) {
+ return fileUris_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of files to be placed in the working directory of each
+ * executor.
+ *
+ *
+ * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the fileUris at the given index.
+ */
+ public com.google.protobuf.ByteString getFileUrisBytes(int index) {
+ return fileUris_.getByteString(index);
+ }
+
+ public static final int ARCHIVE_URIS_FIELD_NUMBER = 6;
+ private com.google.protobuf.LazyStringList archiveUris_;
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the archiveUris.
+ */
+ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
+ return archiveUris_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of archiveUris.
+ */
+ public int getArchiveUrisCount() {
+ return archiveUris_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The archiveUris at the given index.
+ */
+ public java.lang.String getArchiveUris(int index) {
+ return archiveUris_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the archiveUris at the given index.
+ */
+ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) {
+ return archiveUris_.getByteString(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 {
+ if (infrastructureSpec_ != null) {
+ output.writeMessage(3, getInfrastructureSpec());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebook_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, notebook_);
+ }
+ for (int i = 0; i < fileUris_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileUris_.getRaw(i));
+ }
+ for (int i = 0; i < archiveUris_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (infrastructureSpec_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInfrastructureSpec());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebook_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, notebook_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < fileUris_.size(); i++) {
+ dataSize += computeStringSizeNoTag(fileUris_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getFileUrisList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < archiveUris_.size(); i++) {
+ dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getArchiveUrisList().size();
+ }
+ size += getUnknownFields().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.dataplex.v1.Task.NotebookTaskConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig other =
+ (com.google.cloud.dataplex.v1.Task.NotebookTaskConfig) obj;
+
+ if (!getNotebook().equals(other.getNotebook())) return false;
+ if (hasInfrastructureSpec() != other.hasInfrastructureSpec()) return false;
+ if (hasInfrastructureSpec()) {
+ if (!getInfrastructureSpec().equals(other.getInfrastructureSpec())) return false;
+ }
+ if (!getFileUrisList().equals(other.getFileUrisList())) return false;
+ if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) 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) + NOTEBOOK_FIELD_NUMBER;
+ hash = (53 * hash) + getNotebook().hashCode();
+ if (hasInfrastructureSpec()) {
+ hash = (37 * hash) + INFRASTRUCTURE_SPEC_FIELD_NUMBER;
+ hash = (53 * hash) + getInfrastructureSpec().hashCode();
+ }
+ if (getFileUrisCount() > 0) {
+ hash = (37 * hash) + FILE_URIS_FIELD_NUMBER;
+ hash = (53 * hash) + getFileUrisList().hashCode();
+ }
+ if (getArchiveUrisCount() > 0) {
+ hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER;
+ hash = (53 * hash) + getArchiveUrisList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataplex.v1.Task.NotebookTaskConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataplex.v1.Task.NotebookTaskConfig 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.dataplex.v1.Task.NotebookTaskConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataplex.v1.Task.NotebookTaskConfig 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.dataplex.v1.Task.NotebookTaskConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataplex.v1.Task.NotebookTaskConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataplex.v1.Task.NotebookTaskConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataplex.v1.Task.NotebookTaskConfig 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.dataplex.v1.Task.NotebookTaskConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataplex.v1.Task.NotebookTaskConfig 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.dataplex.v1.Task.NotebookTaskConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataplex.v1.Task.NotebookTaskConfig 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.dataplex.v1.Task.NotebookTaskConfig 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;
+ }
+ /**
+ *
+ *
+ *
+ * Config for running scheduled notebooks.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataplex.v1.Task.NotebookTaskConfig}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Task.NotebookTaskConfig)
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataplex.v1.TasksProto
+ .internal_static_google_cloud_dataplex_v1_Task_NotebookTaskConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataplex.v1.TasksProto
+ .internal_static_google_cloud_dataplex_v1_Task_NotebookTaskConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.class,
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ notebook_ = "";
+
+ if (infrastructureSpecBuilder_ == null) {
+ infrastructureSpec_ = null;
+ } else {
+ infrastructureSpec_ = null;
+ infrastructureSpecBuilder_ = null;
+ }
+ fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataplex.v1.TasksProto
+ .internal_static_google_cloud_dataplex_v1_Task_NotebookTaskConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.Task.NotebookTaskConfig getDefaultInstanceForType() {
+ return com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.Task.NotebookTaskConfig build() {
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.Task.NotebookTaskConfig buildPartial() {
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig result =
+ new com.google.cloud.dataplex.v1.Task.NotebookTaskConfig(this);
+ int from_bitField0_ = bitField0_;
+ result.notebook_ = notebook_;
+ if (infrastructureSpecBuilder_ == null) {
+ result.infrastructureSpec_ = infrastructureSpec_;
+ } else {
+ result.infrastructureSpec_ = infrastructureSpecBuilder_.build();
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ fileUris_ = fileUris_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.fileUris_ = fileUris_;
+ if (((bitField0_ & 0x00000002) != 0)) {
+ archiveUris_ = archiveUris_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.archiveUris_ = archiveUris_;
+ 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.dataplex.v1.Task.NotebookTaskConfig) {
+ return mergeFrom((com.google.cloud.dataplex.v1.Task.NotebookTaskConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dataplex.v1.Task.NotebookTaskConfig other) {
+ if (other == com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.getDefaultInstance())
+ return this;
+ if (!other.getNotebook().isEmpty()) {
+ notebook_ = other.notebook_;
+ onChanged();
+ }
+ if (other.hasInfrastructureSpec()) {
+ mergeInfrastructureSpec(other.getInfrastructureSpec());
+ }
+ if (!other.fileUris_.isEmpty()) {
+ if (fileUris_.isEmpty()) {
+ fileUris_ = other.fileUris_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureFileUrisIsMutable();
+ fileUris_.addAll(other.fileUris_);
+ }
+ onChanged();
+ }
+ if (!other.archiveUris_.isEmpty()) {
+ if (archiveUris_.isEmpty()) {
+ archiveUris_ = other.archiveUris_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureArchiveUrisIsMutable();
+ archiveUris_.addAll(other.archiveUris_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ 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 {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 26:
+ {
+ input.readMessage(
+ getInfrastructureSpecFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 26
+ case 34:
+ {
+ notebook_ = input.readStringRequireUtf8();
+
+ break;
+ } // case 34
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureFileUrisIsMutable();
+ fileUris_.add(s);
+ break;
+ } // case 42
+ case 50:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureArchiveUrisIsMutable();
+ archiveUris_.add(s);
+ break;
+ } // case 50
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object notebook_ = "";
+ /**
+ *
+ *
+ *
+ * Required. Path to input notebook. This can be the GCS URI of the notebook file
+ * or the path to a Notebook Content.
+ * The execution args are accessible as environment variables
+ * (`TASK_key=value`).
+ *
+ *
+ * string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The notebook.
+ */
+ public java.lang.String getNotebook() {
+ java.lang.Object ref = notebook_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ notebook_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Path to input notebook. This can be the GCS URI of the notebook file
+ * or the path to a Notebook Content.
+ * The execution args are accessible as environment variables
+ * (`TASK_key=value`).
+ *
+ *
+ * string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for notebook.
+ */
+ public com.google.protobuf.ByteString getNotebookBytes() {
+ java.lang.Object ref = notebook_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ notebook_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Path to input notebook. This can be the GCS URI of the notebook file
+ * or the path to a Notebook Content.
+ * The execution args are accessible as environment variables
+ * (`TASK_key=value`).
+ *
+ *
+ * string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The notebook to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNotebook(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ notebook_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Path to input notebook. This can be the GCS URI of the notebook file
+ * or the path to a Notebook Content.
+ * The execution args are accessible as environment variables
+ * (`TASK_key=value`).
+ *
+ *
+ * string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNotebook() {
+
+ notebook_ = getDefaultInstance().getNotebook();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Path to input notebook. This can be the GCS URI of the notebook file
+ * or the path to a Notebook Content.
+ * The execution args are accessible as environment variables
+ * (`TASK_key=value`).
+ *
+ *
+ * string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for notebook to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNotebookBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ notebook_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructureSpec_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataplex.v1.Task.InfrastructureSpec,
+ com.google.cloud.dataplex.v1.Task.InfrastructureSpec.Builder,
+ com.google.cloud.dataplex.v1.Task.InfrastructureSpecOrBuilder>
+ infrastructureSpecBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Infrastructure specification for the execution.
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the infrastructureSpec field is set.
+ */
+ public boolean hasInfrastructureSpec() {
+ return infrastructureSpecBuilder_ != null || infrastructureSpec_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Infrastructure specification for the execution.
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The infrastructureSpec.
+ */
+ public com.google.cloud.dataplex.v1.Task.InfrastructureSpec getInfrastructureSpec() {
+ if (infrastructureSpecBuilder_ == null) {
+ return infrastructureSpec_ == null
+ ? com.google.cloud.dataplex.v1.Task.InfrastructureSpec.getDefaultInstance()
+ : infrastructureSpec_;
+ } else {
+ return infrastructureSpecBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Infrastructure specification for the execution.
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setInfrastructureSpec(
+ com.google.cloud.dataplex.v1.Task.InfrastructureSpec value) {
+ if (infrastructureSpecBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ infrastructureSpec_ = value;
+ onChanged();
+ } else {
+ infrastructureSpecBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Infrastructure specification for the execution.
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setInfrastructureSpec(
+ com.google.cloud.dataplex.v1.Task.InfrastructureSpec.Builder builderForValue) {
+ if (infrastructureSpecBuilder_ == null) {
+ infrastructureSpec_ = builderForValue.build();
+ onChanged();
+ } else {
+ infrastructureSpecBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Infrastructure specification for the execution.
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeInfrastructureSpec(
+ com.google.cloud.dataplex.v1.Task.InfrastructureSpec value) {
+ if (infrastructureSpecBuilder_ == null) {
+ if (infrastructureSpec_ != null) {
+ infrastructureSpec_ =
+ com.google.cloud.dataplex.v1.Task.InfrastructureSpec.newBuilder(infrastructureSpec_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ infrastructureSpec_ = value;
+ }
+ onChanged();
+ } else {
+ infrastructureSpecBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Infrastructure specification for the execution.
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearInfrastructureSpec() {
+ if (infrastructureSpecBuilder_ == null) {
+ infrastructureSpec_ = null;
+ onChanged();
+ } else {
+ infrastructureSpec_ = null;
+ infrastructureSpecBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Infrastructure specification for the execution.
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dataplex.v1.Task.InfrastructureSpec.Builder
+ getInfrastructureSpecBuilder() {
+
+ onChanged();
+ return getInfrastructureSpecFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Infrastructure specification for the execution.
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dataplex.v1.Task.InfrastructureSpecOrBuilder
+ getInfrastructureSpecOrBuilder() {
+ if (infrastructureSpecBuilder_ != null) {
+ return infrastructureSpecBuilder_.getMessageOrBuilder();
+ } else {
+ return infrastructureSpec_ == null
+ ? com.google.cloud.dataplex.v1.Task.InfrastructureSpec.getDefaultInstance()
+ : infrastructureSpec_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Infrastructure specification for the execution.
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataplex.v1.Task.InfrastructureSpec,
+ com.google.cloud.dataplex.v1.Task.InfrastructureSpec.Builder,
+ com.google.cloud.dataplex.v1.Task.InfrastructureSpecOrBuilder>
+ getInfrastructureSpecFieldBuilder() {
+ if (infrastructureSpecBuilder_ == null) {
+ infrastructureSpecBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataplex.v1.Task.InfrastructureSpec,
+ com.google.cloud.dataplex.v1.Task.InfrastructureSpec.Builder,
+ com.google.cloud.dataplex.v1.Task.InfrastructureSpecOrBuilder>(
+ getInfrastructureSpec(), getParentForChildren(), isClean());
+ infrastructureSpec_ = null;
+ }
+ return infrastructureSpecBuilder_;
+ }
+
+ private com.google.protobuf.LazyStringList fileUris_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureFileUrisIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of files to be placed in the working directory of each
+ * executor.
+ *
+ *
+ * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the fileUris.
+ */
+ public com.google.protobuf.ProtocolStringList getFileUrisList() {
+ return fileUris_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of files to be placed in the working directory of each
+ * executor.
+ *
+ *
+ * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of fileUris.
+ */
+ public int getFileUrisCount() {
+ return fileUris_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of files to be placed in the working directory of each
+ * executor.
+ *
+ *
+ * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The fileUris at the given index.
+ */
+ public java.lang.String getFileUris(int index) {
+ return fileUris_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of files to be placed in the working directory of each
+ * executor.
+ *
+ *
+ * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the fileUris at the given index.
+ */
+ public com.google.protobuf.ByteString getFileUrisBytes(int index) {
+ return fileUris_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of files to be placed in the working directory of each
+ * executor.
+ *
+ *
+ * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index to set the value at.
+ * @param value The fileUris to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFileUris(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFileUrisIsMutable();
+ fileUris_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of files to be placed in the working directory of each
+ * executor.
+ *
+ *
+ * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The fileUris to add.
+ * @return This builder for chaining.
+ */
+ public Builder addFileUris(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFileUrisIsMutable();
+ fileUris_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of files to be placed in the working directory of each
+ * executor.
+ *
+ *
+ * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param values The fileUris to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllFileUris(java.lang.Iterable values) {
+ ensureFileUrisIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of files to be placed in the working directory of each
+ * executor.
+ *
+ *
+ * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFileUris() {
+ fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of files to be placed in the working directory of each
+ * executor.
+ *
+ *
+ * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes of the fileUris to add.
+ * @return This builder for chaining.
+ */
+ public Builder addFileUrisBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureFileUrisIsMutable();
+ fileUris_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList archiveUris_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureArchiveUrisIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the archiveUris.
+ */
+ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
+ return archiveUris_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of archiveUris.
+ */
+ public int getArchiveUrisCount() {
+ return archiveUris_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The archiveUris at the given index.
+ */
+ public java.lang.String getArchiveUris(int index) {
+ return archiveUris_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the archiveUris at the given index.
+ */
+ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) {
+ return archiveUris_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index to set the value at.
+ * @param value The archiveUris to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArchiveUris(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArchiveUrisIsMutable();
+ archiveUris_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The archiveUris to add.
+ * @return This builder for chaining.
+ */
+ public Builder addArchiveUris(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArchiveUrisIsMutable();
+ archiveUris_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param values The archiveUris to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllArchiveUris(java.lang.Iterable values) {
+ ensureArchiveUrisIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearArchiveUris() {
+ archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GCS URIs of archives to be extracted into the working directory of
+ * each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ * .zip.
+ *
+ *
+ * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes of the archiveUris to add.
+ * @return This builder for chaining.
+ */
+ public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureArchiveUrisIsMutable();
+ archiveUris_.add(value);
+ onChanged();
+ return this;
+ }
- break;
- }
- case 74:
- {
- com.google.cloud.dataplex.v1.Job.Builder subBuilder = null;
- if (latestJob_ != null) {
- subBuilder = latestJob_.toBuilder();
- }
- latestJob_ =
- input.readMessage(com.google.cloud.dataplex.v1.Job.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(latestJob_);
- latestJob_ = subBuilder.buildPartial();
- }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
}
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.Task.NotebookTaskConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Task.NotebookTaskConfig)
+ private static final com.google.cloud.dataplex.v1.Task.NotebookTaskConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Task.NotebookTaskConfig();
+ }
+
+ public static com.google.cloud.dataplex.v1.Task.NotebookTaskConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public NotebookTaskConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ 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.dataplex.v1.Task.NotebookTaskConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface ExecutionStatusOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Task.ExecutionStatus)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. Last update time of the status.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the updateTime field is set.
+ */
+ boolean hasUpdateTime();
+ /**
+ *
+ *
+ *
+ * Output only. Last update time of the status.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The updateTime.
+ */
+ com.google.protobuf.Timestamp getUpdateTime();
+ /**
+ *
+ *
+ *
+ * Output only. Last update time of the status.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. latest job execution
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the latestJob field is set.
+ */
+ boolean hasLatestJob();
+ /**
+ *
+ *
+ *
+ * Output only. latest job execution
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The latestJob.
+ */
+ com.google.cloud.dataplex.v1.Job getLatestJob();
+ /**
+ *
+ *
+ *
+ * Output only. latest job execution
+ *
+ *
+ *
+ * .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.dataplex.v1.JobOrBuilder getLatestJobOrBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Status of the task execution (e.g. Jobs).
+ *
+ *
+ * Protobuf type {@code google.cloud.dataplex.v1.Task.ExecutionStatus}
+ */
+ public static final class ExecutionStatus extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Task.ExecutionStatus)
+ ExecutionStatusOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ExecutionStatus.newBuilder() to construct.
+ private ExecutionStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ExecutionStatus() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ExecutionStatus();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -13435,7 +14612,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (latestJob_ != null) {
output.writeMessage(9, getLatestJob());
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -13450,7 +14627,7 @@ public int getSerializedSize() {
if (latestJob_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getLatestJob());
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -13474,7 +14651,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasLatestJob()) {
if (!getLatestJob().equals(other.getLatestJob())) return false;
}
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -13493,7 +14670,7 @@ public int hashCode() {
hash = (37 * hash) + LATEST_JOB_FIELD_NUMBER;
hash = (53 * hash) + getLatestJob().hashCode();
}
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -13624,17 +14801,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.dataplex.v1.Task.ExecutionStatus.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -13747,7 +14917,7 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.Task.ExecutionStatus other
if (other.hasLatestJob()) {
mergeLatestJob(other.getLatestJob());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -13762,18 +14932,43 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.Task.ExecutionStatus parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 26:
+ {
+ input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 26
+ case 74:
+ {
+ input.readMessage(getLatestJobFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 74
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage =
- (com.google.cloud.dataplex.v1.Task.ExecutionStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -14216,7 +15411,19 @@ public ExecutionStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new ExecutionStatus(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
@@ -14243,6 +15450,7 @@ public enum ConfigCase
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SPARK(300),
+ NOTEBOOK(302),
CONFIG_NOT_SET(0);
private final int value;
@@ -14263,6 +15471,8 @@ public static ConfigCase forNumber(int value) {
switch (value) {
case 300:
return SPARK;
+ case 302:
+ return NOTEBOOK;
case 0:
return CONFIG_NOT_SET;
default:
@@ -14931,6 +16141,57 @@ public com.google.cloud.dataplex.v1.Task.SparkTaskConfigOrBuilder getSparkOrBuil
return com.google.cloud.dataplex.v1.Task.SparkTaskConfig.getDefaultInstance();
}
+ public static final int NOTEBOOK_FIELD_NUMBER = 302;
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ *
+ * @return Whether the notebook field is set.
+ */
+ @java.lang.Override
+ public boolean hasNotebook() {
+ return configCase_ == 302;
+ }
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ *
+ * @return The notebook.
+ */
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.Task.NotebookTaskConfig getNotebook() {
+ if (configCase_ == 302) {
+ return (com.google.cloud.dataplex.v1.Task.NotebookTaskConfig) config_;
+ }
+ return com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ */
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.Task.NotebookTaskConfigOrBuilder getNotebookOrBuilder() {
+ if (configCase_ == 302) {
+ return (com.google.cloud.dataplex.v1.Task.NotebookTaskConfig) config_;
+ }
+ return com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.getDefaultInstance();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -14980,7 +16241,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (configCase_ == 300) {
output.writeMessage(300, (com.google.cloud.dataplex.v1.Task.SparkTaskConfig) config_);
}
- unknownFields.writeTo(output);
+ if (configCase_ == 302) {
+ output.writeMessage(302, (com.google.cloud.dataplex.v1.Task.NotebookTaskConfig) config_);
+ }
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -15034,7 +16298,12 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
300, (com.google.cloud.dataplex.v1.Task.SparkTaskConfig) config_);
}
- size += unknownFields.getSerializedSize();
+ if (configCase_ == 302) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 302, (com.google.cloud.dataplex.v1.Task.NotebookTaskConfig) config_);
+ }
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -15080,10 +16349,13 @@ public boolean equals(final java.lang.Object obj) {
case 300:
if (!getSpark().equals(other.getSpark())) return false;
break;
+ case 302:
+ if (!getNotebook().equals(other.getNotebook())) return false;
+ break;
case 0:
default:
}
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -15133,10 +16405,14 @@ public int hashCode() {
hash = (37 * hash) + SPARK_FIELD_NUMBER;
hash = (53 * hash) + getSpark().hashCode();
break;
+ case 302:
+ hash = (37 * hash) + NOTEBOOK_FIELD_NUMBER;
+ hash = (53 * hash) + getNotebook().hashCode();
+ break;
case 0:
default:
}
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -15284,17 +16560,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
}
// Construct using com.google.cloud.dataplex.v1.Task.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -15341,6 +16610,12 @@ public Builder clear() {
executionStatus_ = null;
executionStatusBuilder_ = null;
}
+ if (sparkBuilder_ != null) {
+ sparkBuilder_.clear();
+ }
+ if (notebookBuilder_ != null) {
+ notebookBuilder_.clear();
+ }
configCase_ = 0;
config_ = null;
return this;
@@ -15409,6 +16684,13 @@ public com.google.cloud.dataplex.v1.Task buildPartial() {
result.config_ = sparkBuilder_.build();
}
}
+ if (configCase_ == 302) {
+ if (notebookBuilder_ == null) {
+ result.config_ = config_;
+ } else {
+ result.config_ = notebookBuilder_.build();
+ }
+ }
result.configCase_ = configCase_;
onBuilt();
return result;
@@ -15500,12 +16782,17 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.Task other) {
mergeSpark(other.getSpark());
break;
}
+ case NOTEBOOK:
+ {
+ mergeNotebook(other.getNotebook());
+ break;
+ }
case CONFIG_NOT_SET:
{
break;
}
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -15520,17 +16807,114 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.Task parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ name_ = input.readStringRequireUtf8();
+
+ break;
+ } // case 10
+ case 18:
+ {
+ uid_ = input.readStringRequireUtf8();
+
+ break;
+ } // case 18
+ case 26:
+ {
+ input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 26
+ case 34:
+ {
+ input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 34
+ case 42:
+ {
+ description_ = input.readStringRequireUtf8();
+
+ break;
+ } // case 42
+ case 50:
+ {
+ displayName_ = input.readStringRequireUtf8();
+
+ break;
+ } // case 50
+ case 56:
+ {
+ state_ = input.readEnum();
+
+ break;
+ } // case 56
+ case 66:
+ {
+ com.google.protobuf.MapEntry labels__ =
+ input.readMessage(
+ LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ internalGetMutableLabels()
+ .getMutableMap()
+ .put(labels__.getKey(), labels__.getValue());
+ break;
+ } // case 66
+ case 802:
+ {
+ input.readMessage(getTriggerSpecFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 802
+ case 810:
+ {
+ input.readMessage(getExecutionSpecFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 810
+ case 1610:
+ {
+ input.readMessage(getExecutionStatusFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 1610
+ case 2402:
+ {
+ input.readMessage(getSparkFieldBuilder().getBuilder(), extensionRegistry);
+ configCase_ = 300;
+ break;
+ } // case 2402
+ case 2418:
+ {
+ input.readMessage(getNotebookFieldBuilder().getBuilder(), extensionRegistry);
+ configCase_ = 302;
+ break;
+ } // case 2418
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.google.cloud.dataplex.v1.Task) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -17478,6 +18862,217 @@ public com.google.cloud.dataplex.v1.Task.SparkTaskConfigOrBuilder getSparkOrBuil
return sparkBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig,
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.Builder,
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfigOrBuilder>
+ notebookBuilder_;
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ *
+ * @return Whether the notebook field is set.
+ */
+ @java.lang.Override
+ public boolean hasNotebook() {
+ return configCase_ == 302;
+ }
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ *
+ * @return The notebook.
+ */
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.Task.NotebookTaskConfig getNotebook() {
+ if (notebookBuilder_ == null) {
+ if (configCase_ == 302) {
+ return (com.google.cloud.dataplex.v1.Task.NotebookTaskConfig) config_;
+ }
+ return com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.getDefaultInstance();
+ } else {
+ if (configCase_ == 302) {
+ return notebookBuilder_.getMessage();
+ }
+ return com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ */
+ public Builder setNotebook(com.google.cloud.dataplex.v1.Task.NotebookTaskConfig value) {
+ if (notebookBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ config_ = value;
+ onChanged();
+ } else {
+ notebookBuilder_.setMessage(value);
+ }
+ configCase_ = 302;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ */
+ public Builder setNotebook(
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.Builder builderForValue) {
+ if (notebookBuilder_ == null) {
+ config_ = builderForValue.build();
+ onChanged();
+ } else {
+ notebookBuilder_.setMessage(builderForValue.build());
+ }
+ configCase_ = 302;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ */
+ public Builder mergeNotebook(com.google.cloud.dataplex.v1.Task.NotebookTaskConfig value) {
+ if (notebookBuilder_ == null) {
+ if (configCase_ == 302
+ && config_
+ != com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.getDefaultInstance()) {
+ config_ =
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.newBuilder(
+ (com.google.cloud.dataplex.v1.Task.NotebookTaskConfig) config_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ config_ = value;
+ }
+ onChanged();
+ } else {
+ if (configCase_ == 302) {
+ notebookBuilder_.mergeFrom(value);
+ } else {
+ notebookBuilder_.setMessage(value);
+ }
+ }
+ configCase_ = 302;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ */
+ public Builder clearNotebook() {
+ if (notebookBuilder_ == null) {
+ if (configCase_ == 302) {
+ configCase_ = 0;
+ config_ = null;
+ onChanged();
+ }
+ } else {
+ if (configCase_ == 302) {
+ configCase_ = 0;
+ config_ = null;
+ }
+ notebookBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ */
+ public com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.Builder getNotebookBuilder() {
+ return getNotebookFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ */
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.Task.NotebookTaskConfigOrBuilder getNotebookOrBuilder() {
+ if ((configCase_ == 302) && (notebookBuilder_ != null)) {
+ return notebookBuilder_.getMessageOrBuilder();
+ } else {
+ if (configCase_ == 302) {
+ return (com.google.cloud.dataplex.v1.Task.NotebookTaskConfig) config_;
+ }
+ return com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig,
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.Builder,
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfigOrBuilder>
+ getNotebookFieldBuilder() {
+ if (notebookBuilder_ == null) {
+ if (!(configCase_ == 302)) {
+ config_ = com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.getDefaultInstance();
+ }
+ notebookBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig,
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.Builder,
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfigOrBuilder>(
+ (com.google.cloud.dataplex.v1.Task.NotebookTaskConfig) config_,
+ getParentForChildren(),
+ isClean());
+ config_ = null;
+ }
+ configCase_ = 302;
+ onChanged();
+ ;
+ return notebookBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
@@ -17510,7 +19105,18 @@ public Task parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new Task(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TaskOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TaskOrBuilder.java
index 7d37ebe4b6ed..331b36caf1d3 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TaskOrBuilder.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TaskOrBuilder.java
@@ -453,5 +453,40 @@ java.lang.String getLabelsOrDefault(
*/
com.google.cloud.dataplex.v1.Task.SparkTaskConfigOrBuilder getSparkOrBuilder();
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ *
+ * @return Whether the notebook field is set.
+ */
+ boolean hasNotebook();
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ *
+ * @return The notebook.
+ */
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfig getNotebook();
+ /**
+ *
+ *
+ *
+ * Config related to running scheduled Notebooks.
+ *
+ *
+ * .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302;
+ */
+ com.google.cloud.dataplex.v1.Task.NotebookTaskConfigOrBuilder getNotebookOrBuilder();
+
public com.google.cloud.dataplex.v1.Task.ConfigCase getConfigCase();
}
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TasksProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TasksProto.java
index f7c7f302059a..5db8a78c8a6a 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TasksProto.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TasksProto.java
@@ -67,6 +67,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_dataplex_v1_Task_SparkTaskConfig_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dataplex_v1_Task_SparkTaskConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataplex_v1_Task_NotebookTaskConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataplex_v1_Task_NotebookTaskConfig_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_dataplex_v1_Task_ExecutionStatus_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -93,7 +97,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ld_behavior.proto\032\031google/api/resource.p"
+ "roto\032(google/cloud/dataplex/v1/resources"
+ ".proto\032\036google/protobuf/duration.proto\032\037"
- + "google/protobuf/timestamp.proto\"\241\024\n\004Task"
+ + "google/protobuf/timestamp.proto\"\237\026\n\004Task"
+ "\0222\n\004name\030\001 \001(\tB$\340A\003\372A\036\n\034dataplex.googlea"
+ "pis.com/Task\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0224\n\013create"
+ "_time\030\003 \001(\0132\032.google.protobuf.TimestampB"
@@ -110,74 +114,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "(\0132..google.cloud.dataplex.v1.Task.Execu"
+ "tionStatusB\003\340A\003\022@\n\005spark\030\254\002 \001(\0132..google"
+ ".cloud.dataplex.v1.Task.SparkTaskConfigH"
- + "\000\032\232\006\n\022InfrastructureSpec\022X\n\005batch\0304 \001(\0132"
- + "G.google.cloud.dataplex.v1.Task.Infrastr"
- + "uctureSpec.BatchComputeResourcesH\000\022b\n\017co"
- + "ntainer_image\030e \001(\0132G.google.cloud.datap"
- + "lex.v1.Task.InfrastructureSpec.Container"
- + "ImageRuntimeH\001\022T\n\013vpc_network\030\226\001 \001(\0132<.g"
- + "oogle.cloud.dataplex.v1.Task.Infrastruct"
- + "ureSpec.VpcNetworkH\002\032W\n\025BatchComputeReso"
- + "urces\022\034\n\017executors_count\030\001 \001(\005B\003\340A\001\022 \n\023m"
- + "ax_executors_count\030\002 \001(\005B\003\340A\001\032\206\002\n\025Contai"
- + "nerImageRuntime\022\022\n\005image\030\001 \001(\tB\003\340A\001\022\026\n\tj"
- + "ava_jars\030\002 \003(\tB\003\340A\001\022\034\n\017python_packages\030\003"
- + " \003(\tB\003\340A\001\022p\n\nproperties\030\004 \003(\0132W.google.c"
- + "loud.dataplex.v1.Task.InfrastructureSpec"
- + ".ContainerImageRuntime.PropertiesEntryB\003"
- + "\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
- + "alue\030\002 \001(\t:\0028\001\032k\n\nVpcNetwork\022\026\n\007network\030"
- + "\001 \001(\tB\003\340A\001H\000\022\032\n\013sub_network\030\002 \001(\tB\003\340A\001H\000"
- + "\022\031\n\014network_tags\030\003 \003(\tB\003\340A\001B\016\n\014network_n"
- + "ameB\013\n\tresourcesB\t\n\007runtimeB\t\n\007network\032\232"
- + "\002\n\013TriggerSpec\022E\n\004type\030\005 \001(\0162/.google.cl"
- + "oud.dataplex.v1.Task.TriggerSpec.TypeB\006\340"
- + "A\002\340A\005\0223\n\nstart_time\030\006 \001(\0132\032.google.proto"
- + "buf.TimestampB\003\340A\001\022\025\n\010disabled\030\004 \001(\010B\003\340A"
- + "\001\022\030\n\013max_retries\030\007 \001(\005B\003\340A\001\022\027\n\010schedule\030"
- + "d \001(\tB\003\340A\001H\000\":\n\004Type\022\024\n\020TYPE_UNSPECIFIED"
- + "\020\000\022\r\n\tON_DEMAND\020\001\022\r\n\tRECURRING\020\002B\t\n\007trig"
- + "ger\032\225\002\n\rExecutionSpec\022I\n\004args\030\004 \003(\01326.go"
- + "ogle.cloud.dataplex.v1.Task.ExecutionSpe"
- + "c.ArgsEntryB\003\340A\001\022\034\n\017service_account\030\005 \001("
- + "\tB\003\340A\002\022\024\n\007project\030\007 \001(\tB\003\340A\001\022B\n\032max_job_"
- + "execution_lifetime\030\010 \001(\0132\031.google.protob"
- + "uf.DurationB\003\340A\001\022\024\n\007kms_key\030\t \001(\tB\003\340A\001\032+"
- + "\n\tArgsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
- + "\0028\001\032\245\002\n\017SparkTaskConfig\022\033\n\021main_jar_file"
- + "_uri\030d \001(\tH\000\022\024\n\nmain_class\030e \001(\tH\000\022\034\n\022py"
- + "thon_script_file\030f \001(\tH\000\022\031\n\017sql_script_f"
- + "ile\030h \001(\tH\000\022\024\n\nsql_script\030i \001(\tH\000\022\026\n\tfil"
- + "e_uris\030\003 \003(\tB\003\340A\001\022\031\n\014archive_uris\030\004 \003(\tB"
- + "\003\340A\001\022S\n\023infrastructure_spec\030\006 \001(\01321.goog"
- + "le.cloud.dataplex.v1.Task.Infrastructure"
- + "SpecB\003\340A\001B\010\n\006driver\032\177\n\017ExecutionStatus\0224"
- + "\n\013update_time\030\003 \001(\0132\032.google.protobuf.Ti"
- + "mestampB\003\340A\003\0226\n\nlatest_job\030\t \001(\0132\035.googl"
- + "e.cloud.dataplex.v1.JobB\003\340A\003\032-\n\013LabelsEn"
- + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:d\352Aa"
- + "\n\034dataplex.googleapis.com/Task\022Aprojects"
- + "/{project}/locations/{location}/lakes/{l"
- + "ake}/tasks/{task}B\010\n\006config\"\210\005\n\003Job\0221\n\004n"
- + "ame\030\001 \001(\tB#\340A\003\372A\035\n\033dataplex.googleapis.c"
- + "om/Job\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0223\n\nstart_time\030\003"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n"
- + "\010end_time\030\004 \001(\0132\032.google.protobuf.Timest"
- + "ampB\003\340A\003\0227\n\005state\030\005 \001(\0162#.google.cloud.d"
- + "ataplex.v1.Job.StateB\003\340A\003\022\030\n\013retry_count"
- + "\030\006 \001(\rB\003\340A\003\022;\n\007service\030\007 \001(\0162%.google.cl"
- + "oud.dataplex.v1.Job.ServiceB\003\340A\003\022\030\n\013serv"
- + "ice_job\030\010 \001(\tB\003\340A\003\022\024\n\007message\030\t \001(\tB\003\340A\003"
- + "\"0\n\007Service\022\027\n\023SERVICE_UNSPECIFIED\020\000\022\014\n\010"
- + "DATAPROC\020\001\"r\n\005State\022\025\n\021STATE_UNSPECIFIED"
- + "\020\000\022\013\n\007RUNNING\020\001\022\016\n\nCANCELLING\020\002\022\r\n\tCANCE"
- + "LLED\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006FAILED\020\005\022\013\n\007ABO"
- + "RTED\020\006:n\352Ak\n\033dataplex.googleapis.com/Job"
- + "\022Lprojects/{project}/locations/{location"
- + "}/lakes/{lake}/tasks/{task}/jobs/{job}Bn"
- + "\n\034com.google.cloud.dataplex.v1B\nTasksPro"
- + "toP\001Z@google.golang.org/genproto/googlea"
- + "pis/cloud/dataplex/v1;dataplexb\006proto3"
+ + "\000\022F\n\010notebook\030\256\002 \001(\01321.google.cloud.data"
+ + "plex.v1.Task.NotebookTaskConfigH\000\032\232\006\n\022In"
+ + "frastructureSpec\022X\n\005batch\0304 \001(\0132G.google"
+ + ".cloud.dataplex.v1.Task.InfrastructureSp"
+ + "ec.BatchComputeResourcesH\000\022b\n\017container_"
+ + "image\030e \001(\0132G.google.cloud.dataplex.v1.T"
+ + "ask.InfrastructureSpec.ContainerImageRun"
+ + "timeH\001\022T\n\013vpc_network\030\226\001 \001(\0132<.google.cl"
+ + "oud.dataplex.v1.Task.InfrastructureSpec."
+ + "VpcNetworkH\002\032W\n\025BatchComputeResources\022\034\n"
+ + "\017executors_count\030\001 \001(\005B\003\340A\001\022 \n\023max_execu"
+ + "tors_count\030\002 \001(\005B\003\340A\001\032\206\002\n\025ContainerImage"
+ + "Runtime\022\022\n\005image\030\001 \001(\tB\003\340A\001\022\026\n\tjava_jars"
+ + "\030\002 \003(\tB\003\340A\001\022\034\n\017python_packages\030\003 \003(\tB\003\340A"
+ + "\001\022p\n\nproperties\030\004 \003(\0132W.google.cloud.dat"
+ + "aplex.v1.Task.InfrastructureSpec.Contain"
+ + "erImageRuntime.PropertiesEntryB\003\340A\001\0321\n\017P"
+ + "ropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001"
+ + "(\t:\0028\001\032k\n\nVpcNetwork\022\026\n\007network\030\001 \001(\tB\003\340"
+ + "A\001H\000\022\032\n\013sub_network\030\002 \001(\tB\003\340A\001H\000\022\031\n\014netw"
+ + "ork_tags\030\003 \003(\tB\003\340A\001B\016\n\014network_nameB\013\n\tr"
+ + "esourcesB\t\n\007runtimeB\t\n\007network\032\232\002\n\013Trigg"
+ + "erSpec\022E\n\004type\030\005 \001(\0162/.google.cloud.data"
+ + "plex.v1.Task.TriggerSpec.TypeB\006\340A\002\340A\005\0223\n"
+ + "\nstart_time\030\006 \001(\0132\032.google.protobuf.Time"
+ + "stampB\003\340A\001\022\025\n\010disabled\030\004 \001(\010B\003\340A\001\022\030\n\013max"
+ + "_retries\030\007 \001(\005B\003\340A\001\022\027\n\010schedule\030d \001(\tB\003\340"
+ + "A\001H\000\":\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\tON"
+ + "_DEMAND\020\001\022\r\n\tRECURRING\020\002B\t\n\007trigger\032\225\002\n\r"
+ + "ExecutionSpec\022I\n\004args\030\004 \003(\01326.google.clo"
+ + "ud.dataplex.v1.Task.ExecutionSpec.ArgsEn"
+ + "tryB\003\340A\001\022\034\n\017service_account\030\005 \001(\tB\003\340A\002\022\024"
+ + "\n\007project\030\007 \001(\tB\003\340A\001\022B\n\032max_job_executio"
+ + "n_lifetime\030\010 \001(\0132\031.google.protobuf.Durat"
+ + "ionB\003\340A\001\022\024\n\007kms_key\030\t \001(\tB\003\340A\001\032+\n\tArgsEn"
+ + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\245\002\n\017"
+ + "SparkTaskConfig\022\033\n\021main_jar_file_uri\030d \001"
+ + "(\tH\000\022\024\n\nmain_class\030e \001(\tH\000\022\034\n\022python_scr"
+ + "ipt_file\030f \001(\tH\000\022\031\n\017sql_script_file\030h \001("
+ + "\tH\000\022\024\n\nsql_script\030i \001(\tH\000\022\026\n\tfile_uris\030\003"
+ + " \003(\tB\003\340A\001\022\031\n\014archive_uris\030\004 \003(\tB\003\340A\001\022S\n\023"
+ + "infrastructure_spec\030\006 \001(\01321.google.cloud"
+ + ".dataplex.v1.Task.InfrastructureSpecB\003\340A"
+ + "\001B\010\n\006driver\032\263\001\n\022NotebookTaskConfig\022\025\n\010no"
+ + "tebook\030\004 \001(\tB\003\340A\002\022S\n\023infrastructure_spec"
+ + "\030\003 \001(\01321.google.cloud.dataplex.v1.Task.I"
+ + "nfrastructureSpecB\003\340A\001\022\026\n\tfile_uris\030\005 \003("
+ + "\tB\003\340A\001\022\031\n\014archive_uris\030\006 \003(\tB\003\340A\001\032\177\n\017Exe"
+ + "cutionStatus\0224\n\013update_time\030\003 \001(\0132\032.goog"
+ + "le.protobuf.TimestampB\003\340A\003\0226\n\nlatest_job"
+ + "\030\t \001(\0132\035.google.cloud.dataplex.v1.JobB\003\340"
+ + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
+ + "\002 \001(\t:\0028\001:d\352Aa\n\034dataplex.googleapis.com/"
+ + "Task\022Aprojects/{project}/locations/{loca"
+ + "tion}/lakes/{lake}/tasks/{task}B\010\n\006confi"
+ + "g\"\210\005\n\003Job\0221\n\004name\030\001 \001(\tB#\340A\003\372A\035\n\033dataple"
+ + "x.googleapis.com/Job\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0223"
+ + "\n\nstart_time\030\003 \001(\0132\032.google.protobuf.Tim"
+ + "estampB\003\340A\003\0221\n\010end_time\030\004 \001(\0132\032.google.p"
+ + "rotobuf.TimestampB\003\340A\003\0227\n\005state\030\005 \001(\0162#."
+ + "google.cloud.dataplex.v1.Job.StateB\003\340A\003\022"
+ + "\030\n\013retry_count\030\006 \001(\rB\003\340A\003\022;\n\007service\030\007 \001"
+ + "(\0162%.google.cloud.dataplex.v1.Job.Servic"
+ + "eB\003\340A\003\022\030\n\013service_job\030\010 \001(\tB\003\340A\003\022\024\n\007mess"
+ + "age\030\t \001(\tB\003\340A\003\"0\n\007Service\022\027\n\023SERVICE_UNS"
+ + "PECIFIED\020\000\022\014\n\010DATAPROC\020\001\"r\n\005State\022\025\n\021STA"
+ + "TE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\016\n\nCANCELL"
+ + "ING\020\002\022\r\n\tCANCELLED\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006F"
+ + "AILED\020\005\022\013\n\007ABORTED\020\006:n\352Ak\n\033dataplex.goog"
+ + "leapis.com/Job\022Lprojects/{project}/locat"
+ + "ions/{location}/lakes/{lake}/tasks/{task"
+ + "}/jobs/{job}Bn\n\034com.google.cloud.dataple"
+ + "x.v1B\nTasksProtoP\001Z@google.golang.org/ge"
+ + "nproto/googleapis/cloud/dataplex/v1;data"
+ + "plexb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -207,6 +218,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ExecutionSpec",
"ExecutionStatus",
"Spark",
+ "Notebook",
"Config",
});
internal_static_google_cloud_dataplex_v1_Task_InfrastructureSpec_descriptor =
@@ -299,8 +311,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"InfrastructureSpec",
"Driver",
});
- internal_static_google_cloud_dataplex_v1_Task_ExecutionStatus_descriptor =
+ internal_static_google_cloud_dataplex_v1_Task_NotebookTaskConfig_descriptor =
internal_static_google_cloud_dataplex_v1_Task_descriptor.getNestedTypes().get(4);
+ internal_static_google_cloud_dataplex_v1_Task_NotebookTaskConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dataplex_v1_Task_NotebookTaskConfig_descriptor,
+ new java.lang.String[] {
+ "Notebook", "InfrastructureSpec", "FileUris", "ArchiveUris",
+ });
+ internal_static_google_cloud_dataplex_v1_Task_ExecutionStatus_descriptor =
+ internal_static_google_cloud_dataplex_v1_Task_descriptor.getNestedTypes().get(5);
internal_static_google_cloud_dataplex_v1_Task_ExecutionStatus_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataplex_v1_Task_ExecutionStatus_descriptor,
@@ -308,7 +328,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"UpdateTime", "LatestJob",
});
internal_static_google_cloud_dataplex_v1_Task_LabelsEntry_descriptor =
- internal_static_google_cloud_dataplex_v1_Task_descriptor.getNestedTypes().get(5);
+ internal_static_google_cloud_dataplex_v1_Task_descriptor.getNestedTypes().get(6);
internal_static_google_cloud_dataplex_v1_Task_LabelsEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataplex_v1_Task_LabelsEntry_descriptor,
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateAssetRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateAssetRequest.java
index 567825167708..ce8a5fa395ba 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateAssetRequest.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateAssetRequest.java
@@ -50,80 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private UpdateAssetRequest(
- 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.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;
- }
- case 18:
- {
- com.google.cloud.dataplex.v1.Asset.Builder subBuilder = null;
- if (asset_ != null) {
- subBuilder = asset_.toBuilder();
- }
- asset_ =
- input.readMessage(com.google.cloud.dataplex.v1.Asset.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(asset_);
- asset_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 24:
- {
- validateOnly_ = input.readBool();
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().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.dataplex.v1.ServiceProto
.internal_static_google_cloud_dataplex_v1_UpdateAssetRequest_descriptor;
@@ -282,7 +208,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (validateOnly_ != false) {
output.writeBool(3, validateOnly_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -300,7 +226,7 @@ public int getSerializedSize() {
if (validateOnly_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -325,7 +251,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getAsset().equals(other.getAsset())) return false;
}
if (getValidateOnly() != other.getValidateOnly()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -346,7 +272,7 @@ public int hashCode() {
}
hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly());
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -475,17 +401,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.dataplex.v1.UpdateAssetRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -602,7 +521,7 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.UpdateAssetRequest other)
if (other.getValidateOnly() != false) {
setValidateOnly(other.getValidateOnly());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -617,17 +536,49 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.UpdateAssetRequest parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(getAssetFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 18
+ case 24:
+ {
+ validateOnly_ = input.readBool();
+
+ break;
+ } // case 24
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.google.cloud.dataplex.v1.UpdateAssetRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -1107,7 +1058,18 @@ public UpdateAssetRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new UpdateAssetRequest(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateContentRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateContentRequest.java
index d9d2f5efabc6..411d5c28a244 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateContentRequest.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateContentRequest.java
@@ -50,81 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private UpdateContentRequest(
- 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.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;
- }
- case 18:
- {
- com.google.cloud.dataplex.v1.Content.Builder subBuilder = null;
- if (content_ != null) {
- subBuilder = content_.toBuilder();
- }
- content_ =
- input.readMessage(
- com.google.cloud.dataplex.v1.Content.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(content_);
- content_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 24:
- {
- validateOnly_ = input.readBool();
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().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.dataplex.v1.ContentProto
.internal_static_google_cloud_dataplex_v1_UpdateContentRequest_descriptor;
@@ -283,7 +208,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (validateOnly_ != false) {
output.writeBool(3, validateOnly_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -301,7 +226,7 @@ public int getSerializedSize() {
if (validateOnly_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -326,7 +251,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getContent().equals(other.getContent())) return false;
}
if (getValidateOnly() != other.getValidateOnly()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -347,7 +272,7 @@ public int hashCode() {
}
hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly());
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -476,17 +401,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.dataplex.v1.UpdateContentRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -603,7 +521,7 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.UpdateContentRequest other
if (other.getValidateOnly() != false) {
setValidateOnly(other.getValidateOnly());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -618,18 +536,49 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.UpdateContentRequest parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(getContentFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 18
+ case 24:
+ {
+ validateOnly_ = input.readBool();
+
+ break;
+ } // case 24
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage =
- (com.google.cloud.dataplex.v1.UpdateContentRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -1124,7 +1073,18 @@ public UpdateContentRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new UpdateContentRequest(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateEntityRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateEntityRequest.java
index 012d782e6340..83ce92b1106b 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateEntityRequest.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateEntityRequest.java
@@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private UpdateEntityRequest(
- 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 18:
- {
- com.google.cloud.dataplex.v1.Entity.Builder subBuilder = null;
- if (entity_ != null) {
- subBuilder = entity_.toBuilder();
- }
- entity_ =
- input.readMessage(
- com.google.cloud.dataplex.v1.Entity.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(entity_);
- entity_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 24:
- {
- validateOnly_ = input.readBool();
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().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.dataplex.v1.MetadataProto
.internal_static_google_cloud_dataplex_v1_UpdateEntityRequest_descriptor;
@@ -216,7 +156,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (validateOnly_ != false) {
output.writeBool(3, validateOnly_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -231,7 +171,7 @@ public int getSerializedSize() {
if (validateOnly_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -252,7 +192,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getEntity().equals(other.getEntity())) return false;
}
if (getValidateOnly() != other.getValidateOnly()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -269,7 +209,7 @@ public int hashCode() {
}
hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly());
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -401,17 +341,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.dataplex.v1.UpdateEntityRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -514,7 +447,7 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.UpdateEntityRequest other)
if (other.getValidateOnly() != false) {
setValidateOnly(other.getValidateOnly());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -529,17 +462,43 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.UpdateEntityRequest parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 18:
+ {
+ input.readMessage(getEntityFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 18
+ case 24:
+ {
+ validateOnly_ = input.readBool();
+
+ break;
+ } // case 24
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.google.cloud.dataplex.v1.UpdateEntityRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -820,7 +779,18 @@ public UpdateEntityRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new UpdateEntityRequest(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateEnvironmentRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateEnvironmentRequest.java
index 91cb2f61306c..4cd66cc896ca 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateEnvironmentRequest.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateEnvironmentRequest.java
@@ -50,81 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private UpdateEnvironmentRequest(
- 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.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;
- }
- case 18:
- {
- com.google.cloud.dataplex.v1.Environment.Builder subBuilder = null;
- if (environment_ != null) {
- subBuilder = environment_.toBuilder();
- }
- environment_ =
- input.readMessage(
- com.google.cloud.dataplex.v1.Environment.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(environment_);
- environment_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 24:
- {
- validateOnly_ = input.readBool();
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().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.dataplex.v1.ServiceProto
.internal_static_google_cloud_dataplex_v1_UpdateEnvironmentRequest_descriptor;
@@ -288,7 +213,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (validateOnly_ != false) {
output.writeBool(3, validateOnly_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -306,7 +231,7 @@ public int getSerializedSize() {
if (validateOnly_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -331,7 +256,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getEnvironment().equals(other.getEnvironment())) return false;
}
if (getValidateOnly() != other.getValidateOnly()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -352,7 +277,7 @@ public int hashCode() {
}
hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly());
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -482,17 +407,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.dataplex.v1.UpdateEnvironmentRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -609,7 +527,7 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.UpdateEnvironmentRequest o
if (other.getValidateOnly() != false) {
setValidateOnly(other.getValidateOnly());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -624,18 +542,49 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.UpdateEnvironmentRequest parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 18
+ case 24:
+ {
+ validateOnly_ = input.readBool();
+
+ break;
+ } // case 24
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage =
- (com.google.cloud.dataplex.v1.UpdateEnvironmentRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -1131,7 +1080,18 @@ public UpdateEnvironmentRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new UpdateEnvironmentRequest(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateLakeRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateLakeRequest.java
index a771f660aa56..77390cd37454 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateLakeRequest.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateLakeRequest.java
@@ -50,80 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private UpdateLakeRequest(
- 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.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;
- }
- case 18:
- {
- com.google.cloud.dataplex.v1.Lake.Builder subBuilder = null;
- if (lake_ != null) {
- subBuilder = lake_.toBuilder();
- }
- lake_ =
- input.readMessage(com.google.cloud.dataplex.v1.Lake.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(lake_);
- lake_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 24:
- {
- validateOnly_ = input.readBool();
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().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.dataplex.v1.ServiceProto
.internal_static_google_cloud_dataplex_v1_UpdateLakeRequest_descriptor;
@@ -279,7 +205,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (validateOnly_ != false) {
output.writeBool(3, validateOnly_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -297,7 +223,7 @@ public int getSerializedSize() {
if (validateOnly_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -322,7 +248,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getLake().equals(other.getLake())) return false;
}
if (getValidateOnly() != other.getValidateOnly()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -343,7 +269,7 @@ public int hashCode() {
}
hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly());
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -472,17 +398,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.dataplex.v1.UpdateLakeRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -598,7 +517,7 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.UpdateLakeRequest other) {
if (other.getValidateOnly() != false) {
setValidateOnly(other.getValidateOnly());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -613,17 +532,49 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.UpdateLakeRequest parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(getLakeFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 18
+ case 24:
+ {
+ validateOnly_ = input.readBool();
+
+ break;
+ } // case 24
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.google.cloud.dataplex.v1.UpdateLakeRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -1103,7 +1054,18 @@ public UpdateLakeRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new UpdateLakeRequest(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateTaskRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateTaskRequest.java
index 90539a2bae5a..b593bb50ec4e 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateTaskRequest.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateTaskRequest.java
@@ -50,80 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private UpdateTaskRequest(
- 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.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;
- }
- case 18:
- {
- com.google.cloud.dataplex.v1.Task.Builder subBuilder = null;
- if (task_ != null) {
- subBuilder = task_.toBuilder();
- }
- task_ =
- input.readMessage(com.google.cloud.dataplex.v1.Task.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(task_);
- task_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 24:
- {
- validateOnly_ = input.readBool();
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().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.dataplex.v1.ServiceProto
.internal_static_google_cloud_dataplex_v1_UpdateTaskRequest_descriptor;
@@ -279,7 +205,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (validateOnly_ != false) {
output.writeBool(3, validateOnly_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -297,7 +223,7 @@ public int getSerializedSize() {
if (validateOnly_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -322,7 +248,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getTask().equals(other.getTask())) return false;
}
if (getValidateOnly() != other.getValidateOnly()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -343,7 +269,7 @@ public int hashCode() {
}
hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly());
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -472,17 +398,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.dataplex.v1.UpdateTaskRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -598,7 +517,7 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.UpdateTaskRequest other) {
if (other.getValidateOnly() != false) {
setValidateOnly(other.getValidateOnly());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -613,17 +532,49 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.UpdateTaskRequest parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(getTaskFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 18
+ case 24:
+ {
+ validateOnly_ = input.readBool();
+
+ break;
+ } // case 24
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.google.cloud.dataplex.v1.UpdateTaskRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -1103,7 +1054,18 @@ public UpdateTaskRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new UpdateTaskRequest(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateZoneRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateZoneRequest.java
index 69eefe7dcf8d..b2169f715eb4 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateZoneRequest.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateZoneRequest.java
@@ -50,80 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private UpdateZoneRequest(
- 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.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;
- }
- case 18:
- {
- com.google.cloud.dataplex.v1.Zone.Builder subBuilder = null;
- if (zone_ != null) {
- subBuilder = zone_.toBuilder();
- }
- zone_ =
- input.readMessage(com.google.cloud.dataplex.v1.Zone.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(zone_);
- zone_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 24:
- {
- validateOnly_ = input.readBool();
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().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.dataplex.v1.ServiceProto
.internal_static_google_cloud_dataplex_v1_UpdateZoneRequest_descriptor;
@@ -279,7 +205,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (validateOnly_ != false) {
output.writeBool(3, validateOnly_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -297,7 +223,7 @@ public int getSerializedSize() {
if (validateOnly_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -322,7 +248,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getZone().equals(other.getZone())) return false;
}
if (getValidateOnly() != other.getValidateOnly()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -343,7 +269,7 @@ public int hashCode() {
}
hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly());
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -472,17 +398,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.dataplex.v1.UpdateZoneRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -598,7 +517,7 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.UpdateZoneRequest other) {
if (other.getValidateOnly() != false) {
setValidateOnly(other.getValidateOnly());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -613,17 +532,49 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.UpdateZoneRequest parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(getZoneFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 18
+ case 24:
+ {
+ validateOnly_ = input.readBool();
+
+ break;
+ } // case 24
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.google.cloud.dataplex.v1.UpdateZoneRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -1103,7 +1054,18 @@ public UpdateZoneRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new UpdateZoneRequest(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Zone.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Zone.java
index 4d07dee815f5..72f09482eb9c 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Zone.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Zone.java
@@ -60,179 +60,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private Zone(
- 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();
-
- displayName_ = s;
- break;
- }
- case 26:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- uid_ = s;
- break;
- }
- case 34:
- {
- com.google.protobuf.Timestamp.Builder subBuilder = null;
- if (createTime_ != null) {
- subBuilder = createTime_.toBuilder();
- }
- createTime_ =
- input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(createTime_);
- createTime_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 42:
- {
- com.google.protobuf.Timestamp.Builder subBuilder = null;
- if (updateTime_ != null) {
- subBuilder = updateTime_.toBuilder();
- }
- updateTime_ =
- input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(updateTime_);
- updateTime_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 50:
- {
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- labels_ =
- com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
- mutable_bitField0_ |= 0x00000001;
- }
- com.google.protobuf.MapEntry labels__ =
- input.readMessage(
- LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
- labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
- break;
- }
- case 58:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- description_ = s;
- break;
- }
- case 64:
- {
- int rawValue = input.readEnum();
-
- state_ = rawValue;
- break;
- }
- case 72:
- {
- int rawValue = input.readEnum();
-
- type_ = rawValue;
- break;
- }
- case 826:
- {
- com.google.cloud.dataplex.v1.Zone.DiscoverySpec.Builder subBuilder = null;
- if (discoverySpec_ != null) {
- subBuilder = discoverySpec_.toBuilder();
- }
- discoverySpec_ =
- input.readMessage(
- com.google.cloud.dataplex.v1.Zone.DiscoverySpec.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(discoverySpec_);
- discoverySpec_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 834:
- {
- com.google.cloud.dataplex.v1.Zone.ResourceSpec.Builder subBuilder = null;
- if (resourceSpec_ != null) {
- subBuilder = resourceSpec_.toBuilder();
- }
- resourceSpec_ =
- input.readMessage(
- com.google.cloud.dataplex.v1.Zone.ResourceSpec.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(resourceSpec_);
- resourceSpec_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 842:
- {
- com.google.cloud.dataplex.v1.AssetStatus.Builder subBuilder = null;
- if (assetStatus_ != null) {
- subBuilder = assetStatus_.toBuilder();
- }
- assetStatus_ =
- input.readMessage(
- com.google.cloud.dataplex.v1.AssetStatus.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(assetStatus_);
- assetStatus_ = subBuilder.buildPartial();
- }
-
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().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.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Zone_descriptor;
@@ -494,52 +321,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private ResourceSpec(
- 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 8:
- {
- int rawValue = input.readEnum();
-
- locationType_ = rawValue;
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().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.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Zone_ResourceSpec_descriptor;
@@ -775,7 +556,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
.getNumber()) {
output.writeEnum(1, locationType_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -789,7 +570,7 @@ public int getSerializedSize() {
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, locationType_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -806,7 +587,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.dataplex.v1.Zone.ResourceSpec) obj;
if (locationType_ != other.locationType_) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -819,7 +600,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LOCATION_TYPE_FIELD_NUMBER;
hash = (53 * hash) + locationType_;
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -950,17 +731,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.dataplex.v1.Zone.ResourceSpec.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -1051,7 +825,7 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.Zone.ResourceSpec other) {
if (other.locationType_ != 0) {
setLocationTypeValue(other.getLocationTypeValue());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -1066,17 +840,37 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.Zone.ResourceSpec parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ locationType_ = input.readEnum();
+
+ break;
+ } // case 8
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.google.cloud.dataplex.v1.Zone.ResourceSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -1222,7 +1016,19 @@ public ResourceSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new ResourceSpec(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
@@ -1569,120 +1375,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private DiscoverySpec(
- 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:
- {
- enabled_ = input.readBool();
- break;
- }
- case 18:
- {
- java.lang.String s = input.readStringRequireUtf8();
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- includePatterns_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000001;
- }
- includePatterns_.add(s);
- break;
- }
- case 26:
- {
- java.lang.String s = input.readStringRequireUtf8();
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
- excludePatterns_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000002;
- }
- excludePatterns_.add(s);
- break;
- }
- case 34:
- {
- com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.Builder subBuilder =
- null;
- if (csvOptions_ != null) {
- subBuilder = csvOptions_.toBuilder();
- }
- csvOptions_ =
- input.readMessage(
- com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.parser(),
- extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(csvOptions_);
- csvOptions_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 42:
- {
- com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.Builder subBuilder =
- null;
- if (jsonOptions_ != null) {
- subBuilder = jsonOptions_.toBuilder();
- }
- jsonOptions_ =
- input.readMessage(
- com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.parser(),
- extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(jsonOptions_);
- jsonOptions_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 82:
- {
- java.lang.String s = input.readStringRequireUtf8();
- triggerCase_ = 10;
- trigger_ = s;
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) != 0)) {
- includePatterns_ = includePatterns_.getUnmodifiableView();
- }
- if (((mutable_bitField0_ & 0x00000002) != 0)) {
- excludePatterns_ = excludePatterns_.getUnmodifiableView();
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Zone_DiscoverySpec_descriptor;
@@ -1816,70 +1508,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private CsvOptions(
- 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 8:
- {
- headerRows_ = input.readInt32();
- break;
- }
- case 18:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- delimiter_ = s;
- break;
- }
- case 26:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- encoding_ = s;
- break;
- }
- case 32:
- {
- disableTypeInference_ = input.readBool();
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().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.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Zone_DiscoverySpec_CsvOptions_descriptor;
@@ -2057,7 +1685,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (disableTypeInference_ != false) {
output.writeBool(4, disableTypeInference_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -2078,7 +1706,7 @@ public int getSerializedSize() {
if (disableTypeInference_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableTypeInference_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -2098,7 +1726,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getDelimiter().equals(other.getDelimiter())) return false;
if (!getEncoding().equals(other.getEncoding())) return false;
if (getDisableTypeInference() != other.getDisableTypeInference()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -2117,7 +1745,7 @@ public int hashCode() {
hash = (53 * hash) + getEncoding().hashCode();
hash = (37 * hash) + DISABLE_TYPE_INFERENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableTypeInference());
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -2249,17 +1877,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -2372,7 +1993,7 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOpti
if (other.getDisableTypeInference() != false) {
setDisableTypeInference(other.getDisableTypeInference());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -2387,19 +2008,55 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ headerRows_ = input.readInt32();
+
+ break;
+ } // case 8
+ case 18:
+ {
+ delimiter_ = input.readStringRequireUtf8();
+
+ break;
+ } // case 18
+ case 26:
+ {
+ encoding_ = input.readStringRequireUtf8();
+
+ break;
+ } // case 26
+ case 32:
+ {
+ disableTypeInference_ = input.readBool();
+
+ break;
+ } // case 32
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage =
- (com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions)
- e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -2760,7 +2417,19 @@ public CsvOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new CsvOptions(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
@@ -2859,58 +2528,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private JsonOptions(
- 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();
-
- encoding_ = s;
- break;
- }
- case 16:
- {
- disableTypeInference_ = input.readBool();
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().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.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Zone_DiscoverySpec_JsonOptions_descriptor;
@@ -3015,7 +2632,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (disableTypeInference_ != false) {
output.writeBool(2, disableTypeInference_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -3030,7 +2647,7 @@ public int getSerializedSize() {
if (disableTypeInference_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, disableTypeInference_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -3048,7 +2665,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getEncoding().equals(other.getEncoding())) return false;
if (getDisableTypeInference() != other.getDisableTypeInference()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -3063,7 +2680,7 @@ public int hashCode() {
hash = (53 * hash) + getEncoding().hashCode();
hash = (37 * hash) + DISABLE_TYPE_INFERENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableTypeInference());
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -3195,17 +2812,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -3306,7 +2916,7 @@ public Builder mergeFrom(
if (other.getDisableTypeInference() != false) {
setDisableTypeInference(other.getDisableTypeInference());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -3321,19 +2931,43 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ encoding_ = input.readStringRequireUtf8();
+
+ break;
+ } // case 10
+ case 16:
+ {
+ disableTypeInference_ = input.readBool();
+
+ break;
+ } // case 16
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage =
- (com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions)
- e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -3536,7 +3170,19 @@ public JsonOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new JsonOptions(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
@@ -4004,7 +3650,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (triggerCase_ == 10) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, trigger_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -4041,7 +3687,7 @@ public int getSerializedSize() {
if (triggerCase_ == 10) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, trigger_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -4076,7 +3722,7 @@ public boolean equals(final java.lang.Object obj) {
case 0:
default:
}
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -4113,7 +3759,7 @@ public int hashCode() {
case 0:
default:
}
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -4244,17 +3890,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.dataplex.v1.Zone.DiscoverySpec.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -4427,7 +4066,7 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.Zone.DiscoverySpec other)
break;
}
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -4442,18 +4081,70 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.Zone.DiscoverySpec parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ enabled_ = input.readBool();
+
+ break;
+ } // case 8
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureIncludePatternsIsMutable();
+ includePatterns_.add(s);
+ break;
+ } // case 18
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureExcludePatternsIsMutable();
+ excludePatterns_.add(s);
+ break;
+ } // case 26
+ case 34:
+ {
+ input.readMessage(getCsvOptionsFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 34
+ case 42:
+ {
+ input.readMessage(getJsonOptionsFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 42
+ case 82:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ triggerCase_ = 10;
+ trigger_ = s;
+ break;
+ } // case 82
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage =
- (com.google.cloud.dataplex.v1.Zone.DiscoverySpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -5573,7 +5264,19 @@ public DiscoverySpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new DiscoverySpec(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
@@ -6283,7 +5986,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (assetStatus_ != null) {
output.writeMessage(105, getAssetStatus());
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -6335,7 +6038,7 @@ public int getSerializedSize() {
if (assetStatus_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(105, getAssetStatus());
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -6377,7 +6080,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasAssetStatus()) {
if (!getAssetStatus().equals(other.getAssetStatus())) return false;
}
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -6424,7 +6127,7 @@ public int hashCode() {
hash = (37 * hash) + ASSET_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getAssetStatus().hashCode();
}
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -6575,17 +6278,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
}
// Construct using com.google.cloud.dataplex.v1.Zone.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
@@ -6781,7 +6477,7 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.Zone other) {
if (other.hasAssetStatus()) {
mergeAssetStatus(other.getAssetStatus());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -6796,17 +6492,108 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.dataplex.v1.Zone parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ name_ = input.readStringRequireUtf8();
+
+ break;
+ } // case 10
+ case 18:
+ {
+ displayName_ = input.readStringRequireUtf8();
+
+ break;
+ } // case 18
+ case 26:
+ {
+ uid_ = input.readStringRequireUtf8();
+
+ break;
+ } // case 26
+ case 34:
+ {
+ input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 34
+ case 42:
+ {
+ input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 42
+ case 50:
+ {
+ com.google.protobuf.MapEntry labels__ =
+ input.readMessage(
+ LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ internalGetMutableLabels()
+ .getMutableMap()
+ .put(labels__.getKey(), labels__.getValue());
+ break;
+ } // case 50
+ case 58:
+ {
+ description_ = input.readStringRequireUtf8();
+
+ break;
+ } // case 58
+ case 64:
+ {
+ state_ = input.readEnum();
+
+ break;
+ } // case 64
+ case 72:
+ {
+ type_ = input.readEnum();
+
+ break;
+ } // case 72
+ case 826:
+ {
+ input.readMessage(getDiscoverySpecFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 826
+ case 834:
+ {
+ input.readMessage(getResourceSpecFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 834
+ case 842:
+ {
+ input.readMessage(getAssetStatusFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 842
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.google.cloud.dataplex.v1.Zone) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
@@ -8666,7 +8453,18 @@ public Zone parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new Zone(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto
index 51e48e46e708..39482113d6df 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto
@@ -221,7 +221,7 @@ message SessionEvent {
// An unspecified event type.
EVENT_TYPE_UNSPECIFIED = 0;
- // Event for start of a session.
+ // Event when the session is assigned to a user.
START = 1;
// Event for stop of a session.
@@ -229,6 +229,10 @@ message SessionEvent {
// Query events in the session.
QUERY = 3;
+
+ // Event for creation of a cluster. It is not yet assigned to a user.
+ // This comes before START in the sequence
+ CREATE = 4;
}
// Execution details of the query.
@@ -267,7 +271,8 @@ message SessionEvent {
// The log message.
string message = 1;
- // The information about the user that created the session.
+ // The information about the user that created the session. It will be the
+ // email address of the user.
string user_id = 2;
// Unique identifier for the session.
@@ -281,4 +286,13 @@ message SessionEvent {
// The execution details of the query.
QueryDetail query = 5;
}
+
+ // The status of the event.
+ bool event_succeeded = 6;
+
+ // If the session is a warm pooled session.
+ bool warm_pool_enabled = 7;
+
+ // The idle duration of a warm pooled session before it is assigned to user.
+ google.protobuf.Duration unassigned_duration = 8;
}
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/tasks.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/tasks.proto
index 8ca33dac1ba3..151cce1b2c02 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/tasks.proto
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/tasks.proto
@@ -238,6 +238,27 @@ message Task {
InfrastructureSpec infrastructure_spec = 6 [(google.api.field_behavior) = OPTIONAL];
}
+ // Config for running scheduled notebooks.
+ message NotebookTaskConfig {
+ // Required. Path to input notebook. This can be the GCS URI of the notebook file
+ // or the path to a Notebook Content.
+ // The execution args are accessible as environment variables
+ // (`TASK_key=value`).
+ string notebook = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Infrastructure specification for the execution.
+ InfrastructureSpec infrastructure_spec = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. GCS URIs of files to be placed in the working directory of each
+ // executor.
+ repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. GCS URIs of archives to be extracted into the working directory of
+ // each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
+ // .zip.
+ repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL];
+ }
+
// Status of the task execution (e.g. Jobs).
message ExecutionStatus {
// Output only. Last update time of the status.
@@ -292,6 +313,9 @@ message Task {
oneof config {
// Config related to running custom Spark tasks.
SparkTaskConfig spark = 300;
+
+ // Config related to running scheduled Notebooks.
+ NotebookTaskConfig notebook = 302;
}
}